/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-darker: #07050f;          /* Son Derece Derin Kadife Kozmik Siyah */
    --bg-dark: #0d0a1b;            /* Derin Obsidyen Kozmik Mor */
    --bg-card: rgba(255, 94, 126, 0.02); /* Hafif Gün Batımı Coral Temelli Cam Kart */
    --bg-nav: rgba(7, 5, 15, 0.85);
    
    --primary: #ff5e7e;            /* Neon Sunset Coral (Göz Alıcı Gün Batımı Mercanı) */
    --primary-glow: rgba(255, 94, 126, 0.35);
    --secondary: #a78bfa;          /* Vibrant Lavender (Parıldayan Canlı Lavanta) */
    --secondary-glow: rgba(167, 139, 250, 0.25);
    --accent: #ffd166;             /* Sunburst Gold (Sıcak Güneş Altını / Kehribar) */
    --accent-glow: rgba(255, 209, 102, 0.35);
    --peach: #fca5a5;              /* Soft Rose (Yumuşak Gül Pembe) */
    --peach-glow: rgba(252, 165, 165, 0.3);
    
    --text-main: #f8fafc;          /* Slate 50 Beyaz */
    --text-muted: #94a3b8;         /* Slate 400 Okunabilirlik Grisi */
    
    --border-color: rgba(255, 94, 126, 0.15);
    --border-glow: rgba(255, 94, 126, 0.35);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-darker);
    color: var(--text-main);
    font-family: var(--font-sans);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Particle Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

/* Ambient Backdrop Glow Blobs for artistic aesthetic */
.glow-blob {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.12;
    mix-blend-mode: screen;
    filter: blur(120px);
    animation: floatBlob 25s infinite alternate ease-in-out;
    will-change: transform;
}

.glow-blob-1 {
    top: 10%;
    left: -100px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 80%);
}

.glow-blob-2 {
    top: 45%;
    right: -150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
    width: 600px;
    height: 600px;
    animation-delay: -7s;
    animation-duration: 30s;
}

