/* --- DEĞİŞKENLER --- */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --card-bg: #0a0a0a;
    --border-color: #1a1a1a;
    --accent-color: #ffffff;
    /* Monochrome White */
    --accent-text: #ffffff;
    --sub-text: #666;
    --nav-bg: rgba(0, 0, 0, 0.5);
    --noise-opacity: 0.03;
}

/* --- LIGHT THEME --- */
[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #111111;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --accent-color: #111111;
    --accent-text: #111111;
    --sub-text: #777;
    --nav-bg: rgba(255, 255, 255, 0.5);
    --noise-opacity: 0.015;
}

[data-theme="light"] body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(200, 200, 200, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(210, 210, 210, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(220, 220, 220, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 30%, rgba(190, 190, 190, 0.2) 0%, transparent 60%);
}

[data-theme="light"] body::before {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.02) 0%,
        transparent 70%
    );
}

/* Light Glass Grid */
[data-theme="light"] .grid-bg {
    background-image: radial-gradient(
        rgba(0, 0, 0, 0.06) 1px,
        transparent 1px
    );
}

/* Light Orbs */
[data-theme="light"] .orb-1 {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 60%);
}

[data-theme="light"] .orb-2 {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 60%);
}

/* Light Nav */
[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] nav::after {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%);
}

[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] nav:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] nav::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 0, 0, 0.04),
        transparent);
}

/* Light Tech Cards */
[data-theme="light"] .tech-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
}

[data-theme="light"] .tech-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Light Project Cards */
[data-theme="light"] .project-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.06),
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px) brightness(1.02);
    -webkit-backdrop-filter: blur(5px) brightness(1.02);
}

/* Light Discord Widget */
[data-theme="light"] .discord-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .discord-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .discord-card::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 0, 0, 0.03),
        transparent);
}

[data-theme="light"] #d-username {
    color: #111;
}

[data-theme="light"] #d-activity-text {
    color: #666;
}

[data-theme="light"] .d-custom-status {
    color: #666;
}

[data-theme="light"] .d-badges i {
    color: #555;
}

[data-theme="light"] .d-status-dot {
    border-color: #f5f5f5;
}

[data-theme="light"] #d-avatar {
    border: 2px solid rgba(0, 0, 0, 0.1);
}

