/* --- Global Styles & Variables --- */
:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --accent-green: #A3F564;
    --text-light: #F5F5F5;
    --text-muted: 666666;
    --border-color: #333333;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    background-color: var(--bg-dark);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.9rem;
}

/* --- Typography & Common Elements --- */
h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 4.2rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.5rem; }
a {color: #A3F564; text-decoration: none;}

.logo-highlight {
    color: var(--accent-green);
    font-weight: 700; /* Make it bold for extra punch */
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    margin-bottom: 3rem;
}

.cta-button {
    background-color: var(--accent-green);
    color: #121212;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(163, 245, 100, 0.2);
}

/* --- Header & Navigation --- */
.header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

/* --- Hamburger Menu --- */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation for 'active' state */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* Dropdown container */
.nav-item.dropdown {
    position: relative;
}

dropdown-menu {
list-style: none;
margin: 0;
padding: 0.5rem 0;
}

.dropdown-menu li {
list-style: none;
}

/* Services button */
.nav-links .dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
}

.nav-links .dropdown-toggle i {
    font-size: 0.75rem;
}

/* Base dropdown menu styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 230px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    z-index: 1100;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.6rem 1.25rem;
    color: var(--text-muted);
    text-align: left;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    color: var(--text-light);
    background-color: rgba(255,255,255,0.02);
}

/* Desktop: open on hover */
@media (min-width: 769px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: flex;
    }
}


.nav-cta {
    padding: 0.6rem 1.5rem;
    color: black !important;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 80px;
}


.hero {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .8rem;
    color: var(--secondary-color);
}

.hero-content {
    max-width: 800px;
}

.hero-intro {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-green);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: .9rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1.5rem 0 2.5rem 0;
}

