:root {
    /* Core Colors */
    --primary-color: #1E4D8D;      /* Deep Neural Blue */
    --secondary-color: #3CB371;     /* Synapse Green */
    --accent-color: #5DADE2;       /* Axon Blue */
    --red-accent: #E74C3C;         /* Signal Red */
    --orange-accent: #E67E22;      /* Neuron Orange */
    --neural-gradient: linear-gradient(
        120deg, 
        #1E4D8D 0%, 
        #3CB371 50%, 
        #5DADE2 100%
    );
    --signal-gradient: linear-gradient(
        45deg,
        #1E4D8D 0%,
        #E74C3C 50%,
        #E67E22 100%
    );
    --background-light: #F0F5FA;
    --background-dark: #0A1A2F;
    --text-color: #1A1A1A;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray: #666666;
    --transition: all 0.3s ease;
}

/* Dark mode variables - WCAG AA Compliant */
[data-theme="dark"] {
    --primary-color: #60C5F1; /* Lighter blue for better contrast (was #5DADE2) */
    --secondary-color: #7DE6B8; /* Lighter green for better contrast */
    --accent-color: #75E6DA; /* Keeping cyan accent */
    --background-light: #0F1419; /* Slightly lighter dark background */
    --background-dark: #0A1A2F; /* Deep blue-black */
    --text-color: #F3F4F6; /* Slightly off-white for less eye strain */
    --gray-light: #1F2937; /* Dark gray for cards */
    --gray: #E5E7EB; /* Light gray with good contrast */
    --white: #FFFFFF; /* Pure white for high contrast elements */
    --red-accent: #F87171; /* Lighter red for better visibility */
    --orange-accent: #FB923C; /* Lighter orange */
    --dark-bg: #0A1A2F;

    /* Card and section backgrounds */
    --card-bg-dark: #1A2332;
    --section-bg-dark: #111827;
}

/* High Contrast Mode */
[data-high-contrast="true"] {
    --primary-color: #0000FF;      /* High contrast blue */
    --secondary-color: #008000;    /* High contrast green */
    --accent-color: #0080FF;       /* High contrast light blue */
    --red-accent: #FF0000;         /* High contrast red */
    --orange-accent: #FF8000;      /* High contrast orange */
    --background-light: #FFFFFF;   /* Pure white background */
    --background-dark: #000000;    /* Pure black background */
    --text-color: #000000;         /* Black text */
    --white: #FFFFFF;              /* Pure white */
    --gray-light: #F0F0F0;         /* Light gray */
    --gray: #505050;               /* Darker gray */
    
    /* Increase contrast for text */
    color: #000000;
    background-color: #FFFFFF;
}

[data-high-contrast="true"] .hero,
[data-high-contrast="true"] .cta-section {
    background: var(--primary-color);
    color: var(--white);
}

[data-high-contrast="true"] a {
    text-decoration: underline;
}

[data-high-contrast="true"] .feature-card,
[data-high-contrast="true"] .nav-card,
[data-high-contrast="true"] .testimonial {
    border: 2px solid #000000;
}

[data-high-contrast="true"] footer {
    background: #000000;
    color: #FFFFFF;
}

[data-high-contrast="true"] .footer-section a,
[data-high-contrast="true"] .footer-legal a {
    color: #FFFFFF;
    text-decoration: underline;
}

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

/* Remove default browser focus outline - prevents blue lines */
*:focus {
    outline: none;
}

/* Add custom focus styles for accessibility where needed */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Accessibility - Hide content visually but keep it available for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-light);
    transition: var(--transition);
}

/* Main container */
main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
    border-top: none;
}