.glow-blob-3 {
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
    width: 550px;
    height: 550px;
    animation-delay: -14s;
    animation-duration: 28s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.1) rotate(45deg); }
    100% { transform: translate(-40px, 50px) scale(0.9) rotate(90deg); }
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.highlight {
    color: var(--accent);
    font-weight: 700;
    text-shadow: 0 0 12px var(--accent-glow);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-white-primary {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow), 0 0 15px var(--accent-glow);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   NAVIGATION BAR - FLOATING HIGH-TECH PILL
   ========================================================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    padding: 12px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    top: 10px;
    padding: 8px 0;
    background: rgba(6, 9, 19, 0.9);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo:hover .logo-icon {
    background: rgba(255, 94, 126, 0.08);
    border-color: rgba(255, 94, 126, 0.35);
    box-shadow: 0 0 15px rgba(255, 94, 126, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.logo-svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: scale(1.1) rotate(-8deg);
}

.logo-text {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.75px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.logo-text .dev-ext {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.logo:hover .logo-text .dev-ext {
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
}
.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}
.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(255, 94, 126, 0.08);
    border-color: rgba(255, 94, 126, 0.3);
    box-shadow: 0 0 15px rgba(255, 94, 126, 0.15);
    text-shadow: 0 0 8px var(--accent-glow);
}

.nav-toggle {
    display: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: row-reverse; /* Hiyerarşiyi sola, metni sağa alarak asimetrik düzen kurduk */
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 30px 50px 30px;
    gap: 70px;
    position: relative;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 94, 126, 0.08);
    border: 1px solid rgba(255, 94, 126, 0.35);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Hero Code Visual Card */
.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 94, 126, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.card-header {
    background: rgba(10, 8, 20, 0.6);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.card-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 10px;
}

.card-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
}

/* Custom Highlight colors */
.keyword { color: #f72585; }
.function { color: #4cc9f0; }
.type { color: #7209b7; color: var(--accent); }
.string { color: #ffbe0b; }
.comment { color: #6c757d; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
    padding: 100px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
    text-shadow: 0 0 12px var(--accent-glow);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    margin: 12px auto 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr; /* İstatistikleri sola, hikayeyi sağa alarak asimetrik düzen kurduk */
    gap: 60px;
    align-items: center;
}

.about-info h3 {
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 20px;
}

.about-info p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.about-feature-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}
.about-feature-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.about-feature-item i {
    font-size: 1.8rem;
    margin-top: 3px;
}

.about-feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.about-feature-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dikey tek sıradan modern 2x2 kare yerleşime geçtik */
    gap: 20px;
}
.about-stats .stat-card:last-child {
    grid-column: span 2;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 245, 212, 0.1);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 15px var(--accent-glow);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   GAMES & PROJECTS SECTION
   ========================================================================== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütunlu temel portfolyo ızgarası */
    gap: 35px;
}

/* ÖNE ÇIKAN BAŞYAPIT OYUN İÇİN ASİMETRİK GENİŞ YATAY KART DÜZENİ */
.games-grid .game-card:first-child {
    grid-column: span 2;
    flex-direction: row;
    min-height: 380px;
    background: linear-gradient(135deg, rgba(255, 94, 126, 0.05) 0%, rgba(167, 139, 250, 0.03) 100%);
    border-color: rgba(255, 94, 126, 0.3);
    box-shadow: 0 15px 35px rgba(255, 94, 126, 0.08);
}

.games-grid .game-card:first-child .game-image {
    flex: 1.2;
    height: 100%;
}

.games-grid .game-card:first-child .game-image img {
    height: 100%;
}

.games-grid .game-card:first-child .game-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    animation: cardFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.game-card.hidden {
    display: none !important;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.game-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 20, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-links {
    display: flex;
    gap: 15px;
}

.game-link-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}
.game-link-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 0 15px var(--accent);
}

.game-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-details {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.game-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.game-tech {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.game-tech span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 sütunlu modern gösterge paneli */
    gap: 40px;
}

.skills-category {
    background: linear-gradient(135deg, rgba(22, 19, 44, 0.4) 0%, rgba(10, 8, 20, 0.4) 100%);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}
.skills-category:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px var(--primary-glow);
    transform: translateY(-5px);
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.skill-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* ==========================================================================
   INTERACTIVE RETRO CONSOLE
   ========================================================================== */
.console-section {
    text-align: center;
}

.console-intro {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
}

.console-wrapper {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.console-body {
    background: #0d0a1b;
    border: 6px solid #1a1435;
    border-radius: 24px;
    padding: 25px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.5);
    border-bottom-width: 12px;
}

.console-screen-area {
    margin-bottom: 25px;
}

.console-screen-border {
    background: #000000;
    border: 4px solid #0f0e1a;
    border-radius: 12px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.console-screen-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 94, 126, 0.08) 0%, transparent 80%);
    pointer-events: none;
    z-index: 2;
}

#console-screen {
    width: 100%;
    height: auto;
    background: #05050d;
    display: block;
    border-radius: 4px;
}

.console-overlay-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 13, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    z-index: 5;
    transition: var(--transition-smooth);
}

.console-overlay-ui h3 {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    color: var(--accent);
    letter-spacing: 2px;
}

.controls-guide {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.console-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

/* D-PAD Buttons */
.d-pad {
    position: relative;
    width: 120px;
    height: 120px;
}

.d-btn {
    position: absolute;
    width: 38px;
    height: 38px;
    background: #1a1435;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    box-shadow: 0 4px 0 #07050f;
    transition: var(--transition-fast);
    user-select: none;
}
.d-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #07050f;
}

