:root {
    --bg-dark: #0d0c1d;
    --bg-medium: #1a1a2e;
    --primary: #e0218a; /* Neon Magenta */
    --secondary: #0abdc6; /* Electric Blue */
    --accent: #9333ea; /* Violet */
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-dark);
    color: #e0e0e0;
    overflow-x: hidden;
}

/* CRT Scanline Effect */
body::after {
    content: ' ';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    transition: all 0.8s ease-in-out;
}

.section-glow {
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    color: var(--primary) !important;
    transition: all 0.8s ease-in-out;
}

/* Reduce glow on mobile for better readability */
@media (max-width: 768px) {
    .section-glow {
        text-shadow: 0 0 3px var(--primary), 0 0 6px var(--primary);
    }
}

/* Hero Title Glow Effect */
.hero-title-glow {
    color: var(--secondary);
    text-shadow:
        0 0 10px var(--secondary),
        0 0 20px var(--secondary),
        0 0 30px var(--secondary),
        0 0 40px rgba(10, 189, 198, 0.5);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow:
            0 0 10px var(--secondary),
            0 0 20px var(--secondary),
            0 0 30px var(--secondary),
            0 0 40px rgba(10, 189, 198, 0.5);
    }
    50% {
        text-shadow:
            0 0 15px var(--secondary),
            0 0 30px var(--secondary),
            0 0 45px var(--secondary),
            0 0 60px rgba(10, 189, 198, 0.7);
    }
}

/* Name Border Glow Effect - Pink/Magenta */
.name-glow {
    -webkit-text-stroke: 1px var(--primary);
    text-shadow:
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 30px rgba(224, 33, 138, 0.5);
}

.button-glow {
    box-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), inset 0 0 5px var(--secondary);
    transition: all 0.3s ease;
}

.button-glow:hover {
    box-shadow: 0 0 10px var(--secondary), 0 0 20px var(--secondary), inset 0 0 10px var(--secondary);
}

.glitch-hover:hover { 
    animation: glitch 0.3s linear; 
}

/* News Ticker Animation */
.ticker-wrap { 
    width: 100%; 
    overflow: hidden; 
    background-color: rgba(0,0,0,0.2); 
    padding: 10px 0; 
    border-top: 1px solid var(--secondary); 
    border-bottom: 1px solid var(--secondary); 
    animation: slideUpFromBottom 1s ease-out 2s forwards;
    transform: translateY(100%);
    opacity: 0;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    cursor: pointer;
}

.ticker-paused {
    animation-play-state: paused;
}

.ticker-item { 
    display: inline-block; 
    padding: 0 2rem; 
    color: var(--secondary); 
    transition: all 0.3s ease;
}

.ticker-item-highlighted {
    color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    transform: scale(1.1);
}

/* Hamburger Menu Styles */
.hamburger-line {
    transition: all 0.3s ease-in-out;
}

.hamburger-active .top-line {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-active .middle-line {
    opacity: 0;
}

.hamburger-active .bottom-line {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Skill Glow Effect */
.skill-glow {
    box-shadow: 0 0 8px var(--glow-color), 0 0 12px var(--glow-color), inset 0 0 6px var(--glow-color);
    border-color: var(--glow-color);
    transition: all 0.3s ease;
}

.skill-glow:hover {
    box-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color), inset 0 0 10px var(--glow-color);
}

/* Rotating glow animation for fully activated skill groups */
@keyframes rotating-glow {
    0% {
        box-shadow:
            0 0 20px var(--glow-color),
            0 0 30px var(--glow-color),
            inset 0 0 10px var(--glow-color);
        filter: hue-rotate(0deg);
    }
    25% {
        box-shadow:
            0 0 30px var(--glow-color),
            0 0 45px var(--glow-color),
            inset 0 0 15px var(--glow-color);
        filter: hue-rotate(15deg);
    }
    50% {
        box-shadow:
            0 0 35px var(--glow-color),
            0 0 55px var(--glow-color),
            inset 0 0 20px var(--glow-color);
        filter: hue-rotate(30deg);
    }
    75% {
        box-shadow:
            0 0 30px var(--glow-color),
            0 0 45px var(--glow-color),
            inset 0 0 15px var(--glow-color);
        filter: hue-rotate(15deg);
    }
    100% {
        box-shadow:
            0 0 20px var(--glow-color),
            0 0 30px var(--glow-color),
            inset 0 0 10px var(--glow-color);
        filter: hue-rotate(0deg);
    }
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1.15);
        opacity: 1;
    }
    50% {
        transform: scale(1.30);
        opacity: 1;
    }
}

