/* ===== CSS Variables ===== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #666666;
    --accent-red: #ff0033;
    --accent-red-glow: rgba(255, 0, 51, 0.5);
    --border-color: #222222;
    --card-bg: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    --shadow-color: rgba(0, 0, 0, 0.5);

    --font-display: 'Bebas Neue', cursive;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Light Theme - Premium Warm Palette */
[data-theme="light"] {
    --bg-primary: #faf8f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0ebe4;
    --text-primary: #2d2a26;
    --text-secondary: #5a5651;
    --text-muted: #8a857e;
    --accent-red: #d4364a;
    --accent-red-glow: rgba(212, 54, 74, 0.25);
    --border-color: #e5e0d8;
    --card-bg: linear-gradient(145deg, #ffffff, #f8f5f0);
    --shadow-color: rgba(45, 42, 38, 0.08);
}

/* Header Controls Container */
.header-controls {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle:hover {
    border-color: var(--accent-red);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    transition: all var(--transition-fast);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Language Toggle Button */
.lang-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px var(--shadow-color);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.lang-toggle:hover {
    border-color: var(--accent-red);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

/* Mobile positioning adjustments for buttons */
@media (max-width: 768px) {
    .header-controls {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .theme-toggle,
    .lang-toggle,
    .cv-toggle {
        width: 45px;
        height: 45px;
    }
}

/* Smooth transition for theme change */
body,
body * {
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Light theme specific overrides */
[data-theme="light"] .glitch-overlay {
    opacity: 0.05;
    background: repeating-linear-gradient(0deg,
            rgba(45, 42, 38, 0.03) 0px,
            rgba(45, 42, 38, 0.03) 1px,
            transparent 1px,
            transparent 2px);
}

[data-theme="light"] .hero-bg-text {
    color: rgba(212, 54, 74, 0.03);
}

[data-theme="light"] .warning-banner {
    background: linear-gradient(90deg, var(--accent-red), #e85d6f);
}

[data-theme="light"] .hero-section {
    background: radial-gradient(ellipse at center, #fff 0%, var(--bg-primary) 70%);
}

[data-theme="light"] .coverflow-card .card-front,
[data-theme="light"] .coverflow-card .card-back {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px rgba(45, 42, 38, 0.1);
}

[data-theme="light"] .coverflow-card .card-back {
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px var(--accent-red-glow);
}

[data-theme="light"] .project-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(45, 42, 38, 0.06);
}

[data-theme="light"] .project-card:hover {
    box-shadow: 0 8px 30px rgba(45, 42, 38, 0.12);
}

[data-theme="light"] .reasons-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #f5f0e8 100%);
}

[data-theme="light"] .reasons-bg.state-default {
    background: radial-gradient(circle at center, #fff 0%, var(--bg-primary) 100%);
}

[data-theme="light"] .reasons-bg.state-default::before {
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(212, 54, 74, 0.15) 100%, transparent),
        radial-gradient(2px 2px at 30% 50%, rgba(212, 54, 74, 0.1) 100%, transparent),
        radial-gradient(2px 2px at 50% 80%, rgba(212, 54, 74, 0.12) 100%, transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(212, 54, 74, 0.08) 100%, transparent);
}

[data-theme="light"] .scroll-indicator {
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .scroll-indicator:hover {
    background: var(--accent-red);
}

[data-theme="light"] .proof-tab {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .proof-tab.active {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}

[data-theme="light"] .project-tags span {
    background: rgba(212, 54, 74, 0.1);
    color: var(--accent-red);
    border-color: rgba(212, 54, 74, 0.2);
}

[data-theme="light"] .cta-section {
    background: linear-gradient(180deg, #f5f0e8 0%, var(--bg-primary) 100%);
}

[data-theme="light"] .twin-modal {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .twin-bubble {
    background: linear-gradient(135deg, var(--accent-red), #e85d6f);
}

/* Final Section Light Mode */
[data-theme="light"] .final-section {
    background: radial-gradient(ellipse at center, #fff 0%, var(--bg-primary) 70%);
}

[data-theme="light"] .strike-text {
    color: var(--text-muted);
}

[data-theme="light"] .final-question h3 {
    color: var(--text-primary);
}

[data-theme="light"] .cta-no {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .cta-no:hover {
    border-color: var(--text-secondary);
    background: var(--bg-tertiary);
}

[data-theme="light"] .cta-yes {
    background: var(#00ff66);
    border-color: var(#00ff662a);
}

[data-theme="light"] .contact-reveal {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .social-footer {
    background: rgba(250, 248, 245, 0.95);
    border-color: var(--border-color);
}

[data-theme="light"] .social-footer a {
    color: var(--text-secondary);
}

[data-theme="light"] .social-footer a:hover {
    color: var(--accent-red);
}

[data-theme="light"] .escape-count {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* Contact Reveal Light Mode */
[data-theme="light"] .contact-reveal h3 {
    color: var(--text-primary);
}

[data-theme="light"] .contact-link {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(45, 42, 38, 0.08);
}

[data-theme="light"] .contact-link:hover {
    border-color: var(--accent-red);
    background: var(--bg-tertiary);
    box-shadow: 0 8px 25px rgba(45, 42, 38, 0.15);
}

[data-theme="light"] .contact-icon {
    color: var(--accent-red);
}

/* Fixed Socials Footer Light Mode */
[data-theme="light"] .fixed-socials {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(45, 42, 38, 0.1);
}

[data-theme="light"] .fixed-socials:hover {
    border-color: var(--accent-red);
    box-shadow: 0 4px 25px var(--accent-red-glow);
}

[data-theme="light"] .social-label {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="light"] .social-item {
    color: var(--text-secondary);
}

[data-theme="light"] .social-item:hover {
    color: var(--accent-red);
}

/* ===== Digital Twin Light Mode ===== */
[data-theme="light"] #twin-notification {
    background: #00ff66;
    color: #000;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.4);
}

[data-theme="light"] #twin-bubble {
    background: linear-gradient(135deg, var(--accent-red), #e85d6f);
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

[data-theme="light"] .bubble-pulse {
    background: var(--accent-red);
}

[data-theme="light"] #twin-modal {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--border-color);
    box-shadow: 0 10px 40px rgba(45, 42, 38, 0.2);
}

[data-theme="light"] .twin-header {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="light"] .twin-name {
    color: var(--text-primary);
}

[data-theme="light"] .twin-status {
    color: var(--text-secondary);
}

[data-theme="light"] #close-twin {
    color: var(--text-secondary);
}

[data-theme="light"] #close-twin:hover {
    color: var(--accent-red);
}

[data-theme="light"] .twin-body {
    background: var(--bg-secondary);
}

[data-theme="light"] .twin-message {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .user-message {
    background: var(--accent-red);
    color: #fff;
}

[data-theme="light"] .twin-footer {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="light"] .twin-opt {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .twin-opt:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(212, 54, 74, 0.05);
}

[data-theme="light"] .twin-input {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .twin-input::placeholder {
    color: var(--text-muted);
}

[data-theme="light"] .twin-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}

[data-theme="light"] .twin-send {
    background: var(--accent-red);
    color: #fff;
}

[data-theme="light"] .twin-send:hover {
    background: #c02d40;
}

[data-theme="light"] .typing span {
    background: var(--text-muted);
}

[data-theme="light"] .twin-social-btn {
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="light"] .twin-social-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

[data-theme="light"] .twin-social-divider span {
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

[data-theme="light"] .twin-blur-overlay {
    background: rgba(250, 248, 245, 0.7);
}


/* Mobile positioning */
@media (max-width: 768px) {
    .theme-toggle {
        top: 50px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Intro Video Overlay ===== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    /* Her şeyin üstünde */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.intro-start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20005;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8) 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-start-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.start-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
}

.play-icon-wrapper {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 0 30px var(--accent-red-glow);
}

.play-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--accent-red);
    border-radius: 50%;
    opacity: 0.5;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.start-btn:hover .play-icon-wrapper {
    background: var(--accent-red);
    transform: scale(1.1);
}

.start-btn span {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 5px;
    transition: all 0.4s ease;
}

.start-btn:hover span {
    color: var(--accent-red);
    letter-spacing: 8px;
}

.intro-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20001;
    display: flex;
    gap: 15px;
    transition: opacity 0.5s ease;
}

.intro-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-watermark {
    position: absolute;
    /* Masaüstü Tam Ekran Ayarı */
    bottom: 0px;
    right: 0px;
    z-index: 20002;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: var(--font-display);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.logo-rose {
    color: #ff3366;
    /* Rose color */
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-tv {
    background: #fff;
    color: #000 !important;
    padding: 2px 8px;
    font-size: 1.6rem;
    font-weight: 900;
    border-radius: 2px;
    line-height: 1;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
    animation: livePulse 1.5s infinite;
}

.live-indicator .text {
    color: #fff;
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.video-playing .video-watermark {
    opacity: 1;
}

/* Watermark adjustments for mobile */
@media (max-width: 800px) {
    .video-watermark {
        bottom: calc(50vh - 28.5vw);
        right: 5px;
        transform: scale(0.45);
        /* Mobilde biraz küçültelim */
        transform-origin: right bottom;
    }
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Masaüstünde tam ekran */
    background: #000;
}

.mute-button,
.skip-button {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile adjustments for Intro */
@media (max-width: 768px) {
    .start-btn span {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .play-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .play-icon-wrapper svg {
        width: 30px;
        height: 30px;
    }

    .intro-controls {
        bottom: 20px;
        right: 0;
        left: 0;
        transform: none;
        /* Masaüstünden gelen transformu sıfırla */
        justify-content: center;
        padding: 0 20px;
        width: 100%;
        gap: 10px;
    }

    .intro-video {
        object-fit: contain !important;
        /* Mobilde içeriğin kesilmemesi için contain korundu */
        background: #000;
    }

    .mute-button,
    .skip-button {
        padding: 10px 15px;
        font-size: 11px;
        letter-spacing: 1px;
        flex: 1;
        /* Butonların eşit genişlikte olması için */
        max-width: 160px;
        justify-content: center;
    }
}

.white-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 20002;
    transition: opacity 0.4s ease-out;
}

.white-flash.active {
    opacity: 1;
}

/* Scroll lock when intro is active */
body.intro-active {
    overflow: hidden !important;
    height: 100vh;
}

/* ===== Glitch Overlay ===== */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px);
    opacity: 0.3;
}

/* ===== Warning Banner ===== */
.warning-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--accent-red);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    animation: bannerPulse 2s ease-in-out infinite;
    letter-spacing: 1px;
}

@keyframes bannerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ===== Sections ===== */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    scroll-snap-align: start;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

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

/* ===== Hero Section ===== */
.hero-section {
    background: radial-gradient(ellipse at center, #1a1a1a 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.warning-tag {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 30px;
    animation: tagFlicker 3s ease-in-out infinite;
}

@keyframes tagFlicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.3;
    }

    94% {
        opacity: 1;
    }

    96% {
        opacity: 0.5;
    }

    97% {
        opacity: 1;
    }
}

.glitch-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 10rem);
    letter-spacing: 5px;
    position: relative;
    animation: glitchText 5s ease-in-out infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: var(--accent-red);
    animation: glitchBefore 3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translateX(-2px);
    opacity: 0.8;
}

.glitch-text::after {
    color: #00ffff;
    animation: glitchAfter 2s ease-in-out infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translateX(2px);
    opacity: 0.8;
}

@keyframes glitchText {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }
}

@keyframes glitchBefore {

    0%,
    100% {
        transform: translateX(-2px);
    }

    50% {
        transform: translateX(2px);
    }
}

@keyframes glitchAfter {

    0%,
    100% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-2px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 20px;
    font-weight: 300;
}

.scroll-indicator {
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
    padding: 6px 25px;
    border: 1.5px solid var(--accent-red);
    border-radius: 50px;
    background: transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    width: fit-content;
}

.scroll-indicator:hover {
    background: var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red-glow);
    transform: scale(1.05);
    animation: none;
}

.scroll-indicator:hover span,
.scroll-indicator:hover .scroll-arrow {
    color: white;
}

.scroll-indicator span {
    color: var(--accent-red);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11px;
}

.scroll-arrow {
    font-size: 16px;
    color: var(--accent-red);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.hero-bg-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: 20vw;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 20px;
    pointer-events: none;
    white-space: nowrap;
}

/* ===== Reasons Section ===== */
.reasons-section {
    background: #050505;
    overflow: hidden;
    position: relative;
}

.reasons-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    pointer-events: none;
}

/* scanlines effect globally on reasons background */
.reasons-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.2) 0px,
            rgba(0, 0, 0, 0.2) 1px,
            transparent 1px,
            transparent 3px);
    z-index: 2;
    pointer-events: none;
}

/* State: Default / Retro Stars */
.reasons-bg.state-default {
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
}

.reasons-bg.state-default::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(2px 2px at 10% 20%, #fff 100%, transparent),
        radial-gradient(2px 2px at 30% 50%, #fff 100%, transparent),
        radial-gradient(2px 2px at 50% 80%, #fff 100%, transparent),
        radial-gradient(2px 2px at 80% 10%, #fff 100%, transparent),
        radial-gradient(2px 2px at 90% 40%, #fff 100%, transparent),
        radial-gradient(2px 2px at 20% 90%, #fff 100%, transparent),
        radial-gradient(2px 2px at 40% 30%, #fff 100%, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff 100%, transparent);
    background-size: 300px 300px;
    opacity: 0.3;
    animation: starsRotate 100s linear infinite;
}

@keyframes starsRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== Coverflow Container ===== */
.coverflow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.coverflow-wrapper {
    width: 100%;
    height: 350px;
    position: relative;
    perspective: 1000px;
    overflow: visible;
}

.coverflow-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Coverflow Card ===== */
.coverflow-card {
    position: absolute;
    width: 280px;
    height: 320px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coverflow-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.coverflow-card .card-front,
.coverflow-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--border-color);
}

.coverflow-card .card-back {
    border-color: var(--accent-red);
    transform: rotateY(180deg);
    box-shadow: 0 0 40px var(--accent-red-glow);
}

.coverflow-card.active .card-front {
    border-color: var(--accent-red);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.coverflow-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.coverflow-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.flip-hint {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: var(--accent-red);
    opacity: 0.7;
}

/* ===== Coverflow Arrows ===== */
.coverflow-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
}

.coverflow-arrow:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

/* ===== Coverflow Dots ===== */
.coverflow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.coverflow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.coverflow-dot:hover {
    background: var(--text-secondary);
}

.coverflow-dot.active {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.coverflow-dot.flipped {
    background: var(--accent-red);
}

/* ===== Progress ===== */
.cards-progress {
    margin-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 15px auto 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    transition: width var(--transition-medium);
}

/* ===== Proof Tabs ===== */
.proof-tabs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.proof-tab {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.proof-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width var(--transition-medium);
}

.proof-tab:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.proof-tab.active {
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.proof-tab.active::before {
    width: 100%;
}

/* ===== Proof Content ===== */
.proof-content {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease;
    min-height: 500px;
}

.proof-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
    min-height: 500px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===== Projects Section ===== */
.projects-section {
    background: var(--bg-primary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    /* Slightly rounded for better look */
    padding: 0;
    transition: all var(--transition-medium);
    cursor: pointer;
    backdrop-filter: blur(5px);
    overflow: hidden;
    height: fit-content;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.project-card.active {
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(255, 0, 51, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    transition: background 0.3s ease;
}

.project-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    flex-grow: 1;
    letter-spacing: 0.5px;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    width: 24px;
}

.project-card.active .project-icon {
    color: var(--accent-red);
}

.project-toggle {
    color: var(--text-secondary);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card.active .project-toggle {
    transform: rotate(45deg);
    color: var(--accent-red);
}

.project-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px 0 59px;
    /* Adjusted for new column gap and padding */
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease;
    opacity: 0;
}

.project-card.active .project-body {
    max-height: 500px;
    /* Large enough to fit content */
    padding: 0 20px 20px 59px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), padding 0.5s ease, opacity 0.4s ease 0.1s;
}

.project-visual {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 60px;
    z-index: 2;
}

.project-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--accent-red);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.project-card:hover .project-glow {
    opacity: 0.5;
}

.project-body p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Courier Prime', monospace;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    background: rgba(255, 0, 51, 0.05);
    color: var(--accent-red);
    padding: 6px 14px;
    border-radius: 0;
    /* Sharp corners */
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 51, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Final Section ===== */
.final-section {
    background: radial-gradient(ellipse at center, #1a0a0a 0%, var(--bg-primary) 70%);
}

.final-content {
    text-align: center;
    max-width: 800px;
}

.final-warning {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.final-message {
    margin-bottom: 50px;
}

.strike-text {
    font-size: 1.8rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 20px;
    line-height: 1.4;
}

.highlight-text {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

.red-text {
    color: var(--accent-red);
}

.final-question h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-no {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.cta-no:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.cta-yes {
    background: #00ff66;
    border-color: #00ff66;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.4);
}

.cta-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 102, 0.6);
}

.contact-reveal {
    margin-top: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    pointer-events: none;
}

.contact-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-reveal h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 24px;
}

.escape-count {
    position: absolute;
    bottom: 80px;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.7;
}

/* ===== Floating Elements ===== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-x {
    position: absolute;
    font-size: 100px;
    color: rgba(255, 0, 51, 0.03);
    font-weight: 900;
    animation: floatX 20s ease-in-out infinite;
}

.floating-x:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-x:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-x:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes floatX {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) rotate(10deg);
    }

    50% {
        transform: translate(0, -40px) rotate(0deg);
    }

    75% {
        transform: translate(-20px, -20px) rotate(-10deg);
    }
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .coverflow-card {
        width: 240px;
        height: 300px;
    }

    .coverflow-container {
        gap: 15px;
    }

    .section-header h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* ===== Global Mobile Reset ===== */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* ===== Sections ===== */
    .section {
        padding: 60px 20px;
        min-height: 100vh;
        min-height: 100dvh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    /* Reasons section - full screen */
    #reasons {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px 20px;
        overflow: hidden;
    }

    /* Projects section - scrollable content */
    #projects {
        min-height: auto;
        padding: 40px 15px;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }

    #projects .section-header {
        flex-shrink: 0;
    }

    #projects .proof-tabs {
        flex-shrink: 0;
    }

    #projects .proof-content {
        width: 100%;
        overflow-x: hidden;
    }

    #projects .projects-container {
        width: 100%;
        padding: 0;
    }

    #projects .project-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .section-header {
        margin-bottom: 30px;
        padding: 0;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        letter-spacing: 1px;
        word-break: break-word;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    /* ===== Hero ===== */
    .glitch-text {
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: 1px;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-top: 15px;
        padding: 0 20px;
    }

    .scroll-indicator {
        margin-top: 30px;
        padding: 12px 25px;
    }

    .scroll-indicator span {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .warning-banner {
        font-size: 10px;
        padding: 8px 10px;
        letter-spacing: 1px;
    }

    /* ===== Coverflow - Single Card Slider ===== */
    .coverflow-wrapper {
        position: relative;
        height: auto;
        min-height: 380px;
        padding: 20px 10px;
        width: 100%;
    }

    .coverflow-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 300px;
        padding: 0;
    }

    .coverflow-card {
        width: calc(100vw - 100px);
        max-width: 280px;
        height: 320px;
        position: absolute;
        opacity: 0 !important;
        pointer-events: none;
        transform: translateX(100%) !important;
        transition: opacity 0.3s ease;
    }

    .coverflow-card.active {
        position: relative;
        opacity: 1 !important;
        pointer-events: auto;
        transform: none !important;
    }

    .coverflow-card .card-front,
    .coverflow-card .card-back {
        padding: 25px 20px;
    }

    .card-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .coverflow-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .coverflow-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .flip-hint {
        font-size: 10px;
        bottom: 15px;
    }

    .coverflow-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        font-size: 20px;
        z-index: 20;
        background: rgba(0, 0, 0, 0.8);
    }

    .coverflow-arrow.prev-arrow,
    .coverflow-arrow:first-of-type {
        left: 5px;
    }

    .coverflow-arrow.next-arrow,
    .coverflow-arrow:last-of-type {
        right: 5px;
    }

    .coverflow-dots {
        margin-top: 20px;
        gap: 10px;
    }

    .coverflow-dot {
        width: 10px;
        height: 10px;
    }

    .cards-progress {
        margin-top: 15px;
        font-size: 0.85rem;
    }

    /* ===== Proof Tabs ===== */
    .proof-tabs {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        width: 100%;
    }

    .proof-tab {
        padding: 14px 20px;
        font-size: 0.85rem;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
    }

    .proof-content {
        min-height: auto;
        padding: 0;
    }

    /* ===== Projects ===== */
    .projects-container {
        gap: 15px;
        padding: 0;
        width: 100%;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
        width: 100%;
    }

    .project-card:hover {
        transform: none;
    }

    .project-visual {
        width: 60px;
        height: 60px;
    }

    .project-icon {
        font-size: 35px;
    }

    .project-info {
        width: 100%;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .project-tags {
        justify-content: center;
    }

    .project-tags span {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* ===== Final Section ===== */
    .final-content {
        padding: 0;
        width: 100%;
    }

    .final-warning {
        font-size: 11px;
        padding: 8px 15px;
        letter-spacing: 2px;
    }

    .strike-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    .highlight-text {
        font-size: 1.2rem;
        padding: 0 10px;
    }

    .final-question h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
    }

    .cta-btn {
        padding: 14px 25px;
        font-size: 0.85rem;
        width: 100%;
        max-width: none;
    }

    .contact-links {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
    }

    .contact-link {
        padding: 12px 15px;
        width: 100%;
        justify-content: center;
    }

    /* ===== Fixed Socials ===== */
    .fixed-socials {
        display: none !important;
        visibility: hidden !important;
    }

    /* ===== Digital Twin ===== */
    #twin-container {
        bottom: 70px;
        right: 15px;
        transition: opacity 0.3s ease;
    }

    #twin-bubble {
        width: 50px;
        height: 50px;
    }

    #twin-modal {
        position: fixed !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 75vh !important;
        border-radius: 20px 20px 0 0;
        transform-origin: bottom center;
        margin: 0;
    }

    #twin-modal.hidden {
        transform: translateY(100%);
        opacity: 0;
    }

    #twin-modal:not(.hidden) {
        transform: translateY(0);
        opacity: 1;
    }

    #twin-notification {
        width: 160px;
        font-size: 10px;
        padding: 8px 10px;
        bottom: 55px;
        right: -5px;
        line-height: 1.3;
    }

    /* ===== Easter Egg ===== */
    .easter-egg-content {
        padding: 25px 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }

    .easter-egg-content h2 {
        font-size: 1.3rem;
    }
}

/* ===== Small Mobile (480px) ===== */
@media (max-width: 480px) {
    .section {
        padding: 30px 15px;
    }

    .section-header h2 {
        font-size: clamp(1.3rem, 7vw, 1.6rem);
    }

    .glitch-text {
        font-size: clamp(1.5rem, 9vw, 2.5rem);
    }

    .coverflow-card {
        width: calc(100vw - 80px);
        max-width: 250px;
        height: 300px;
    }

    .coverflow-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .proof-tab {
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    .project-card {
        padding: 15px 12px;
    }

    .final-question h3 {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    #twin-container {
        bottom: 65px;
        right: 10px;
    }

    #twin-bubble {
        width: 45px;
        height: 45px;
    }

    #twin-modal {
        height: 75vh;
    }
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc0029;
}

