:root {
    /* Crimson-to-Gold color scheme inspired by the reference image */
    --bg-dark: #1a0a0a;
    --bg-gradient-top: #3d0c0c;
    --bg-gradient-mid: #8b1a1a;
    --bg-gradient-bottom: #c4742b;
    --text-primary: #ffffff;
    --text-secondary: #d4b8a0;
    --accent-primary: #c0392b;
    --accent-secondary: #e8a838;
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Full-page gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #1a0000 0%,
        #2d0808 20%,
        #4a0e0e 40%,
        #5c1a14 55%,
        #6b3318 70%,
        #7a4a20 85%,
        #8b6030 100%
    );
    z-index: -2;
}

/* Subtle warm glow for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(120, 30, 20, 0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(140, 80, 30, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION — CSS Grid, clean 3-column
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(26, 10, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo name nav";
    align-items: center;
    gap: 16px;
}

.nav-container .logo-short   { grid-area: logo; }
.nav-container .center-name  { grid-area: name; }
.nav-container .nav-links    { grid-area: nav; }
.nav-container .mobile-menu-btn { grid-area: nav; justify-self: end; }

.logo-short {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--accent-secondary);
    letter-spacing: 2px;
}

.center-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 1px;
    white-space: nowrap;
}

.center-name span {
    color: var(--accent-secondary);
}

/* Desktop nav links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* Hamburger — hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* Mobile overlay nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 24px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #a82020);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    min-width: 0; /* prevents flex child overflow */
}

.greeting {
    font-size: 1.3rem;
    color: var(--accent-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.name {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 800;
}

.title {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.bio {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.8;
}

.bio strong {
    color: #fff;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.image-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    padding: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s ease;
}

.image-glass-card:hover {
    transform: scale(1.03);
}

.profile-pic {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    display: block;
}

/* ========================================
   SECTIONS — General
   ======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    margin-bottom: 48px;
    text-align: center;
    width: 100%;
    position: relative;
    color: #fff;
}

.section-title::after {
    content: '';
    display: block;
    margin: 12px auto 0;
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    border-radius: 2px;
}

/* ========================================
   GLASS CARD
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

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

.about-card .icon {
    font-size: 2.2rem;
    color: var(--accent-secondary);
    margin-bottom: 16px;
}

.about-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #fff;
}

.about-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ========================================
   SKILLS & INTERESTS
   ======================================== */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

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

.skill-category p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.skill-category p strong {
    color: #fff;
}

.game-list {
    list-style: none;
}

.game-list li {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.game-list li span {
    color: #fff;
    font-weight: 600;
}

/* ========================================
   SOCIAL / CONNECT SECTION
   ======================================== */
.social-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 36px;
}

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

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 24px;
    border-radius: 50px;
}

.social-btn i {
    font-size: 1.3rem;
}

.x-btn:hover  { border-color: #fff; }
.fb-btn:hover { border-color: #1877F2; color: #1877F2; }
.ig-btn:hover { border-color: #E1306C; color: #E1306C; }
.yt-btn:hover { border-color: #FF0000; color: #FF0000; }
.tg-btn:hover { border-color: #0088cc; color: #0088cc; }

/* ========================================
   FOOTER
   ======================================== */
footer {
    text-align: center;
    padding: 36px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-subtext {
    margin-top: 4px;
    opacity: 0.6;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ========================================
   RESPONSIVE — Tablet (≤900px)
   ======================================== */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .bio {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .profile-pic {
        width: 260px;
        height: 260px;
    }

    .image-glass-card {
        padding: 12px;
    }
}

/* ========================================
   RESPONSIVE — Mobile (≤768px)
   ======================================== */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .center-name {
        font-size: 1.1rem;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }

    .image-glass-card {
        padding: 10px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

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

    /* Social buttons stack better */
    .social-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   RESPONSIVE — Small phones (≤400px)
   ======================================== */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .center-name {
        font-size: 1rem;
    }

    .logo-short {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .profile-pic {
        width: 180px;
        height: 180px;
    }
}
