/* ==========================================================
   METEHAN ŞANLI | SOFTWARE DEVELOPER PORTFOLIO
   Design System: Modern Dark Mode & Cyberpunk-Tech Aesthetic
   ========================================================== */

:root {
    --bg-dark: #07090e;
    --bg-surface: #0d121f;
    --bg-card: rgba(16, 23, 38, 0.72);
    --bg-card-hover: rgba(22, 33, 56, 0.85);
    
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.35);
    --primary-dark: #0284c7;

    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.35);

    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.3);

    --accent-cyan: #06b6d4;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(56, 189, 248, 0.3);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Enhanced Image Quality, Rendering & Anti-Aliasing */
img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-top: 76px; /* Fixed navbar height */
}

/* Background Cyber Canvas & Ambient Orbs */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.28;
    animation: orbFloat 14s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: 45%;
    left: -120px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
    bottom: -100px;
    right: 20%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(60px) scale(1.1); }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

.main-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
}

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

a:hover {
    color: #7dd3fc;
}

/* ==============================================
   HEADER & NAVBAR
   ============================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1200;
    transition: all var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(7, 9, 14, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(56, 189, 248, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px var(--primary-glow);
}

.logo-bracket {
    color: var(--primary);
}

.logo-tag {
    color: var(--accent-purple);
}

.status-indicator {
    width: 9px;
    height: 9px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-left: 0.4rem;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulseStatus 2s infinite ease-in-out;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.4rem 0.2rem;
}

.nav-link i {
    font-size: 0.85rem;
    color: var(--primary);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.btn-nav-contact {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    color: var(--primary) !important;
}

.btn-nav-contact:hover {
    background: var(--primary);
    color: #07090e !important;
    box-shadow: 0 0 16px var(--primary-glow);
}

.btn-nav-contact::after {
    display: none !important;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==============================================
   CYBERPUNK CARDS & BUTTONS
   ============================================== */
.cyber-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
    opacity: 0.6;
}

.cyber-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
    transform: translateY(-4px);
}

/* Cyber Buttons */
.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
}

.cyber-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #07090e;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.cyber-btn-primary:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, var(--primary) 100%);
    color: #000;
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.cyber-btn-accent {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}

.cyber-btn-accent:hover {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 6px 25px var(--accent-purple-glow);
    transform: translateY(-2px);
}

.cyber-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.cyber-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* ==============================================
   SECTION HEADERS
   ============================================== */
.section {
    padding: 6.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.8rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.3rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero-section {
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
    margin-bottom: 2.8rem;
}

.hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-badge-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cyber-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--primary);
}

.chip-secondary {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    color: #c084fc;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.2rem;
}

.title-sub {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.title-main {
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

.title-role {
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-family: var(--font-mono);
    color: #e2e8f0;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.terminal-prefix {
    color: var(--primary);
}

.typewriter-text {
    color: var(--primary);
    font-weight: 700;
}

.cursor {
    color: var(--primary);
    animation: blinkCursor 0.9s infinite;
}

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

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2.2rem;
    line-height: 1.7;
    text-align: left;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 0;
}

/* ==============================================
   HERO RIGHT COLUMN: AVATAR & NEON RING & SOCIAL
   ============================================== */
.hero-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-avatar-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
}

/* SVG Dairesel Neon Çizgi (Adım 2) */
.hero-avatar-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    transform: rotate(-90deg);
}

.hero-circle-track {
    fill: none;
    stroke: rgba(56, 189, 248, 0.12);
    stroke-width: 3px;
}

.hero-circle-neon {
    fill: none;
    stroke: url(#heroNeonGrad);
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-dasharray: 817;
    stroke-dashoffset: 817;
    transform-origin: 140px 140px;
    /* Adım 2: 0.9s'de başlar, 1.2s'de daireyi çizer, sonra ambient glow döngüsüne geçer */
    animation: drawNeonRing 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards,
               spinNeonAmbient 22s linear 2.1s infinite;
}

@keyframes drawNeonRing {
    0% {
        stroke-dashoffset: 817;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes spinNeonAmbient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Merkez Profil Fotoğrafı (Adım 3 - Fade-In) */
.hero-avatar-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.22), inset 0 0 25px rgba(0, 0, 0, 0.8);
    opacity: 0;
    /* Adım 3: Daire çizildikten sonra 2.0s'de fade in ile belirir */
    animation: avatarPhotoFadeIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes avatarPhotoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.hero-avatar-card:hover .hero-avatar-img {
    transform: scale(1.06);
}

.hero-avatar-card:hover .hero-avatar-frame {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.45), inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.hero-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(16, 23, 38, 0.95), rgba(30, 41, 59, 0.95));
}

.hero-avatar-scanline {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(56, 189, 248, 0.12) 100%);
    pointer-events: none;
}