/* ===== Selection ===== */
::selection {
    background: var(--accent-red);
    color: white;
}

/* ===== Fixed Socials ===== */
.fixed-socials {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.fixed-socials:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 30px var(--accent-red-glow);
}

.social-item {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-item:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

.social-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-right: 10px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    pointer-events: none;
    font-weight: 500;
}

/* ===== Digital Twin ===== */
#twin-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

/* Notification Bubble */
#twin-notification {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 250px;
    background: #00ff66;
    color: black;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.4);
    z-index: 2001;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: notificationPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 4s;
    /* Sayfa yüklendikten 2 saniye sonra çıksın */
}

.notification-arrow {
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #00ff66;
}

@keyframes notificationPop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#twin-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid #00ff66af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.726);
    transition: all var(--transition-medium);
    overflow: hidden;
    /* Resmin dışarı taşmaması için */
    padding: 0;
    animation: twinAttention 5s ease-in-out infinite;
}

#twin-bubble.pausing {
    animation: twinBreathing 3s ease-in-out infinite;
    /* Sallanma yerine nefes alma */
    border-color: #00ff66;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.6);
}

#twin-bubble.pausing #twin-avatar {
    filter: drop-shadow(0 0 5px rgba(0, 255, 102, 0.4));
}

#twin-bubble.pausing~.bubble-pulse,
#twin-bubble.pausing .bubble-pulse {
    background: #00ff66;
}