.group-activated {
    animation: rotating-glow 2s ease-in-out infinite;
    border-color: var(--glow-color) !important;
}

.group-activated-icon {
    animation: icon-pulse 2s ease-in-out infinite;
    transform-origin: center;
}

/* Cycling Text Animation */
.cycling-text-container {
    display: inline-block;
    position: relative;
    min-width: 120px;
    height: 1.5em;
    text-align: center;
}

.cycling-text {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
    filter: blur(4px);
}

.cycling-text-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
}

/* Terminal Window Styles */
.terminal-window {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(10, 189, 198, 0.1);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.8s steps(30) forwards;
}

@keyframes loading-dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.loading-dots::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes terminal-line-appear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-line {
    opacity: 0;
    animation: terminal-line-appear 0.3s ease-out forwards;
}

/* Floating Score Text */
.floating-text {
    animation: float-up 1.5s ease-out forwards;
    text-shadow: 0px 0px 3px #000, 0px 0px 3px #000, 0px 0px 3px #000;
}

/* Game Animations */
@keyframes game-start {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes game-over-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes game-win-pulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}

@keyframes hacking-glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(2px, -2px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(2px, 2px);
        filter: hue-rotate(360deg);
    }
}

.game-start-animation {
    animation: game-start 0.6s ease-out;
}

.game-over-animation {
    animation: game-over-shake 0.5s ease-out;
}

.game-win-animation {
    animation: game-win-pulse 0.8s ease-out;
}

.hacking-animation {
    animation: hacking-glitch 0.3s linear infinite;
}

@keyframes reset-dissolve {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: brightness(2) blur(2px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        filter: brightness(0) blur(5px);
    }
}

.reset-animation {
    animation: reset-dissolve 0.5s ease-out;
}

/* Section Reveal Animations */
.section-hidden {
    opacity: 0;
}

/* Initial state - all sections start hidden */
.section-about,
.section-experience,
.section-education,
.section-skills,
.section-projects,
.section-contact {
    opacity: 0;
}

/* About - Slide from left with fade */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-about.section-visible {
    animation: slide-in-left 0.8s ease-out forwards;
}

.section-about.section-visible .grid > * {
    opacity: 0;
    animation: slide-in-left 0.6s ease-out forwards;
}

.section-about.section-visible .grid > *:nth-child(1) {
    animation-delay: 0.2s;
}

.section-about.section-visible .grid > *:nth-child(2) {
    animation-delay: 0.4s;
}

/* Experience - Timeline slide up */
@keyframes timeline-reveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-experience.section-visible {
    animation: slide-in-left 0.8s ease-out forwards;
}

.section-experience.section-visible .border-l-2 > * {
    opacity: 0;
    animation: timeline-reveal 0.6s ease-out forwards;
}

.section-experience.section-visible .border-l-2 > *:nth-child(1) {
    animation-delay: 0.1s;
}

.section-experience.section-visible .border-l-2 > *:nth-child(2) {
    animation-delay: 0.3s;
}

.section-experience.section-visible .border-l-2 > *:nth-child(3) {
    animation-delay: 0.5s;
}

.section-experience.section-visible .border-l-2 > *:nth-child(4) {
    animation-delay: 0.7s;
}

