/* ========================================
   AVONDALE.AI - Futuristic AI Theme
   ======================================== */

:root {
    /* Futuristic AI color palette */
    --neural-blue: #00d4ff;
    --neural-purple: #7b2fff;
    --neural-cyan: #00ff9d;
    --deep-space: #0a0e1a;
    --quantum-dark: #121826;
    --hologram-light: rgba(0, 212, 255, 0.1);
    --glass-bg: rgba(18, 24, 38, 0.7);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-gold: #fbbf24;
}

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

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--quantum-dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neural-blue);
    padding-left: 1.25rem;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--deep-space);
    overflow-x: hidden;
}

/* Animated neural network background */
.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(123, 47, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 157, 0.08) 0%, transparent 70%),
        var(--deep-space);
}

/* Floating particles */
.particle {
    position: fixed;
    border-radius: 50%;
    background: var(--neural-blue);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 4s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 40%; left: 60%; animation-delay: 8s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 80%; left: 30%; animation-delay: 12s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 10%; left: 90%; animation-delay: 16s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-30px) translateX(20px); }
    50% { transform: translateY(-15px) translateX(-20px); }
    75% { transform: translateY(-40px) translateX(10px); }
}

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

/* Navigation with glassmorphism */
nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neural-blue) 0%, var(--neural-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    letter-spacing: 2px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neural-blue), transparent);
    animation: glow 3s infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a:hover {
    color: var(--neural-blue);
}

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

.nav-links .faq-link {
    color: var(--accent-gold);
}

.cta-button {
    background: linear-gradient(135deg, var(--neural-blue) 0%, var(--neural-purple) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Hero Section */
.hero {
    background: transparent;
    color: white;
    padding: 10rem 0 6rem;
    margin-top: 60px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, var(--neural-blue) 50%, var(--neural-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .cta-button {
    background: linear-gradient(135deg, var(--neural-blue) 0%, var(--neural-purple) 100%);
}

.hero-buttons .secondary-button {
    background: transparent;
    border: 2px solid var(--neural-blue);
    color: var(--neural-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.hero-buttons .secondary-button:hover {
    background: var(--hologram-light);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* AI Pulse Animation */
.ai-pulse {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hologram-light) 0%, transparent 70%);
    animation: pulse 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--quantum-dark);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neural-blue), transparent);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neural-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hologram-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neural-blue);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--neural-blue));
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-price {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neural-blue) 0%, var(--neural-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li:before {
    content: "▸";
    color: var(--neural-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Service card buttons - make clickable above card overlay */
.service-card .cta-button,
.service-card .secondary-button {
    position: relative;
    z-index: 10;
}

/* Secondary button with 3D bubble effect matching CTA style */
.service-card .secondary-button {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(123, 47, 255, 0.15) 100%);
    border: 2px solid var(--neural-blue);
    color: var(--neural-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.service-card .secondary-button:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(123, 47, 255, 0.25) 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
    border-color: var(--neural-cyan);
    color: var(--neural-cyan);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--deep-space);
}

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

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neural-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.about-highlight {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(123, 47, 255, 0.3);
    border-left: 4px solid var(--neural-purple);
    box-shadow: 0 10px 40px rgba(123, 47, 255, 0.15);
}

.about-highlight h3 {
    color: var(--neural-purple);
    margin-bottom: 1rem;
}

/* Infrastructure Section */
.infrastructure {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--quantum-dark) 0%, var(--deep-space) 100%);
    position: relative;
    overflow: hidden;
}

.infrastructure::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--hologram-light) 0%, transparent 70%);
    animation: pulse 6s infinite ease-in-out;
}

/* Why Choose Us */
.why-us {
    padding: 6rem 0;
    background: var(--quantum-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.why-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
}

.why-card:hover {
    border-color: var(--neural-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.15);
}

.why-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--neural-cyan));
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--deep-space) 0%, var(--quantum-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neural-blue) 0%, var(--neural-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--deep-space);
    color: var(--text-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--neural-blue);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

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

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

/* Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neural-blue), transparent);
    opacity: 0.1;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes scan {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* FAQ Specific Styles */
.faq-section {
    padding: 6rem 0;
    background: var(--quantum-dark);
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--neural-blue);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.05);
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.1);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 500px;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--neural-blue);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Content Pages */
.content-page {
    padding: 6rem 0 4rem;
    background: var(--deep-space);
    margin-top: 60px;
}

.content-page h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--neural-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-page h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--neural-blue);
}

.content-page p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-page ul,
.content-page ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.content-page li {
    margin-bottom: 0.75rem;
}

.content-page a {
    color: var(--neural-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.content-page a:hover {
    color: var(--neural-cyan);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2,
    .content-page h1 {
        font-size: 1.8rem;
    }
    
    /* Reduce heavy effects on mobile for performance */
    .neural-bg {
        background: var(--deep-space);
    }
    
    .particle {
        display: none;
    }
    
    .scanline {
        display: none;
    }
    
    .ai-pulse {
        display: none;
    }
    
    /* Simplify glassmorphism on mobile */
    nav {
        backdrop-filter: blur(10px);
    }
    
    .service-card,
    .about-highlight,
    .why-card,
    .faq-item {
        backdrop-filter: none;
        background: rgba(18, 24, 38, 0.9);
    }
    
    /* Reduce padding on mobile */
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .services,
    .about,
    .infrastructure,
    .why-us,
    .cta-section,
    .faq-section,
    .content-page {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-highlight {
        padding: 1.5rem;
    }
    
    /* Stack everything single column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Mobile menu */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--neural-blue);
        margin: 5px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--quantum-dark);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
        width: 100%;
    }
    
    /* Mobile dropdown - accordion style */
    .nav-links .dropdown {
        width: 100%;
    }
    
    .nav-links .dropdown-toggle {
        width: 100%;
        text-align: center;
        display: block;
        padding: 1rem 2rem;
    }
    
    .nav-links .dropdown-menu {
        position: static !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border: none !important;
        border-left: 3px solid var(--neural-blue) !important;
        margin: 0 !important;
        padding: 0 !important;
        min-width: auto !important;
        backdrop-filter: none !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        width: 100% !important;
    }
    
    .nav-links .dropdown-menu.active {
        display: block !important;
        max-height: 500px !important;
    }
    
    .nav-links .dropdown-menu li {
        text-align: left;
        padding-left: 1rem;
    }
    
    .nav-links .dropdown-menu a {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }
    
    /* Arrow rotation for active dropdown */
    .nav-links .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    /* Reduce icon sizes on mobile */
    .service-icon,
    .why-icon {
        font-size: 2.5rem;
    }
    
    /* Smaller shadows on mobile */
    .service-card:hover,
    .why-card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 212, 255, 0.15);
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .hero h1,
    .content-page h1 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
}