@keyframes twinAttention {

    0%,
    90%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    92% {
        transform: scale(1.15) rotate(15deg);
    }

    94% {
        transform: scale(1.15) rotate(-15deg);
    }

    96% {
        transform: scale(1.15) rotate(10deg);
    }

    98% {
        transform: scale(1.15) rotate(-10deg);
    }
}

@keyframes twinBreathing {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(0, 255, 102, 0.8);
    }
}

.bubble-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#twin-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Resmi en-boy oranını bozmadan sığdırır */
    border-radius: 50%;
}

#twin-bubble:hover {
    transform: scale(1.1) rotate(10deg);
}

.bubble-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-red);
    opacity: 0.5;
    z-index: -1;
    animation: bubblePulse 2s infinite;
}

@keyframes bubblePulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

#twin-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: translateY(0) scale(1);
    transform-origin: bottom right;
}

#twin-modal.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

.twin-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.twin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.twin-status-dot {
    width: 10px;
    height: 10px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.twin-name {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.twin-status {
    font-size: 11px;
    color: var(--text-secondary);
}

#close-twin {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

#close-twin:hover {
    color: var(--accent-red);
}

.twin-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) transparent;
}

.message {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    animation: messageIn 0.3s ease forwards;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twin-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
    background: var(--accent-red);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 5px 15px var(--accent-red-glow);
}

