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

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --success: #2ecc71;
    --error: #e74c3c;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    top: -25%;
    left: -25%;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    padding: 18px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.9;
    transition: opacity 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    opacity: 1;
}

.subtext {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 12px;
}

/* Visual Animation */
.workflow-visual {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-chain {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.workflow-node {
    padding: 20px 30px;
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    font-weight: 600;
    animation: glow 2s ease-in-out infinite;
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--secondary);
    animation: slide 1.5s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
    }
}

@keyframes slide {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-alt {
    background: var(--light-gray);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Problem & Promise */
.problem-section {
    background: var(--white);
}

.before-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.ba-card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.before {
    background: #fee2e2;
    border: 2px solid #fca5a5;
}

.after {
    background: #dcfce7;
    border: 2px solid #86efac;
}

.ba-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.ba-card ul {
    list-style: none;
    text-align: left;
}

.ba-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ba-card li:last-child {
    border-bottom: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card ul {
    list-style: none;
    margin: 20px 0;
}

.service-card li {
    padding: 8px 0;
    color: var(--gray);
}

.service-card li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

/* Best Seller Badge for Service Cards */
.service-card.bestseller {
    position: relative;
    border: 3px solid var(--primary);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.25);
}

.service-card.bestseller::before {
    content: "BEST SELLER";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    z-index: 10;
}

.service-card.bestseller:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 25px 60px rgba(14, 165, 233, 0.3);
    border-color: var(--primary);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .service-card.bestseller {
        transform: scale(1);
    }

    .service-card.bestseller:hover {
        transform: translateY(-5px);
    }

    .service-card.bestseller::before {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

/* Social Proof */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark);
}

.founder-bio {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-top: 60px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    flex-shrink: 0;
}

.founder-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Case Studies */
.case-studies {
    display: grid;
    gap: 40px;
    margin-top: 60px;
}

.case-study {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.case-study h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.case-result {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--dark);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.3);
}

.pricing-card.featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin: 20px 0 15px;
    color: var(--dark);
}

.pricing-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.price-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.price-divider {
    color: var(--gray);
    font-size: 1.2rem;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
    transform: translateX(5px);
}

.faq-item h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: left;
}

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

/* ================================
   CONTACT FORM - OPTIMIZED
   ================================ */

.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Form row for side-by-side fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
}

/* Required field indicator */
.required {
    color: var(--error);
    margin-left: 2px;
}

/* Form hints */
.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray);
    font-style: italic;
}

/* Input and Textarea base styles */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}



.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select dropdown styling */
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form select option {
    background: var(--white);
    color: var(--dark);
    padding: 0.5rem;
}

/* Radio button group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.radio-option input[type="radio"] {
    margin: 0;
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.radio-option span {
    font-size: 1rem;
    color: var(--dark);
}

.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

/* Checkbox styling for consent */
.consent-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--primary);
}

.checkbox-label span {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Conditional field animations */
#otherChallengeGroup,
#otherSourceGroup {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Submit button */
.submit-btn {
    background: var(--gradient);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ================================
   FORM VALIDATION STYLING
   ================================ */

/* Text inputs and textareas - show red for invalid, green for valid */

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: var(--primary);
}

/* Select validation - improved styling */
.contact-form select:invalid {
    border-color: #e2e8f0;
    /* Default gray border when no selection */
}

.contact-form select:valid {
    border-color: var(--primary);
    /* Green border when valid option selected */
}

/* Focus states override validation colors */
.contact-form select:focus {
    border-color: var(--primary) !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary) !important;
}

/* ================================
   END CONTACT FORM
   ================================ */

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.final-cta h2 {
    color: var(--white);
}

.final-cta p {
    color: #cbd5e1;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .workflow-chain {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .founder-bio {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    /* Contact form mobile adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        gap: 0.5rem;
    }

    .radio-option {
        padding: 12px;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
}


/* ================================
   HEADER NAVIGATION STYLES
   ================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

/* Logo Styles */
.nav-logo {
    flex-shrink: 0;
}

.nav-logo a {
    display: block;
    line-height: 1;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.dropdown-toggle .fas {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fas {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    padding: 12px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

/* CTA Button */
.nav-cta {
    flex-shrink: 0;
}

.btn-header-cta {
    background: var(--gradient);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    white-space: nowrap;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 100px 20px 40px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.mobile-nav-menu>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 20px 0;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    padding-left: 20px;
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-dropdown-toggle .fas {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle .fas {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
    padding: 10px 0;
}

.mobile-dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-dropdown-link:hover {
    color: var(--primary);
    padding-left: 30px;
}

.mobile-cta {
    margin-top: 40px;
    text-align: center;
}

/* Body scroll lock when mobile menu is open */
.menu-open {
    overflow: hidden;
}

/* Content spacing for fixed header */
.main-content {
    margin-top: 80px;
}

/* ================================
   RESPONSIVE STYLES
   ================================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 70px;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-menu,
    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .main-content {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        min-height: 65px;
    }

    .nav-logo img {
        height: 35px;
    }

    .mobile-menu-content {
        padding: 80px 15px 30px;
    }

    .btn-header-cta {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .main-content {
        margin-top: 65px;
    }
}

/* ================================
   ACCESSIBILITY IMPROVEMENTS
   ================================ */

/* Focus styles for keyboard navigation */
.nav-link:focus,
.dropdown-link:focus,
.mobile-nav-link:focus,
.btn-header-cta:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .main-header {
        background: #000;
        border-bottom: 2px solid #fff;
    }

    .nav-link,
    .mobile-nav-link {
        color: #fff;
    }

    .nav-link:hover,
    .nav-link.active,
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        color: #00ff00;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary, #007bff) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}