/* Education - Scan lines appear */
@keyframes scan-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    50% {
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.section-education.section-visible {
    animation: slide-in-left 0.8s ease-out forwards;
}

.section-education.section-visible .space-y-8 > * {
    opacity: 0;
    animation: scan-reveal 0.7s ease-out forwards;
}

.section-education.section-visible .space-y-8 > *:nth-child(1) {
    animation-delay: 0.1s;
}

.section-education.section-visible .space-y-8 > *:nth-child(2) {
    animation-delay: 0.3s;
}

.section-education.section-visible .space-y-8 > *:nth-child(3) {
    animation-delay: 0.5s;
}

/* Skills - Matrix rain effect */
@keyframes matrix-drop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-skills.section-visible {
    animation: slide-in-left 0.8s ease-out forwards;
}

.section-skills.section-visible .grid > * {
    opacity: 0;
    animation: matrix-drop 0.5s ease-out forwards;
}

.section-skills.section-visible .grid > *:nth-child(1) { animation-delay: 0.05s; }
.section-skills.section-visible .grid > *:nth-child(2) { animation-delay: 0.1s; }
.section-skills.section-visible .grid > *:nth-child(3) { animation-delay: 0.15s; }
.section-skills.section-visible .grid > *:nth-child(4) { animation-delay: 0.2s; }
.section-skills.section-visible .grid > *:nth-child(5) { animation-delay: 0.25s; }
.section-skills.section-visible .grid > *:nth-child(6) { animation-delay: 0.3s; }
.section-skills.section-visible .grid > *:nth-child(7) { animation-delay: 0.35s; }
.section-skills.section-visible .grid > *:nth-child(8) { animation-delay: 0.4s; }
.section-skills.section-visible .grid > *:nth-child(9) { animation-delay: 0.45s; }
.section-skills.section-visible .grid > *:nth-child(10) { animation-delay: 0.5s; }
.section-skills.section-visible .grid > *:nth-child(11) { animation-delay: 0.55s; }
.section-skills.section-visible .grid > *:nth-child(12) { animation-delay: 0.6s; }
.section-skills.section-visible .grid > *:nth-child(13) { animation-delay: 0.05s; }
.section-skills.section-visible .grid > *:nth-child(14) { animation-delay: 0.1s; }
.section-skills.section-visible .grid > *:nth-child(15) { animation-delay: 0.15s; }
.section-skills.section-visible .grid > *:nth-child(16) { animation-delay: 0.2s; }
.section-skills.section-visible .grid > *:nth-child(17) { animation-delay: 0.25s; }
.section-skills.section-visible .grid > *:nth-child(18) { animation-delay: 0.3s; }
.section-skills.section-visible .grid > *:nth-child(19) { animation-delay: 0.35s; }
.section-skills.section-visible .grid > *:nth-child(20) { animation-delay: 0.4s; }
.section-skills.section-visible .grid > *:nth-child(21) { animation-delay: 0.45s; }
.section-skills.section-visible .grid > *:nth-child(22) { animation-delay: 0.5s; }
.section-skills.section-visible .grid > *:nth-child(23) { animation-delay: 0.55s; }
.section-skills.section-visible .grid > *:nth-child(24) { animation-delay: 0.6s; }

/* Projects - Fade in with scale */
@keyframes project-reveal {
    0% {
        opacity: 0;
        transform: scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

.section-projects.section-visible {
    animation: slide-in-left 0.8s ease-out forwards;
}

.section-projects.section-visible .grid > * {
    opacity: 0;
    animation: project-reveal 0.6s ease-out forwards;
}

.section-projects.section-visible .grid > *:nth-child(1) { animation-delay: 0.1s; }
.section-projects.section-visible .grid > *:nth-child(2) { animation-delay: 0.2s; }
.section-projects.section-visible .grid > *:nth-child(3) { animation-delay: 0.3s; }
.section-projects.section-visible .grid > *:nth-child(4) { animation-delay: 0.4s; }
.section-projects.section-visible .grid > *:nth-child(5) { animation-delay: 0.5s; }
.section-projects.section-visible .grid > *:nth-child(6) { animation-delay: 0.6s; }

/* Contact - Pulse in */
@keyframes pulse-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.section-contact.section-visible {
    animation: pulse-in 0.8s ease-out forwards;
}