.twin-footer {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.twin-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.twin-opt {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.twin-opt:hover {
    border-color: var(--accent-red);
    color: var(--text-primary);
    background: rgba(255, 0, 51, 0.05);
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingPulse 1s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Twin Input Area */
.twin-input-area {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.twin-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.twin-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.twin-input:focus {
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

.twin-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-red);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 5px 15px var(--accent-red-glow);
}

.twin-send:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px var(--accent-red-glow);
}

.twin-send:active {
    transform: scale(0.95) rotate(0deg);
}

.twin-send svg {
    transform: translateX(1px);
}

/* ===== Twin Social Buttons ===== */
.twin-social-buttons {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: socialFadeIn 0.5s ease;
}

@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.twin-social-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.twin-social-divider::before,
.twin-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.twin-social-divider span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    white-space: nowrap;
}

.twin-social-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.twin-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.twin-social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-red);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.twin-social-btn svg {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.twin-social-btn:hover {
    border-color: var(--accent-red);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px var(--accent-red-glow);
}

.twin-social-btn:hover::before {
    width: 100%;
    height: 100%;
}

.twin-social-btn:hover svg {
    color: white;
    transform: scale(1.1);
}

.twin-social-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* Her sosyal medya için özel renkler (isteğe bağlı) */
.twin-social-btn:nth-child(1):hover {
    /* Email */
    border-color: var(--accent-red);
}

.twin-social-btn:nth-child(2):hover {
    /* LinkedIn */
    border-color: #0077b5;
}

.twin-social-btn:nth-child(2):hover::before {
    background: #0077b5;
}

.twin-social-btn:nth-child(3):hover {
    /* GitHub */
    border-color: #333;
}

.twin-social-btn:nth-child(3):hover::before {
    background: #333;
}

.twin-social-btn:nth-child(4):hover {
    /* Instagram */
    border-color: #e1306c;
}

.twin-social-btn:nth-child(4):hover::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Twin message içinde sosyal butonlar için padding ayarı */
.twin-message {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .twin-social-btn {
        width: 32px;
        height: 32px;
    }

    .twin-social-btn svg {
        width: 16px;
        height: 16px;
    }

    .twin-social-divider span {
        font-size: 10px;
    }
}

/* ===== Hero Contact Icons (Mobile Only) ===== */
.hero-contact-icons {
    display: none;
}

@media (max-width: 768px) {
    .hero-contact-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        margin-bottom: 30px;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
    }

    .hero-contact-item {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.3s ease;
        padding: 5px;
    }

    .hero-contact-item:hover,
    .hero-contact-item:active {
        color: var(--accent-red);
        transform: scale(1.2);
    }

    .hero-contact-item svg {
        width: 22px;
        height: 22px;
    }
}

