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

:root {
    /* Unique Color Palette - Soft Apricot, Muted Teal, Gentle Lavender */
    --apricot-whisper: #E8956F;
    --teal-mist: #5FA8A3;
    --lavender-dream: #B695C0;
    --peach-glow: #F2B894;
    --mint-frost: #A8D5D0;
    --sand-warm: #F5E6D3;
    --charcoal-soft: #2D3748;
    --pearl-white: #F8F9FA;
    
    /* Typography */
    --font-cosmic: 'Space Grotesk', sans-serif;
    --font-quantum: 'JetBrains Mono', monospace;
    
    /* Spacing & Sizing */
    --nav-height: 80px;
    --section-padding: 120px;
    --container-max: 1400px;
    
    /* Animations */
    --transition-silk: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-aurora: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-cosmic);
    background: linear-gradient(135deg, var(--sand-warm) 0%, var(--pearl-white) 50%, var(--mint-frost) 100%);
    color: var(--charcoal-soft);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.stellar-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 149, 111, 0.1);
    z-index: 1000;
    transition: var(--transition-silk);
}

.nav-constellation {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.brand-cosmos {
    display: flex;
    align-items: center;
    min-width: 180px;
}

.cosmic-logo {
    height: 45px;
    width: auto;
    min-width: 140px;
    cursor: pointer;
    transition: var(--transition-aurora);
}

.cosmic-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(232, 149, 111, 0.3));
}

.nav-galaxy {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-star {
    text-decoration: none;
    color: var(--charcoal-soft);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-silk);
}

.nav-star::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--apricot-whisper), var(--teal-mist));
    transition: var(--transition-aurora);
    transform: translateX(-50%);
}

.nav-star:hover::before,
.nav-star.active::before {
    width: 100%;
}

.nav-star:hover {
    color: var(--apricot-whisper);
    transform: translateY(-2px);
}

.nav-star.active {
    color: var(--teal-mist);
}

/* Mobile Menu Toggle */
.cosmic-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.toggle-beam {
    width: 25px;
    height: 3px;
    background: var(--apricot-whisper);
    border-radius: 2px;
    transition: var(--transition-silk);
}

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

.cosmic-toggle.active .toggle-beam:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.quantum-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-matrix {
    max-width: var(--container-max);
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-narrative {
    z-index: 2;
    position: relative;
}

.narrative-flow {
    max-width: 600px;
}

.cosmic-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-cosmic);
}

.headline-fragment {
    display: block;
    opacity: 0;
    animation: fragmentReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.headline-fragment:nth-child(1) {
    animation-delay: 0.2s;
    color: var(--charcoal-soft);
}

.headline-fragment:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--teal-mist);
}

.highlight-aurora {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, var(--apricot-whisper), var(--lavender-dream));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight-aurora::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--apricot-whisper), var(--lavender-dream));
    opacity: 0.1;
    border-radius: 8px;
    z-index: -1;
    animation: auroraGlow 3s ease-in-out infinite alternate;
}

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

@keyframes auroraGlow {
    from {
        opacity: 0.1;
        transform: scale(1);
    }
    to {
        opacity: 0.2;
        transform: scale(1.02);
    }
}

.quantum-subtitle {
    font-size: 1.25rem;
    color: var(--teal-mist);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    animation: subtitleFade 1s ease-out 0.8s forwards;
}

.narrative-details {
    margin-bottom: 3rem;
    opacity: 0;
    animation: detailsSlide 1s ease-out 1s forwards;
}

.stellar-description {
    font-size: 1.1rem;
    color: var(--charcoal-soft);
    opacity: 0.8;
    line-height: 1.7;
}

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

@keyframes detailsSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aurora Catalyst Button */
.aurora-catalyst {
    position: relative;
    background: linear-gradient(135deg, var(--apricot-whisper), var(--teal-mist));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-cosmic);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-aurora);
    opacity: 0;
    animation: buttonMaterialize 1s ease-out 1.2s forwards;
}

.catalyst-text {
    position: relative;
    z-index: 3;
}

.catalyst-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-aurora);
}

