/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --accent-color: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.btn-primary {
    color: var(--white) !important;
}

.nav-menu a.btn-primary:hover {
    color: var(--white) !important;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.65rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    background-color: var(--white);
}

.hero-headline {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 4rem;
}

.hero-headline h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-headline h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.hero-text p strong {
    color: var(--text-dark);
    font-size: 1.25rem;
}

/* Services Overview Section */
.services {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
    background-color: var(--white);
}

.service-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-primary-large {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-primary-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary-large:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Section Styling */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* GTM Engineering Section */
.gtm-engineering {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.gtm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gtm-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gtm-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.gtm-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.gtm-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Strategy Consulting Section */
.strategy-consulting {
    background-color: var(--white);
    padding: 8rem 0;
}

.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.strategy-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.strategy-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.strategy-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.strategy-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Lead Generation Flywheels Section */
.flywheels {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.flywheels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.flywheels-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.flywheels-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.flywheels-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flywheels-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* CRM Optimization Section */
.crm-optimization {
    background-color: var(--bg-light);
    padding: 8rem 0;
}

.crm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.crm-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.crm-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.crm-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

.faq-item:hover {
    background-color: #f3f4f6;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* About Us Section */
.about {
    background-color: var(--white);
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.contact-text .btn-primary-large {
    margin-top: 1.5rem;
}

.contact-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--text-gray);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Button Loading State */
.btn-primary.loading,
.btn-primary-large.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mobile Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-backdrop.active {
    display: block;
    opacity: 1;
}

/* Body Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

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

    .nav-menu a {
        display: block;
        padding: 1rem 1.25rem;
        border-radius: 0.5rem;
        font-size: 1.125rem;
    }

    .nav-menu a:hover {
        background-color: var(--bg-light);
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        padding: 0.5rem 0;
    }

    .dropdown-toggle::after {
        margin-left: auto;
    }

    .dropdown-menu a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-headline {
        margin-bottom: 3rem;
    }

    .hero-headline h2 {
        font-size: 2rem;
    }

    .hero-headline h3 {
        font-size: 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    section {
        padding: 5rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-grid,
    .gtm-grid,
    .strategy-grid,
    .flywheels-grid,
    .crm-grid {
        grid-template-columns: 1fr;
    }
    
    .gtm-text h2 {
        font-size: 2rem;
    }
    
    .gtm-text {
        text-align: center;
    }
    
    .strategy-text h2 {
        font-size: 2rem;
    }
    
    .strategy-text {
        text-align: center;
    }
    
    .flywheels-text h2 {
        font-size: 2rem;
    }
    
    .flywheels-text {
        text-align: center;
    }
    
    .crm-text h2 {
        font-size: 2rem;
    }
    
    .crm-text {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .about-text {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-text h2 {
        font-size: 2rem;
    }

    .contact-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}
