/* Fashion Magazine Styles - Vogue Inspired with Background Images */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #ffffff;
    --primary-white: #0a0a0a;
    --accent-gray: #1a1a1a;
    --text-gray: #999999;
    --light-gray: #2a2a2a;
    --serif-font: 'Playfair Display', serif;
    --sans-font: 'Inter', sans-serif;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --shape-color: rgba(255, 255, 255, 0.03);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans-font);
    line-height: 1.4;
    color: #ffffff;
    background-color: #0a0a0a;
    overflow-x: hidden;
    font-weight: 300;
}

/* Hide default cursor on desktop */
@media (min-width: 1025px) {
    body:not(.touch-device) {
        cursor: none;
    }
    
    body:not(.touch-device) a,
    body:not(.touch-device) button,
    body:not(.touch-device) .collage-item {
        cursor: none;
    }
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 35px;
    height: 35px;
    border: 1px solid var(--primary-black);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(3);
    background: var(--primary-white);
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

.cursor.clicking {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hide custom cursor on mobile */
@media (max-width: 1024px) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* ==================== ANIMATED BACKGROUND SHAPES ==================== */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--shape-color);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 10%;
    animation-delay: -10s;
    animation-duration: 18s;
    border-radius: 40% 60% 60% 40% / 50% 60% 40% 50%;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 30%;
    animation-delay: -7s;
    animation-duration: 22s;
    border-radius: 50% 50% 40% 60% / 40% 50% 50% 60%;
}

.shape-5 {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 20%;
    animation-delay: -12s;
    animation-duration: 28s;
    border-radius: 70% 30% 50% 50% / 30% 50% 50% 70%;
}

.shape-6 {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 40%;
    animation-delay: -3s;
    animation-duration: 24s;
    border-radius: 45% 55% 65% 35% / 55% 45% 55% 45%;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) rotate(3deg) scale(1.02);
    }
}

/* ==================== DARK MODE TOGGLE ==================== */
.dark-mode-toggle {
    background: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
    position: relative;
}

.dark-mode-toggle:hover {
    background: var(--accent-gray);
    transform: rotate(15deg);
}

.dark-mode-toggle svg {
    transition: all 0.3s ease;
    stroke: var(--primary-black);
}

.dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle {
    border-color: var(--light-gray);
}

body.dark-mode .dark-mode-toggle:hover {
    background: var(--accent-gray);
}

/* ==================== TYPING ANIMATION ==================== */
.typing-text {
    position: relative;
    display: inline-block;
}

.typing-text.typing {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.8s steps(20, end) forwards;
}

.typing-text.typing::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 0.7s step-end infinite;
    color: var(--primary-black);
}

.typing-text.typed::after {
    display: none;
}

.typing-paragraph {
    position: relative;
}

.typing-paragraph.typing {
    animation: fadeInType 1s ease forwards;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes fadeInType {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered character animation for hero title */
.hero-title .typing-text {
    display: block;
}

.hero-title .typing-text.typing {
    animation: none;
}

.hero-title .typing-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charReveal 0.5s ease forwards;
}

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

/* ==================== GRAIN OVERLAY ==================== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif-font);
    font-weight: 400;
    line-height: 1.2;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #2a2a2a;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-black);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 1px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: 0.3s;
}

/* ==================== SPLIT SECTIONS ==================== */
.split-section {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.split-text {
    width: 50%;
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
}

.text-content {
    max-width: 600px;
    width: 100%;
}

.split-image {
    width: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Parallax Container */
.parallax-container {
    overflow: hidden;
}

.parallax-image {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.image-container {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center top;
    display: block;
    clip-path: inset(0 0 8% 0);
}

.hero-meta {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.divider {
    margin: 0 1rem;
}

.hero-title {
    font-family: var(--serif-font);
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--primary-black);
}

.title-line {
    display: block;
}

.title-emphasis {
    font-style: italic;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

.hero-credits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.credit-line {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

.credit-label {
    color: var(--text-gray);
    min-width: 80px;
}

.credit-name {
    font-weight: 500;
    color: var(--primary-black);
}

.section-number {
    font-family: var(--serif-font);
    font-size: 6rem;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.1);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--serif-font);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.large-quote {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.quote-attribution {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.editorial-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-black);
}

.drop-cap::first-letter {
    font-family: var(--serif-font);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    float: left;
    margin: 0 12px 0 0;
    color: var(--primary-black);
}

.editorial-body p {
    margin-bottom: 1.5rem;
}

.feature-content {
    margin-top: 0;
}

.feature-title {
    font-family: var(--serif-font);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-black);
}

.feature-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-black);
    margin-bottom: 2rem;
}

.feature-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
}

.beauty-headline {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-black);
}

.beauty-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-black);
}

/* ==================== GALLERY SECTION ==================== */
.image-showcase-section {
    width: 100%;
    padding: 80px 0 0;
    background: #0a0a0a;
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    padding: 0 40px 60px;
}

.gallery-header .section-number {
    font-size: 4rem;
}

