@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
    --bg:#0a0e1a;
    --bg-grad-1:#0d1425;
    --bg-grad-2:#051220;
    --card:#0f1629;
    --accent:#00d9ff;
    --accent-2:#00fff2;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --muted:#8b9bb0;
    --text:#e8f0f7;
    --glass:rgba(255,255,255,0.05);
    --border:rgba(255,255,255,0.1);
    --shadow: 0 20px 60px rgba(0,0,0,.5);
    --glow: 0 0 20px rgba(0, 217, 255, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1400px 700px at -10% -10%, rgba(0,217,255,.12), transparent 65%),
        radial-gradient(1000px 600px at 110% 10%, rgba(0,255,242,.15), transparent 65%),
        radial-gradient(800px 800px at 50% 100%, rgba(0,150,255,.08), transparent 70%),
        linear-gradient(180deg, var(--bg-grad-1) 0%, var(--bg-grad-2) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(15, 22, 41, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.language-switcher button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.language-switcher button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    border-color: transparent;
    box-shadow: var(--glow);
}

.lang-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    align-self: center;
    flex-shrink: 0;
}

.pdf-dl-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pdf-dl-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.pdf-dl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 1s ease;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    animation: pulse 2s ease-in-out infinite;
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow), var(--glow);
    transition: transform 0.4s ease;
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 30px;
}

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

.social-link {
    padding: 12px 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
    box-shadow: var(--glow);
    border-color: var(--accent);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0,217,255,0.1), rgba(0,255,242,0.05));
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.sidebar-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    box-shadow: var(--glow);
}

/* Contact List */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0,217,255,0.1);
    transform: translateX(5px);
}

.contact-item span:first-child {
    font-size: 18px;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.skill-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.skill-percent {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.skill-bar-bg {
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.skill-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    background: rgba(0,217,255,0.1);
    border: 1px solid rgba(0,217,255,0.3);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.content-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.content-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.content-text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg), var(--glow);
}

.timeline-content {
    background: rgba(255,255,255,0.03);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(0,217,255,0.05);
    border-color: var(--accent);
    transform: translateX(5px);
}

.timeline-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 14px;
    color: var(--muted);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: linear-gradient(135deg, rgba(0,217,255,0.05), rgba(0,255,242,0.03));
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow), var(--glow);
}

.project-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.project-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 4px 12px;
    background: rgba(0,217,255,0.15);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

/* Game Jams */
.jams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.jam-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(0,217,255,0.05), rgba(0,255,242,0.03));
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
}

.jam-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow), var(--glow);
}

.jam-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

.jam-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jam-card:hover .jam-media img {
    transform: scale(1.05);
}

.jam-media video,
.jam-media iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.jam-media-tabs {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.jam-media-tab {
    padding: 5px 14px;
    background: rgba(15, 22, 41, 0.9);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: inherit;
}

.jam-media-tab:hover,
.jam-media-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.jam-media-content {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.jam-media-content.active {
    opacity: 1;
    visibility: visible;
}

.jam-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.jam-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jam-date-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    background: rgba(0,217,255,0.1);
    border: 1px solid rgba(0,217,255,0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.jam-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.jam-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 8px 16px;
    background: rgba(0,217,255,0.1);
    border: 1px solid rgba(0,217,255,0.3);
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jam-link:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 16px;
    }

    .avatar-container {
        width: 140px;
        height: 140px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .language-switcher {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }

    .content-card,
    .sidebar-card {
        padding: 20px;
    }

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


/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 200;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.1s linear;
}

/* ===== STAT PROGRESS RINGS ===== */
.stat-number {
    font-variant-numeric: tabular-nums;
}

.stat-progress-ring {
    width: 80px;
    height: 80px;
    margin: 12px auto;
}

.stat-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

.ring-fill {
    fill: none;
    stroke: url(#accent-gradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 213.628;
    stroke-dashoffset: 213.628;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* ===== CASE STUDY MODAL ===== */
.cs-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cs-modal.active {
    opacity: 1;
    visibility: visible;
}

.cs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.cs-modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--bg-grad-1), var(--bg-grad-2));
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), var(--glow);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cs-modal.active .cs-modal-content {
    transform: translateY(0) scale(1);
}

.cs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.cs-modal-close:hover {
    background: var(--accent);
    color: #000;
    transform: rotate(90deg);
}

.cs-modal-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cs-modal-body .cs-role {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.cs-modal-body .cs-section {
    margin-bottom: 24px;
}

.cs-modal-body .cs-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.cs-modal-body .cs-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.cs-modal-body .cs-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cs-modal-content::-webkit-scrollbar { width: 6px; }
.cs-modal-content::-webkit-scrollbar-track { background: transparent; }
.cs-modal-content::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== MICRO-INTERACTIONS ===== */
.tilt-card {
    transform-style: preserve-3d;
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 2px;
    animation: blinkCursor 0.7s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: var(--shadow);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-content iframe {
    width: 80vw;
    height: 70vh;
    border: none;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 28px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 32px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    color: #000;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
}

/* ===== ENHANCED TIMELINE ===== */
.timeline-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.timeline-filter-btn {
    padding: 8px 18px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.timeline-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.timeline-filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #000;
    border-color: transparent;
    box-shadow: var(--glow);
}

.enhanced-timeline {
    position: relative;
    padding-left: 40px;
}

.enhanced-timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}

.etl-item {
    position: relative;
    padding-bottom: 28px;
    opacity: 1;
    max-height: 200px;
    transition: opacity 0.4s ease, max-height 0.4s ease, padding 0.4s ease;
}

.etl-item.hidden {
    opacity: 0;
    max-height: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.etl-icon {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--glow);
    z-index: 1;
}

.etl-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.etl-content:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--accent);
    transform: translateX(5px);
}