[data-theme="dark"] .site-header {
    background: var(--background-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode - Sections and cards */
[data-theme="dark"] section {
    background: var(--background-light);
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .value-prop,
[data-theme="dark"] .package-card,
[data-theme="dark"] .step {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .package-card:hover {
    background: #1F2937;
    border-color: var(--primary-color);
}

/* Dark mode - Headings with better contrast */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: var(--white);
}

[data-theme="dark"] p,
[data-theme="dark"] li {
    color: var(--text-color);
}

/* Dark mode - Section backgrounds */
[data-theme="dark"] .intro-section,
[data-theme="dark"] .packages-section,
[data-theme="dark"] .how-it-works {
    background: var(--section-bg-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav {
    background: var(--white);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
}

[data-theme="dark"] .main-nav {
    background: var(--background-dark);
}

/* Add spacing to main content to account for fixed header */
.site-header ~ main {
    margin-top: 140px;
}

/* Adjust for pages without nav */
body:not(:has(.main-nav)) .site-header ~ main {
    margin-top: 80px;
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    border-radius: 50%;
    padding: 8px;
}

.dark-mode-toggle:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

[data-theme="dark"] .dark-mode-toggle {
    color: var(--white);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

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

.nav-links a:hover {
    color: var(--red-accent);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-color);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
    color: var(--primary-color);
}

/* Dark mode - Links general */
[data-theme="dark"] a {
    color: var(--primary-color);
}

[data-theme="dark"] a:hover {
    color: var(--accent-color);
}

/* Dark mode - Buttons with proper contrast */
[data-theme="dark"] .btn.primary {
    background: var(--primary-color);
    color: #0A1A2F; /* Dark text on light button for contrast */
    border: 2px solid var(--primary-color);
}

[data-theme="dark"] .btn.primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #0A1A2F;
}

/* Dark mode - CTA section buttons (override white background) */
[data-theme="dark"] .cta-section .btn.primary {
    background: var(--primary-color);
    color: #0A1A2F;
}

[data-theme="dark"] .cta-section .btn.primary:hover {
    background: var(--accent-color);
    color: #0A1A2F;
}

[data-theme="dark"] .btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

[data-theme="dark"] .btn.secondary:hover {
    background: var(--primary-color);
    color: #0A1A2F;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--background-light);
    padding: 5px;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span {
    display: block;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-color);
}

.logo-text .with-abe {
    font-size: 0.8em;
    color: var(--secondary-color);
    font-weight: 500;
}

.logo a {
    text-decoration: none;
}

.hero-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add a subtle glow effect on hover */
.logo img:hover,
.hero-logo:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Smooth rotation animation for the hero logo */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .logo img,
[data-theme="dark"] .hero-logo {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 15px rgba(93, 173, 226, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, 
        #1E4D8D 0%,
        #2E5E95 35%,
        #3CB371 100%);
    position: relative;
    overflow: hidden;
}

/* Remove box around hero content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: contentFade 1s ease-out;
    background: none;
    border: none;
    box-shadow: none;
}

/* Neural network background animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(93, 173, 226, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(60, 179, 113, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(231, 76, 60, 0.2) 0%, transparent 25%);
    filter: blur(40px);
    animation: neuralGlow 8s ease-in-out infinite alternate;
}

/* Update hero section background pattern */
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.neural-paths%7Banimation:pulse 3s infinite%7D@keyframes pulse%7B0%25,100%25%7Bopacity:0.3%7D50%25%7Bopacity:0.6%7D%7D%3C/style%3E%3Cg class='neural-paths' stroke='rgba(255,255,255,0.15)' stroke-width='0.5'%3E%3Cpath d='M20,20 Q50,25 80,30'/%3E%3Cpath d='M80,30 Q120,35 160,40'/%3E%3Cpath d='M40,100 Q80,95 120,90'/%3E%3Cpath d='M120,90 Q150,105 180,120'/%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.3)'/%3E%3Ccircle cx='80' cy='30' r='2' fill='rgba(255,255,255,0.3)'/%3E%3Ccircle cx='160' cy='40' r='2' fill='rgba(255,255,255,0.3)'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    animation: neuralFlow 30s linear infinite;
    transform: scale(3);
    background-size: 200px 200px;
}

/* Add floating particles */
.neural-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.neural-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 6s infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

@keyframes neuralGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes neuralFlow {
    0% {
        transform: rotate(0deg) scale(3);
        background-position: 0 0;
    }
    100% {
        transform: rotate(360deg) scale(3);
        background-position: 200px 200px;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

/* Update text styling */
.hero-content h1 {
    font-size: 3.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.hero-content h1 .with-abe {
    font-size: 2.5rem;
    color: #75E6DA;
    display: block;
    margin-top: 0.5rem;
}

.hero-content p {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.btn.primary {
    background: var(--neural-gradient);
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
    color: var(--white);
    border: none;
}

.btn.primary:hover {
    background: var(--signal-gradient);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 77, 141, 0.3);
}

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

/* Specific style for secondary button in CTA section for better accessibility */
.cta-section .btn.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-section .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    color: var(--white);
}

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

/* Specific style for primary button in CTA section for better accessibility */
.cta-section .btn.primary {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
    animation: none;
}

.cta-section .btn.primary:hover {
    background: var(--gray-light);
    color: var(--red-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Quick Navigation */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

@media (max-width: 992px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
}

.nav-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Nav card hover effects */
.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(30, 139, 152, 0.2);
    border: 1px solid var(--accent-color);
}

/* Desktop Navigation - Show horizontal nav, hide hamburger */
@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
        justify-content: center;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
        gap: 2rem;
    }

    /* Ensure desktop links don't get mobile styling */
    .nav-links a {
        padding: 0.5rem 0;
        font-size: 1rem;
        border-bottom: none;
        white-space: nowrap;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: none;
        padding-left: 0;
    }

    /* Explicitly hide hamburger on desktop */
    .mobile-menu,
    .nav-toggle {
        display: none !important;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    /* Keep main-nav visible but hide its default content */
    .main-nav {
        display: block !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        height: 0 !important;
        overflow: visible !important;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu,
    .nav-toggle {
        display: flex !important;
    }

    /* Show dropdown when hamburger is clicked */
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 2rem 1.5rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        gap: 0.5rem;
    }

    [data-theme="dark"] .nav-links.active {
        background: rgba(10, 26, 47, 0.98);
        box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active li {
        width: 100%;
    }

    .nav-links.active a {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.3rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        text-align: left;
        min-height: 60px;
        display: flex;
        align-items: center;
    }

    .nav-links.active li:last-child a {
        border-bottom: none;
    }

    .nav-links.active a:hover,
    .nav-links.active a.active {
        background: rgba(0,0,0,0.05);
        padding-left: 2rem;
        color: var(--primary-color);
    }

    [data-theme="dark"] .nav-links.active a {
        border-bottom-color: rgba(255,255,255,0.08);
    }

    [data-theme="dark"] .nav-links.active a:hover,
    [data-theme="dark"] .nav-links.active a.active {
        background: rgba(255,255,255,0.08);
        color: var(--primary-color);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Adjust header spacing on mobile */
    .site-header ~ main {
        margin-top: 80px;
    }
}

/* Section common styles */
section {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Override section styles for hero */
section.hero {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: var(--neural-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--signal-gradient);
}

/* Testimonials Section */
.testimonials {
    background: var(--background-light);
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 
        0 5px 15px rgba(30, 77, 141, 0.1),
        0 0 0 1px rgba(93, 173, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(30, 77, 141, 0.1);
    font-family: Georgia, serif;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 500;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid rgba(93, 173, 226, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(93, 173, 226, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 20px rgba(30, 77, 141, 0.1),
        0 0 0 1px rgba(60, 179, 113, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--red-accent) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Footer Styles */
footer {
    background: var(--background-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-section {
    padding: 0.75rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section.brand img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-section.brand img:hover {
    box-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.05);
}

/* Dark mode: Keep logo background light for visibility */
[data-theme="dark"] .footer-section.brand img {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

[data-theme="dark"] .footer-section.brand img:hover {
    box-shadow: 0 0 20px rgba(93, 173, 226, 0.6);
}

.footer-section.brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    flex: 1;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.newsletter-form button:hover {
    background: var(--red-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* Specific styling for the footer-legal links for better accessibility */
.footer-legal a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.footer-legal a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: underline;
}

/* Neural network animation in footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--neural-gradient);
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
}

/* Neural hover effect for nav links */
.nav-links a {
    position: relative;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* User-enabled reduced motion */
[data-reduced-motion="true"] * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

[data-reduced-motion="true"] .hero::before, 
[data-reduced-motion="true"] .hero::after,
[data-reduced-motion="true"] .neural-particles,
[data-reduced-motion="true"] .btn.primary,
[data-reduced-motion="true"] .feature-card:hover {
    animation: none !important;
    transition: none !important;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-light);
    transition: var(--transition);
}

/* Font Size Adjustments */
[data-font-size="large"] {
    font-size: 1.2rem;
}

[data-font-size="larger"] {
    font-size: 1.4rem;
}

[data-font-size="largest"] {
    font-size: 1.6rem;
}

/* Accessibility Controls */
.accessibility-controls {
    position: fixed;
    bottom: 20px;
    right: 80px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateX(calc(100% + 80px));
    transition: transform 0.3s ease;
    max-width: 250px;
}

.accessibility-controls.visible {
    transform: translateX(0);
}

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.close-accessibility {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-left: 8px;
}

.close-accessibility:hover {
    color: #333;
    background-color: #e0e0e0;
}

.close-accessibility i {
    font-size: 14px;
    display: block;
}

.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.accessibility-toggle:hover {
    background: var(--primary-color-dark);
}

.accessibility-controls.visible + .accessibility-toggle {
    right: 20px;
}

.accessibility-controls button {
    background: var(--background-light);
    border: 1px solid var(--gray);
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.accessibility-controls button:hover {
    background: var(--gray-light);
}

.accessibility-controls button.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Dyslexia-friendly font option */
[data-font-family="dyslexic"] {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Verdana', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
}

/* Line height for better readability */
[data-line-spacing="increased"] {
    line-height: 2;
}

/* Accessibility - Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::before, 
    .hero::after,
    .neural-particles,
    .btn.primary,
    .feature-card:hover {
        animation: none !important;
        transition: none !important;
    }
}

/* Skip to content link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
    user-select: none;
    pointer-events: none;
    outline: none !important;
    border: none;
}

.skip-link:focus {
    top: 0;
    pointer-events: auto;
    outline: none !important;
}

/* Reading Guide */
.reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(255, 255, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 0, 0.5);
    pointer-events: none;
    z-index: 1000;
    display: none;
}

body[data-reading-guide="true"] .reading-guide {
    display: block;
}

/* Dark mode and high contrast adjustments for reading guide */
[data-theme="dark"] .reading-guide {
    background-color: rgba(255, 255, 0, 0.3);
}

[data-high-contrast="true"] .reading-guide {
    background-color: rgba(255, 255, 0, 0.4);
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

/* Add responsive design for accessibility panel */
@media (max-width: 768px) {
    .accessibility-controls {
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(100%);
        bottom: 0;
    }
    
    .accessibility-controls.visible {
        transform: translateY(0);
    }
    
    .accessibility-toggle {
        bottom: 20px;
        right: 20px;
    }
}

.mobile-menu,
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: 10px;
    border-radius: 50%;
    padding: 8px;
}


.mobile-menu span,
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hamburger to X animation */
.mobile-menu[aria-expanded="true"] span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu[aria-expanded="true"] span:nth-child(2),
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu[aria-expanded="true"] span:nth-child(3),
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu:hover,
.nav-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

.mobile-menu:hover span,
.nav-toggle:hover span {
    background-color: var(--primary-color);
}

[data-theme="dark"] .mobile-menu span,
[data-theme="dark"] .nav-toggle span {
    background-color: var(--white);
}

[data-theme="dark"] .mobile-menu:hover,
[data-theme="dark"] .nav-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .mobile-menu:hover span,
[data-theme="dark"] .nav-toggle:hover span {
    background-color: var(--accent-color);
}

[data-theme="dark"] .logo-text span {
    color: var(--white);
}

[data-theme="dark"] .logo-text .with-abe {
    color: var(--secondary-color);
}

/* Contact Page Styles */
.contact-form-section {
    background-color: var(--background-light);
    padding: 4rem 0;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/neural-pattern-light.png');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.contact-form-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.form-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray);
}

.form-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.preference-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.2);
    outline: none;
}

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

.radio-group, .checkbox-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

.form-privacy-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    text-align: center;
}

.form-privacy-note a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar-card i {
    color: var(--secondary-color);
}

.sidebar-card p {
    color: var(--gray);
    line-height: 1.5;
}

.required {
    color: var(--red-accent);
}

/* Dark mode styles for contact form - WCAG AA Compliant */
[data-theme="dark"] .contact-form-section {
    background-color: var(--background-dark);
}

[data-theme="dark"] .contact-form,
[data-theme="dark"] .sidebar-card {
    background-color: var(--card-bg-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: var(--section-bg-dark);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--card-bg-dark);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

[data-theme="dark"] .form-group label,
[data-theme="dark"] .preference-label {
    color: var(--text-color);
}

[data-theme="dark"] .sidebar-card h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .sidebar-card p {
    color: var(--gray);
}

/* Dark mode - Accessibility controls panel */
[data-theme="dark"] .accessibility-controls {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .accessibility-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .accessibility-header h3 {
    color: var(--white);
}

[data-theme="dark"] .accessibility-controls button {
    background: var(--section-bg-dark);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .accessibility-controls button:hover {
    background: var(--primary-color);
    color: #0A1A2F;
}

[data-theme="dark"] .accessibility-controls button[aria-pressed="true"] {
    background: var(--primary-color);
    color: #0A1A2F;
}

/* Dark mode - Navigation cards */
[data-theme="dark"] .nav-card {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

[data-theme="dark"] .nav-card:hover {
    background: #1F2937;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(96, 197, 241, 0.3);
}

[data-theme="dark"] .nav-card h3 {
    color: var(--white);
}

[data-theme="dark"] .nav-card i {
    color: var(--primary-color);
}

/* Dark mode - Testimonials */
[data-theme="dark"] .testimonials {
    background: var(--section-bg-dark);
}

[data-theme="dark"] .testimonial {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial::before {
    color: rgba(96, 197, 241, 0.1);
}

[data-theme="dark"] .testimonial p {
    color: var(--text-color);
}

[data-theme="dark"] .testimonial cite {
    color: var(--primary-color);
}

/* Dark mode - Newsletter form */
[data-theme="dark"] .newsletter-form input {
    background: var(--section-bg-dark);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .newsletter-form input::placeholder {
    color: var(--gray);
}

[data-theme="dark"] .newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Dark mode - FAQ items */
[data-theme="dark"] .faq-item {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--card-bg-dark);
}

[data-theme="dark"] .faq-item summary {
    background: var(--card-bg-dark);
    color: var(--text-color);
}

[data-theme="dark"] .faq-item summary:hover {
    background: #1F2937;
}

[data-theme="dark"] .faq-answer {
    background: var(--section-bg-dark);
}

[data-theme="dark"] .faq-answer p {
    color: var(--text-color);
}

/* Dark mode - Footer with better contrast */
[data-theme="dark"] footer {
    background: #0A0F1A; /* Even darker for separation */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-section h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section li {
    color: var(--gray);
}

[data-theme="dark"] .footer-section a {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

/* Responsive styles for contact form */
@media (max-width: 992px) {
    .form-container {
        flex-direction: column;
    }
    
    .form-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .sidebar-card {
        width: 100%;
    }
}

/* Contact options grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-card .social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
    width: 100%;
}

.contact-card .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-card .social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

[data-theme="dark"] .contact-card {
    background-color: #1A2A3A;
}

[data-theme="dark"] .contact-card .social-links a {
    background-color: #0F1A2A;
    color: var(--accent-color);
}

[data-theme="dark"] .contact-card .social-links a:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
}

/* Office hours section */
.hours-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.hours-info {
    flex: 1;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: var(--text-color);
}

.time {
    color: var(--gray);
}

.hours-note {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--gray);
}

.hours-image {
    flex: 1;
    max-width: 400px;
}

.hours-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hours-content {
        flex-direction: column;
    }
    
    .hours-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

/* FAQ section */
.faq-list {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.2rem;
    background-color: var(--white);
    cursor: pointer;
    font-weight: 600;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.2rem 1.2rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--gray);
}

[data-theme="dark"] .faq-item {
    border-color: #2A3A4A;
}

[data-theme="dark"] .faq-item summary {
    background-color: #1A2A3A;
}

/* ===== SERVICES PAGE STYLES ===== */

/* Page Banner */
.page-banner {
    background: var(--neural-gradient);
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(93, 173, 226, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(60, 179, 113, 0.2) 0%, transparent 25%);
    filter: blur(40px);
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.page-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-banner p {
    font-size: 1.2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.intro-section {
    padding: 4rem 2rem;
    text-align: center;
}

.intro-section h2 {
    margin-bottom: 1.5rem;
}

.intro-section > p {
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-prop {
    text-align: center;
}

.value-prop i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-prop h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.value-prop p {
    color: var(--gray);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .value-props {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Pricing Grid */
.packages-section {
    padding: 4rem 2rem;
    background: var(--background-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Package Cards */
.package-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 77, 141, 0.2);
    border-color: var(--accent-color);
}

.package-card.featured {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(60, 179, 113, 0.2);
}

.package-card.featured:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(60, 179, 113, 0.3);
}

.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--signal-gradient);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.package-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

.package-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-light);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--gray);
    display: block;
    margin-top: 0.5rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

.package-features li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.package-features li strong {
    color: var(--primary-color);
}

.package-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.package-cta .btn {
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
}

.package-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 1rem;
    font-style: italic;
}

/* Dark Mode Adjustments for Packages */
[data-theme="dark"] .package-card {
    background-color: #1A2A3A;
    border-color: #2A3A4A;
}

[data-theme="dark"] .package-card.featured {
    border-color: var(--secondary-color);
}

[data-theme="dark"] .package-price {
    border-bottom-color: #2A3A4A;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(30, 77, 141, 0.15);
}

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

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

[data-theme="dark"] .step {
    background-color: #1A2A3A;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    background: var(--background-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(30, 77, 141, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

[data-theme="dark"] .faq-section {
    background-color: var(--background-dark);
}

[data-theme="dark"] .faq-item {
    background-color: #1A2A3A;
}

/* CTA Section Enhancements */
.cta-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Legal Document Styles */
.legal-content {
    padding: 3rem 2rem;
}

.legal-document {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-document h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-document h2:first-of-type {
    margin-top: 0;
}

.legal-document h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.legal-document p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-document ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-color);
}

.legal-document ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-document a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-document a:hover {
    color: var(--red-accent);
}

.acknowledgment {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 3rem;
    border-left: 4px solid var(--primary-color);
}

.acknowledgment h2 {
    margin-top: 0;
}

.acknowledgment p strong {
    color: var(--red-accent);
}

[data-theme="dark"] .legal-document h2,
[data-theme="dark"] .legal-document h3,
[data-theme="dark"] .legal-document p,
[data-theme="dark"] .legal-document ul li {
    color: var(--white);
}

[data-theme="dark"] .acknowledgment {
    background-color: #1A2A3A;
    border-left-color: var(--accent-color);
}

/* Responsive Typography for Services Page */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2rem;
    }

    .page-banner p {
        font-size: 1rem;
    }

    .package-header h3 {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }
}