.gallery-header .section-title {
    margin-bottom: 0.5rem;
}

.collage-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, minmax(200px, auto));
    gap: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.collage-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-item:hover {
    transform: scale(1.02);
    z-index: 10;
}

.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
    clip-path: inset(0 0 12% 0);
}

.collage-item:hover .collage-img {
    transform: scale(1.05);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 120px;
}

.collage-item:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-title {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 5px;
}

.overlay-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* Large featured image - spans left side */
.collage-large {
    grid-column: 1 / 6;
    grid-row: 1 / 5;
}

/* Medium vertical image */
.collage-medium-vertical {
    grid-column: 6 / 9;
    grid-row: 1 / 4;
}

/* Small square image */
.collage-small {
    grid-column: 9 / 13;
    grid-row: 1 / 3;
}

/* Medium horizontal image */
.collage-medium-horizontal {
    grid-column: 6 / 13;
    grid-row: 4 / 6;
}

/* Large vertical image */
.collage-large-vertical {
    grid-column: 1 / 5;
    grid-row: 5 / 9;
}

/* Medium square image */
.collage-medium {
    grid-column: 5 / 9;
    grid-row: 5 / 8;
}

/* Small vertical image */
.collage-small-vertical {
    grid-column: 9 / 13;
    grid-row: 3 / 5;
}

/* Medium horizontal image 2 */
.collage-medium-horizontal-2 {
    grid-column: 5 / 13;
    grid-row: 8 / 9;
}

/* Large square image */
.collage-large-square {
    grid-column: 9 / 13;
    grid-row: 5 / 8;
}

/* Featured image */
.collage-featured {
    grid-column: 5 / 13;
    grid-row: 9 / 12;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .split-section {
        flex-direction: column;
    }
    
    .split-text {
        width: 100%;
        padding: 60px 40px;
    }
    
    .split-image {
        width: 100%;
        min-height: 60vh;
    }
    
    .image-container {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-number {
        font-size: 5rem;
    }
    
    .collage-container {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(12, minmax(150px, auto));
        gap: 0;
    }
    
    .collage-large {
        grid-column: 1 / 5;
        grid-row: 1 / 4;
    }
    
    .collage-medium-vertical {
        grid-column: 5 / 9;
        grid-row: 1 / 3;
    }
    
    .collage-small {
        grid-column: 5 / 9;
        grid-row: 3 / 4;
    }
    
    .collage-medium-horizontal {
        grid-column: 1 / 9;
        grid-row: 4 / 5;
    }
    
    .collage-large-vertical {
        grid-column: 1 / 4;
        grid-row: 5 / 8;
    }
    
    .collage-medium {
        grid-column: 4 / 9;
        grid-row: 5 / 7;
    }
    
    .collage-small-vertical {
        grid-column: 4 / 6;
        grid-row: 7 / 8;
    }
    
    .collage-medium-horizontal-2 {
        grid-column: 6 / 9;
        grid-row: 7 / 8;
    }
    
    .collage-large-square {
        grid-column: 1 / 9;
        grid-row: 8 / 10;
    }
    
    .collage-featured {
        grid-column: 1 / 9;
        grid-row: 10 / 12;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: #0a0a0a;
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 100px 0 3rem;
        gap: 2rem;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }
    
    .dark-mode-toggle {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }

    .full-image-section {
        min-height: 600px;
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-number {
        font-size: 3rem;
    }
    
    .split-text {
        padding: 40px 30px;
    }
    
    .split-image {
        min-height: 50vh;
    }
    
    .image-container {
        min-height: 50vh;
    }
    
    .large-quote {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .collage-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, minmax(250px, auto));
        gap: 0;
    }
    
    .collage-large,
    .collage-medium-vertical,
    .collage-small,
    .collage-medium-horizontal,
    .collage-large-vertical,
    .collage-medium,
    .collage-small-vertical,
    .collage-medium-horizontal-2,
    .collage-large-square,
    .collage-featured {
        grid-column: 1 / -1;
    }
    
    .collage-large { grid-row: 1 / 2; }
    .collage-medium-vertical { grid-row: 2 / 3; }
    .collage-small { grid-row: 3 / 4; }
    .collage-medium-horizontal { grid-row: 4 / 5; }
    .collage-large-vertical { grid-row: 5 / 6; }
    .collage-medium { grid-row: 6 / 7; }
    .collage-small-vertical { grid-row: 7 / 8; }
    .collage-medium-horizontal-2 { grid-row: 8 / 9; }
    .collage-large-square { grid-row: 9 / 10; }
    .collage-featured { grid-row: 10 / 11; }
    
    .image-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-header {
        padding: 0 30px 40px;
    }
    
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .split-text {
        padding: 40px 20px;
    }
    
    .split-image {
        min-height: 40vh;
    }
    
    .image-container {
        min-height: 40vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-number {
        font-size: 3.5rem;
    }
    
    .large-quote {
        font-size: 1.3rem;
    }
    
    .feature-title {
        font-size: 1.6rem;
    }
    
    .beauty-headline {
        font-size: 1.8rem;
    }
    
    .gallery-header {
        padding: 0 20px 30px;
    }
    
    .gallery-header .section-number {
        font-size: 3rem;
    }
    
}

/* ==================== PASSWORD MODAL ==================== */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.password-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--primary-white);
    padding: 50px 40px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.password-modal.active .modal-content {
    transform: scale(1) translateY(0);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-black);
}

