/* =======================
   RESET
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =======================
   BASE
======================= */
body {
    font-family: system-ui, sans-serif;
    background: #0b0b0b;
    color: #e0e0e0;
}

/* Lock slides only on desktop */
@media (min-width: 901px) {
    body {
        overflow: hidden;
    }
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

#three-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    z-index: 0;
}

/* ensure the WebGL canvas stretches to fill and uses device pixels */
#three-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* =======================
   PIXEL FONT (CONTENT ONLY)
======================= */
.section,
.section h1,
.section h2,
.section p,
.section li {
    font-family: "Jersey 20", sans-serif;
    letter-spacing: 0.6px;
}

/* =======================
   NAVBAR (UNCHANGED)
======================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding-left: 160px;
}

.nav-logo {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-logo img {
    width: 44px;
    height: 44px;
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 52px;
    white-space: nowrap;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8c8c8c;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    position: relative;
    padding: 6px 2px;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links img {
    width: 38px;
    height: 38px;
}

/* =======================
   SLIDES
======================= */
.slides {
    position: absolute;
    top: 72px;
    width: 100%;
    height: calc(100vh - 72px);
}

.section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 80px 0;
    background: #0b0b0b;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =======================
   CONTAINER
======================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* =======================
   HERO
======================= */
.hero-card {
    background: rgba(115, 115, 115, 0.669);
    border-radius: 18px;
    padding: 48px 64px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-card h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

/* =======================
   ABOUT (DESKTOP)
======================= */
.about {
    position: relative;
    background:
        linear-gradient(to left,
            rgba(11, 11, 11, 0.05) 70%,
            rgba(11, 11, 11, 0.55) 35%,
            rgba(11, 11, 11, 0.92) 0%),
        url("images/MyPcImage.png") right center / auto 100% no-repeat;
}

/* ABOUT CONTENT */
.about-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.about-text {
    max-width: 520px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.about-text p {
    margin-bottom: 16px;
    color: #c9c9c9;
    line-height: 1.6;
}

/* =======================
   CONTACT
======================= */
.contact ul {
    list-style: none;
    line-height: 2;
}

.contact a {
    color: #ffffff;
    text-decoration: none;
}

/* =======================
   RESPONSIVE (MOBILE)
======================= */
@media (max-width: 900px) {

    .slides {
        position: relative;
        height: auto;
    }

    .section {
        position: relative;
        height: auto;
        padding: 64px 0;
    }

    .about {
        background:
            linear-gradient(to bottom,
                rgba(11, 11, 11, 0.6),
                rgba(11, 11, 11, 0.92)),
            url("images/MyPhoneImage.png") center top / cover no-repeat;
    }
}

@media (max-width: 600px) {
    .nav-links {
        font-size: 0.85rem;
        gap: 28px;
    }

    .hero-card {
        padding: 32px 28px;
    }
}