/* ============================================
   CRAZY EDITION - Sara Frden Portfolio Styles
   Advanced Animations & Wild Effects
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #00ff88;
    --secondary: #ff006e;
    --accent: #8338ec;
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --neon-blue: #00d9ff;
    --neon-pink: #ff006e;
    --neon-purple: #8338ec;
    --neon-green: #00ff88;
    --gold: #ffd700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    overflow-x: hidden;
    position: relative;
    animation: bodyFadeIn 1s ease-in-out;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   3D Rotating Cube Background
   ============================================ */
.cube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    background: rgba(0, 255, 136, 0.1);
    backdrop-filter: blur(5px);
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ============================================
   Matrix Rain Canvas
   ============================================ */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

/* ============================================
   Geometric Shapes
   ============================================ */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.2;
    animation: floatShape 20s infinite ease-in-out;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -100px) rotate(120deg); }
    66% { transform: translate(-100px, 100px) rotate(240deg); }
}

/* ============================================
   Cursor Trail Canvas
   ============================================ */
#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   Music Visualizer
   ============================================ */
.visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.6;
}

.visualizer-bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    animation: visualize 0.5s ease-in-out infinite;
}

@keyframes visualize {
    0%, 100% { height: 20px; }
    50% { height: 80px; }
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 30px rgba(0, 255, 136, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--primary));
    transition: all 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-image:hover {
    filter: drop-shadow(0 0 20px var(--primary));
    transform: scale(1.05);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
}

.logo-text .accent {
    color: var(--primary);
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.8; transform: translateX(2px); }
    94% { opacity: 0.8; transform: translateX(-2px); }
    96% { opacity: 1; transform: translateX(0); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.nav-link i {
    margin-right: var(--spacing-xs);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.fx-toggle,
.music-toggle,
.theme-toggle,
.mobile-toggle {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.fx-toggle:hover,
.music-toggle:hover,
.theme-toggle:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.neon-text {
    color: var(--primary);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 30px var(--primary);
}

.letter {
    display: inline-block;
    animation: floatLetter 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes floatLetter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.rainbow {
    background: linear-gradient(90deg, 
        var(--neon-blue), 
        var(--neon-green), 
        var(--neon-pink), 
        var(--neon-purple));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowFlow 3s ease infinite;
}

@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    color: var(--text-muted);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.highlight-word {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    color: var(--bg-dark);
    border: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-3d {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--primary));
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 0 20px var(--primary);
}

.social-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.social-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    white-space: nowrap;
}

.social-link:hover .social-tooltip {
    opacity: 1;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 255, 136, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(0, 255, 136, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* ============================================
   Holographic Card
   ============================================ */
.hero-visual {
    position: relative;
}

.holographic-card {
    background: rgba(10, 14, 39, 0.8);
    border-radius: 24px;
    padding: var(--spacing-md);
    border: 2px solid var(--primary);
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}

.holographic-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

.holo-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1),
        rgba(255, 0, 110, 0.1),
        rgba(131, 56, 236, 0.1));
    opacity: 0.5;
    pointer-events: none;
}

.code-terminal {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: var(--spacing-sm);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.terminal-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.terminal-actions i {
    color: var(--primary);
}

.blink {
    animation: blink 1s infinite;
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */
@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        border-top: 2px solid var(--primary);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-md);
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 255, 136, 0.1);
        text-align: center;
    }
    
    .nav-link i {
        margin-right: var(--spacing-sm);
        font-size: 1.2rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.section {
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets for mobile */
    button, a, .btn, .social-link, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    .skill-card-3d:hover .skill-inner {
        transform: none;
    }
    
    .project-card-crazy:hover {
        transform: translateY(0);
    }
}

/* ============================================
   CODE TERMINAL ANIMATIONS
   ============================================ */
.terminal-body {
    padding: var(--spacing-sm);
}

.code-line {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    opacity: 0;
    animation: codeFadeIn 0.5s ease-in-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }
.code-line:nth-child(7) { animation-delay: 0.7s; }
.code-line:nth-child(8) { animation-delay: 0.8s; }
.code-line:nth-child(9) { animation-delay: 0.9s; }
.code-line:nth-child(10) { animation-delay: 1s; }
.code-line:nth-child(11) { animation-delay: 1.1s; }
.code-line:nth-child(12) { animation-delay: 1.2s; }
.code-line:nth-child(13) { animation-delay: 1.3s; }
.code-line:nth-child(14) { animation-delay: 1.4s; }

@keyframes codeFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.line-number {
    color: var(--text-muted);
    margin-right: var(--spacing-sm);
    min-width: 30px;
    text-align: right;
}

.keyword {
    color: #c792ea;
}

.class-name {
    color: #ffcb6b;
}

.function {
    color: #82aaff;
}

.variable {
    color: #f07178;
}

.typing-line {
    overflow: hidden;
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    animation: typing 2s steps(40) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ============================================
   TECH ORBS - FLOATING 3D SPHERES
   ============================================ */
.tech-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: floatOrb 6s ease-in-out infinite;
}

.orb::before {
    content: attr(data-tech);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--primary);
    white-space: nowrap;
}