/* --- Stats Bar --- */
.stats-bar {
    background-color: var(--bg-card);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h2 {
    color: var(--accent-green);
}

.stat-item p {
    color: var(--text-muted);
}


/* --- Mini Testimonial Carousel --- */
.mini-testimonial-carousel {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    padding: 3rem 2rem;
    text-align: center;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 40px; /* Space for arrows */
}

.carousel-slide p {
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
}

.carousel-slide footer {
    font-style: normal;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--bg-dark);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    opacity: 1;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* --- Services Section --- */
.services-section {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

.service-card.primary-service {
    border-color: var(--accent-green);
}

/* --- Work Section --- */
.work-section {
    padding: 5rem 0;
    background-color: var(--bg-card);
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 6rem;
}

.project-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.project-card.reverse .project-info {
    order: 0;
}

.project-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-info h3 {
    font-size: 2rem; 
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.project-stats span {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    padding: 1rem 1.2rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    flex-grow: 1;
    min-width: 120px;
}

.project-info a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

/* --- Advantage / Comparison Section --- */
.advantage-section {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 1px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-header,
.comparison-cell {
    background-color: var(--bg-dark);
    padding: 1.5rem;
}

.comparison-header {
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-cell.label {
    font-weight: 600;
    color: var(--text-light);
}

.comparison-cell {
    color: var(--text-muted);
}

.comparison-header.highlight,
.comparison-cell.highlight {
    background-color: #2a3a2b;
    color: var(--text-light);
    font-size: .88rem;
}

.comparison-header.highlight {
    color: var(--accent-green);
}

/* --- About Section --- */
.about-section {
    position: relative;
    background-color: var(--bg-card);
    padding: 5rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 35%;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.about-content .section-title {
    margin-bottom: 1.5rem;
}

.pd-2rem {
    padding: 0 .9rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.stars {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card > p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Contact Section --- */
.contact-section {
    padding: 8rem 0;
}

section#contact .contact-container {
    text-align: center;
    background-color: var(--accent-green);
    color: var(--bg-dark);
    padding: 4rem;
    border-radius: 20px;
}

.contact-container .section-tag {
    color: var(--bg-dark);
}

.contact-container p {
    margin-bottom: 1.1rem;
}

.closing {
    font-family: inherit;
}

.contact-email {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-decoration: none;
}

/* --- Contact Icons Container --- */
.contact-icons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-icon-link {
    display: inline-block;
    font-size: 3.2rem;
    color: var(--bg-dark); 
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icon-link:hover {
    transform: scale(1.1);
    color: #000;
}

/* --- Back to Top Button --- */
#backToTop {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    opacity: 0;
    visibility: hidden; 
    transform: translateX(-50%); 
    
    background-color: var(--bg-card);
    color: var(--accent-green);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--accent-green);
    color: var(--bg-dark);
    transform: translateX(-50%) scale(1.1);
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer a:hover {
    color: var(--text-light);
}


/* --- Footer Links --- */
.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
}

/* --- Insights Section --- */
.insights-section {
    padding: 5rem 0;
    background-color: var(--accent-green); /*Green background */
}

/* Override colors for headings/tags inside the green section to be dark */
.insights-section .section-tag,
.insights-section .section-title {
    color: var(--bg-dark);
}

.insight-card {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.insight-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.insight-card h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--text-light);
}

.insight-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: medium;
}

/* --- Insights Section (Collapsible) --- */
.insights-section {
    padding: 5rem 0;
}

.insight-collapsible {
    max-width: 900px;
    padding-top: 1rem;
}

.insight-card {
    display: block; /* Necessary for <summary> tag */
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.insight-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
}

.insight-card h3 {
    margin-bottom: 1rem;
    font-size: 1.9rem;
    color: var(--text-light);
}

.insight-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.insight-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

.insight-card::-webkit-details-marker,
.insight-card::marker {
    display: none;
    content: "";
}

/* Style for the expanded content */
.insight-full-content {
    padding: 2rem 2.5rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -12px;
}

.insight-full-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent-green);
}

.insight-full-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.insight-full-content ul {
    list-style-position: inside;
    padding-left: 1rem;
    color: var(--text-muted);
}

.insight-full-content ul li {
    margin-bottom: 0.5rem;
}

.insight-full-content a {
    color: var(--accent-green);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .project-card, .project-card.reverse {
        grid-template-columns: 1fr;
    }
    .project-card.reverse .project-info {
        order: 0;
    }
    .project-image {
        margin-top: 2rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* --- Mobile Fallback for About Image --- */
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        position: relative;
        width: 100%;
        max-width: 400px;
        height: 400px; 
        margin: 2rem auto 0 auto;
        border-radius: 12px;
        overflow: hidden;
    }
}

/* --- Mobile Styles (768px and below) --- */
@media (max-width: 768px) {
    p {
        font-size: 1rem;
    }

    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        font-size: 1.5rem;
    }

        /* Dropdown behaviour on mobile, opened via JS .open class */
    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding-top: 0;
        padding-bottom: 0.5rem;
        align-items: flex-start;
    }

    .nav-item.dropdown {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}

    .nav-item.dropdown .dropdown-toggle {
        font-size: 1.5rem;
    }

    .nav-item.dropdown.open .dropdown-menu {
        display: flex;
width: 100%;
text-align: center;
    }

    .dropdown-menu a {
        padding-left: 0;
        font-size: 1.1rem;
    }

    .nav-item.dropdown .dropdown-menu {
position: static;
width: 100%;
border: none;
border-radius: 0;
box-shadow: none;
background-color: var(--bg-dark);
padding: 0;
margin-top: 0.75rem;
}

.nav-item.dropdown .dropdown-menu a {
display: block;
text-align: center;
padding: 0.75rem 0;
}

    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .stats-container { flex-direction: column; gap: 2rem; }
    .contact-email { font-size: 1.5rem; word-break: break-all; 
    }

    .project-info h3 {
    font-size: 1.65rem;
    }
    
    .section-title {
    margin-bottom: 2.4rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        border-radius: 0;
    }
    
    .comparison-header, .comparison-cell.label {
        display: none; 
    }
    
    .comparison-cell {
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        font-size: .88rem;
    }
    
    .comparison-cell.highlight:before {
        content: "A Direct Partnership Model:";
        display: block;
        font-weight: 700;
        color: var(--accent-green);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .comparison-cell:not(.label):not(.highlight):before {
        content: "The Traditional Agency Model:";
        display: block;
        font-weight: 700;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

.project-stats {
        /* Override desktop flex settings for mobile stacking */
        flex-direction: row; /* Keep it as a row for the 2-column effect */
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .project-stats span {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.2;
        text-align: center;
    }

    .project-stats span:nth-child(1),
    .project-stats span:nth-child(2) {
        flex-basis: calc(50% - 0.5rem);
        min-width: 0;
    }

    /* Third block takes up the full width */
    .project-stats span:nth-child(3) {
        flex-basis: 100%;
        min-width: 100%;
    }
    .footer p, footer a {
    font-size:.75rem;
}
}