.catalyst-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--apricot-whisper), var(--teal-mist), var(--lavender-dream));
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition-aurora);
}

.aurora-catalyst:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(232, 149, 111, 0.4);
}

.aurora-catalyst:hover .catalyst-ripple {
    width: 200px;
    height: 200px;
}

.aurora-catalyst:hover .catalyst-glow {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

.aurora-catalyst:active {
    transform: translateY(-1px) scale(0.98);
}

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

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Hero Visualization */
.hero-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.quantum-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    opacity: 0;
    animation: illustrationFloat 1.5s ease-out 0.5s forwards;
}

@keyframes illustrationFloat {
    from {
        opacity: 0;
        transform: translateY(40px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Scroll Beacon */
.scroll-beacon {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: beaconAppear 1s ease-out 2s forwards;
}

.beacon-pulse {
    width: 30px;
    height: 30px;
    border: 2px solid var(--apricot-whisper);
    border-radius: 50%;
    position: relative;
    animation: beaconPulse 2s ease-in-out infinite;
}

.beacon-pulse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 10px;
    height: 10px;
    background: var(--apricot-whisper);
    border-radius: 50%;
    animation: beaconDot 2s ease-in-out infinite;
}

.beacon-text {
    font-size: 0.9rem;
    color: var(--teal-mist);
    font-weight: 500;
    font-family: var(--font-quantum);
}

@keyframes beaconAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes beaconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes beaconDot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Section Styles */
.stellar-about,
.quantum-services,
.aurora-portfolio,
.cosmic-contact {
    padding: var(--section-padding) 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-nebula {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--apricot-whisper), var(--teal-mist));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cosmic-narrative {
    font-size: 1.2rem;
    text-align: center;
    color: var(--charcoal-soft);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* =============================================
   INNOVATION PLAYGROUND - SERVICES SECTION
   ============================================= */

.innovation-playground {
    position: relative;
    background: linear-gradient(125deg, 
        rgba(255, 138, 128, 0.03) 0%, 
        rgba(128, 203, 196, 0.05) 50%, 
        rgba(206, 147, 216, 0.03) 100%);
    padding: 0;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

/* Decorative Dividers */
.plasma-divider {
    width: 100%;
    height: 100px;
    margin-bottom: 2rem;
}

.plasma-divider svg {
    width: 100%;
    height: 100%;
}

.quantum-separator {
    width: 100%;
    height: 80px;
    margin-top: 4rem;
}

.quantum-separator svg {
    width: 100%;
    height: 100%;
}

/* Neural Network Background */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.network-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

/* Service Ecosystem Container */
.service-ecosystem {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

/* Morphing Title Section */
.title-synthesis {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.morphing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-fragment {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(-15deg);
    animation: titleMorph 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-right: 0.3em;
}

.title-fragment:nth-child(1) {
    animation-delay: 0.2s;
    color: #FF8A80;
}

.title-fragment:nth-child(2) {
    animation-delay: 0.4s;
    color: #80CBC4;
}

.plasma-text {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, #CE93D8, #FF8A80, #80CBC4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleMorph 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
               plasmaFlow 3s ease-in-out infinite 1.8s;
}

.title-substrate {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF8A80, #80CBC4, #CE93D8);
    border-radius: 2px;
    animation: substrateExpand 1.5s ease-out 1s forwards;
}

@keyframes titleMorph {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

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

@keyframes substrateExpand {
    to {
        width: 200px;
    }
}

/* Asymmetric Service Matrix */
.service-matrix {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 120px); /* Increased height for better visibility */
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
    min-height: 800px; /* Ensure minimum height */
}

/* Service Pod Base Styles */
.service-pod {
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1; /* Ensure visibility by default */
    transform: translateY(0) scale(1); /* Reset transform */
    animation: podMaterialize 0.8s ease-out forwards;
    /* Fallback for visibility */
    visibility: visible;
    display: block;
}

/* Animation states */
.service-pod.animate-in {
    animation: podMaterialize 0.8s ease-out forwards;
}

.service-pod:nth-child(1) { animation-delay: 0.2s; }
.service-pod:nth-child(2) { animation-delay: 0.4s; }
.service-pod:nth-child(3) { animation-delay: 0.6s; }
.service-pod:nth-child(4) { animation-delay: 0.8s; }
.service-pod:nth-child(5) { animation-delay: 1.0s; }
.service-pod:nth-child(6) { animation-delay: 1.2s; }

@keyframes podMaterialize {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Asymmetric Grid Positioning */
.floating-left {
    grid-column: 1 / 6;
    grid-row: 1 / 4;
    transform-origin: center left;
}

.floating-right {
    grid-column: 8 / 13;
    grid-row: 1 / 4;
    transform-origin: center right;
}

.floating-center {
    grid-column: 4 / 10;
    grid-row: 3 / 6;
    transform-origin: center;
    z-index: 3;
}

.floating-left-offset {
    grid-column: 1 / 7;
    grid-row: 5 / 8;
    transform-origin: center left;
}

.floating-right-offset {
    grid-column: 7 / 13;
    grid-row: 5 / 8;
    transform-origin: center right;
}

.floating-bottom {
    grid-column: 3 / 11;
    grid-row: 7 / 10;
    transform-origin: center bottom;
    margin-top: 2rem;
}

/* Pod Nucleus (Main Container) */
.pod-nucleus {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    min-height: 250px; /* Ensure minimum height for content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pod-nucleus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: all 0.8s ease;
}

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

/* Pod Aura (Glow Effect) */
.pod-aura {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 28px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.service-pod[data-service="1"] .pod-aura {
    background: linear-gradient(135deg, #FF8A80, #FFAB91);
}

.service-pod[data-service="2"] .pod-aura {
    background: linear-gradient(135deg, #80CBC4, #B2DFDB);
}

.service-pod[data-service="3"] .pod-aura {
    background: linear-gradient(135deg, #CE93D8, #E1BEE7);
}

.service-pod[data-service="4"] .pod-aura {
    background: linear-gradient(135deg, #FFCC80, #FFE0B2);
}

.service-pod[data-service="5"] .pod-aura {
    background: linear-gradient(135deg, #B39DDB, #D1C4E9);
}

.service-pod[data-service="6"] .pod-aura {
    background: linear-gradient(135deg, #A5D6A7, #C8E6C9);
}

/* Service Icon */
.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* Service Content */
.service-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2D3748;
    transition: all 0.4s ease;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4A5568;
    opacity: 0.9;
    transition: all 0.4s ease;
}

/* Hover Effects */
.service-pod:hover {
    transform: translateY(-15px) scale(1.05);
    z-index: 5;
}

.service-pod:hover .pod-nucleus {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.service-pod:hover .pod-aura {
    opacity: 0.8;
    animation: auraGlow 2s ease-in-out infinite;
}

.service-pod:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-pod:hover .service-title {
    color: #1A202C;
}

.service-pod:hover .service-description {
    opacity: 1;
}

@keyframes auraGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Floating Animation */
@keyframes podFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(1deg);
    }
    66% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
}

.service-pod:nth-child(odd) {
    animation: podFloat 6s ease-in-out infinite;
}

.service-pod:nth-child(even) {
    animation: podFloat 8s ease-in-out infinite reverse;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-matrix {
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: repeat(10, 70px);
    }
    
    .floating-left {
        grid-column: 1 / 6;
        grid-row: 1 / 4;
    }
    
    .floating-right {
        grid-column: 6 / 11;
        grid-row: 1 / 4;
    }
    
    .floating-center {
        grid-column: 3 / 9;
        grid-row: 3 / 6;
    }
    
    .floating-left-offset {
        grid-column: 1 / 6;
        grid-row: 5 / 8;
    }
    
    .floating-right-offset {
        grid-column: 6 / 11;
        grid-row: 5 / 8;
    }
    
    .floating-bottom {
        grid-column: 2 / 10;
        grid-row: 7 / 10;
    }
}

@media (max-width: 768px) {
    .service-ecosystem {
        padding: 2rem 1rem 4rem;
    }
    
    .service-matrix {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .service-pod {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pod-nucleus {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.95rem;
    }
    
    .morphing-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .title-synthesis {
        margin-bottom: 3rem;
    }
    
    .title-substrate {
        width: 120px !important;
    }
}

@media (max-width: 480px) {
    .service-ecosystem {
        padding: 1.5rem 1rem 3rem;
    }
    
    .pod-nucleus {
        padding: 1.2rem;
        border-radius: 16px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .plasma-divider,
    .quantum-separator {
        height: 60px;
    }
    
    .neural-network {
        opacity: 0.2;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .service-pod,
    .title-fragment,
    .pod-nucleus,
    .service-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .service-pod:hover {
        transform: none;
    }
}

/* Performance Optimization */
.service-pod {
    will-change: transform;
    backface-visibility: hidden;
}

.pod-nucleus {
    will-change: box-shadow, background;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-galaxy {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-aurora);
        border-bottom: 1px solid rgba(232, 149, 111, 0.1);
    }
    
    .nav-galaxy.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .cosmic-toggle {
        display: flex;
    }
    
    .hero-matrix {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visualization {
        order: -1;
    }
    
    .quantum-illustration {
        max-width: 300px;
    }
    
    .cosmic-headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .service-constellation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-node {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 80px;
        --nav-height: 70px;
    }
    
    .nav-constellation {
        padding: 0 1rem;
    }
    
    .cosmic-logo {
        height: 40px;
        min-width: 120px;
    }
    
    .quantum-hero {
        padding: calc(var(--nav-height) + 1rem) 1rem 1rem;
    }
    
    .aurora-catalyst {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .stellar-about,
    .quantum-services,
    .aurora-portfolio,
    .cosmic-contact {
        padding: var(--section-padding) 1rem;
    }
}

/* =============================================
   VISION REALM - ABOUT US SECTION
   ============================================= */

.vision-realm {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(232, 180, 240, 0.08) 0%, 
        rgba(168, 230, 207, 0.12) 50%, 
        rgba(255, 211, 165, 0.08) 100%);
    padding: 0;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
}

/* Decorative Dividers */
.ethereal-divider {
    width: 100%;
    height: 120px;
    margin-bottom: 2rem;
}

.ethereal-divider svg {
    width: 100%;
    height: 100%;
}

.ripple-transition {
    width: 100%;
    height: 100px;
    margin-top: 3rem;
}

.ripple-transition svg {
    width: 100%;
    height: 100%;
}

/* Floating Particles Background */
.particle-universe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Main About Content Container */
.about-constellation {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

/* Left Content Stream */
.narrative-stream {
    position: relative;
}

/* Animated Title Section */
.title-emergence {
    margin-bottom: 3rem;
    position: relative;
}

.flowing-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    display: block;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-20deg);
    animation: wordFlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-right: 0.2em;
    position: relative;
}

.title-word:nth-child(1) {
    animation-delay: 0.2s;
    color: #4A5568;
}

.accent-mint {
    animation-delay: 0.4s;
    color: #A8E6CF !important;
    text-shadow: 0 0 20px rgba(168, 230, 207, 0.4);
}

.accent-plum {
    animation-delay: 0.6s;
    color: #E8B4F0 !important;
    text-shadow: 0 0 20px rgba(232, 180, 240, 0.4);
}

.accent-apricot {
    animation-delay: 0.8s;
    color: #FFD3A5 !important;
    text-shadow: 0 0 20px rgba(255, 211, 165, 0.4);
}

.title-echo {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #A8E6CF, #E8B4F0, #FFD3A5);
    border-radius: 2px;
    animation: echoExpand 2s ease-out 1.2s forwards;
}

@keyframes wordFlow {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes echoExpand {
    to {
        width: 250px;
    }
}

/* Story Capsules */
.story-capsules {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-capsule {
    position: relative;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.story-capsule.reveal {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.story-capsule[data-reveal="1"] {
    animation: capsuleReveal 1s ease-out 1.5s forwards;
}

.story-capsule[data-reveal="2"] {
    animation: capsuleReveal 1s ease-out 2s forwards;
}

.story-capsule[data-reveal="3"] {
    animation: capsuleReveal 1s ease-out 2.5s forwards;
}

@keyframes capsuleReveal {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.capsule-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #A8E6CF, #E8B4F0, #FFD3A5);
    opacity: 0;
    z-index: -1;
    transition: all 0.6s ease;
}

.story-capsule:hover .capsule-glow {
    opacity: 0.3;
    animation: capsuleGlow 2s ease-in-out infinite;
}

@keyframes capsuleGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

.capsule-header {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2D3748;
    position: relative;
}

.capsule-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #A8E6CF, #E8B4F0);
    border-radius: 1px;
}

.capsule-narrative {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4A5568;
    opacity: 0.9;
}

.story-capsule:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.story-capsule:hover .capsule-narrative {
    opacity: 1;
}

/* Action Portal Button */
.action-portal {
    margin-top: 2rem;
}

.portal-catalyst {
    position: relative;
    background: linear-gradient(135deg, #A8E6CF, #E8B4F0);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.3);
}

.catalyst-label {
    position: relative;
    z-index: 3;
}

.catalyst-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.catalyst-orbit {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FFD3A5, #A8E6CF, #E8B4F0);
    opacity: 0;
    z-index: -1;
    transition: all 0.6s ease;
}

.portal-catalyst:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(168, 230, 207, 0.4);
}

.portal-catalyst:hover .catalyst-energy {
    width: 200px;
    height: 200px;
}

.portal-catalyst:hover .catalyst-orbit {
    opacity: 1;
    animation: orbitPulse 2s ease-in-out infinite;
}

@keyframes orbitPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Right Visualization Canvas */
.vision-canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.growth-illustration {
    width: 100%;
    max-width: 450px;
    height: auto;
    opacity: 0;
    animation: illustrationGrow 2s ease-out 1s forwards;
}

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

/* Achievement Timeline */
.milestone-ribbon {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 4rem auto 2rem;
    padding: 0 2rem;
}

.ribbon-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.ribbon-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #A8E6CF, #E8B4F0, #FFD3A5, #A8E6CF);
    transform: translateY(-50%);
    border-radius: 1px;
}

.milestone-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.node-pulse {
    width: 16px;
    height: 16px;
    background: #A8E6CF;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px rgba(168, 230, 207, 0.4);
    transition: all 0.4s ease;
    animation: nodePulse 3s ease-in-out infinite;
}

.milestone-node.active .node-pulse {
    background: #E8B4F0;
    animation: activePulse 2s ease-in-out infinite;
    transform: scale(1.2);
}

.node-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4A5568;
    text-align: center;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.milestone-node::before {
    content: attr(data-year);
    position: absolute;
    top: -2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #A8E6CF;
    opacity: 0.7;
}

.milestone-node:hover .node-pulse {
    transform: scale(1.3);
    box-shadow: 0 0 25px rgba(168, 230, 207, 0.6);
}

.milestone-node:hover .node-label {
    opacity: 1;
    transform: translateY(-2px);
}

@keyframes nodePulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(168, 230, 207, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 230, 207, 0.6);
    }
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(232, 180, 240, 0.5);
    }
    50% {
        box-shadow: 0 0 35px rgba(232, 180, 240, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-constellation {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }
    
    .vision-canvas {
        order: -1;
    }
    
    .growth-illustration {
        max-width: 350px;
    }
    
    .milestone-ribbon {
        margin: 3rem auto 1rem;
    }
    
    .ribbon-track {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .milestone-node {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .vision-realm {
        min-height: auto;
    }
    
    .about-constellation {
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .flowing-title {
        font-size: clamp(2rem, 6vw, 3rem);
        text-align: center;
    }
    
    .title-echo {
        left: 50%;
        transform: translateX(-50%);
        width: 150px !important;
    }
    
    .story-capsules {
        gap: 1.5rem;
    }
    
    .story-capsule {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .capsule-header {
        font-size: 1.2rem;
    }
    
    .capsule-narrative {
        font-size: 1rem;
    }
    
    .growth-illustration {
        max-width: 280px;
    }
    
    .portal-catalyst {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .milestone-ribbon {
        padding: 0 1rem;
    }
    
    .ribbon-track {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .ribbon-track::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .milestone-node::before {
        left: -4rem;
        top: 0;
    }
    
    .ethereal-divider,
    .ripple-transition {
        height: 80px;
    }
    
    .particle-universe {
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .about-constellation {
        padding: 1.5rem 1rem;
    }
    
    .title-emergence {
        margin-bottom: 2rem;
    }
    
    .story-capsule {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .growth-illustration {
        max-width: 240px;
    }
    
    .action-portal {
        text-align: center;
    }
    
    .portal-catalyst {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .milestone-ribbon {
        margin: 2rem auto 1rem;
    }
    
    .milestone-node::before {
        left: -3rem;
        font-size: 0.75rem;
    }
    
    .node-label {
        font-size: 0.8rem;
    }
    
    .ethereal-divider,
    .ripple-transition {
        height: 60px;
    }
}

/* =============================================
   CONNECTION STUDIO - CONTACT SECTION
   ============================================= */

.connection-studio {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(244, 162, 97, 0.02) 0%,
        rgba(106, 153, 78, 0.03) 50%,
        rgba(199, 125, 255, 0.02) 100%);
    padding: 0;
    overflow: hidden;
    font-family: 'Merriweather', serif;
}

/* Decorative Dividers */
.fluid-divider {
    width: 100%;
    height: 120px;
    margin-bottom: 2rem;
}

.fluid-divider svg {
    width: 100%;
    height: 100%;
}

.closing-wave {
    width: 100%;
    height: 80px;
    margin-top: 4rem;
}

.closing-wave svg {
    width: 100%;
    height: 100%;
}

/* Organic Background */
.organic-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.backdrop-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Main Container */
.connection-matrix {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Left Column - Contact Information */
.contact-narrative {
    padding-right: 2rem;
}

/* Animated Title */
.title-revelation {
    margin-bottom: 3rem;
    position: relative;
}

.connection-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.title-stroke {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: strokeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-right: 0.3em;
    position: relative;
}

.title-stroke:nth-child(1) {
    animation-delay: 0.2s;
    color: #2D3748;
}

.accent-peach {
    animation-delay: 0.4s;
    color: #F4A261;
}

.accent-sage {
    animation-delay: 0.6s;
    color: #6A994E;
}

.accent-lavender {
    animation-delay: 0.8s;
    color: #C77DFF;
}

.title-underscore {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #F4A261, #6A994E, #C77DFF);
    border-radius: 2px;
    animation: underscoreExpand 1.5s ease-out 1.2s forwards;
}

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

@keyframes underscoreExpand {
    to {
        width: 120px;
    }
}

/* Narrative Text */
.narrative-essence {
    margin-bottom: 3rem;
    opacity: 0;
    animation: narrativeFade 1s ease-out 1.5s forwards;
}

.connection-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4A5568;
    font-weight: 400;
}

@keyframes narrativeFade {
    to {
        opacity: 1;
    }
}

/* Contact Details */
.contact-constellation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-node {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(244, 162, 97, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(-30px);
    cursor: pointer;
}

.contact-node.animate-in {
    animation: nodeSlideIn 0.8s ease-out forwards;
}

.email-node {
    animation-delay: 1.8s;
}

.phone-node {
    animation-delay: 2s;
}

.location-node {
    animation-delay: 2.2s;
}

@keyframes nodeSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-node:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(244, 162, 97, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.node-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.node-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.contact-node:hover .node-icon {
    transform: scale(1.1) rotate(5deg);
}

.node-content {
    flex: 1;
}

.node-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.node-value {
    font-size: 1rem;
    color: #6A994E;
    font-weight: 500;
}

/* Right Column - Contact Form */
.contact-canvas {
    padding-left: 2rem;
}

.form-container {
    position: relative;
}

.connection-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(244, 162, 97, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    animation: formReveal 1s ease-out 2.5s forwards;
}

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

/* Form Fields */
.field-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1.2rem 0 0.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #2D3748;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Space Grotesk', sans-serif;
}

.form-label {
    position: absolute;
    left: 0;
    top: 1.2rem;
    font-size: 1rem;
    color: #718096;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
}

.form-input:focus + .form-label,
.form-input:valid + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:valid + .form-label {
    top: 0;
    font-size: 0.85rem;
    color: #F4A261;
    font-weight: 500;
}

.field-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #E2E8F0;
    overflow: hidden;
}

.field-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #F4A261, #6A994E);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input:focus ~ .field-border::after,
.form-textarea:focus ~ .field-border::after {
    width: 100%;
}

/* Submit Button */
.submit-catalyst {
    position: relative;
    background: linear-gradient(135deg, #F4A261, #6A994E);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    margin-top: 1rem;
}

.catalyst-label {
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.catalyst-waves {
    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: all 0.6s ease;
}

.catalyst-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.catalyst-check svg {
    width: 24px;
    height: 24px;
}

.submit-catalyst:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(244, 162, 97, 0.4);
}

.submit-catalyst:hover .catalyst-waves {
    width: 300px;
    height: 300px;
}

.submit-catalyst:active {
    transform: translateY(-1px);
}

.submit-catalyst.success {
    background: #6A994E;
}

.submit-catalyst.success .catalyst-label {
    opacity: 0;
}

.submit-catalyst.success .catalyst-check {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Success Message */
.success-celebration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(106, 153, 78, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.success-celebration.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.celebration-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.celebration-icon svg {
    width: 100%;
    height: 100%;
}

.celebration-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #6A994E;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.celebration-message {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.6;
}

/* =============================================
   FOOTER COSMOS - FOOTER SECTION
   ============================================= */

.footer-cosmos {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(216, 191, 216, 0.1) 0%, 
        rgba(152, 251, 152, 0.15) 25%,
        rgba(255, 218, 185, 0.12) 50%,
        rgba(240, 230, 140, 0.08) 75%,
        rgba(216, 191, 216, 0.1) 100%);
    padding: 0;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 500px;
}

/* Decorative Top Divider */
.footer-wave-divider {
    width: 100%;
    height: 100px;
    margin-bottom: 3rem;
}

.footer-wave-divider svg {
    width: 100%;
    height: 100%;
}

/* Floating Background Stars */
.footer-starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.starfield-canvas {
    width: 100%;
    height: 100%;
}

/* Main Footer Container */
.footer-constellation {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

/* Footer Matrix Grid */
.footer-matrix {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: matrixReveal 1.2s ease-out 0.5s forwards;
}

@keyframes matrixReveal {
    to {
        opacity: 1;
    }
}

/* Individual Galaxy Sections */
.footer-galaxy {
    opacity: 0;
    transform: translateY(30px);
    animation: galaxyEmerge 0.8s ease-out forwards;
}

.company-galaxy {
    animation-delay: 0.2s;
}

.links-galaxy {
    animation-delay: 0.4s;
}

.contact-galaxy {
    animation-delay: 0.6s;
}

.social-galaxy {
    animation-delay: 0.8s;
}

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

/* Company Section */
.footer-brand-cosmos {
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
}

.footer-brand-cosmos:hover {
    transform: scale(1.05);
}

.footer-cosmic-logo {
    height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

.footer-cosmic-logo:hover {
    filter: drop-shadow(0 0 15px rgba(216, 191, 216, 0.5));
}

.footer-tagline {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.8;
}

/* Section Titles */
.galaxy-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.galaxy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D8BFD8, #98FB98);
    border-radius: 1px;
    animation: titleUnderline 2s ease-out 1s forwards;
}

@keyframes titleUnderline {
    to {
        width: 50px;
    }
}

/* Quick Links Navigation */
.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    position: relative;
    text-decoration: none;
    color: #6B7280;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: #D8BFD8;
    transform: translateX(5px);
}

.link-text {
    position: relative;
    z-index: 2;
}

.link-sparkle {
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #98FB98, #FFDAB9);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover .link-sparkle {
    opacity: 1;
    transform: scale(1);
    animation: sparkleGlow 1.5s ease-in-out infinite;
}

@keyframes sparkleGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #98FB98;
    flex-shrink: 0;
    margin-top: 0.1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: #D8BFD8;
    transform: scale(1.1);
}

.contact-text {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
}

/* Social Media Section */
.social-constellation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-star {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(216, 191, 216, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.social-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.social-star:hover::before {
    left: 100%;
}

.social-star svg {
    width: 20px;
    height: 20px;
    color: #98FB98;
    transition: all 0.4s ease;
    z-index: 2;
}

.social-star:hover {
    background: rgba(216, 191, 216, 0.2);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(216, 191, 216, 0.3);
}

.linkedin-star:hover svg {
    color: #0077B5;
}

.twitter-star:hover svg {
    color: #1DA1F2;
}

.instagram-star:hover svg {
    color: #E4405F;
}

.social-star:hover svg {
    transform: rotate(5deg) scale(1.1);
}

/* Newsletter Section */
.newsletter-portal {
    margin-top: 1rem;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.newsletter-input {
    padding: 0.8rem 1rem;
    border: 2px solid rgba(216, 191, 216, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #374151;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input:focus {
    border-color: #D8BFD8;
    box-shadow: 0 0 0 3px rgba(216, 191, 216, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.newsletter-input::placeholder {
    color: #9CA3AF;
}

.newsletter-button {
    position: relative;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #D8BFD8, #98FB98);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 191, 216, 0.4);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.newsletter-button:hover .button-ripple {
    width: 200px;
    height: 200px;
}

.button-arrow {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.newsletter-button:hover .button-arrow {
    transform: translateX(3px);
}

/* Footer Credits */
.footer-credits {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid rgba(216, 191, 216, 0.2);
    opacity: 0;
    animation: creditsReveal 1s ease-out 1.5s forwards;
}

@keyframes creditsReveal {
    to {
        opacity: 1;
    }
}

.credits-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin: 0;
}

.credits-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credit-link {
    font-size: 0.85rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.credit-link:hover {
    color: #D8BFD8;
}

.credit-separator {
    color: #D1D5DB;
    font-size: 0.8rem;
}

/* Back to Top Button */
.back-to-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D8BFD8, #98FB98);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(216, 191, 216, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.back-to-top-button.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(216, 191, 216, 0.5);
}

.back-to-top-button svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.back-to-top-button:hover svg {
    transform: translateY(-2px);
}

.button-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #FFDAB9, #D8BFD8, #98FB98);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.back-to-top-button:hover .button-glow {
    opacity: 0.7;
    animation: buttonGlow 2s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-matrix {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .company-galaxy {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer-brand-cosmos {
        display: flex;
        justify-content: center;
    }
    
    .social-constellation {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-cosmos {
        min-height: auto;
    }
    
    .footer-constellation {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-matrix {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-navigation {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .credits-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .back-to-top-button {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-constellation {
        padding: 1.5rem 1rem 1rem;
    }
    
    .footer-matrix {
        gap: 1.5rem;
    }
    
    .galaxy-title {
        font-size: 1.1rem;
    }
    
    .footer-cosmic-logo {
        height: 50px;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .social-star {
        width: 40px;
        height: 40px;
    }
    
    .social-star svg {
        width: 18px;
        height: 18px;
    }
    
    .newsletter-input,
    .newsletter-button {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .footer-wave-divider {
        height: 80px;
    }
}

/* Animation Performance */
.footer-galaxy,
.footer-link,
.social-star,
.newsletter-button {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .footer-galaxy,
    .footer-matrix,
    .footer-credits,
    .social-star,
    .newsletter-button {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .footer-link:hover,
    .social-star:hover,
    .newsletter-button:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
.footer-link:focus,
.social-star:focus,
.newsletter-input:focus,
.newsletter-button:focus,
.back-to-top-button:focus {
    outline: 2px solid #D8BFD8;
    outline-offset: 2px;
}