.orb-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    top: 20%;
    right: 15%;
    animation-delay: 0.5s;
}

.orb-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

.orb-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

.orb:hover {
    animation-play-state: paused;
    transform: scale(1.3) rotate(360deg);
    box-shadow: 
        0 0 40px var(--primary),
        0 0 80px var(--primary);
}

/* ============================================
   SCROLL INDICATOR ROCKET
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    animation: bounceDown 2s infinite;
}

.rocket-scroll {
    color: var(--primary);
}

.rocket-scroll i {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: rocketFly 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes rocketFly {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

/* ============================================
   SECTION BACKGROUNDS & ANIMATIONS
   ============================================ */
.section-with-bg {
    position: relative;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.section-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 110, 0.05) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
    animation: labelGlow 2s ease-in-out infinite;
}

.sparkle {
    position: relative;
}

.sparkle::before,
.sparkle::after {
    content: '✨';
    position: absolute;
    animation: sparkleAnim 2s ease-in-out infinite;
}

.sparkle::before {
    left: -30px;
}

.sparkle::after {
    right: -30px;
    animation-delay: 1s;
}

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes labelGlow {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary);
    }
    50% {
        box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary);
    }
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: var(--spacing-sm) auto;
    border-radius: 2px;
    animation: underlineExpand 2s ease-in-out infinite;
}

@keyframes underlineExpand {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 150px;
    }
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   GLASS CARD EFFECT
   ============================================ */
.glass-card {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: var(--spacing-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: glassShine 3s linear infinite;
}

@keyframes glassShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
    border-color: var(--primary);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.glass-card:hover .card-glow {
    opacity: 1;
}

/* ============================================
   RAINBOW TEXT ANIMATION
   ============================================ */
.rainbow-text-animated {
    background: linear-gradient(
        90deg,
        var(--neon-blue),
        var(--neon-green),
        var(--neon-pink),
        var(--neon-purple),
        var(--neon-blue)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowShift 3s linear infinite;
}

@keyframes rainbowShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.highlight-number {
    color: var(--primary);
    font-weight: 900;
    text-shadow: 0 0 10px var(--primary);
}

.tech-highlight {
    color: var(--secondary);
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 0, 110, 0.1);
    border-radius: 5px;
}

/* ============================================
   ACHIEVEMENT CARDS
   ============================================ */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.achievement-card {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
    border-color: var(--primary);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-dark);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.achievement-card h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   3D CARD STACK - ENHANCED INTERACTIVE VERSION
   ============================================ */
.card-stack {
    position: relative;
    width: 100%;
    height: 450px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stack-card {
    position: absolute;
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 217, 255, 0.08));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 24px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 10px 40px rgba(0, 255, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(0, 255, 136, 0.1) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 10px var(--primary));
    transition: all 0.3s;
}

.stack-card:hover i {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 20px var(--primary));
}

.stack-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stack-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Initial stacked positions - JavaScript will override these */
.card-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.card-2 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 8px)) translateX(8px);
    z-index: 2;
}

.card-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 16px)) translateX(16px);
    z-index: 1;
}