/* ===== Twin Blur Overlay ===== */
.twin-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.twin-blur-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== SKELETON LOADING ===== */
.skeleton-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 19999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

.skeleton-container.active {
    opacity: 1;
    visibility: visible;
}

.skeleton-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            var(--bg-secondary) 50%,
            var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

/* Hero Skeleton */
.skeleton-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.skeleton-tag {
    width: 80px;
    height: 24px;
    border-radius: 4px;
}

.skeleton-title {
    width: 80%;
    max-width: 500px;
    height: 60px;
    border-radius: 8px;
}

.skeleton-subtitle {
    width: 60%;
    max-width: 350px;
    height: 24px;
    border-radius: 4px;
}

.skeleton-button {
    width: 150px;
    height: 50px;
    border-radius: 25px;
    margin-top: 20px;
}

/* Cards Skeleton */
.skeleton-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 30px;
}

.skeleton-card {
    width: 200px;
    height: 280px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.skeleton-card:nth-child(2) {
    transform: scale(1.05);
}

/* Progress Skeleton */
.skeleton-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.skeleton-progress-text {
    width: 120px;
    height: 16px;
    border-radius: 4px;
}

.skeleton-progress-bar {
    width: 200px;
    height: 8px;
    border-radius: 4px;
}

/* Loading Text */
.skeleton-loading-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.skeleton-loading-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-red);
    letter-spacing: 4px;
    animation: pulse 1.5s infinite;
}

