/* ============================================
   THE BRANDYN GROUP - FUTURISTIC AI INTERFACE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --navy: #0A1128;
    --navy-light: #1E3A5F;
    --blue: #0066FF;
    --cyan: #00D9FF;
    --purple: #8B5CF6;
    --white: #FFFFFF;
    --black: #000000;
    --gray-900: #0F172A;
    
    --gradient-primary: linear-gradient(135deg, #0A1128 0%, #1E3A5F 30%, #0066FF 100%);
    --gradient-accent: linear-gradient(135deg, #0066FF 0%, #8B5CF6 50%, #00D9FF 100%);
    --gradient-holographic: linear-gradient(135deg, #00D9FF 0%, #0066FF 25%, #8B5CF6 50%, #00D9FF 75%, #0066FF 100%);
    
    --font: 'DM Sans', -apple-system, system-ui, sans-serif;
    
    --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.3);
    --glow-blue: 0 0 20px rgba(0, 102, 255, 0.5), 0 0 40px rgba(0, 102, 255, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.7;
    color: var(--white);
    background: #000000;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Futuristic Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(0, 217, 255, 0.15) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

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

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Futuristic Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0A1128 50%, #1E3A5F 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    margin-bottom: 3rem;
    filter: drop-shadow(var(--glow-cyan));
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Loading Bar */
.loading-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: var(--gradient-holographic);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: loadingProgress 2s ease-out forwards, shimmer 2s linear infinite;
    box-shadow: var(--glow-cyan);
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 17, 40, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 17, 40, 0.95);
    box-shadow: 0 4px 30px rgba(0, 217, 255, 0.1);
}

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

.logo-link {
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.logo-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8));
}

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

nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-holographic);
    transition: width 0.3s ease;
    box-shadow: var(--glow-cyan);
}

nav a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

nav a:hover::before {
    width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--cyan);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: var(--glow-cyan);
}

.menu-toggle:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cyan);
    margin: 4px auto;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--cyan);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.98) 0%, rgba(30, 58, 95, 0.98) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.mobile-overlay nav ul {
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-overlay nav a {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2.5rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 217, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-holographic);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite, fadeInUp 1s ease-out;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Futuristic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--glow-blue);
    border-color: var(--cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--cyan);
    border: 2px solid var(--cyan);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: var(--glow-cyan);
}

/* Sections */
.section {
    padding: 5rem 2.5rem;
    position: relative;
}

.section-dark {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-holographic);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.service-card {
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.8) 0%, rgba(30, 58, 95, 0.6) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--glow-blue);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: var(--glow-blue); }
    50% { box-shadow: 0 0 30px rgba(0, 217, 255, 0.8), 0 0 60px rgba(0, 102, 255, 0.6); }
}

.service-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--white);
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.service-card.expanded .service-details {
    max-height: 500px;
}

.service-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.service-details li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.service-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: bold;
}

.expand-btn {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expand-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.8) 0%, rgba(30, 58, 95, 0.6) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.testimonial-quote {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--glow-blue);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.9) 0%, #000000 100%);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    padding: 3.5rem 2.5rem 2rem;
}

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

.footer-section h4 {
    color: var(--cyan);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a,
.footer-section p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    transform: translateX(5px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 90vh;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .header-container {
        padding: 0 1.5rem;
    }
}