.etl-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.etl-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.etl-subtitle {
    font-size: 14px;
    color: var(--muted);
}

.etl-category-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.etl-category-badge[data-cat="education"] { background: rgba(76, 175, 80, 0.2); color: #66bb6a; }
.etl-category-badge[data-cat="project"]   { background: rgba(0, 217, 255, 0.2); color: var(--accent); }
.etl-category-badge[data-cat="jam"]       { background: rgba(255, 152, 0, 0.2); color: #ffa726; }
.etl-category-badge[data-cat="experience"]{ background: rgba(156, 39, 176, 0.2); color: #ba68c8; }

/* ===== RESPONSIVE OVERRIDES FOR NEW FEATURES ===== */
@media (max-width: 768px) {
    .cs-modal-content {
        width: 95%;
        padding: 24px;
        max-height: 90vh;
    }
    .lightbox-prev, .lightbox-next { display: none; }
    .stat-progress-ring { width: 60px; height: 60px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== JAM DETAIL PAGE ===== */
.jam-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jam-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.jam-detail-back:hover {
    background: var(--accent);
    color: #000;
    transform: translateX(-5px);
    border-color: var(--accent);
}

.jam-detail-header {
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease;
}

.jam-detail-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.jam-detail-date {
    font-size: 16px;
    color: var(--muted);
    font-weight: 600;
}

.jam-detail-media-section {
    margin-bottom: 30px;
}

.jam-detail-media-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.jam-detail-media-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.jam-detail-media-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: center;
}

.jam-detail-media-tab:hover {
    color: var(--accent);
    background: rgba(0,217,255,0.05);
}

.jam-detail-media-tab.active {
    color: var(--accent);
    background: rgba(0,217,255,0.1);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.jam-detail-media-content {
    display: none;
    padding: 0;
}

.jam-detail-media-content.active {
    display: block;
}

.jam-detail-media-content img {
    width: 100%;
    display: block;
    max-height: 500px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
}

.jam-detail-media-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.jam-detail-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--muted);
    font-size: 16px;
}

.jam-detail-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.jam-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.jam-detail-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow);
}

.jam-detail-not-found {
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 0.8s ease;
}

.jam-detail-not-found h2 {
    font-size: 32px;
    color: var(--text);
    margin-bottom: 16px;
}

.jam-detail-not-found p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 30px;
}

/* ===== PARTICLE CANVAS ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== CURSOR SPOTLIGHT ===== */
.cursor-spotlight {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 217, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    will-change: left, top;
    mix-blend-mode: screen;
    transition: opacity 0.5s ease;
}

/* ===== GLITCH TEXT ===== */
@keyframes glitchAnim {
    0%   { transform: none; filter: none; }
    15%  { transform: translateX(-5px) skewX(-4deg); filter: hue-rotate(90deg) brightness(1.4); }
    30%  { transform: translateX(5px) skewX(3deg); filter: hue-rotate(-90deg) brightness(0.9); }
    45%  { transform: translateX(-2px); filter: hue-rotate(20deg); }
    60%  { transform: translateX(3px) skewX(-1deg); filter: none; }
    80%  { transform: none; filter: none; }
    90%  { transform: translateX(-1px); filter: hue-rotate(45deg); }
    100% { transform: none; filter: none; }
}

h1.glitch-active {
    animation: glitchAnim 0.5s ease forwards;
}

/* ===== SCANLINES ===== */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 500;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.025) 3px,
        rgba(0, 0, 0, 0.025) 4px
    );
    opacity: 0.8;
}

/* ===== PARALLAX HEADER ===== */
.header-section {
    will-change: transform, opacity;
}

/* ===== NEON BORDER PULSE ===== */
@keyframes neonPulse {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 22px rgba(0, 217, 255, 0.13), 0 0 45px rgba(0, 217, 255, 0.05); }
}