.skeleton-loading-dots {
    display: flex;
    gap: 8px;
}

.skeleton-loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.skeleton-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.skeleton-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Light Theme Skeleton */
[data-theme="light"] .skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            #fff 50%,
            var(--bg-tertiary) 100%);
    background-size: 200% 100%;
}

[data-theme="light"] .skeleton-card {
    border-color: var(--border-color);
    box-shadow: 0 4px 15px rgba(45, 42, 38, 0.08);
}

/* Section Content Reveal Animation */
.section-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Progressive Loading for individual sections */
.skeleton-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.skeleton-section.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Skeleton Adjustments */
@media (max-width: 768px) {
    .skeleton-title {
        height: 45px;
    }

    .skeleton-card {
        width: 150px;
        height: 220px;
    }

    .skeleton-cards {
        gap: 15px;
    }

    .skeleton-loading-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* ===== CV MODE STYLES ===== */
.cv-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.cv-toggle:hover {
    border-color: var(--accent-red);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.cv-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    transition: all var(--transition-fast);
}

@media (max-width: 768px) {
    /* Responsiveness handled in header-controls */
}

/* CV Overlay */
.cv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #fff;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cv-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* CV Container */
.cv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    background: #fff;
    min-height: 100vh;
}

/* CV Close Button */
.cv-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #333;
    transition: all 0.2s ease;
    z-index: 100000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cv-close:hover {
    background: #ff0033;
    color: #fff;
    border-color: #ff0033;
    transform: scale(1.1);
}

