/* ============================================
   ISAAC SHEK - Cyberpunk Portfolio
   Theme: Cyberpunk, Surreal, High-Quality
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00d4ff;
    --secondary-blue: #0077ff;
    --dark-blue: #0a0a1a;
    --darker-blue: #050510;
    --glow-orange: #ff9500;
    --glow-yellow: #ffcc00;
    --text-white: #ffffff;
    --text-gray: #a0a0b0;
    --metallic-dark: #1a1a2e;
    --metallic-light: #2d2d44;
    --accent-pink: #ff00ff;
    --accent-cyan: #00ffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--darker-blue);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   CYBERPUNK CITY BACKGROUND (Image)
   ============================================ */
.cyberpunk-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 0;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(5, 5, 16, 0.4) 0%,
        rgba(10, 10, 26, 0.5) 50%,
        rgba(5, 5, 16, 0.7) 100%);
    pointer-events: none;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    text-shadow: 0 0 20px var(--primary-blue);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 30px var(--primary-blue), 0 0 60px var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-blue);
}

.nav-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION - NAME (3D CURSOR TRACKING)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 80px;
    perspective: 1000px;
}

.hero-content {
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    position: relative;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.title-text {
    display: inline-block;
    color: var(--text-white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 80px rgba(255, 255, 255, 0.2);
    animation: whiteGlow 2s ease-in-out infinite alternate;
}

@keyframes whiteGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(255, 255, 255, 0.4),
            0 0 80px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(255, 255, 255, 0.8),
            0 0 60px rgba(255, 255, 255, 0.6),
            0 0 100px rgba(255, 255, 255, 0.4);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-gray);
    letter-spacing: 0.3em;
    margin-bottom: 3rem;
}