.modal-title {
    font-family: var(--serif-font);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.password-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--sans-font);
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: var(--primary-white);
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--sans-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==================== NOTE SECTION ==================== */
.note-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.note-section.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

.note-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 80px 70px;
    border-radius: 24px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin: auto;
    transform: scale(0.95) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    overflow-x: hidden;
}

.note-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #333333 50%, #000000 100%);
    opacity: 0.1;
}

.note-section.active .note-container {
    transform: scale(1) translateY(0);
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.note-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.note-close:hover {
    color: var(--primary-black);
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.note-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.note-title {
    font-family: var(--serif-font);
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    letter-spacing: -0.02em;
}

.note-counter {
    font-family: var(--sans-font);
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.note-text-wrapper {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    position: relative;
}

.note-text-container {
    font-family: var(--serif-font);
    font-size: 2.2rem;
    line-height: 1.6;
    color: var(--primary-black);
    text-align: left;
    max-width: 100%;
    position: relative;
}

.note-constant {
    font-weight: 700;
    color: var(--primary-black);
    margin-right: 12px;
}

.note-cycling {
    display: inline-block;
    font-weight: 400;
    color: var(--text-gray);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
}

.note-cycling.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.note-cycling.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: textFadeIn 0.6s ease;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-btn {
    background: var(--primary-black);
    color: var(--primary-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-btn svg {
    position: relative;
    z-index: 1;
}

.nav-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-black);
    width: 24px;
    border-radius: 4px;
}

.nav-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Full Letter Section */
.note-full-letter {
    margin-top: 40px;
    padding-top: 0;
}

.letter-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.letter-content::-webkit-scrollbar {
    width: 6px;
}

.letter-content::-webkit-scrollbar-track {
    background: transparent;
}

.letter-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.letter-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.letter-greeting {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.letter-intro {
    font-family: var(--serif-font);
    font-size: 1.4rem;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 15px;
    font-weight: 400;
}

.letter-paragraph {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 400;
}

.letter-heading {
    font-family: var(--serif-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.letter-heading:first-of-type {
    margin-top: 30px;
}

.letter-closing {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 8px;
    font-weight: 400;
    text-align: center;
}

.letter-closing-emphasis {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    display: block;
    text-align: center;
    margin: 10px 0;
    letter-spacing: 0.02em;
}

/* For You Cycling Section */
.for-you-section {
    margin: 50px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.for-you-wrapper {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.for-you-container {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    line-height: 1.6;
    color: #000000;
    text-align: center;
    position: relative;
}

.for-you-constant {
    font-weight: 700;
    color: #000000;
    margin-right: 8px;
}

.for-you-cycling {
    display: inline-block;
    font-weight: 400;
    color: #666666;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
}

.for-you-cycling.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.for-you-cycling.fade-in {
    opacity: 1;
    transform: translateY(0);
    animation: textFadeIn 0.6s ease;
}

.for-you-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.for-you-nav-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.for-you-nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.for-you-nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.for-you-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.for-you-nav-btn:active {
    transform: scale(0.95);
}

.for-you-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.for-you-nav-btn svg {
    position: relative;
    z-index: 1;
}

.for-you-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.for-you-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.for-you-dot.active {
    background: #000000;
    width: 20px;
    border-radius: 4px;
}

.for-you-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Responsive Design for Note Section */
@media (max-width: 768px) {
    .note-container {
        padding: 50px 30px;
        max-width: 95%;
    }

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

    .note-text-container {
        font-size: 1.5rem;
    }

    .note-text-wrapper {
        min-height: 200px;
        margin: 40px 0;
    }

    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }

    .note-navigation {
        gap: 20px;
        margin-top: 30px;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .note-container {
        padding: 40px 20px;
    }

    .note-title {
        font-size: 1.75rem;
    }

    .note-text-container {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .note-text-wrapper {
        min-height: 150px;
        margin: 30px 0;
    }

    .letter-greeting {
        font-size: 2rem;
    }

    .letter-intro {
        font-size: 1.2rem;
    }

    .letter-paragraph {
        font-size: 1.1rem;
    }

    .letter-heading {
        font-size: 1.4rem;
        margin-top: 30px;
    }

    .letter-closing-emphasis {
        font-size: 1.5rem;
    }

    .note-full-letter {
        margin-top: 30px;
        padding-top: 0;
    }

    .letter-content {
        max-height: 400px;
    }

    .for-you-container {
        font-size: 1.4rem;
    }

    .for-you-nav-btn {
        width: 40px;
        height: 40px;
    }

    .for-you-section {
        margin: 40px 0;
        padding: 30px 0;
    }
}
