:root {
    --navy: #0A1321;
    --gold: #C5A059;
    --gold-bright: #e2c081;
    --champagne: #F0EAD6;
    --burgundy: #3E1D24;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --sidebar-width: 280px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
}

h1,
h2,
h3,
h4,
.playfair {
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    word-spacing: 0.2em;
    letter-spacing: 1px;
}


/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--navy);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 40px;
    z-index: 1000;
    border-right: 1px solid rgba(197, 160, 89, 0.2);
}

.sidebar-logo {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

.sidebar-logo span {
    color: var(--gold);
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 4px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 25px;
}

.sidebar-nav ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: var(--gold);
    padding-left: 10px;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--navy);
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    z-index: 2100;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* Content Area */
.content-with-sidebar {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section.dark {
    background-color: var(--navy);
    color: var(--text-light);
}

.subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    word-spacing: 0.8em;
    color: var(--gold);
    margin-bottom: 40px;
    margin-top: -20px;
}

/* Hero Section Refined */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    position: relative;
    color: var(--white);
    padding-left: 100px;
    text-align: left;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=2000') center/cover;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0));
    opacity: 0.3;
}

.pre-title {
    display: block;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 20px;
    line-height: 1;
}

.hero h1 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.7;
    max-width: 500px;
}

/* Cards Refined */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.card {
    padding: 50px 40px;
    background: #fcfcfc;
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.card-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: rgba(197, 160, 89, 0.1);
    position: absolute;
    top: 20px;
    right: 30px;
}

/* Palette Large */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.color-swatch-large .swatch {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.color-swatch-large h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.color-swatch-large p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.color-swatch-large .hex,
.color-swatch-large .rgb {
    display: block;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Typography Layout */
.typography-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.typo-card {
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
}

.font-tag {
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.typo-card h3 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.font-desc {
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 30px;
}

.alphabet {
    font-size: 1.5rem;
    opacity: 0.3;
    letter-spacing: 5px;
}

/* Instagram Grid */
.mockup-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.mockup-frame {
    background: #111;
    padding: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mockup-frame img {
    width: 100%;
    display: block;
}

.mockup-frame.stories {
    max-width: 350px;
    margin: 0 auto;
}

.mockup-info h4 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Rules Section */
.gold-bg {
    background-color: var(--gold);
    color: var(--navy);
}

.rules-list {
    list-style: none;
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
}

.rules-list li {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    padding: 20px 0;
    border-bottom: 1px solid rgba(10, 19, 33, 0.1);
}

.rules-list li::before {
    content: '→';
    margin-right: 20px;
    color: var(--navy);
}

/* Footer */
footer {
    padding: 60px 0;
    background: #050a12;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
/* Responsive Refinements */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        width: 100%;
        max-width: 320px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .content-with-sidebar {
        margin-left: 0;
        width: 100%;
    }

    .hero {
        padding-left: 40px;
        padding-right: 40px;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .palette-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .typography-layout,
    .mockup-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .color-swatch-large .swatch {
        height: 180px;
    }

    .section {
        padding: 80px 0;
    }

    .container {
        padding: 0 25px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .palette-grid {
        grid-template-columns: 1fr;
    }

    .color-swatch-large .swatch {
        height: 150px;
    }

    .typo-card h3 {
        font-size: 2rem;
    }

    .rules-list li {
        font-size: 1.1rem;
    }
}

body.menu-open {
    overflow: hidden;
}