.typing-text {
    border-right: 2px solid var(--primary-blue);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: float 2s ease-in-out infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   ABOUT SECTION - METALLIC BOARD
   ============================================ */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.metallic-board {
    max-width: 900px;
    width: 100%;
    background: linear-gradient(145deg, var(--metallic-dark), var(--metallic-light));
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.metallic-board::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    pointer-events: none;
}

.board-header {
    background: linear-gradient(90deg, var(--metallic-dark), rgba(0, 212, 255, 0.1), var(--metallic-dark));
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.board-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.light:nth-child(1) {
    background: #ff5f56;
    box-shadow: 0 0 10px #ff5f56;
}

.light:nth-child(2) {
    background: #ffbd2e;
    box-shadow: 0 0 10px #ffbd2e;
    animation-delay: 0.3s;
}

.light:nth-child(3) {
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.board-title {
    font-size: 0.9rem;
    color: var(--primary-blue);
    letter-spacing: 2px;
    font-weight: 600;
}

.board-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.terminal-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.terminal-prompt {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1.1rem;
}

.terminal-command {
    color: var(--glow-yellow);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.terminal-output {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.output-line {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label {
    color: var(--primary-blue);
    font-weight: 600;
    min-width: 100px;
}

.team-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.team-link:hover {
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.team-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.team-link:hover::after {
    width: 100%;
}

.board-footer {
    height: 30px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ============================================
   HOBBIES SPECIAL EFFECTS
   ============================================ */
.hobbies-output {
    gap: 0.5rem;
}

.hobby-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    height: 45px;
    min-height: 45px;
    max-height: 45px;
}

.hobby-item-left {
    justify-content: flex-start;
}

/* Game Development - Changing font and gradient */
.hobby-gamedev {
    font-size: 1.2rem;
    line-height: 1.2rem;
    height: 1.2rem;
    font-weight: 600;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gamedevEffect 0.8s steps(1) infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes gamedevEffect {
    0% {
        background: linear-gradient(90deg, #ff00ff, #00ffff);
        -webkit-background-clip: text;
        background-clip: text;
    }
    25% {
        background: linear-gradient(90deg, #00ff88, #ff6600);
        -webkit-background-clip: text;
        background-clip: text;
    }
    50% {
        background: linear-gradient(90deg, #ffcc00, #ff0066);
        -webkit-background-clip: text;
        background-clip: text;
    }
    75% {
        background: linear-gradient(90deg, #00d4ff, #ff00aa);
        -webkit-background-clip: text;
        background-clip: text;
    }
    100% {
        background: linear-gradient(90deg, #ff00ff, #00ffff);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

/* Competitive Programming - Binary effect */
.binary-container {
    position: relative;
    display: inline-block;
    padding: 0 50px 0 0;
}

.hobby-cp {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-cyan);
    position: relative;
    z-index: 2;
}

.binary-digit {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    pointer-events: none;
    animation: binaryFade 2s ease-in-out infinite;
    z-index: 1;
}

.binary-digit.white {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.binary-digit.black {
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
}

@keyframes binaryFade {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.8); }
    50% { opacity: 1; transform: translateY(-8px) scale(1); }
}

/* Capture-The-Flag - Waving flag */
.hobby-ctf {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b00;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.flag-container {
    display: flex;
    align-items: flex-start;
    margin-left: 10px;
    height: 24px;
}

.flag-pole {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, #888, #555);
    border-radius: 1px;
    box-shadow: 1px 0 2px rgba(0,0,0,0.3);
}

.flag-wave {
    margin-left: 0;
    margin-top: 1px;
    transform-origin: left center;
}

.flag-svg {
    width: 30px;
    height: 14px;
    overflow: visible;
}

.flag-path {
    fill: url(#flagGradient);
    animation: waveFlag 0.8s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes waveFlag {
    0% {
        d: path('M0 0 Q10 1.5 20 0 Q30 -1.5 40 0 Q50 1.5 60 0 L60 20 Q50 18.5 40 20 Q30 21.5 20 20 Q10 18.5 0 20 Z');
    }
    25% {
        d: path('M0 0 Q10 -1 20 1 Q30 -1 40 1 Q50 -1 60 0 L60 20 Q50 21 40 19 Q30 21 20 19 Q10 21 0 20 Z');
    }
    50% {
        d: path('M0 0 Q10 -1.5 20 0 Q30 1.5 40 0 Q50 -1.5 60 0 L60 20 Q50 21.5 40 20 Q30 18.5 20 20 Q10 21.5 0 20 Z');
    }
    75% {
        d: path('M0 0 Q10 1 20 -1 Q30 1 40 -1 Q50 1 60 0 L60 20 Q50 19 40 21 Q30 19 20 21 Q10 19 0 20 Z');
    }
    100% {
        d: path('M0 0 Q10 1.5 20 0 Q30 -1.5 40 0 Q50 1.5 60 0 L60 20 Q50 18.5 40 20 Q30 21.5 20 20 Q10 18.5 0 20 Z');
    }
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.games-section {
    min-height: 100vh;
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 80px rgba(255, 255, 255, 0.2);
    position: relative;
    display: inline-block;
    animation: whiteGlow 2s ease-in-out infinite alternate;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    margin: 1.5rem auto 0;
    box-shadow: 0 0 20px var(--primary-blue);
}

/* Banner */
.banner-container {
    max-width: 400px;
    margin: 2rem auto 3rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.banner-container:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}

.projects-banner {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.banner-container:hover .projects-banner {
    transform: scale(1.02);
}

/* Game card links */
.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.games-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(45, 45, 68, 0.9));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card.slide-right {
    transform: translateX(100px);
}

.game-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.game-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before {
    left: 100%;
}

/* Double icons wrapper */
.game-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.game-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.icon-secondary .game-icon {
    width: 100px;
    height: 100px;
}

.icon-primary .game-icon {
    width: 150px;
    height: 150px;
}

.game-icon {
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.game-card:hover .game-icon {
    border-color: var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.game-card:hover .icon-glow {
    opacity: 0.5;
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-blue);
}

.game-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.game-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
}

.card-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), transparent, var(--accent-cyan), transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .card-border::before {
    opacity: 0.5;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.achievements-section {
    padding: 100px 2rem;
    position: relative;
    z-index: 1;
}

.achievements-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(45, 45, 68, 0.9));
    border-radius: 15px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transform: translateX(10px);
}

.achievement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.achievement-rank {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
}

.achievement-team {
    font-size: 0.9rem;
    color: var(--glow-orange);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 1;
    background: rgba(5, 5, 16, 0.9);
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--primary-blue);
    font-style: italic;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-title {
        letter-spacing: 0.05em;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
    }

    .game-icons-wrapper {
        justify-content: center;
    }

    .icon-secondary .game-icon {
        width: 80px;
        height: 80px;
    }

    .icon-primary .game-icon {
        width: 120px;
        height: 120px;
    }

    .game-tags {
        justify-content: center;
    }

    .board-content {
        padding: 1.5rem;
    }

    .terminal-output {
        padding: 1rem;
    }

    .output-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .label {
        min-width: auto;
    }

    .hobby-item {
        flex-wrap: wrap;
    }

    .binary-container {
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-subtitle {
        letter-spacing: 0.1em;
    }
}
