:root {
    --bg-light: #E6D5CB;
    /* Warm Sand */
    --bg-dark: #31231D;
    /* Very Deep Espresso (Footer) */
    --bg-accent: #FFF7F3;
    /* Light cream for Restoria vibe */
    --bg-orange: #C4927A;
    /* Terracotta Clay */

    --text-dark: #4A352B;
    /* Deep Espresso */
    --text-light: #FFF7F3;
    /* Soft cream */

    --font-primary: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.navbar * {
    pointer-events: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: -1px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo .npoint-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Base Section */
.section {
    min-height: 100vh;
    padding: 10rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Typography Base */
h1 {
    font-size: min(10vw, 150px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

p {
    font-size: 2rem;
    font-weight: 400;
    max-width: 800px;
}

/* specific sections */
.section-hero {
    background-color: var(--bg-light);
    color: var(--text-dark);
    position: relative;
    padding-top: 15rem;
}

.cards-container {
    margin-top: 5rem;
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-card {
    position: absolute;
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Staggered positioning and rotation */
.card-1 {
    transform: rotate(-10deg) translateX(-200px) translateY(50px);
    z-index: 1;
}

.card-2 {
    transform: rotate(2deg) translateX(0) translateY(-20px);
    z-index: 2;
}

.card-3 {
    transform: rotate(12deg) translateX(250px) translateY(30px);
    z-index: 3;
}

/* Hover effects for cards */
.cards-container:hover .card-1 {
    transform: rotate(-12deg) translateX(-230px) translateY(40px) scale(1.05);
}

.cards-container:hover .card-2 {
    transform: rotate(0deg) translateX(0) translateY(-40px) scale(1.05);
}

.cards-container:hover .card-3 {
    transform: rotate(15deg) translateX(280px) translateY(20px) scale(1.05);
}

/* Video Scroll Section */
.section-video-scroll {
    position: relative;
    height: 400vh;
    /* Enables enough scroll distance to scrub video */
    background: #000;
}

.video-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    /* Fixed viewport height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scroll-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered but offset upwards slightly */
    z-index: 10;
    color: var(--text-light);
    text-align: center;
    pointer-events: none;
}

.video-overlay h2 {
    font-size: min(8vw, 100px);
    font-weight: 900;
    line-height: 0.9;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Game Section */
.section-game {
    background-color: var(--bg-accent);
    color: var(--text-dark);
}

.badge {
    display: inline-block;
    border: 1px solid rgba(10, 10, 10, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-showcase {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.large-showcase {
    width: 90%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

/* About Section */
.section-about {
    background-color: var(--bg-orange);
    color: var(--text-dark);
}

.cta-link {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-link:hover {
    transform: translateX(20px);
}

/* Footer Section */
.footer {
    min-height: auto;
    padding: 5rem 4rem;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 3rem;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.5;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Animations defined */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 8rem 2rem 2rem;
    }

    .navbar {
        padding: 1.5rem 2rem;
    }

    h1 {
        font-size: 15vw;
    }

    .img-card {
        width: 80vw;
        height: 50vw;
    }

    .card-1 {
        transform: rotate(-5deg) translateY(-80px);
    }

    .card-2 {
        transform: rotate(0deg);
    }

    .card-3 {
        transform: rotate(5deg) translateY(80px);
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4rem;
    }
}

/* ===== RESTORIA PAGE STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700;1,800&family=Inter:wght@300;400;500;600;700;800&display=swap');

.restoria-page {
    background-color: #fdf3e5;
    font-family: 'Inter', sans-serif;
}

.page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Restoria Navigation */
.restoria-page .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.npoint-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.restoria-page .nav-links {
    display: flex;
    gap: 48px;
}

.restoria-page .nav-links a {
    text-decoration: none;
    color: #0d0d0d;
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.6em;
    transition: opacity 0.3s;
}

.restoria-page .nav-links a.active {
    font-weight: 700;
}

.restoria-page .nav-links a:hover {
    opacity: 0.6;
}

/* Restoria Hero */
.restoria-page .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 120px 20px 60px 20px;
}

.restoria-page .hero h1 {
    font-family: 'EB Garamond', serif;
    font-size: clamp(60px, 12vw, 150px);
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #d6b175;
    margin: 0 0 20px 0;
}

.restoria-page .hero .subtitle {
    font-family: 'EB Garamond', serif;
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: #0d0d0d;
    margin: 0 0 40px 0;
}

.restoria-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #2b2319;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.2s, opacity 0.2s;
}

.restoria-page .btn .steam-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.restoria-page .btn .steam-circle svg,
.restoria-page .btn .steam-circle img {
    width: 18px;
    height: 18px;
}

.restoria-page .btn:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

/* Video Section */
.video-hero {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-hero video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* Quote Section */
.quote-section {
    text-align: center;
    padding: 100px 20px 20px 20px;
    max-width: 960px;
    margin: 0 auto;
    background-color: transparent;
}

.quote-section h2 {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    margin: 0 auto;
    color: #604324;
    max-width: 680px;
}

.quote-sub {
    font-family: 'EB Garamond', serif;
    color: #604324;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2em;
    letter-spacing: -0.01em;
    margin: 40px auto;
    max-width: 800px;
}

.restoria-icon {
    width: 220px;
    height: auto;
    margin: 50px auto;
    display: block;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 60px 20px 100px 20px;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item h3 {
    font-family: 'EB Garamond', serif;
    font-size: 64px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1em;
    color: #604324;
    margin: 0 0 12px 0;
}

.stat-item p {
    font-family: 'EB Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1em;
    margin: 0;
    color: #999999;
}

/* Feature Showcase */
.feature-showcase {
    padding: 48px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-text {
    direction: ltr;
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    gap: 10px;
}

.feature-text h2 {
    font-family: 'EB Garamond', serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1em;
    margin: 0;
    color: #0d0d0d;
}

.feature-text p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.6em;
    margin: 0;
    color: #0d0d0d;
}

.feature-img img {
    width: 100%;
    border-radius: 20px;
    display: block;
}

/* Restoria Scroller */
.restoria-scroller {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 60px 0;
    white-space: nowrap;
}

.scroller-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 10s linear infinite;
}

.scroller-track img {
    height: 340px;
    width: auto;
    object-fit: cover;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Restoria Socials */
.restoria-socials {
    max-width: 1200px;
    margin: 40px auto 100px auto;
    padding: 0 20px;
    text-align: center;
}

.restoria-socials h2 {
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #604324;
    margin-bottom: 40px;
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.social-box {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #ebdaba;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}

.social-box:hover {
    transform: translateY(-4px);
    background-color: #dfcdad;
}

.social-box img {
    height: 32px;
    width: auto;
    opacity: 0.9;
}

/* Restoria Footer */
.restoria-page footer {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 100px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.restoria-page .footer-logo {
    display: flex;
    align-items: flex-start;
}

.restoria-page .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.restoria-page .footer-col h4 {
    font-family: 'EB Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1em;
    margin: 0 0 20px 0;
    color: #0d0d0d;
}

.restoria-page .footer-col a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.6em;
    color: #0d0d0d;
    text-decoration: none;
    margin-bottom: 10px;
}

.restoria-page .footer-col a:hover {
    opacity: 0.6;
}

/* Restoria Responsive */
@media (max-width: 900px) {
    .stats-bar {
        flex-direction: column;
        gap: 48px;
        padding: 48px 20px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .quote-section {
        padding: 48px 20px;
    }

    .quote-section h2 {
        font-size: 26px;
    }

    .quote-sub {
        font-size: 20px;
    }

    .restoria-icon {
        width: 150px;
    }

    .feature-showcase {
        padding: 48px 20px;
        gap: 48px;
    }

    .feature-text h2 {
        font-size: 26px;
    }

    .restoria-page .hero {
        padding: 80px 20px 40px 20px;
        min-height: 50vh;
    }

    .restoria-page .hero h1 {
        font-size: clamp(40px, 10vw, 80px);
        margin-bottom: 16px;
    }

    .restoria-page .hero .subtitle {
        font-size: clamp(16px, 4vw, 24px);
        margin-bottom: 32px;
    }

    .restoria-page .btn {
        font-size: 16px;
        padding: 14px 28px;
    }

    .restoria-page footer {
        grid-template-columns: 1fr;
        padding: 48px 20px;
        gap: 48px;
    }

    .restoria-page .footer-links {
        gap: 48px;
    }

    .restoria-page .navbar {
        padding: 20px;
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }

    .restoria-page .nav-links {
        gap: 24px;
    }

    .scroller-track img {
        height: 200px;
    }

    .social-box {
        width: 56px;
        height: 56px;
    }

    .social-grid {
        gap: 16px;
    }

    .restoria-socials h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

/* --- NEW NPOINT REDESIGN CSS --- */

.npoint-type-img {
    width: 600px;
    max-width: 90vw;
    margin-bottom: 24px;
}

.meet-npoint-section {
    display: flex;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
    align-items: center;
    gap: 80px;
}

.meet-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.meet-content h2 {
    font-family: 'EB Garamond', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0d0d0d;
}

.meet-content p {
    font-family: 'EB Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.55);
}

.btn-group {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn.btn-dark {
    background-color: #000;
    color: #fff;
    border-radius: 12px;
}

.btn.btn-outline {
    background-color: transparent;
    color: #0d0d0d;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.meet-image {
    flex: 1;
}

.meet-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.our-games-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 40px;
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: 40px;
    font-weight: 700;
    color: #604324;
    text-align: center;
    margin-bottom: 60px;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.game-img {
    background-color: #f5f5f5;
    border-radius: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info h3 {
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    color: #0d0d0d;
    margin-bottom: 12px;
    line-height: 1;
}

.game-info p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #999;
}

.socials-section {
    text-align: center;
    padding: 100px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.socials-section h2 {
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #604324;
    margin-bottom: 40px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #f7ebd5;
    border-radius: 50%;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: translateY(-4px);
}

.social-icons img {
    width: 24px;
    height: 24px;
}

@media (max-width: 900px) {
    .meet-npoint-section {
        flex-direction: column;
        padding: 0 20px;
    }

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

    .npoint-type-img {
        width: 80vw;
    }

    .our-games-section {
        padding: 0 20px;
    }
}