/* Sosyal Medya İkonları (Adım 4 - Sıralı Belirme) */
.hero-social-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 23, 38, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    /* Adım 4: Fotoğraftan sonra 2.7s + mikro gecikmelerle sırayla belirir */
    animation: heroSocialPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(2.7s + var(--social-delay, 0) * 0.12s) forwards;
}

@keyframes heroSocialPopIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.6);
    }
    70% {
        transform: translateY(-4px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-social-btn:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.15);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    transform: translateY(-4px);
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-left-col {
        align-items: center;
        text-align: center;
    }
    .hero-badge-wrapper {
        justify-content: center;
    }
    .hero-title {
        align-items: center;
        text-align: center;
    }
    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-avatar-wrapper {
        width: 250px;
        height: 250px;
    }
    .hero-avatar-frame {
        width: 196px;
        height: 196px;
    }
}


/* ==============================================
   HERO INFINITE TICKER SLIDER
   ============================================== */
.hero-ticker-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3.5rem;
    overflow: hidden;
    position: relative;
    padding: 0.6rem 0;
    cursor: default;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: infiniteTicker 35s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.hero-ticker-container:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-items {
    display: flex;
    gap: 1.25rem;
    padding-right: 1.25rem;
    flex-shrink: 0;
}

.stat-card {
    background: rgba(16, 23, 38, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.35rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-fast);
    min-width: 220px;
    max-width: 260px;
    flex-shrink: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(22, 33, 56, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.2);
    transform: translateY(-3px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.stat-icon {
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.75;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.stat-card:hover .stat-icon {
    opacity: 1;
    color: #38bdf8;
    transform: scale(1.15);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    white-space: normal;
}

@keyframes infiniteTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.scroll-down-indicator {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    animation: bounceDown 2s infinite ease-in-out;
}

.scroll-down-indicator:hover {
    color: var(--primary);
}

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

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: stretch;
}

.terminal-card {
    display: flex;
    flex-direction: column;
}

.terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 10, 18, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.8rem 1.2rem;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.terminal-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-code {
    background: rgba(4, 7, 13, 0.75);
    padding: 1.4rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.65;
    border-bottom: 1px solid var(--border-subtle);
}

.tok-kw { color: #f43f5e; font-weight: 700; }
.tok-class { color: #38bdf8; font-weight: 700; }
.tok-prop { color: #e2e8f0; }
.tok-str { color: #a7f3d0; }
.tok-fn { color: #c084fc; }
.tok-comment { color: #64748b; font-style: italic; }

.indent-1 {
    padding-left: 1.5rem;
}

.bio-text-box {
    padding: 1.6rem;
    flex: 1;
}

.bio-content {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-details-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.info-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.highlight-link {
    color: var(--primary);
    word-break: break-all;
}

.cyber-callout {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.5rem;
    color: #c084fc;
    margin-top: 0.1rem;
}

.callout-body h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}

.callout-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==============================================
   SKILLS SECTION
   ============================================== */
.category-heading {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.category-heading i {
    color: var(--primary);
}

.skills-grid,
.skills-grid-design {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.4rem;
    width: 100%;
}

/* Desktop: Max 4 cards per row, incomplete last row centered */
@media (min-width: 1025px) {
    .skills-grid .skill-card,
    .skills-grid-design .skill-card {
        flex: 0 0 calc((100% - (3 * 1.4rem)) / 4);
        max-width: calc((100% - (3 * 1.4rem)) / 4);
        width: calc((100% - (3 * 1.4rem)) / 4);
        box-sizing: border-box;
    }
}

/* Tablet: 2 or 3 cards per row, centered */
@media (min-width: 681px) and (max-width: 1024px) {
    .skills-grid .skill-card,
    .skills-grid-design .skill-card {
        flex: 0 0 calc((100% - (2 * 1.2rem)) / 3);
        max-width: calc((100% - (2 * 1.2rem)) / 3);
        width: calc((100% - (2 * 1.2rem)) / 3);
        box-sizing: border-box;
    }
}

/* Small Tablet / Large Mobile: 2 cards centered */
@media (min-width: 501px) and (max-width: 680px) {
    .skills-grid .skill-card,
    .skills-grid-design .skill-card {
        flex: 0 0 calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
        width: calc((100% - 1rem) / 2);
        box-sizing: border-box;
    }
}

/* Mobile: 1 card full width */
@media (max-width: 500px) {
    .skills-grid .skill-card,
    .skills-grid-design .skill-card {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

.skill-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 270px;
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.06);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:hover {
    border-color: var(--skill-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
}

.skill-icon-wrap {
    font-size: 2.2rem;
    transition: transform var(--transition-fast);
}

.skill-card:hover .skill-icon-wrap {
    transform: scale(1.15) rotate(4deg);
}

.skill-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.skill-title {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.skill-category-tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.skill-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1 1 auto;
    margin-bottom: 1.2rem;
}

.skill-meter {
    margin-top: auto;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.skill-meter-glow {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    box-shadow: 0 0 10px currentColor;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card.visible .skill-meter-glow {
    width: var(--skill-progress, 80%);
}

/* ==============================================
   ERASMUS+ SECTION (erasmus-havaalani.jpg, gazete.jpg)
   ============================================== */
.erasmus-hero-card {
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.erasmus-banner-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 52vh;
    overflow: hidden;
    background: #07090e;
}

.erasmus-banner-wrapper.btn-view-image {
    cursor: pointer;
}

.erasmus-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(103%) brightness(101%);
}

.erasmus-hero-card:hover .erasmus-banner-img,
.erasmus-banner-wrapper:hover .erasmus-banner-img {
    transform: scale(1.04) translateZ(0);
    filter: contrast(108%) brightness(105%);
}

.banner-zoom-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-mono);
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.25);
    z-index: 5;
}

.erasmus-banner-wrapper:hover .banner-zoom-overlay,
.erasmus-banner-wrapper:focus .banner-zoom-overlay {
    opacity: 1;
    transform: translateY(0);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2rem 1.8rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 14, 0.95) 100%);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.banner-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
}

.banner-caption-title {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.erasmus-body {
    padding: 2.2rem;
}

.erasmus-lead-text {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.erasmus-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-item {
    background: rgba(7, 10, 18, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.h-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.h-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.h-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* German Press Card Feature */
.press-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(16, 23, 38, 0.85) 0%, rgba(29, 20, 48, 0.75) 100%);
}

.press-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.press-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
}

.press-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.press-image-preview {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    aspect-ratio: 4 / 3;
    background: #07090e;
}

.press-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(104%) brightness(102%);
}

.press-image-preview:hover .press-thumbnail {
    transform: scale(1.05) translateZ(0);
    filter: contrast(108%) brightness(104%);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.preview-overlay i {
    font-size: 1.6rem;
    color: var(--primary);
}

.press-image-preview:hover .preview-overlay,
.edu-image-wrapper:hover .preview-overlay,
.featured-img-container:hover .preview-overlay {
    opacity: 1;
}

/* ==============================================
   EDUCATION SECTION (okul.jpg)
   ============================================== */
.education-card {
    padding: 2rem;
}

.edu-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.2rem;
    align-items: center;
}

.edu-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 10;
    cursor: pointer;
    background: #07090e;
}

.edu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(103%) brightness(101%);
}

.edu-image-wrapper:hover .edu-img {
    transform: scale(1.05) translateZ(0);
    filter: contrast(106%) brightness(103%);
}

.edu-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.edu-info {
    display: flex;
    flex-direction: column;
}

.edu-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    margin-bottom: 0.6rem;
}

.edu-school-name {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.edu-department {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.edu-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.courses-title {
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.courses-title i {
    color: var(--accent-purple);
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.course-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.course-pill i {
    color: var(--accent-green);
    font-size: 0.7rem;
}

/* ==============================================
   PROJECTS & PRESENTATIONS (okul-etkinlik.jpg)
   ============================================== */
.featured-project-card {
    padding: 2rem;
    margin-bottom: 2rem;
    border-color: rgba(56, 189, 248, 0.25);
}

.featured-proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    align-items: center;
}

.featured-img-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    background: #07090e;
}

.featured-proj-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    filter: contrast(103%) brightness(101%);
}

.featured-img-container:hover .featured-proj-img {
    transform: scale(1.05) translateZ(0);
    filter: contrast(106%) brightness(103%);
}

.project-tag-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.proj-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.proj-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 1.6rem;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.proj-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

/* Mini Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-mini-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
}

.proj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.proj-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.badge-mini {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.proj-title-mini {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.proj-desc-mini {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.2rem;
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
}

.contact-info-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
}

.contact-info-title {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.contact-info-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Distinct Email Box */
.email-highlight-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.1);
}

.email-icon {
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.email-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.email-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.email-address {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    word-break: break-all;
}

.email-address:hover {
    color: var(--primary);
}

.btn-copy-email {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-copy-email:hover {
    background: var(--primary);
    color: #07090e;
    border-color: var(--primary);
}

.contact-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.c-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.c-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.text-green {
    color: var(--accent-green) !important;
}

.contact-social-strip {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.c-social-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.c-social-btn:hover {
    background: var(--primary);
    color: #07090e;
    border-color: var(--primary);
    box-shadow: 0 4px 16px var(--primary-glow);
    transform: translateY(-3px);
}

/* Contact Form Card */
.contact-form-card {
    display: flex;
    flex-direction: column;
}

.cyber-form {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.cyber-input {
    width: 100%;
    background: rgba(7, 10, 18, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.cyber-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(7, 10, 18, 0.9);
}

.cyber-textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-submit-full {
    width: 100%;
    padding: 0.95rem;
    margin-top: 0.5rem;
}

.alert-box {
    margin: 1.2rem 1.8rem 0;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
    background: #04060a;
    border-top: 1px solid var(--border-subtle);
    padding: 4.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-top: 0.9rem;
    max-width: 380px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    color: #fff;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

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

.footer-contact-item a {
    color: var(--text-muted);
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary);
    color: #04060a;
    border-color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.8rem;
}

.footer-bottom-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.server-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

/* ==============================================
   LIGHTBOX MODAL & TOAST
   ============================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.modal-content {
    background: #0d121f;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #07090e;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.modal-title {
    font-size: 0.95rem;
    font-family: var(--font-mono);
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(14, 20, 36, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.16), inset 0 0 10px rgba(168, 85, 247, 0.12);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.modal-date-badge i {
    color: var(--accent-purple);
}

.modal-date-badge-mobile {
    display: none;
    margin-top: 0.8rem;
}

.modal-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    max-height: calc(88vh - 70px);
}

.modal-image-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.modal-info-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.modal-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-sm);
    object-fit: contain;
    image-rendering: auto;
    filter: contrast(103%) brightness(101%);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.modal-caption {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    max-width: 760px;
}

@media (max-width: 640px) {
    #modal-date-badge {
        display: none !important;
    }
    .modal-date-badge-mobile {
        display: inline-flex;
    }
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #0d121f;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.3rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.92rem;
    pointer-events: auto;
    animation: toastSlideIn 0.35s ease;
    max-width: 380px;
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast.toast-success i {
    color: var(--accent-green);
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.5);
}

.toast.toast-error i {
    color: #ef4444;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 23, 38, 0.9);
    border: 1px solid var(--border-subtle);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary);
    color: #07090e;
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    transform: translateY(-3px);
}

/* ==============================================
   RESPONSIVE DESIGN (Media Queries)
   ============================================== */
@media (max-width: 1024px) {
    .about-grid,
    .press-card,
    .edu-grid,
    .featured-proj-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .erasmus-highlights-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(7, 9, 14, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 1.05rem;
        width: 100%;
    }

    .btn-nav-contact {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .stat-card {
        min-width: 195px;
        padding: 0.9rem 1.15rem;
    }

    .stat-num {
        font-size: 1.15rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==============================================
   SCROLL REVEAL & HERO ENTRANCE (INTERSECTION OBSERVER)
   ============================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(70px);
    filter: blur(3px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Hero Section Entrance Stagger */
@keyframes heroItemEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-fade-item {
    opacity: 0;
    animation: heroItemEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform, filter;
}

.hero-fade-1 { animation-delay: 0.08s; }
.hero-fade-2 { animation-delay: 0.16s; }
.hero-fade-3 { animation-delay: 0.24s; }
.hero-fade-4 { animation-delay: 0.32s; }
.hero-fade-5 { animation-delay: 0.40s; }
.hero-fade-6 { animation-delay: 0.48s; }
.hero-fade-7 { animation-delay: 0.56s; }

/* Grid Stagger Delays */
.skills-grid .reveal-up:nth-child(4n+1) { transition-delay: 0ms; }
.skills-grid .reveal-up:nth-child(4n+2) { transition-delay: 80ms; }
.skills-grid .reveal-up:nth-child(4n+3) { transition-delay: 160ms; }
.skills-grid .reveal-up:nth-child(4n+4) { transition-delay: 240ms; }

.projects-grid .reveal-up:nth-child(3n+1) { transition-delay: 0ms; }
.projects-grid .reveal-up:nth-child(3n+2) { transition-delay: 80ms; }
.projects-grid .reveal-up:nth-child(3n+3) { transition-delay: 160ms; }

.erasmus-highlights-grid .reveal-up:nth-child(2n+1) { transition-delay: 0ms; }
.erasmus-highlights-grid .reveal-up:nth-child(2n+2) { transition-delay: 100ms; }

/* Refined Card Hover Effects */
.cyber-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(56, 189, 248, 0.15),
                0 0 35px rgba(168, 85, 247, 0.08);
}

/* Active Nav Link Cyan/Purple Glow Accent */
.nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.nav-link.active i {
    color: var(--accent-purple) !important;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.7));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .hero-fade-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
    .cyber-card:hover {
        transform: none !important;
    }
    .skill-meter-glow {
        transition: none !important;
        width: var(--skill-progress, 80%) !important;
    }
    .hero-circle-neon {
        stroke-dashoffset: 0 !important;
        animation: none !important;
        opacity: 1 !important;
    }
    .hero-avatar-frame,
    .hero-social-btn {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}