/* Card glow effect (added by JavaScript) */
.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg, 
        transparent, 
        rgba(0, 255, 136, 0.4), 
        rgba(0, 217, 255, 0.4),
        transparent
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: -1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Particle effect animation for buttons */
@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* ============================================
   SKILLS 3D CARDS
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.skill-card-3d {
    perspective: 1000px;
    height: 350px;
}

.skill-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.skill-card-3d:hover .skill-inner {
    transform: rotateY(180deg);
}

.skill-front,
.skill-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-front {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9), rgba(5, 8, 18, 0.9));
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.skill-back {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 217, 255, 0.1));
    border: 2px solid var(--neon-blue);
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
}

.rainbow-border {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-green), var(--neon-pink), var(--neon-purple));
    background-size: 300% 300%;
    animation: rainbowBorder 3s ease infinite;
    border-radius: 50%;
    padding: 3px;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-dark);
    border-radius: 50%;
    z-index: -1;
}

@keyframes rainbowBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.skill-front h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.skill-level {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.skill-bar-circular {
    position: relative;
    width: 120px;
    height: 120px;
    margin: var(--spacing-sm) 0;
}

.skill-bar-circular svg {
    transform: rotate(-90deg);
}

.skill-bar-circular circle {
    fill: none;
    stroke-width: 8;
}

.skill-bar-circular circle.bg {
    stroke: rgba(0, 255, 136, 0.1);
}

.skill-bar-circular circle.progress {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: circleProgress 2s ease-in-out forwards;
    filter: drop-shadow(0 0 10px var(--primary));
}

@keyframes circleProgress {
    to {
        stroke-dashoffset: calc(283 - (283 * var(--progress, 0)) / 100);
    }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.skill-back h4 {
    font-size: 1.3rem;
    color: var(--neon-blue);
    margin-bottom: var(--spacing-sm);
}

.skill-back ul {
    list-style: none;
    text-align: left;
}

.skill-back li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   MAGNETIC BUTTONS
   ============================================ */
.magnetic-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 300px;
    height: 300px;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary);
    transform: translateY(-3px);
}

.btn-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   TECH CLOUD - FLOATING BUBBLES
   ============================================ */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.tech-bubble {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 217, 255, 0.1));
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: bubbleFloat 6s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.tech-bubble:nth-child(odd) {
    animation-delay: 0.3s;
}

.tech-bubble:nth-child(even) {
    animation-delay: 0.6s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.tech-bubble:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 30px var(--primary);
}

/* ============================================
   TIMELINE 3D
   ============================================ */
.timeline-3d {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--primary);
}

.timeline-item-3d {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
}

.timeline-item-3d:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50%;
    padding-right: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 20px var(--primary);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary);
    }
    50% {
        box-shadow: 0 0 40px var(--primary), 0 0 60px var(--primary);
    }
}

.timeline-content-3d {
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: var(--spacing-md);
    max-width: 400px;
    position: relative;
    transition: all var(--transition-normal);
}

.timeline-content-3d::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item-3d:nth-child(odd) .timeline-content-3d::before {
    right: -12px;
    border-width: 10px 0 10px 12px;
    border-color: transparent transparent transparent var(--primary);
}

.timeline-item-3d:nth-child(even) .timeline-content-3d::before {
    left: -12px;
    border-width: 10px 12px 10px 0;
    border-color: transparent var(--primary) transparent transparent;
}

.timeline-content-3d:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4);
}

.company-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.timeline-content-3d h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content-3d h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.achievement-list {
    list-style: none;
    margin: var(--spacing-sm) 0;
}

.achievement-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.achievement-list i {
    color: var(--primary);
    margin-top: 0.2rem;
}

.tech-stack-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.tech-stack-inline span {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 15px;
    color: var(--neon-blue);
    font-size: 0.85rem;
}

/* ============================================
   EDUCATION SPOTLIGHT
   ============================================ */
.education-spotlight {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: center;
}

.edu-card {
    max-width: 500px;
    text-align: center;
    padding: var(--spacing-lg);
    animation: eduGlow 3s ease-in-out infinite;
}

@keyframes eduGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0, 255, 136, 0.4);
    }
}