/* CV Print Button */
.cv-print {
    position: fixed;
    top: 20px;
    right: 80px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    transition: all 0.2s ease;
    z-index: 100000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cv-print:hover {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

/* CV Content */
.cv-content {
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
}

/* CV Header */
.cv-header {
    display: flex;
    gap: 25px;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 2px solid #ff0033;
    margin-bottom: 25px;
}

.cv-photo {
    flex-shrink: 0;
}

.cv-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff0033;
}

.cv-title-area h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px 0;
}

.cv-jobtitle {
    font-size: 16px;
    color: #ff0033;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.cv-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.cv-contact-row span,
.cv-contact-row a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.cv-contact-row a:hover {
    color: #ff0033;
}

/* CV Body - 2 Column Layout */
.cv-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* CV Sidebar */
.cv-sidebar {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
}

/* CV Main */
.cv-main {
    padding: 0;
}

/* CV Section */
.cv-section {
    margin-bottom: 20px;
}

.cv-section h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

/* CV Item */
.cv-item {
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.cv-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.cv-item strong {
    font-size: 14px;
    color: #1a1a1a;
}

.cv-item p {
    font-size: 13px;
    color: #555;
    margin: 2px 0;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.cv-company {
    color: #ff0033 !important;
    font-weight: 600;
    font-size: 12px !important;
}

.cv-date {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* CV Skills */
.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-skills span {
    background: #ff0033;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* CV Tags */
.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.cv-tags span {
    background: #f0f0f0;
    color: #555;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

/* CV List */
.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cv-list li {
    font-size: 12px;
    color: #555;
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
}

.cv-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff0033;
    font-weight: bold;
}

/* CV Footer */
.cv-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cv-footer p {
    font-size: 12px;
    color: #888;
}

/* ===== PRINT STYLES ===== */
@media print {

    /* Hide unnecessary elements */
    .cv-close,
    .cv-print {
        display: none !important;
    }

    /* Reset page */
    body {
        background: #fff !important;
    }

    .cv-overlay {
        position: static !important;
        overflow: visible !important;
    }

    .cv-container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Page setup */
    @page {
        size: A4;
        margin: 15mm;
    }

    /* Ensure content fits */
    .cv-content {
        page-break-inside: avoid;
    }

    .cv-section {
        page-break-inside: avoid;
    }

    /* Compact spacing for print */
    .cv-header {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .cv-body {
        gap: 20px;
    }

    .cv-section {
        margin-bottom: 15px;
    }

    .cv-item {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
}

/* Mobile CV Styles */
@media (max-width: 768px) {
    .cv-container {
        padding: 20px;
        padding-top: 80px;
    }

    .cv-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .cv-print {
        top: 10px;
        right: 60px;
        padding: 10px 15px;
        font-size: 12px;
    }

    .cv-header {
        flex-direction: column;
        text-align: center;
    }

    .cv-contact-row {
        justify-content: center;
    }

    .cv-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cv-title-area h1 {
        font-size: 26px;
    }
}