.neon-pulse {
    animation: neonPulse 5s ease-in-out infinite;
}

.neon-pulse:hover {
    animation-play-state: paused;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
    h1.glitch-active,
    .neon-pulse {
        animation: none !important;
    }
    .scanlines,
    .cursor-spotlight,
    #particles-canvas {
        display: none;
    }
}

/* ===== MOBILE PERFORMANCE (touch devices / Android) ===== */
@media (pointer: coarse) {
    /* background-attachment: fixed causes full repaint on every scroll on mobile */
    body {
        background-attachment: scroll;
    }

    /* backdrop-filter is GPU-intensive on mobile */
    .sidebar-card,
    .content-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .language-switcher {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 22, 41, 0.97);
    }

    .jam-media-tab {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 22, 41, 0.95);
    }

    .cs-modal-backdrop {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* Disable continuous CSS animations */
    .avatar-container {
        animation: none;
    }

    .avatar-glow {
        animation: none;
        filter: none;
    }

    /* Shimmer causes continuous GPU repaints */
    .skill-bar-fill::after {
        display: none;
    }

    /* Neon pulse runs on every card simultaneously */
    .neon-pulse {
        animation: none !important;
    }

    /* Particle canvas and cursor spotlight are useless on touch */
    #particles-canvas,
    .cursor-spotlight,
    .scanlines {
        display: none;
    }

    /* Reduce box-shadow complexity */
    .avatar {
        box-shadow: var(--shadow);
    }

    .ring-fill {
        filter: none;
    }
}