/* Light Widgets */
[data-theme="light"] .spotify-box,
[data-theme="light"] .github-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .spotify-box:hover,
[data-theme="light"] .github-box:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .spotify-box-header,
[data-theme="light"] .github-box-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .spotify-brand,
[data-theme="light"] .github-brand {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .github-brand i {
    color: #333;
}

[data-theme="light"] .spotify-profile-link,
[data-theme="light"] .github-profile-link {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .spotify-row:hover,
[data-theme="light"] .github-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .spotify-row-art,
[data-theme="light"] .github-row-icon {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .github-row-icon i {
    color: rgba(0, 0, 0, 0.4);
}

/* Light Skeleton */
[data-theme="light"] .skeleton-circle,
[data-theme="light"] .skeleton-row .skeleton-title,
[data-theme="light"] .skeleton-row .skeleton-artist {
    background: rgba(0, 0, 0, 0.06);
}

/* Light Hero Discord Status */
[data-theme="light"] .hero-discord-status {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light CTA Button */
[data-theme="light"] .cta-button {
    background: var(--accent-color);
    color: #fff;
}

/* Light Submit Button Hover */
[data-theme="light"] .submit-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Light Form */
[data-theme="light"] input:-webkit-autofill,
[data-theme="light"] input:-webkit-autofill:hover,
[data-theme="light"] input:-webkit-autofill:focus,
[data-theme="light"] input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
}

/* Light Footer */
[data-theme="light"] footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Light YT Button */
[data-theme="light"] .yt-btn {
    background: #111;
    color: #fff;
}

[data-theme="light"] .yt-btn:hover {
    background: #333;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Light Stat Item */
[data-theme="light"] .stat-item {
    color: #111;
}

/* Light Stream Stats */
[data-theme="light"] .stream-stats {
    background: rgba(0, 0, 0, 0.03);
}

/* Light Gallery */
[data-theme="light"] .gallery-item .image-wrapper {
    border: 1px solid var(--border-color);
}

[data-theme="light"] .gallery-item img {
    filter: grayscale(100%) brightness(1.05);
}

/* Light Selection */
[data-theme="light"] ::selection {
    background-color: #111;
    color: #fff;
}

[data-theme="light"] ::-moz-selection {
    background-color: #111;
    color: #fff;
}

/* Light Preloader */
[data-theme="light"] #preloader {
    background-color: #f5f5f5;
}

[data-theme="light"] .loader-bar {
    background: #e0e0e0;
    border: 1px solid #ccc;
}

/* Light Job Techs */
[data-theme="light"] .job-techs span {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

/* Light Timeline */
[data-theme="light"] .timeline-item::before {
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Light Profile Image */
[data-theme="light"] .hero-image .profile-normal {
    filter: grayscale(100%) brightness(1.05);
}

/* Light mobile nav menu */
@media (max-width: 768px) {
    [data-theme="light"] .nav-right {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    }

    [data-theme="light"] .nav-links a:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    [data-theme="light"] .control-btn {
        background: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}

/* --- Theme Toggle Button --- */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: rotate(180deg);
}

.theme-toggle i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode (default): show moon, hide sun */
.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: inline-block;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

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



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(30, 30, 30, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(25, 25, 25, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(20, 20, 20, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 30%, rgba(35, 35, 35, 0.3) 0%, transparent 60%);
    background-size: 200% 200%;
    animation: gradientShift 25s ease-in-out infinite alternate;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: color 0.4s ease, background-color 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 30%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 30% 80%; }
    100% { background-position: 0% 100%; }
}

/* --- CURSOR & EFEKTLER --- */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease-out, background 0.3s;
    mix-blend-mode: exclusion;
}

.ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* --- LINEAR/VERCEL STYLE BACKGROUND --- */

/* Subtle dot grid pattern */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.08) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

/* No perspective plane needed */
.grid-plane { display: none; }

/* Soft aurora gradient meshes */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    will-change: transform;
}

.orb-1 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    top: -30%;
    left: -15%;
    animation: auroraFloat1 15s ease-in-out infinite alternate;
}

.orb-2 {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    bottom: -20%;
    right: -10%;
    top: auto;
    left: auto;
    animation: auroraFloat2 18s ease-in-out infinite alternate;
}

@keyframes auroraFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(5vw, 3vh) scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-3vw, 5vh) scale(1.05);
        opacity: 0.6;
    }
}

@keyframes auroraFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-4vw, -2vh) scale(1.15);
        opacity: 0.6;
    }
    100% {
        transform: translate(3vw, -4vh) scale(1);
        opacity: 0.5;
    }
}

/* Soft radial spotlight glow (like Vercel hero) */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 990;
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0% {
        background-position: 0 0;
    }

    10% {
        background-position: -5% -5%;
    }

    20% {
        background-position: -10% 5%;
    }

    30% {
        background-position: 5% -10%;
    }

    40% {
        background-position: -5% 15%;
    }

    50% {
        background-position: -10% 5%;
    }

    60% {
        background-position: 15% 0;
    }

    70% {
        background-position: 0 10%;
    }

    80% {
        background-position: -15% 0;
    }

    90% {
        background-position: 10% 5%;
    }

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

/* --- STICKY LEFT SIDEBAR (SOL MENÜ) --- */
.sticky-left {
    position: fixed;
    left: 40px;
    bottom: 0;
    width: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.sticky-left.hide-sidebar {
    opacity: 0;
    transform: translateX(-50px);
    pointer-events: none;
}

.sticky-left .social-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.sticky-left a {
    color: var(--sub-text);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.sticky-left a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.sticky-left a i.fa-file-invoice {
    color: var(--accent-color);
    opacity: 0.8;
}

.sticky-left a:hover i.fa-file-invoice {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.sidebar-line {
    width: 1px;
    height: 80px;
    background-color: var(--sub-text);
    opacity: 0.5;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Let flex gap create space between location and time */
    margin-bottom: 20px;
}

.sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--sub-text);
    font-weight: 600;
    letter-spacing: 2px;
}

.sidebar-info-item i {
    font-size: 0.75rem;
    color: var(--accent-color);
    transform: rotate(90deg); /* Counter-rotate icon to stand upright */
}

.sidebar-info-item span {
    font-size: 0.6rem;
    text-transform: uppercase;
}

/* --- NAVBAR (LIQUID GLASS - APPLE STYLE) --- */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 50px;
    gap: 80px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    /* Very subtle transparent base like Discord widget */
    background: rgba(255, 255, 255, 0.03);

    /* Light blur - clear glass, not frosted */
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);

    /* Subtle glass borders */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 16px;

    /* Soft shadow */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: max-content;
    max-width: 90%;
    overflow: hidden;
}