.d-btn.up { top: 0; left: 41px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.d-btn.left { top: 41px; left: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.d-btn.right { top: 41px; right: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.d-btn.down { bottom: 0; left: 41px; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 25px;
}

.act-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.act-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.a-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 0 rgba(255, 94, 126, 0.4);
    transition: var(--transition-fast);
    user-select: none;
}
.a-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(255, 94, 126, 0.4);
}

.b-btn {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    color: #000000;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 0 rgba(255, 209, 102, 0.4);
    transition: var(--transition-fast);
    user-select: none;
}
.b-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(255, 209, 102, 0.4);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid .contact-card {
    width: 100%;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 1rem;
    margin-bottom: 35px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}
.info-item i {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 94, 126, 0.08);
    border: 1px solid rgba(255, 94, 126, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-glow));
    transition: var(--transition-smooth);
}

.info-item:hover i {
    background: var(--accent);
    color: #0b0914;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.05);
}

.info-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
}

.info-item a, .info-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}
.social-btn:hover {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-3px);
}

/* Form Styling */
.form-card form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-group input, .form-group textarea {
    background: rgba(10, 8, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 20px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(10, 8, 20, 0.8);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
    padding: 40px 30px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-container p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-container i {
    color: var(--primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.open {
        left: 0;
    }
    
    .hero-section {
        flex-direction: column-reverse;
        padding-top: 140px;
        text-align: center;
        gap: 40px;
    }
    
    .hero-subtitle {
        margin: 0 auto 35px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        margin-top: 20px;
        grid-template-columns: 1fr 1fr;
    }

    .skills-grid, .resume-timeline-container {
        grid-template-columns: 1fr;
    }

    .resume-timeline-container .resume-column:first-child,
    .resume-timeline-container .resume-column:last-child {
        order: unset; /* Mobil ekranlarda sıralamayı sıfırla */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .console-body {
        padding: 15px;
    }
    
    .d-pad {
        width: 100px;
        height: 100px;
    }
    
    .d-btn {
        width: 32px;
        height: 32px;
    }
    
    .d-btn.up { left: 34px; }
    .d-btn.left { top: 34px; }
    .d-btn.right { top: 34px; }
    .d-btn.down { bottom: 0; left: 34px; }
    
    .a-btn, .b-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   RESUME & TIMELINE SECTION
   ========================================================================== */
.resume-section {
    position: relative;
}

.resume-timeline-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 80px;
}

.resume-timeline-container .resume-column:first-child {
    order: 2; /* Deneyimi sağa aldık */
}

.resume-timeline-container .resume-column:last-child {
    order: 1; /* Eğitimi sola aldık - Düzeni tersine çevirdik */
}

.resume-column {
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    display: inline-flex;
}

.column-title.text-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    border: 2px solid var(--bg-darker);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.3);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 22px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}
.timeline-content:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: -0.2px;
}

.timeline-content h5 {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Certificates Sub-Section */
.certificates-section {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.cert-card.hidden {
    display: none !important;
}

.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.cert-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 94, 126, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cert-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.cert-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cert-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
}

.cert-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
    flex: 1;
}

/* Download CV Area */
.download-cv-area {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.download-cv-box {
    background: linear-gradient(135deg, rgba(22, 19, 44, 0.8) 0%, rgba(10, 8, 20, 0.8) 100%);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 15px 35px var(--primary-glow);
    backdrop-filter: blur(15px);
}

.download-cv-box h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.download-cv-box p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive updates for Resume */
@media (max-width: 992px) {
    .resume-timeline-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .games-grid .game-card:first-child {
        grid-column: span 2;
    }
}
/* ==========================================================================
   INTERACTIVE GAME ENGINE WORKSPACE (HERO SECTION)
   ========================================================================== */
.unity-titlebar {
    background: #161421 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px !important;
    border-bottom: 1px solid rgba(110, 173, 188, 0.16) !important;
}

.unity-header-left {
    display: flex;
    align-items: center;
}

.unity-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #a6a0b9 !important;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.unity-title i {
    color: #ffffff;
    font-size: 0.8rem;
    text-shadow: 0 0 5px rgba(255,255,255,0.4);
}

.unity-play-controls {
    display: flex;
    gap: 3px;
    margin-left: auto;
    margin-right: auto;
}

.unity-play-controls button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 26px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.unity-play-controls button:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.unity-play-controls button.active {
    background: rgba(110, 173, 188, 0.18);
    border-color: var(--primary);
    color: var(--primary);
    text-shadow: 0 0 6px var(--primary-glow);
    box-shadow: 0 0 8px rgba(110, 173, 188, 0.15);
}

.unity-header-right {
    display: flex;
    align-items: center;
}

.unity-platform-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.unity-platform-badge .dx-tag {
    color: var(--secondary);
}

.engine-workspace {
    padding: 0 !important;
    display: grid;
    grid-template-columns: 155px 1fr;
    background: #0d0c14;
    min-height: 310px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    font-family: var(--font-sans);
}

/* Sidebar Panel: Hierarchy Explorer & Tabs Selector */
.editor-sidebar {
    background: #0f0d1a;
    border-right: 1px solid rgba(110, 173, 188, 0.12);
    display: flex;
    flex-direction: column;
}

.panel-header-tabs {
    background: #14121f;
    display: flex;
    border-bottom: 1px solid rgba(110, 173, 188, 0.1);
}

.panel-header-tabs .tab {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 6px 12px;
    cursor: pointer;
    border-right: 1px solid rgba(110, 173, 188, 0.08);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.panel-header-tabs .tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

.panel-header-tabs .tab.active {
    background: #0d0c14;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -1px;
}

.hierarchy-tree {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.tree-item {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.tree-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.tree-item.active i {
    color: var(--primary);
}

.tree-item.selected {
    background: rgba(110, 173, 188, 0.12);
    color: var(--accent);
    border-left: 2px solid var(--accent);
    font-weight: 600;
}

.tree-item.root-node {
    color: #ffffff;
    font-weight: 600;
}

.tree-item.root-node i {
    color: var(--secondary);
}

.tree-item.indent-1 { margin-left: 10px; }
.tree-item.indent-2 { margin-left: 20px; }

.badge-running {
    background: rgba(159, 203, 173, 0.15);
    border: 1px solid rgba(159, 203, 173, 0.3);
    color: var(--secondary);
    font-size: 0.5rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: auto;
}

.pulse-dot-mini {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent);
    display: inline-block;
    margin-left: auto;
    animation: pulseMini 1.2s infinite;
}

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

/* Right Side: Viewport & Console Log */
.editor-viewport-area {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.viewport-canvas {
    background: #0b0a10;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Grid Mesh Background */
    background-image: 
        radial-gradient(circle, rgba(255, 94, 126, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(255, 94, 126, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 94, 126, 0.03) 1px, transparent 1px);
    background-size: 12px 12px, 24px 24px, 24px 24px;
    background-position: center;
}

/* Floating Unity Toolbar inside scene view */
.editor-tools {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    background: rgba(13, 12, 20, 0.85);
    border: 1px solid rgba(110, 173, 188, 0.25);
    border-radius: 4px;
    padding: 3px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tool-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 26px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.tool-btn.active {
    background: rgba(110, 173, 188, 0.18);
    border: 1px solid rgba(110, 173, 188, 0.3);
    color: var(--accent);
    box-shadow: 0 0 6px rgba(110, 173, 188, 0.2);
}

/* Perspective viewport scene */
.scene-3d {
    perspective: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Volumetric Wireframe Cube */
.cube-3d {
    width: 64px;
    height: 64px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
}

.cube-face {
    position: absolute;
    width: 64px;
    height: 64px;
    background: rgba(110, 173, 188, 0.08);
    border: 1.5px solid rgba(110, 173, 188, 0.6);
    box-shadow: inset 0 0 10px rgba(110, 173, 188, 0.3);
    transition: var(--transition-smooth);
}

.cube-face.front  { transform: rotateY(0deg) translateZ(32px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(32px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(32px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(32px); }
.cube-face.top    { 
    transform: rotateX(90deg) translateZ(32px); 
    background: rgba(255, 94, 126, 0.12); 
    border-color: rgba(255, 94, 126, 0.65);
    box-shadow: inset 0 0 10px rgba(255, 94, 126, 0.3);
}
.cube-face.bottom { transform: rotateX(-90deg) translateZ(32px); }

/* Double size pulse scan loop */
.cube-3d::after {
    content: '';
    position: absolute;
    top: -8px; left: -8px;
    width: 80px; height: 80px;
    border: 1px solid rgba(255, 249, 210, 0.3);
    border-radius: 50%;
    transform: translateZ(0) rotateX(90deg);
    animation: radarScan 3s linear infinite;
    pointer-events: none;
}

@keyframes spinCube {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

@keyframes radarScan {
    0% { transform: translateZ(-32px) rotateX(90deg) scale(0.6); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateZ(32px) rotateX(90deg) scale(1.6); opacity: 0; }
}

/* Floating Telemetry Box inside Viewport */
.viewport-telemetry {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(13, 12, 20, 0.85);
    border: 1px solid rgba(110, 173, 188, 0.25);
    border-radius: 4px;
    padding: 5px 8px;
    pointer-events: none;
}

.telemetry-row {
    display: flex;
    gap: 8px;
    font-size: 0.55rem;
    font-family: var(--font-mono);
    font-weight: 700;
}

.telemetry-row .lbl {
    color: var(--text-muted);
}

.telemetry-row .val {
    font-weight: 800;
}

.telemetry-row .val.txt-primary { color: var(--primary); }
.telemetry-row .val.txt-secondary { color: var(--secondary); }
.telemetry-row .val.txt-accent { color: var(--accent); }

/* Debug Console Panel */
.console-header {
    border-top: 1px solid rgba(110, 173, 188, 0.12);
}

.console-logs {
    background: #08070b;
    height: 70px;
    padding: 8px 12px;
    overflow-y: hidden;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-line.success {
    color: var(--secondary);
}

.log-line.warning {
    color: var(--accent);
}

.log-line.error {
    color: #ff5f56;
}

/* ==========================================================================
   GAME DETAILS MODAL & CAROUSEL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 4, 9, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #050409;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    position: relative;
    overflow: hidden;
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(18, 16, 32, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-close-btn:hover {
    background: #ff5f56;
    border-color: #ff5f56;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 95, 86, 0.6);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    height: 100vh;
    width: 100vw;
}

@media (max-width: 992px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
        height: 100vh;
        overflow-y: auto;
    }
    .modal-content {
        overflow-y: auto;
    }
    .modal-media-area {
        height: 50vh !important;
        min-height: auto !important;
    }
    .modal-details-area {
        height: auto !important;
        padding: 30px 20px !important;
    }
}

.modal-media-area {
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Dynamic Ambient Blur pseudo-element */
.modal-media-area::after {
    content: '';
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background-image: var(--active-slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(1.8) brightness(0.4);
    z-index: 0;
    pointer-events: none;
    transition: background-image 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.85;
}

/* Technical HUD line */
.modal-media-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 32, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
}

.modal-carousel-container {
    width: 100%;
    height: 80%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 3;
}

.modal-carousel {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.carousel-slide img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-slide video {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 16, 32, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 212, 0.25);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-smooth);
}

.carousel-btn:hover {
    background: var(--accent);
    color: #050409;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 25px;
}

.next-btn {
    right: 25px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 40px;
    z-index: 5;
}

.dot-btn {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot-btn.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    width: 20px;
    border-radius: 3px;
}

.modal-details-area {
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow-y: auto;
    background: radial-gradient(350px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 94, 126, 0.08), transparent 85%), rgba(7, 5, 15, 0.96);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 94, 126, 0.15);
    z-index: 5;
    position: relative;
}

.modal-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.hud-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1.2px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent);
    animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.modal-game-tag {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-block;
}

.modal-game-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
}

.modal-game-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.modal-game-tech span {
    font-size: 0.7rem;
    background: rgba(255, 94, 126, 0.1);
    border: 1px solid rgba(255, 94, 126, 0.2);
    color: #fca5a5;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
}

.modal-game-tech span:hover {
    background: rgba(255, 94, 126, 0.18);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-1px);
}

/* INTERACTIVE HUD TABS STYLE */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.tab-btn.active::after {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.tab-contents {
    flex-grow: 1;
    margin-bottom: 25px;
    min-height: 140px;
}

.tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

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

.modal-game-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* FEATURES LIST STYLE */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list li i {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 3px;
    text-shadow: 0 0 6px var(--accent-glow);
}

/* STATS METRIC DASHBOARD */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-item {
    background: rgba(5, 4, 9, 0.3);
    border: 1px solid rgba(255, 94, 126, 0.15);
    padding: 15px 10px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

.stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-name {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* HIGH TECH SPECS GRID */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
    background: rgba(5, 4, 9, 0.5);
    border: 1px solid rgba(0, 245, 212, 0.2);
    padding: 14px;
    border-radius: 6px;
    position: relative;
}

.modal-specs-grid::before {
    content: '';
    position: absolute;
    top: -1px; left: 10px;
    width: 25px; height: 1px;
    background: var(--accent);
}

.spec-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #a29bfe;
    letter-spacing: 0.8px;
    font-family: var(--font-mono);
}

.spec-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

/* INTERACTIVE ACTIONS LAYOUT */
.modal-actions-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.modal-actions .modal-play-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 6px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: #050409 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.modal-actions .modal-play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

.modal-actions .modal-play-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: none;
    cursor: not-allowed;
}

/* Share/Copy link button styling */
.copy-project-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-project-btn:hover {
    background: rgba(255, 94, 126, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-2px);
}

/* Spinner Loader for dynamic Launcher */
.hud-btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: hudSpin 0.8s linear infinite;
    display: inline-block;
}

@keyframes hudSpin {
    to { transform: rotate(360deg); }
}

/* HUD System Toast alert notification */
.hud-toast {
    position: absolute;
    bottom: -60px;
    left: 35px;
    right: 35px;
    background: rgba(255, 249, 210, 0.08);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    color: var(--accent);
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.hud-toast.show {
    bottom: 25px;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   PORTFOLIO SUBSECTIONS
   ========================================================================== */
.subsection-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 94, 126, 0.15);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

.subsection-title {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.subsection-title i {
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================================
   ADDITIONAL RESPONSIVE FIXES & HARMONIZATION
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-section {
        gap: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column !important;
        padding-top: 140px;
        text-align: center;
        gap: 40px;
    }
    .scroll-indicator {
        display: none !important;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        margin-top: 20px;
    }
    .about-stats .stat-card:last-child {
        grid-column: span 1 !important;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    .games-grid .game-card:first-child {
        grid-column: span 1 !important;
        flex-direction: column !important;
        min-height: auto !important;
        background: var(--bg-card) !important;
        border-color: var(--border-color) !important;
        box-shadow: none !important;
    }
    .games-grid .game-card:first-child .game-image {
        flex: none !important;
        height: 220px !important;
    }
    .games-grid .game-card:first-child .game-image img {
        height: 100% !important;
    }
    .games-grid .game-card:first-child .game-details {
        flex: none !important;
        padding: 25px !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.3rem !important;
    }
    .editor-sidebar {
        display: none !important;
    }
    .engine-workspace {
        grid-template-columns: 1fr !important;
    }
    .about-stats {
        grid-template-columns: 1fr !important;
    }
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .games-grid .game-card:first-child {
        grid-column: span 1 !important;
    }
}