/* ===== PRINT / PDF STYLES ===== */
@media print {
    /* Animasyonları ve geçişleri tamamen durdur */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Gizlenmiş (opacity:0) elementleri göster */
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    /* UI / dekoratif elementleri gizle */
    #particles-canvas, .cursor-spotlight, .scanlines,
    .scroll-progress, .language-switcher,
    #case-study-modal, #lightbox,
    .avatar-glow, .typing-cursor,
    #timeline-section,
    .stat-progress-ring { display: none !important; }

    /* ---- RENK TEMASI ---- */
    body {
        background: #ffffff !important;
        color: #1a1a1a !important;
        font-family: 'Inter', sans-serif;
    }

    /* KOYU HEADER — siteyle aynı his */
    .header-section {
        background: #0d1425 !important;
        color: #e8f0f7 !important;
        border-bottom: 3px solid #00d9ff !important;
    }
    .header-section h1 {
        color: #00d9ff !important;
        -webkit-text-fill-color: #00d9ff !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        background-image: none !important;
    }
    .header-section .tagline { color: #7ec8d8 !important; }
    .header-section .social-link {
        background: rgba(0, 217, 255, 0.12) !important;
        border-color: rgba(0, 217, 255, 0.35) !important;
        color: #e8f0f7 !important;
        box-shadow: none !important;
    }

    /* STAT SAYILARI — sade beyaz kart üstünde */
    .stat-card    { background: #f0f9fc !important; border-color: #b8e4ef !important; box-shadow: none !important; }
    .stat-number  {
        color: #007a99 !important;
        -webkit-text-fill-color: #007a99 !important;
        background-image: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
    }
    .stat-label   { color: #555 !important; }

    /* KARTLAR — beyaz zemin, cyan vurgulu kenar */
    .sidebar-card, .content-card {
        background: #ffffff !important;
        border-color: #c5e8f0 !important;
        border-left: 3px solid #00d9ff !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    .project-card {
        background: #f5fbfe !important;
        border-color: #b8e0ef !important;
        border-left: 3px solid #00d9ff !important;
        box-shadow: none !important;
    }

    /* SECTION TITLE */
    .section-title    { color: #007a99 !important; }
    .section-title::before { background: #00d9ff !important; box-shadow: none !important; }

    /* SKILL BARLAR */
    .contact-item  { background: #f0f9fc !important; color: #1a1a1a !important; }
    .skill-bar-bg  { background: #d4edf5 !important; }
    .skill-bar-fill { background: linear-gradient(90deg, #00d9ff, #00b4cc) !important; box-shadow: none !important; }
    .skill-percent { color: #007a99 !important; }

    /* TIMELINE */
    .timeline-content {
        background: #f5fbfe !important;
        border-left: 2px solid #00d9ff !important;
    }

    /* ETİKETLER */
    .tag      { background: #e0f7fd !important; border-color: #00b4cc !important; color: #005f73 !important; }
    .tech-tag { background: #e0f7fd !important; color: #005f73 !important; }

    /* AVATAR */
    .avatar { border-color: #00d9ff !important; box-shadow: none !important; }

    /* GENEL METİN */
    .skill-name, .content-text, .project-desc,
    .timeline-title, .timeline-subtitle,
    .contact-item, .jam-title { color: #1a1a1a !important; }
    .timeline-date { color: #555 !important; }
    .content-title { color: #0a2a38 !important; }

    /* ---- KOMPAKT DÜZEN ---- */
    .header-section  { padding: 18px 20px 14px !important; opacity: 1 !important; transform: none !important; }
    .avatar-container { width: 76px !important; height: 76px !important; margin-bottom: 8px !important; }
    h1               { font-size: 24px !important; margin-bottom: 3px !important; }
    .tagline         { font-size: 12px !important; margin-bottom: 10px !important; }
    .social-link     { padding: 5px 11px !important; font-size: 11px !important; }
    .social-links    { gap: 6px !important; }

    /* Stats küçük yatay şerit */
    .stats-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; margin: 10px 0 !important; }
    .stat-card  { padding: 8px !important; }
    .stat-number { font-size: 20px !important; }
    .stat-label  { font-size: 9px !important; }

    /* Ana grid → tek sütun (iki sütunlu grid sayfalarda boşluk bırakır) */
    .container  { padding: 4px 12px !important; }
    .main-grid  {
        display: block !important;
        margin-top: 8px !important;
    }
    /* Sidebar kartları üstte 2'li grid olarak yan yana */
    .sidebar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }
    .sidebar-card { padding: 10px !important; }
    .content-card { padding: 10px 12px !important; }

    /* Tipografi */
    .section-title  { font-size: 9px !important; margin-bottom: 6px !important; letter-spacing: 0.1em !important; }
    .content-title  { font-size: 13px !important; margin-bottom: 6px !important; }
    .content-text   { font-size: 11px !important; line-height: 1.4 !important; margin-bottom: 4px !important; }

    /* Skill barlar */
    .skills-grid { gap: 5px !important; }
    .skill-item  { gap: 2px !important; }
    .skill-bar-bg { height: 5px !important; }
    .skill-name  { font-size: 11px !important; }
    .skill-percent { font-size: 9px !important; }

    /* İletişim */
    .contact-list { gap: 4px !important; }
    .contact-item { padding: 4px 6px !important; font-size: 10px !important; }

    /* Etiketler */
    .tags { gap: 3px !important; }
    .tag  { padding: 2px 7px !important; font-size: 9px !important; }

    /* Projeler */
    .projects-grid { grid-template-columns: 1fr !important; gap: 7px !important; }
    .project-card  { padding: 8px 10px !important; }
    .project-title { font-size: 11px !important; }
    .project-desc  { font-size: 10px !important; line-height: 1.35 !important; }
    .tech-tag      { font-size: 9px !important; padding: 2px 7px !important; }

    /* Eğitim */
    .timeline { gap: 0 !important; }
    .timeline-item { padding-bottom: 5px !important; }
    .timeline-content { padding: 6px 8px !important; }
    .timeline-title { font-size: 11px !important; }
    .timeline-subtitle { font-size: 10px !important; }
    .timeline-date { font-size: 9px !important; }

    /* Jam kartları */
    .jams-grid  { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .jam-card   { border: 1px solid #c5e8f0 !important; border-radius: 6px !important; overflow: hidden !important; background: #f5fbfe !important; box-shadow: none !important; }
    .jam-info   { padding: 6px 8px !important; }
    .jam-title  { font-size: 11px !important; font-weight: 700 !important; color: #0a2a38 !important; }
    .jam-date-badge { font-size: 9px !important; background: #e0f7fd !important; color: #005f73 !important; border: 1px solid #00b4cc !important; }
    .jam-link   { font-size: 9px !important; color: #007a99 !important; }

    /* Jam medya — sadece resim göster, sekmeler ve video gizle */
    .jam-media  { display: block !important; height: 110px !important; overflow: hidden !important; }
    .jam-media-tabs { display: none !important; }
    .jam-media-content { display: none !important; }
    .jam-media-content[data-type="image"] {
        display: block !important;
        position: static !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: 110px !important;
    }
    .jam-media-content[data-type="image"] img,
    .jam-media > img {
        width: 100% !important;
        height: 110px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 0 !important;
    }
    .jam-media-placeholder { font-size: 10px !important; padding: 20px 8px !important; text-align: center !important; color: #999 !important; background: #f0f9fc !important; height: auto !important; }

    /* Footer */
    footer { padding: 5px 14px !important; font-size: 9px !important; color: #888 !important; }

    /* Sayfa kesmesi */
    .content-card, .sidebar-card, .project-card, .timeline-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .content-title, .section-title {
        page-break-after: avoid;
        break-after: avoid;
    }

    /* Aktif Projeler → 2. sayfa başlangıcı
       (tek sütun akışında page-break-before güvenilir çalışır) */
    #projects-section {
        page-break-before: always !important;
        break-before: page !important;
        margin-top: 0 !important;
    }
}
