/* ==========================================
   PORTFOLIO CSS - MAIN ENTRY POINT
   ========================================== */

/* Base & Reset */
@import 'base/variables.css';
@import 'base/reset.css';
@import 'base/layout.css';
@import 'base/typography.css';

/* Components */
@import 'components/buttons.css';
@import 'components/cards.css';
@import 'components/nav.css';
@import 'components/animations.css';

/* Sections */
@import 'sections/hero.css';
@import 'sections/about.css';
@import 'sections/projects.css';
@import 'sections/contact.css';

/* Utilities */
@import 'utils/responsive.css';

/* ==========================================
   NATURE-INSPIRED BACKGROUND SYSTEM
   ========================================== */

body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: var(--bg-primary);
    transition: background var(--transition-slow);
}

/* Aurora Wave Layer */
.aurora-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.aurora-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    opacity: 0.4;
    filter: blur(60px);
    animation: auroraFlow 25s ease-in-out infinite;
}

.aurora-wave-1 {
    background: radial-gradient(ellipse at 30% 20%, 
        rgba(167, 139, 250, 0.15) 0%, 
        transparent 50%);
    animation-delay: 0s;
}

.aurora-wave-2 {
    background: radial-gradient(ellipse at 70% 30%, 
        rgba(103, 232, 249, 0.12) 0%, 
        transparent 45%);
    animation-delay: -8s;
    animation-duration: 30s;
}

.aurora-wave-3 {
    background: radial-gradient(ellipse at 50% 70%, 
        rgba(232, 184, 109, 0.1) 0%, 
        transparent 50%);
    animation-delay: -15s;
    animation-duration: 35s;
}

@keyframes auroraFlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(5%, -5%) rotate(3deg) scale(1.05);
    }
    50% {
        transform: translate(-3%, 3%) rotate(-2deg) scale(0.98);
    }
    75% {
        transform: translate(4%, 2%) rotate(2deg) scale(1.02);
    }
}

/* Firefly Container */
.fireflies-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.firefly {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-primary);
    box-shadow: 
        0 0 10px 2px rgba(232, 184, 109, 0.6),
        0 0 20px 4px rgba(232, 184, 109, 0.4),
        0 0 30px 6px rgba(232, 184, 109, 0.2);
    animation: fireflyFloat 15s ease-in-out infinite, fireflyGlow 3s ease-in-out infinite;
}

.firefly:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s, 0s; animation-duration: 18s, 2.5s; }
.firefly:nth-child(2) { top: 20%; left: 80%; animation-delay: -3s, -0.5s; animation-duration: 22s, 3s; }
.firefly:nth-child(3) { top: 60%; left: 20%; animation-delay: -6s, -1s; animation-duration: 16s, 2.8s; }
.firefly:nth-child(4) { top: 80%; left: 70%; animation-delay: -9s, -1.5s; animation-duration: 20s, 3.2s; }
.firefly:nth-child(5) { top: 40%; left: 50%; animation-delay: -12s, -2s; animation-duration: 24s, 2.6s; }
.firefly:nth-child(6) { top: 70%; left: 40%; animation-delay: -4s, -0.8s; animation-duration: 19s, 3.5s; }
.firefly:nth-child(7) { top: 30%; left: 30%; animation-delay: -7s, -1.2s; animation-duration: 21s, 2.9s; }
.firefly:nth-child(8) { top: 50%; left: 85%; animation-delay: -10s, -1.8s; animation-duration: 17s, 3.1s; }
.firefly:nth-child(9) { top: 15%; left: 60%; animation-delay: -2s, -0.3s; animation-duration: 23s, 2.7s; }
.firefly:nth-child(10) { top: 85%; left: 15%; animation-delay: -8s, -1.3s; animation-duration: 25s, 3.3s; }

@keyframes fireflyFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(40px, -60px);
    }
    40% {
        transform: translate(-30px, -100px);
    }
    60% {
        transform: translate(60px, -40px);
    }
    80% {
        transform: translate(-40px, -80px);
    }
}

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

/* Light mode adjustments */
:root:not(.dark-theme) .firefly {
    background: var(--gold-secondary);
    box-shadow: 
        0 0 8px 2px rgba(201, 160, 85, 0.5),
        0 0 16px 4px rgba(201, 160, 85, 0.3),
        0 0 24px 6px rgba(201, 160, 85, 0.15);
}

:root:not(.dark-theme) .aurora-wave {
    opacity: 0.25;
}

/* Particles Background */
#particles-canvas {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -1;
   pointer-events: none;
   background: transparent;
}