/* Glass rim light / inner glow */
nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 1;
}

/* --- NAV SCROLLED (SHRINK ON SCROLL) --- */
nav.scrolled {
    padding: 8px 30px;
    gap: 40px;
    top: 10px;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer borders on scroll */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

nav.scrolled .logo svg {
    width: 28px;
    height: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled .nav-links {
    gap: 20px;
}

nav.scrolled .nav-links a {
    font-size: 0.65rem;
}

nav.scrolled .control-btn {
    padding: 4px 12px;
    font-size: 0.6rem;
}

nav.scrolled .nav-right {
    gap: 25px;
}

/* Navbar Shimmer Overlay */
nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
    pointer-events: none;
    z-index: 2;
}

nav:hover {
    transform: translateX(-50%) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

nav:hover::before {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.logo {
    flex-shrink: 0;
    order: 1;
}

.logo svg {
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.logo:hover svg {
    color: var(--accent-color);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
    transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    order: 2;
}

.nav-links {
    display: flex;
    gap: 30px;
    transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a {
    color: var(--sub-text);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    order: 3;
}

.control-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 16px;
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.control-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px 5%;
    gap: 50px;
    flex-wrap: wrap-reverse;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* Tıklanabilirlik İyileştirmesi */
a,
button,
.tech-card,
.project-card,
.gallery-item,
input,
textarea,
.submit-btn {
    position: relative;
    z-index: 10;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--accent-color);
    color: var(--accent-text);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 4px;
}

.hero-top-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-discord-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
}

.hero-discord-status #hero-discord-text {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sub-text);
}

.hero-discord-status .d-status-dot {
    position: static;
    width: 8px;
    height: 8px;
    border: none;
    flex-shrink: 0;
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.outline {
    -webkit-text-stroke: 1px var(--accent-color);
    color: transparent;
}

.tagline {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 900;
}

.sub-tagline {
    color: var(--sub-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 1px;
    transition: 0.3s;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(210, 255, 0, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin-top: -60px;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Normal fotoğraf - default görünür */
.hero-image .profile-normal {
    filter: grayscale(100%);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 1;
}

/* Pixel art - üstte ama görünmez */
.hero-image .profile-pixel {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 2;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* Hover: pixel art belirsin, normal fotoğraf solsun */
.hero-image:hover .profile-normal {
    opacity: 0.15;
    filter: grayscale(100%) blur(4px);
    transform: scale(0.98);
}

.hero-image:hover .profile-pixel {
    opacity: 1;
    transform: translateX(-50%) scale(1.02);
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}


/* --- SECTIONS --- */
section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    color: var(--accent-text);
    font-size: 0.75rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: 900;
    opacity: 0.8;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 50px;
    letter-spacing: -2px;
}

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

/* --- TECH GRID --- */
.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.category-header {
    font-size: 0.8rem;
    color: var(--text-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 700;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-card {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sub-text);
    transition: all 0.3s ease;
    border-radius: 24px;
    text-decoration: none;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.tech-card:hover {
    border-color: var(--accent-color);
    color: var(--accent-text);
    transform: translateY(-2px);
}

.tech-card span {
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--accent-color);
    opacity: 0.7;
}

/* --- TIMELINE --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent-text);
    font-weight: 900;
    margin-bottom: 5px;
}

.timeline-badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    border: 1px solid var(--accent-color);
    color: var(--accent-text);
    border-radius: 4px;
    font-weight: 900;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--sub-text);
    font-weight: 400;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--sub-text);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
}

.job-techs {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.job-techs span {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 2px;
    color: var(--sub-text);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    /* Real Glass Style (Clear & Refractive Look) */
    background: rgba(255, 255, 255, 0.01) !important;
    background-image: none !important;

    /* Low blur = Clear Glass */
    backdrop-filter: blur(5px) brightness(1.1);
    -webkit-backdrop-filter: blur(5px) brightness(1.1);

    /* Strong Glass Borders */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    /* Highlight top edge */

    /* Glass Depth & Thickness */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        /* Inner fog */
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* Top inner bevel */

    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;

    /* 3D TILT SUPPORT */
    transform: perspective(1000px);
}



.project-card:hover {
    border-color: var(--accent-color);
}

.project-tags {
    font-size: 0.7rem;
    color: var(--accent-text);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: 1px;
}

.project-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.project-card p {
    color: var(--sub-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.project-link {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    width: fit-content;
}

/* --- MEDIA / GALLERY --- */
.stream-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: 0.5s;
}

.video-wrapper:hover iframe {
    filter: grayscale(0%);
}

.stream-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.stream-info p {
    color: var(--sub-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.stream-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-text);
    font-weight: 900;
    font-size: 0.9rem;
}

.stat-item i {
    font-size: 1.1rem;
}

.yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #000;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.yt-btn:hover {
    background: #ccc;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.15);
}

@media (max-width: 900px) {
    .stream-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item .image-wrapper {
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
    border-radius: 0;
    display: block;
    /* Gap fix */
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.item-4 img {
    transform: scale(1.7);
    /* Siyah bantları gizlemek için zoom */
}

.item-4:hover img {
    transform: scale(1.8);
    /* Hover olunca biraz daha zoom */
    filter: grayscale(0%);
}

.img-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--sub-text);
    letter-spacing: 2px;
}

/* --- SPOTIFY RECENTLY PLAYED (Compact) --- */
.spotify-section {
    padding-bottom: 60px;
}

/* --- SIDE-BY-SIDE WIDGETS --- */
.widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }
}

.spotify-box,
.github-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotify-box:hover,
.github-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.spotify-box-header,
.github-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spotify-brand,
.github-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.spotify-brand i {
    color: #1DB954;
    font-size: 1.2rem;
}

.github-brand i {
    color: #fff;
    font-size: 1.2rem;
}

.spotify-profile-link,
.github-profile-link {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.spotify-profile-link:hover {
    color: #1DB954;
}

.github-profile-link:hover {
    color: #fff;
}

.spotify-tracks,
.github-repos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.spotify-row,
.github-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.spotify-row:hover,
.github-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.spotify-row-art,
.github-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    /* useful for github icon background */
}

.spotify-row-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.github-row-icon i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.spotify-row-info,
.github-row-info {
    min-width: 0;
    flex: 1;
}

.spotify-row-name,
.github-row-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-row-artist,
.github-row-desc {
    font-size: 0.7rem;
    color: var(--sub-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.skeleton-row {
    pointer-events: none;
}

.skeleton-circle {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-row .skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-row .skeleton-title {
    width: 70%;
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-row .skeleton-artist {
    width: 50%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    animation: shimmer 1.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

.spotify-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--sub-text);
    font-size: 0.85rem;
}

.spotify-empty i {
    font-size: 1.2rem;
    color: #1DB954;
}

@media (max-width: 768px) {
    .spotify-box,
    .github-box {
        padding: 18px;
    }

    .spotify-tracks,
    .github-repos {
        grid-template-columns: 1fr;
    }

    .spotify-row:nth-child(n+6) {
        display: none;
    }
}

/* --- CONTACT FORM --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 600px;
}

.form-group {
    position: relative;
    margin-top: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
    border-radius: 0;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--sub-text);
    font-weight: 900;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:focus,
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--accent-color);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--accent-text);
}

.submit-btn {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 20px 50px;
    font-weight: 900;
    font-size: 1rem;
    transition: 0.3s;
    width: fit-content;
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.submit-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px rgba(210, 255, 0, 0.5);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-color);
}

/* --- YOUTUBE SECTION --- */
.stream-stats {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    /* Remove unwanted lines */
    display: flex;
    gap: 30px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.stat-item i {
    color: var(--accent-color);
}


/* --- FOOTER (GÜNCELLENMİŞ) --- */
footer {
    position: relative;
    z-index: 1001;
    background: transparent;
    padding: 60px 5% 40px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    color: var(--sub-text);
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.system-status {
    color: var(--accent-text);
    font-weight: 900;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-right a {
    color: var(--sub-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-right a:hover {
    color: var(--accent-text);
}

/* --- DISCORD WIDGET (LIQUID GLASS) --- */
.discord-card {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;

    /* Real Glass Style (Clear & Refractive Look) */
    background: rgba(255, 255, 255, 0.01);

    /* Low blur = Clear Glass */
    backdrop-filter: blur(5px) brightness(1.1);
    -webkit-backdrop-filter: blur(5px) brightness(1.1);

    /* Strong Glass Borders */
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.4);

    border-radius: 32px;

    /* Deep Depth Shadow */
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 280px;
    max-width: 380px;
    text-decoration: none;
    overflow: hidden;
    /* For shimmer effect */
}

/* Shimmer Overlay */
.discord-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
}

.discord-card:hover {
    transform: scale(1.05);
    /* Scale only, like nav */
    background: rgba(255, 255, 255, 0.1);
    /* Brighter on hover, NOT black */
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.discord-card:active {
    transform: scale(0.95);
    transition: 0.1s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.discord-card:hover::before {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.d-avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

#d-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* Removed thick border, kept slight separation */
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.d-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #1a1a1a;
    /* Matches card bg somewhat to cut out */
    background-color: #747f8d;
}

.d-status-dot.online {
    background-color: #3ba55c;
}

.d-status-dot.idle {
    background-color: #faa61a;
}

.d-status-dot.dnd {
    background-color: #ed4245;
}

.d-status-dot.offline {
    background-color: #747f8d;
}

.d-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.d-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

#d-username {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    letter-spacing: 0.3px;
    margin-right: 4px;
    /* Space for badges */
}

.d-badges {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.d-badges img {
    height: 16px;
    /* Icon size */
    width: auto;
}

.d-badges i {
    font-size: 0.8rem;
    color: #b9bbbe;
    /* Muted distinct color */
}

.d-custom-status {
    font-size: 0.75rem;
    color: #b9bbbe;
    margin-bottom: 4px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Specific Badge Colors */
.fa-code {
    color: #5865F2 !important;
}

/* Discord Blurple */

.d-activity {
    display: flex;
    align-items: center;
    gap: 6px;
}

#d-activity-text {
    font-size: 0.8rem;
    color: #b9bbbe;
    /* Subtitle grey */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Spotify Wave Fix within new layout */
#spotify-wave {
    display: inline-flex;
    align-items: flex-end;
    height: 10px;
    gap: 2px;
    margin-bottom: 2px;
    margin-left: 5px;
}

#spotify-wave .bar {
    width: 2px;
    background-color: #1DB954;
    animation: wave 1s infinite ease-in-out;
}

#spotify-wave .bar:nth-child(1) {
    animation-duration: 0.6s;
    height: 40%;
}

#spotify-wave .bar:nth-child(2) {
    animation-duration: 0.7s;
    height: 80%;
}

#spotify-wave .bar:nth-child(3) {
    animation-duration: 0.5s;
    height: 50%;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

.hidden {
    display: none !important;
}

/* --- TABLET RESPONSIVE (iPad) --- */
@media (max-width: 1024px) {
    nav {
        padding: 10px 30px;
        gap: 30px;
        width: 80%;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    h1 {
        font-size: 5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr 1fr;
        /* Force 2 columns */
    }
}

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

    .sticky-left,
    .discord-card,
    /* Hide widget on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }

    nav {
        width: 95%;
        /* Wider on mobile */
        max-width: 100%;
        padding: 10px 15px;
        gap: 10px;
        top: 10px;
        overflow-x: auto;
        /* Enable horizontal scroll */
        justify-content: flex-start;
        /* Start from left if scrolling */

        /* Hide scrollbar for clean look */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
    }

    nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .nav-links {
        display: flex;
        /* Keep visible */
        gap: 20px;
        flex-shrink: 0;
        /* Prevent squishing */
        white-space: nowrap;
        /* Keep text in one line */
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        /* Single column */
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
    }

    h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .hero p {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-right {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    width: 300px;
    font-family: 'Courier New', Courier, monospace;
}

.loader-text {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--accent-color);
}

.loader-bar {
    width: 100%;
    height: 4px;
    background: #111;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    animation: loadBar 2.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes loadBar {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

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

body.loading-active {
    overflow: hidden;
}

/* --- SELECTION --- */
::selection {
    background-color: #d2ff00;
    color: #000000;
}

::-moz-selection {
    background-color: #d2ff00;
    color: #000000;
}

/* --- LENIS SMOOTH SCROLL --- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ============================== */
/* --- HAMBURGER MENU BUTTON --- */
/* ============================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1010;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Hamburger → X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================== */
/* --- RESPONSIVE: TABLET ---    */
/* ============================== */
@media (max-width: 1024px) {
    .hero {
        padding: 120px 5% 40px 5%;
    }

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

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

    section {
        padding: 60px 5%;
    }
}

/* ============================== */
/* --- RESPONSIVE: MOBILE ---    */
/* ============================== */
@media (max-width: 768px) {

    /* Hide custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    /* --- NAVBAR MOBILE --- */
    nav {
        padding: 12px 20px;
        gap: 0;
        top: 20px;
        left: 4%;
        right: 4%;
        width: auto;
        max-width: none;
        transform: none;
        flex-wrap: wrap;
        justify-content: space-between;
        border-radius: 20px;
        overflow: visible;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    nav:hover {
        transform: none;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    nav.scrolled {
        transform: none;
        padding: 10px 18px;
        gap: 0;
        top: 10px;
        border-radius: 20px;
    }

    .hamburger {
        display: flex;
        padding: 4px;
        margin-left: 4px;
    }

    .nav-right {
        order: 3;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        /* Dark glass background so text is readable */
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-controls {
        order: 2;
    }

    .nav-right.open {
        max-height: 350px;
        opacity: 1;
        visibility: visible;
        padding: 12px;
    }

    .nav-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 0;
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        border-bottom: none;
        width: 100%;
        display: block;
        text-align: center;
        border-radius: 10px;
        color: var(--text-color);
        transition: background 0.2s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--accent-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-controls {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .control-btn {
        font-size: 0.65rem;
        padding: 6px 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* --- SIDEBAR HIDDEN ON MOBILE --- */
    .sticky-left {
        display: none;
    }

    /* --- HERO MOBILE --- */
    .hero {
        min-height: auto;
        padding: 90px 5% 30px 5%;
        gap: 30px;
        flex-direction: column-reverse;
        text-align: center;
        align-items: center;
    }

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

    h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: -2px;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .sub-tagline {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 0.85rem;
    }

    .hero-image img {
        max-width: 280px;
    }

    /* --- SECTIONS MOBILE --- */
    section {
        padding: 50px 5%;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        margin-bottom: 30px;
    }

    /* --- TECH GRID MOBILE --- */
    .tech-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tech-grid {
        gap: 8px;
    }

    .tech-card {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    /* --- TIMELINE MOBILE --- */
    .timeline {
        padding-left: 20px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    /* --- PROJECTS MOBILE --- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 24px;
    }

    .project-card h3 {
        font-size: 1.5rem;
    }

    /* --- STREAM MOBILE --- */
    .stream-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* --- GALLERY MOBILE --- */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* --- CONTACT MOBILE --- */
    .contact-container {
        padding: 0;
    }

    /* --- TICKER MOBILE --- */
    .ticker span {
        font-size: 1rem;
    }

    /* --- FOOTER MOBILE --- */
    footer {
        padding: 20px 5%;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* --- DISCORD WIDGET MOBILE --- */
    .discord-card {
        right: 10px !important;
        bottom: 10px !important;
        max-width: 220px;
        transform: scale(0.9);
        transform-origin: bottom right;
    }

    /* --- AMBIENT ORBS MOBILE (performance) --- */
    .orb-1 {
        width: 80vw;
        height: 80vw;
        opacity: 0.3;
    }

    .orb-2 {
        width: 60vw;
        height: 60vw;
        opacity: 0.3;
    }
}

/* ============================== */
/* --- RESPONSIVE: SMALL PHONE - */
/* ============================== */
@media (max-width: 390px) {
    nav {
        padding: 8px 12px;
        top: 8px;
        left: 3%;
        right: 3%;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-image img {
        max-width: 220px;
    }

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

    .project-card h3 {
        font-size: 1.3rem;
    }
}

/* ============================== */
/* --- iPhone Safe Area Insets -- */
/* ============================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .discord-card {
        bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }

    nav {
        top: calc(10px + env(safe-area-inset-top));
    }
}