.edu-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: linear-gradient(135deg, var(--gold), var(--neon-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--bg-dark);
    animation: eduFloat 3s ease-in-out infinite;
}

@keyframes eduFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.edu-card h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.edu-school {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.edu-date {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.edu-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--neon-green));
    color: var(--bg-dark);
    border-radius: 50px;
    font-weight: 700;
}

/* ============================================
   PROJECTS SHOWCASE
   ============================================ */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-card-crazy {
    background: rgba(10, 14, 39, 0.8);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all var(--transition-normal);
    position: relative;
}

.project-card-crazy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 136, 0.1) 50%,
        transparent 70%
    );
    animation: projectShine 3s linear infinite;
}

@keyframes projectShine {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.project-card-crazy:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 255, 136, 0.4);
    border-color: var(--primary);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.project-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform var(--transition-normal);
}

.project-card-crazy:hover .project-image {
    transform: scale(1.1);
}

.project-icon {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: projectIconSpin 10s linear infinite;
}

@keyframes projectIconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card-crazy:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.project-link:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 0 30px var(--primary);
}

.project-content-crazy {
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.project-status {
    padding: 0.3rem 0.8rem;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.project-content-crazy p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.project-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.project-features-grid span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-features-grid i {
    color: var(--neon-green);
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech-tags span {
    padding: 0.4rem 0.9rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    color: var(--neon-blue);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.project-tech-tags span:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-normal);
}

.contact-card:hover {
    transform: scale(1.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-card a:hover {
    color: var(--primary);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    padding: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-group label {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group label i {
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.btn-full {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.footer-waves svg {
    width: 100%;
    height: 100%;
    fill: var(--bg-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 15px var(--primary));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: drop-shadow(0 0 25px var(--primary));
    transform: scale(1.05);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px) rotate(360deg);
}

.footer-links h4,
.footer-newsletter h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem;
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: var(--text-light);
}

.newsletter-form button {
    padding: 0.7rem 1.2rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--text-muted);
}

.heart {
    color: var(--secondary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

.coffee {
    animation: coffeeStream 2s ease-in-out infinite;
}

@keyframes coffeeStream {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.made-with {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ============================================
   BACK TO TOP ROCKET
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--neon-blue));
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
}

.rocket-fire {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0;
    animation: rocketFire 0.3s ease-in-out infinite;
    -webkit-filter: blur(5px);
}

.back-to-top:hover .rocket-fire {
    opacity: 1;
}

@keyframes rocketFire {
    0%, 100% {
        height: 20px;
        opacity: 0.8;
    }
    50% {
        height: 35px;
        opacity: 1;
    }
}

/* ============================================
   FLOATING ACTION MENU
   ============================================ */
.floating-menu {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 998;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
    transition: all var(--transition-normal);
}

.fab-main:hover {
    transform: rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.6);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.floating-menu:hover .fab-options {
    opacity: 1;
    visibility: visible;
}

.fab-option {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.fab-option:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.2);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--neon-blue));
    border-radius: 6px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-blue), var(--primary));
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .projects-showcase {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 1024px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .holographic-card {
        width: 100%;
        height: auto;
        min-height: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .card-stack {
        height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-orbs {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .nav-actions button {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px var(--spacing-sm) var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .holographic-card {
        min-height: 350px;
    }
    
    .code-terminal {
        font-size: 0.75rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }
    
    .section-label {
        font-size: 0.85rem;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .skill-card-3d {
        max-width: 100%;
    }
    
    .skills-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .tech-cloud {
        gap: 0.5rem;
    }
    
    .tech-bubble {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Timeline */
    .timeline-track {
        left: 20px;
    }
    
    .timeline-item-3d,
    .timeline-item-3d:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-marker {
        left: 20px;
    }
    
    .timeline-content-3d {
        padding: 1.5rem;
    }
    
    .timeline-content-3d::before {
        left: -12px !important;
        right: auto !important;
        border-width: 10px 12px 10px 0 !important;
        border-color: transparent rgba(0, 255, 136, 0.2) transparent transparent !important;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-content-3d h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content-3d h4 {
        font-size: 1rem;
    }
    
    .achievement-list li {
        font-size: 0.9rem;
    }
    
    .tech-stack-inline {
        gap: 0.4rem;
    }
    
    .tech-stack-inline span {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Projects */
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-card-crazy {
        max-width: 100%;
    }
    
    .project-content-crazy h3 {
        font-size: 1.3rem;
    }
    
    .project-features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .project-tech-tags {
        gap: 0.4rem;
    }
    
    .project-tech-tags span {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: var(--spacing-md);
    }
    
    /* Card Stack */
    .card-stack {
        height: 350px;
        transform: scale(0.9);
    }
    
    .stack-card {
        width: 260px;
        height: 180px;
        padding: 1.5rem;
    }
    
    .stack-card i {
        font-size: 2.5rem;
    }
    
    .stack-card h3 {
        font-size: 1.1rem;
    }
    
    .stack-card p {
        font-size: 0.85rem;
    }
    
    /* About */
    .about-card {
        padding: var(--spacing-md);
    }
    
    .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    /* Footer */
    .footer-brand img {
        height: 50px;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .footer-newsletter {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
        --spacing-sm: 0.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-image,
    .footer-logo {
        height: 35px;
    }
    
    .nav-actions {
        gap: 0.3rem;
    }
    
    .nav-actions button {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero {
        padding: 90px var(--spacing-sm) var(--spacing-md);
    }
    
    .greeting {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-social {
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .holographic-card {
        min-height: 300px;
        padding: 1rem;
    }
    
    .code-terminal {
        font-size: 0.65rem;
    }
    
    .terminal-title {
        font-size: 0.7rem;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-label {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* About */
    .about-card {
        padding: 1rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .achievement-card {
        padding: 1rem;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Skills */
    .skills-filter {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .skill-card-3d {
        height: auto;
        min-height: 280px;
    }
    
    .skill-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .skill-card-3d h3 {
        font-size: 1.2rem;
    }
    
    .skill-level {
        font-size: 0.8rem;
    }
    
    .skill-bar-circular {
        width: 100px;
        height: 100px;
    }
    
    .percentage {
        font-size: 1.1rem;
    }
    
    .skill-back h4 {
        font-size: 1rem;
    }
    
    .skill-back li {
        font-size: 0.8rem;
    }
    
    /* Timeline */
    .timeline-content-3d {
        padding: 1rem;
    }
    
    .timeline-date {
        font-size: 0.75rem;
    }
    
    .timeline-content-3d h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content-3d h4 {
        font-size: 0.9rem;
    }
    
    .achievement-list {
        gap: 0.4rem;
    }
    
    .achievement-list li {
        font-size: 0.85rem;
    }
    
    .company-badge {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Projects */
    .project-card-crazy {
        padding: 1rem;
    }
    
    .project-content-crazy {
        padding: 1rem;
    }
    
    .project-content-crazy h3 {
        font-size: 1.1rem;
    }
    
    .project-status {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .project-content-crazy p {
        font-size: 0.85rem;
    }
    
    .project-features-grid span {
        font-size: 0.8rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    /* Contact */
    .contact-form {
        padding: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .contact-card h4 {
        font-size: 1rem;
    }
    
    .contact-card p,
    .contact-card a {
        font-size: 0.85rem;
    }
    
    /* Card Stack */
    .card-stack {
        height: 300px;
        transform: scale(0.8);
    }
    
    .stack-card {
        width: 220px;
        height: 160px;
        padding: 1rem;
    }
    
    .stack-card i {
        font-size: 2rem;
    }
    
    .stack-card h3 {
        font-size: 1rem;
    }
    
    .stack-card p {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer-content {
        padding: 2rem 0;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-brand p {
        font-size: 0.85rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-links h4,
    .footer-newsletter h4 {
        font-size: 1rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
    
    /* Floating Elements */
    .back-to-top,
    .floating-menu {
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .fab-option {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Hide decorative elements on very small screens */
    .geometric-shapes {
        opacity: 0.3;
    }
    
    #matrixCanvas {
        opacity: 0.05;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .cube-container {
        display: none;
    }
}