:root {
    --primary: #C5A059;
    /* Muted Gold */
    --secondary: #1A1A1A;
    /* deep charcoal */
    --bg-color: #F8F8F5;
    /* Warm off-white */
    --white: #FFFFFF;
    --text-main: #2C2C2C;
    --text-light: #666666;

    --font-heading: 'Italiana', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    overflow-x: clip !important;
    /* Stronger than hidden - prevents scroll entirely */
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

html,
body {
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: clip !important;
    /* Stronger than hidden */
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    cursor: none;
    /* Hide default cursor for custom one */
}

.page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overflow-y: visible;
    position: relative;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--secondary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--secondary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* Typography */
h1,
h2,
h3,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
    /* Keep custom cursor effect */
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--secondary);
    mix-blend-mode: difference;
    color: #fff;
    /* Ensure visibility depending on bg */
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #0F0F0F;
    /* Dark dark start */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #0F0F0F 80%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: var(--white);
}

h1 {
    font-size: 6rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1 span {
    color: var(--primary);
    font-style: italic;
    font-family: var(--font-heading);
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: var(--primary);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections General */
main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

section {
    padding: 8rem 5%;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary);
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Intro Section */
.intro-text p {
    font-size: 2rem;
    text-align: center;
    line-height: 1.4;
    font-family: var(--font-heading);
    color: var(--text-main);
}

/* Logos */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.logo-card {
    background: var(--white);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.logo-card:hover {
    transform: translateY(-10px);
}

.logo-card.dark-theme {
    background: var(--secondary);
}

.logo-card.dark-theme .label {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.brand-logo {
    max-width: 200px;
    height: auto;
}

.label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
    color: var(--text-light);
}

.usage-guidelines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.guideline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.guideline-item p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Colors */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    /* Seamless */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.color-swatch {
    height: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.color-preview {
    flex: 1;
    width: 100%;
}

.primary .color-preview {
    background-color: var(--primary);
}

.secondary .color-preview {
    background-color: var(--secondary);
}

.accent .color-preview {
    background-color: #F5F5F0;
}

.neutral .color-preview {
    background-color: #8C8C8C;
}

.color-info {
    padding: 1.5rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.color-hex {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Typography Section */
.typography-section {
    background-color: var(--white);
}

.type-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.type-label {
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--primary);
}

.font-name {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.alphabet {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    word-break: break-all;
    line-height: 1.6;
}

.serif .font-name {
    font-family: 'Italiana', serif;
}

.sans .font-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.sans .sample-text {
    font-family: 'Montserrat', sans-serif;
}

.heavenmark-banner {
    padding: 6rem 5%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
}

.hm-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 4rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.hm-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.hm-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    font-weight: 400;
}

.hm-logo-link {
    display: block;
    transition: var(--transition);
    cursor: pointer;
}

.hm-logo-link:hover {
    opacity: 0.8;
}

.hm-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Footer */
.footer {
    padding: 4rem 5%;
    text-align: center;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-menu {
    display: none;
}

/* Mobile Navigation & Responsive Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: #fff;
    /* Default for hero */
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span {
    background-color: var(--secondary) !important;
}

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

.mobile-menu-btn.dark-mode span {
    background-color: var(--secondary);
}

@media (max-width: 768px) {

    /* html {
        background-color: #0F0F0F;
    } */

    /* Hide custom cursor on touch devices */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
        background-color: var(--bg-color);
        /* Match hero on mobile */
        width: 100%;
        max-width: 100%;
        overflow-x: clip !important;
    }

    .page-wrapper {
        width: 100%;
        max-width: 100%;
    }

    a {
        cursor: pointer;
    }

    /* Layout Adjustments */
    section {
        padding: 4rem 1.5rem;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    /* Typography */
    h1 {
        font-size: 2.8rem;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        position: absolute; /* Changed from fixed to absolute */
        padding: 1.5rem 5%;
        mix-blend-mode: normal;
        color: var(--white);
        background: transparent;
        z-index: 10001; /* Above the nav-links overlay */
        transition: color 0.3s ease;
    }

    .navbar.menu-open {
        color: var(--secondary);
    }

    .nav-links {
        position: fixed; /* Keep overlay fixed */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Cover full height explicitly */
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--white) !important;
        /* Solid white background */
        opacity: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(-100%);
        visibility: hidden;
        /* Hide when off-screen to prevent scroll */
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.6s;
        /* Delay visibility change */
        z-index: 10000;
        /* Ensure it's on top of everything */
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        margin: 0;
        padding: 0;
    }

    .close-menu {
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2rem;
        color: var(--secondary);
        cursor: pointer;
        display: block;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
        /* Immediate visibility */
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: var(--secondary);
    }

    /* Typography adjustments to prevent overflow */
    .subtitle {
        font-size: 0.7rem;
        /* Smaller */
        letter-spacing: 1px;
        padding: 0 5px;
        word-wrap: break-word;
        max-width: 90%;
        margin: 0 auto;
    }

    .logo-text {
        font-size: 1rem;
        /* Smaller */
        letter-spacing: 1px;
    }

    h1 {
        font-size: 2.2rem;
        /* Significantly smaller */
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0;
        line-height: 1.2;
    }

    /* Hero */
    header.hero-section {
        height: 70vh;
        height: 70dvh;
        /* Reduced from 100vh */
        width: 100% !important;
        max-width: 100% !important;
        overflow: clip !important;
        padding: 0;
        margin: 0;
        left: 0;
        right: 0;
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-indicator .line {
        height: 40px;
    }

    /* Grids */
    .logo-grid,
    .usage-guidelines,
    .type-display {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .palette-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .color-swatch {
        height: 120px;
        flex-direction: row;
    }

    .color-preview {
        width: 35%;
        min-width: 80px;
    }

    .color-info {
        width: 65%;
        justify-content: center;
        padding: 1rem;
    }

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

    .color-hex {
        font-size: 0.75rem;
    }

    .logo-card {
        padding: 2rem 1.5rem;
    }

    .brand-logo {
        max-width: 160px;
    }

    /* Typography Section */
    .font-name {
        font-size: 2.5rem;
    }

    .alphabet {
        font-size: 1.2rem;
    }

    .sample-text {
        font-size: 0.9rem;
    }

    /* HeavenMark Banner Mobile */
    .heavenmark-banner {
        padding: 4rem 1.5rem;
    }

    .hm-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 3rem 1.5rem;
        background: var(--white);
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    }

    .hm-text {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hm-logo {
        height: 35px;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 1rem;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .font-name {
        font-size: 2rem;
    }
}