/* Global Styles & Variables */
:root {
    --primary-color: #007bff; /* A trustworthy blue */
    --secondary-color: #28a745; /* A supportive green */
    --accent-color: #ffc107; /* An optimistic yellow/gold - use sparingly */
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --bg-color: #ffffff;
    --alt-bg-color: #f8f9fa; /* For alternating sections */
    --border-color: #dee2e6;
    --font-family: 'Inter', sans-serif;
    --container-width: 1100px;
    --section-padding: 60px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; color: var(--primary-color); }
h2 { font-size: 2.2rem; color: var(--primary-color); text-align: center;}
h3 { font-size: 1.5rem; color: var(--text-color);}
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--secondary-color); text-decoration: underline; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: var(--section-padding);
}

.alt-bg {
    background-color: var(--alt-bg-color);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: #555;
}

/* Header & Navigation */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo:hover {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Nav open state for hamburger */
.nav-open .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0; /* Adjusted to line up with top line */
}


/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.1)), url('https://via.placeholder.com/1920x600.png?text=Sri+Lankan+Business+Montage') no-repeat center center/cover;
    color: var(--text-color); /* Darker text for better contrast on light overlay */
    padding: 100px 0;
    text-align: center;
}

#hero .hero-content {
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color); /* Ensure headline stands out */
}

#hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #218838; /* Darker green */
    color: var(--light-text-color); /* Ensure text remains white */
    text-decoration: none;
    transform: translateY(-2px);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px; /* Adjust as needed */
    height: 60px; /* Adjust as needed */
    margin: 0 auto 15px auto;
    /* For actual icons, you might add background color or use SVGs */
}


/* Ad Reviews Section */
.review-placeholder {
    max-width: 800px;
    margin: 0 auto;
}
.review-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
}
.review-item h4 { color: var(--primary-color); }

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.team-card {
    text-align: center;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border: 3px solid var(--border-color);
}
.team-card h3 { margin-bottom: 0.3rem;}
.team-card p { font-size: 0.9rem; color: #555;}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}
.portfolio-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden; /* If using images that might overflow */
}
.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.portfolio-item h3, .portfolio-item p {
    padding: 15px;
}
.portfolio-item h3 { padding-bottom: 5px; }
.portfolio-item p { padding-top: 0; font-size: 0.95rem; }


/* Contact CTA Section */
#contact-cta {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
#contact-cta h2 { color: var(--light-text-color); }
#contact-cta p { margin-bottom: 2rem; }
#contact-cta .cta-button {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}
#contact-cta .cta-button:hover {
    background-color: #e2e6ea;
    color: var(--primary-color);
}

/* Blog Teaser Section */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}
.blog-preview-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.blog-preview-item .post-meta {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
}


/* Contact Form Page */
#contact-form-section h2, #contact-form-section .section-intro {
    text-align: left;
}

#contact-form {
    max-width: 700px;
    /* margin: 0 auto; */ /* If you want it centered in its section */
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}
#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: #333;
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0;
    margin-top: 30px; /* Give some space from last content */
}
footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
footer a {
    color: var(--accent-color);
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }

    .nav-toggle {
        display: block; /* Show hamburger */
    }

    .nav-links {
        position: absolute;
        background-color: var(--bg-color);
        left: 0;
        right: 0;
        top: 70px; /* Adjust based on header height */
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        width: 100%;
    }
    .nav-links.nav-active { /* Class added by JS */
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
    .nav-links li:last-child {
        margin-bottom: 0;
    }
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }

    .services-grid, .team-grid, .portfolio-grid, .blog-preview-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

    #hero {
        padding: 60px 0;
    }
    
    #contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    #hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .cta-button { font-size: 1rem; padding: 10px 20px; }
    .section-padding { padding: 40px 0; }
}