* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #888888;
    --light-gray: #f9f9f9;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Beautiful Orange Color Scheme */
    --orange-primary: #FF6B35;
    --orange-secondary: #FFA62B;
    --orange-light: #FFD6B3;
    --orange-dark: #D95B2A;
    --orange-accent: #FF8C42;
    --orange-bg: #FFF4E6;
    --orange-subtle: #FFE5CC;
    
    /* Neutral colors */
    --charcoal: #1a1a1a;
    --light-charcoal: #333333;
    --off-white: #f8f9fa;
    --border-color: rgba(0, 0, 0, 0.08);
    
    /* Lock screen background */
    --lock-screen-bg: #E4E4E4;
    
    /* Glass morphism colors - EXTREME transparency */
    --glass-bg: rgba(255, 255, 255, 0.1); /* Extremely transparent */
    --glass-border: rgba(255, 255, 255, 0.2); /* Extremely transparent */
    --glass-shadow: rgba(0, 0, 0, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.2); /* Extremely transparent */
}

body {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--charcoal);
    min-height: 100vh;
    overflow: auto; /* Allow scrolling */
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.4;
    background: var(--off-white);
}

/* Lock Screen Container */
#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Only cover viewport height */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Allow scrolling through lock screen */
}

#lock-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#lock-screen.show {
    opacity: 1;
    pointer-events: none; /* Still allow scrolling */
}

/* Water Drop Animation Container - ALWAYS VISIBLE IN BACKGROUND */
.water-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Ensure Spline viewer is behind the overlay */
spline-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Watermark Invisibility Overlay - Always #E4E4E4 */
.watermark-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 150px;
    background: #E4E4E4;
    z-index: 2;
    pointer-events: none;
    border-radius: 4px 0 0 0;
    opacity: 1;
}

/* Lock Content - Slides in/out independently */
.lock-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* FASTER transition */
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto; /* Lock content can still be interacted with */
}

.lock-content.hidden {
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
}

.lock-content.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Class to hide lock name and subtitle when scrolled - FASTER */
.lock-content.scrolled {
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-out; /* MUCH FASTER - 0.2s instead of 0.5s */
}

.lock-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -2px;
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease; /* FASTER - 0.2s */
}

.lock-name::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-primary), transparent);
}

.lock-subtitle {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease; /* FASTER - 0.2s */
}

.code-section {
    margin-top: 2rem;
    transition: opacity 0.5s ease; /* Added for fade out */
}

.code-label {
    font-size: 0.9rem;
    color: var(--charcoal);
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 300;
    transition: opacity 0.5s ease; /* Added for fade out */
}

.code-input-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: opacity 0.5s ease; /* Added for fade out */
}

.code-input {
    width: 60px;
    height: 70px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Extremely transparent */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25); /* EXTREMELY transparent */
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    color: var(--charcoal);
    transition: all 0.3s ease, opacity 0.5s ease; /* Added opacity transition */
    outline: none;
    backdrop-filter: blur(1px); /* Minimal blur */
    -webkit-backdrop-filter: blur(1px);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.code-input:focus {
    border-color: var(--orange-primary);
    box-shadow: 
        0 0 0 2px rgba(255, 107, 53, 0.2),
        0 8px 20px rgba(255, 107, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.35);
}

.code-input.filled {
    border-color: var(--orange-primary);
    background: rgba(255, 107, 53, 0.08);
}

.enter-button {
    background: rgba(255, 255, 255, 0.25); /* EXTREMELY transparent */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Extremely transparent */
    color: var(--orange-primary);
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.5s ease; /* Added opacity transition */
    letter-spacing: 0.5px;
    margin-top: 1rem;
    backdrop-filter: blur(1px); /* Minimal blur */
    -webkit-backdrop-filter: blur(1px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    font-weight: 400;
}

.enter-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
    border-color: var(--orange-primary);
}

/* Fade out class for code section */
.fade-out {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Scroll spacer - DOUBLED SIZE FOR MORE SPACE */
.scroll-spacer {
    height: 100vh; /* DOUBLED from 80vh to 160vh */
    width: 100%;
    pointer-events: none;
}

/* Main Content - New Layout - MADE SMALLER */
#main-content {
    opacity: 0;
    display: none;
    position: relative;
    background: transparent;
    margin-top: 40px; /* Added more top margin */
    margin-bottom: 60px; /* Added more bottom margin */
}

/* EXTREMELY transparent glass container - REDUCED SIZE */
#main-content.active {
    opacity: 1;
    display: block;
    width: calc(100% - 100px); /* Increased margin for more space around */
    min-height: calc(100vh - 160px); /* Increased from 120px */
    margin: 80px auto; /* Increased from 60px for more vertical space */
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    z-index: 900;
    
    /* Extremely subtle glass effect */
    background: rgba(255, 255, 255, 0.08); /* Almost invisible */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    /* Subtle border and shadow */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        /* Extremely subtle outer shadow */
        0 15px 35px -10px rgba(0, 0, 0, 0.08),
        
        /* Very subtle inner glow */
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        
        /* Very subtle border highlight */
        0 0 0 1px rgba(255, 255, 255, 0.1),
        
        /* Minimal inner shadow */
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    
    /* Extremely subtle gradient overlay */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 28px;
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.01) 100%
        );
        pointer-events: none;
        z-index: -1;
    }
}

/* X-Button REMOVED from here - all related styles removed */

/* SINGLE scrollable content wrapper - NO nested scrolling */
.main-content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

#main-content.active .main-content-wrapper {
    opacity: 1;
}

/* Scrollable content area - ONLY ONE SCROLLBAR - HIDDEN SCROLLBAR */
.scrollable-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
    padding: 20px; /* Increased padding for more space inside */
    
    /* HIDE SCROLLBAR VISUALLY but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollable-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Title Section - ADJUSTED FOR SMALLER CONTAINER */
.title-section {
    padding: 6rem 2rem 3rem; /* Increased padding for more space */
    max-width: 1200px; /* Reduced max-width */
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
}

.title-heading {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Reduced font size */
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 2rem; /* Increased margin for more space */
    line-height: 1.1;
    letter-spacing: -0.8px; /* Reduced letter-spacing */
    max-width: 800px; /* Reduced max-width */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

#main-content.active .title-heading {
    opacity: 1;
    transform: translateY(0);
}

.title-highlight {
    color: var(--orange-primary);
    font-weight: 400;
}

.title-description {
    font-size: 0.95rem; /* Slightly smaller font */
    color: var(--light-charcoal);
    max-width: 650px; /* Reduced max-width */
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.1px; /* Reduced letter-spacing */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
    margin-bottom: 2rem; /* Added margin for more space */
}

#main-content.active .title-description {
    opacity: 1;
    transform: translateY(0);
}

.title-description p {
    margin-bottom: 1.2rem; /* Increased margin */
}

.title-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem auto; /* Increased margin for more space */
    max-width: 1200px; /* Reduced max-width */
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

#main-content.active .title-line {
    opacity: 1;
}

/* Main Content Layout - Navigation NEXT TO Preview - ADJUSTED */
.main-container {
    display: flex;
    max-width: 1100px; /* Reduced max-width */
    margin: 0 auto;
    padding: 2rem 2rem 4rem; /* Increased padding for more space */
    gap: 4rem; /* Increased gap for more space between columns */
    align-items: flex-start;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

#main-content.active .main-container {
    opacity: 1;
    transform: translateY(0);
}

/* Left Column - Navigation with extreme transparency */
.left-column {
    flex: 0 0 250px; /* Reduced width */
    position: sticky;
    top: 2rem; /* Increased top position for more space */
    height: fit-content;
    z-index: 2;
}

.content-header {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem; /* Reduced font size */
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 1.8rem; /* Increased margin */
    letter-spacing: -0.4px; /* Reduced letter-spacing */
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Increased gap for more space between items */
}

.nav-item {
    padding: 1.2rem 1.5rem; /* Increased padding for more space inside */
    background: rgba(255, 255, 255, 0.2); /* EXTREMELY transparent */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px; /* Slightly smaller radius */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(1px); /* Minimal blur */
    -webkit-backdrop-filter: blur(1px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.03), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(-10px);
    margin-bottom: 8px; /* Added margin for more space */
    transition: none !important; /* Disable transitions for synchronization */
}

#main-content.active .nav-item {
    opacity: 1;
    transform: translateX(0);
}

.nav-item:nth-child(1) { transition: all 0.4s ease 0.7s, opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s; }
.nav-item:nth-child(2) { transition: all 0.4s ease 0.75s, opacity 0.4s ease 0.75s, transform 0.4s ease 0.75s; }
.nav-item:nth-child(3) { transition: all 0.4s ease 0.8s, opacity 0.4s ease 0.8s, transform 0.4s ease 0.8s; }
.nav-item:nth-child(4) { transition: all 0.4s ease 0.85s, opacity 0.4s ease 0.85s, transform 0.4s ease 0.85s; }

.nav-item:hover, .nav-item.active {
    transform: translateX(4px) translateY(-2px); /* Reduced translateX */
    border-color: var(--orange-primary);
    background: rgba(255, 255, 255, 0.3); /* Still very transparent */
    box-shadow: 
        0 5px 15px rgba(255, 107, 53, 0.1), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(255, 107, 53, 0.15);
}

.nav-item.active {
    border-color: var(--orange-primary);
    background: rgba(255, 107, 53, 0.08);
    transition: none !important; /* Disable transitions for synchronization */
}

.nav-item-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 300;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.7rem; /* Reduced gap */
    letter-spacing: 0.15px; /* Reduced letter-spacing */
}

.nav-item-icon {
    color: var(--orange-primary);
    font-size: 0.8rem; /* Slightly smaller icon */
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
    transform: translateX(3px);
}

.nav-item-number {
    color: var(--orange-primary);
    opacity: 0.6;
    font-size: 0.75rem; /* Slightly smaller */
    margin-right: 0.3rem; /* Reduced margin */
}

/* Right Column - Preview with extreme transparency - ADJUSTED */
.right-column {
    flex: 1;
    min-height: 420px; /* Reduced min-height */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

#main-content.active .right-column {
    opacity: 1;
    transform: translateY(0);
}

.preview-panel {
    position: relative;
    width: 100%;
    height: 420px; /* Reduced height */
    background: rgba(255, 255, 255, 0.2); /* EXTREMELY transparent */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px; /* Slightly smaller radius */
    overflow: hidden;
    backdrop-filter: blur(1px); /* Minimal blur */
    -webkit-backdrop-filter: blur(1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.04), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-top: 1rem; /* Added margin for more space above */
}

/* Blank Default Preview */
.preview-default {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
}

/* Simple hover previews - Minimal content */
.simple-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    padding: 2.5rem; /* Increased padding for more space inside */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.25); /* EXTREMELY transparent */
    backdrop-filter: blur(1px); /* Minimal blur */
    -webkit-backdrop-filter: blur(1px);
    transition: none !important; /* Disable transitions for synchronization */
}

.simple-preview.active {
    opacity: 1;
    visibility: visible;
    transition: none !important; /* Disable transitions for synchronization */
}

.simple-preview-header {
    margin-bottom: 1.8rem; /* Increased margin */
}

.simple-preview-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.4rem; /* Reduced font size */
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: -0.4px; /* Reduced letter-spacing */
}

.simple-preview-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Increased gap */
}

.simple-preview-description {
    font-size: 0.85rem; /* Slightly smaller font */
    color: var(--gray);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 1rem; /* Added margin */
}

.simple-preview-action {
    margin-top: auto;
    padding-top: 1.5rem; /* Increased padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem; /* Slightly smaller font */
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

/* Full Screen Expanded View - iOS compatible */
.full-screen-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.10); /* 93% opaque white */
    z-index: 99999; /* Very high z-index to be on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    padding: 0;
    /* Remove saturation from iOS devices to fix rendering issues */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.full-screen-expanded.active {
    opacity: 1;
    visibility: visible;
}

.full-screen-content {
    max-width: 1100px; /* Reduced max-width */
    margin: 0 auto;
    padding: 5rem 2rem 3rem; /* Increased padding for more space */
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.full-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem; /* Increased margin */
    padding-bottom: 1.8rem; /* Increased padding */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.full-screen-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem); /* Reduced font size */
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: -0.8px; /* Reduced letter-spacing */
}

.full-screen-close {
    background: rgba(255, 255, 255, 0.85); /* 85% opaque */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 42px; /* Slightly smaller */
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem; /* Slightly smaller font */
    color: var(--charcoal);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.full-screen-close:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1) rotate(90deg);
    color: var(--orange-primary);
    border-color: var(--orange-primary);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.2), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 0 0 1px rgba(255, 107, 53, 0.25);
}

.full-screen-body {
    font-size: 1rem; /* Slightly smaller font */
    line-height: 1.7;
    color: var(--light-charcoal);
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.88); /* 88% opaque */
    border-radius: 18px; /* Slightly smaller radius */
    padding: 2.5rem; /* Increased padding for more space */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.full-screen-body h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.6rem; /* Reduced font size */
    font-weight: 300;
    margin: 2.5rem 0 1.2rem; /* Increased margin */
    color: var(--charcoal);
}

.full-screen-body p {
    margin-bottom: 1.5rem; /* Increased margin */
}

.full-screen-image {
    background: rgba(255, 255, 255, 0.85); /* 85% opaque */
    border-radius: 14px; /* Slightly smaller radius */
    overflow: hidden;
    position: relative;
    height: 220px; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0; /* Increased margin */
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.06), /* Reduced shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.full-screen-image-placeholder {
    color: var(--orange-light);
    font-size: 3rem; /* Reduced size */
    opacity: 0.6;
}

.full-screen-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Increased gap */
    margin: 1.5rem 0; /* Increased margin */
}

.full-screen-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem; /* Increased gap */
    color: var(--light-charcoal);
    font-size: 0.9rem; /* Slightly smaller font */
    padding: 0.9rem 1rem; /* Increased padding */
    background: rgba(255, 255, 255, 0.82); /* 82% opaque */
    border-radius: 8px; /* Slightly smaller radius */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    margin-bottom: 4px; /* Added margin */
}

.full-screen-list-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.full-screen-list-item:before {
    content: '→';
    color: var(--orange-primary);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem; /* Slightly smaller */
}

.full-screen-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem; /* Reduced gap */
    color: var(--orange-primary);
    text-decoration: none;
    font-size: 0.9rem; /* Slightly smaller font */
    font-weight: 300;
    margin-top: 2rem; /* Increased margin */
    padding: 1rem 1.5rem; /* Increased padding */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; /* Slightly smaller radius */
    transition: all 0.3s ease;
    width: fit-content;
    background: rgba(255, 255, 255, 0.85); /* 85% opaque */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.06), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.full-screen-link:hover {
    gap: 0.8rem; /* Reduced gap */
    background: rgba(255, 255, 255, 0.92);
    transform: translateX(4px); /* Reduced translate */
    border-color: var(--orange-primary);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.15), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Footer - ADJUSTED */
.footer {
    padding: 3rem 2rem; /* Increased padding */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem; /* Increased margin for more space above footer */
    color: var(--gray);
    font-size: 0.8rem; /* Slightly smaller font */
    font-weight: 300;
    position: relative;
    z-index: 2;
    background: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.9s, transform 0.5s ease 0.9s;
}

#main-content.active .footer {
    opacity: 1;
    transform: translateY(0);
}

/* Notification with extreme transparency */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 107, 53, 0.95);
    color: var(--white);
    padding: 0.9rem 1.8rem; /* Reduced padding */
    border-radius: 14px; /* Slightly smaller radius */
    font-size: 0.85rem; /* Slightly smaller font */
    letter-spacing: 0.2px; /* Reduced letter-spacing */
    z-index: 1000;
    transition: bottom 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem; /* Reduced gap */
    font-weight: 300;
    backdrop-filter: blur(1px); /* Minimal blur */
    -webkit-backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.2), /* Reduced shadow */
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.notification.show {
    bottom: 2rem;
}

/* Stylish Scroll Indicator - Bottom Right of Screen */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    opacity: 0.7;
    transition: all 0.2s ease-out; /* FASTER - same as title */
    transform: translateY(0);
}

.scroll-indicator.active {
    opacity: 0.7;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-line {
    width: 1.5px;
    height: 60px;
    background: linear-gradient(
        to top,
        transparent,
        var(--orange-primary) 20%,
        var(--orange-primary) 80%,
        transparent
    );
    position: relative;
    border-radius: 1px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    background: var(--orange-primary);
    border-radius: 50%;
    animation: scrollPulse 0.5s infinite ease-in-out;
}

.scroll-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--orange-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-top: 15px;
    font-weight: 300;
    opacity: 0.8;
}

@keyframes scrollPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(40px);
        opacity: 0.3;
    }
}

/* PERFECTLY SYNCHRONIZED ANIMATIONS */
@keyframes navItemFadeIn {
    from { 
        opacity: 0.7;
        transform: translateX(-2px) translateY(0);
    }
    to { 
        opacity: 1;
        transform: translateX(4px) translateY(-2px);
    }
}

@keyframes previewFadeIn {
    from { 
        opacity: 0;
        transform: translateY(8px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.nav-item.active {
    animation: navItemFadeIn 0.3s ease forwards !important;
}

.simple-preview.active {
    animation: previewFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* Responsive Design - UPDATED FOR SMALLER CONTAINER */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: row;
        gap: 3rem; /* Increased gap */
        max-width: 900px;
    }
    
    .left-column {
        position: sticky;
        flex: 0 0 220px; /* Reduced width */
        top: 2rem; /* Increased top position */
    }
    
    .right-column {
        flex: 1;
    }
    
    .preview-panel {
        height: 380px; /* Reduced height */
    }
    
    .full-screen-content {
        padding: 4rem 1.5rem 2.5rem; /* Increased padding */
    }
    
    .full-screen-title {
        font-size: 2rem; /* Reduced font size */
    }
    
    .watermark-overlay {
        width: 250px;
        height: 120px;
    }
    
    #main-content.active {
        width: calc(100% - 80px); /* Increased from 60px */
        height: calc(100vh - 120px); /* Increased from 100px */
        margin: 60px auto; /* Increased from 50px */
        border-radius: 24px;
        backdrop-filter: blur(3px); /* Very minimal blur */
        -webkit-backdrop-filter: blur(3px);
    }
    
    /* Close button styles REMOVED from here */
    
    .title-section {
        padding: 4rem 1.5rem 2rem; /* Increased padding */
    }
    
    .scroll-spacer {
        height: 120vh; /* Adjusted for tablet - doubled */
    }
    
    .scroll-indicator {
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .title-section {
        padding: 4rem 1.5rem 2rem; /* Increased padding */
    }
    
    .main-container {
        flex-direction: column;
        gap: 3rem; /* Increased gap for better spacing */
        padding: 0 1.5rem 3rem; /* Increased padding */
        align-items: center; /* Center align items */
        width: 100%; /* Ensure full width */
        max-width: 100%; /* Remove max-width constraint */
    }
    
    .left-column {
        position: static;
        flex: none;
        width: 100%;
        max-width: 500px; /* Limit width for better mobile layout */
        margin: 0 auto; /* Center the navigation */
    }
    
    .right-column {
        flex: none;
        width: 100%;
        max-width: 500px; /* Match navigation width */
        margin: 0 auto; /* Center the preview panel */
        min-height: 340px; /* Reduced min-height */
        transform: translateY(0); /* Reset transform for mobile */
    }
    
    .preview-panel {
        height: 340px; /* Reduced height */
        width: 100%; /* Ensure full width */
        margin: 1rem auto 0; /* Center with auto margins */
    }
    
    .simple-preview {
        padding: 2rem; /* Increased padding */
    }
    
    .code-input {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .full-screen-content {
        padding: 4rem 1rem 2rem; /* Increased padding */
    }
    
    .full-screen-title {
        font-size: 1.8rem; /* Reduced font size */
    }
    
    .full-screen-image {
        height: 180px;
    }
    
    .watermark-overlay {
        width: 200px;
        height: 100px;
    }
    
    #main-content.active {
        width: calc(100% - 60px); /* Increased from 40px */
        height: auto; /* Let height be determined by content */
        min-height: calc(100vh - 100px); /* Increased from 80px */
        margin: 50px auto; /* Increased from 40px */
        border-radius: 20px;
        backdrop-filter: blur(2px); /* Very minimal blur */
        -webkit-backdrop-filter: blur(2px);
    }
    
    /* Close button styles REMOVED from here */
    
    .title-heading {
        font-size: 1.6rem; /* Reduced font size */
    }
    
    .scroll-spacer {
        height: 100vh; /* Adjusted for mobile - doubled */
    }
    
    .scroll-indicator {
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-line {
        height: 50px;
    }
    
    .scroll-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .nav-item {
        padding: 1rem 1.2rem; /* Increased padding */
    }
    
    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .lock-name {
        font-size: 2.5rem;
    }
    
    .title-heading {
        font-size: 1.5rem; /* Reduced font size */
    }
    
    .watermark-overlay {
        width: 250px;
        height: 80px;
    }
    
    .full-screen-content {
        padding: 3rem 1rem 2rem; /* Increased padding */
    }
    
    .full-screen-title {
        font-size: 1.6rem; /* Reduced font size */
    }
    
    .full-screen-image {
        height: 140px;
    }
    
    .full-screen-body h2 {
        font-size: 1.3rem; /* Reduced font size */
    }
    
    .right-column {
        min-height: 300px; /* Reduced min-height */
        max-width: 100%; /* Full width on very small screens */
    }
    
    .preview-panel {
        height: 300px; /* Reduced height */
    }
    
    #main-content.active {
        width: calc(100% - 40px); /* Increased from 30px */
        height: auto; /* Let height be determined by content */
        min-height: calc(100vh - 80px); /* Increased from 60px */
        margin: 40px auto; /* Increased from 30px */
        border-radius: 18px;
        backdrop-filter: blur(1px); /* Very minimal blur */
        -webkit-backdrop-filter: blur(1px);
    }
    
    .title-section {
        padding: 3rem 1rem 1.5rem; /* Increased padding */
    }
    
    .main-container {
        padding: 0 1rem 2.5rem; /* Increased padding */
        gap: 2.5rem; /* Adjusted gap for small screens */
    }
    
    .left-column {
        max-width: 100%; /* Full width on very small screens */
    }
    
    /* Close button styles REMOVED from here */
    
    .footer {
        padding: 2rem 1rem; /* Increased padding */
        margin-top: 3rem; /* Increased margin */
    }
    
    .scroll-spacer {
        height: 80vh; /* Adjusted for small mobile - doubled */
    }
    
    .scroll-indicator {
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-line {
        height: 40px;
    }
    
    .scroll-text {
        font-size: 0.6rem;
    }
}

/* iOS-specific fixes - target Safari on iOS */
@supports (-webkit-touch-callout: none) and (not (translate: none)) {
    /* Fix for iOS blur rendering issues */
    #main-content.active {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .full-screen-expanded {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .full-screen-close,
    .full-screen-body,
    .full-screen-image,
    .full-screen-list-item,
    .full-screen-link {
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    
    .nav-item,
    .simple-preview,
    .preview-panel,
    .code-input,
    .enter-button,
    .notification {
        backdrop-filter: blur(0.5px);
        -webkit-backdrop-filter: blur(0.5px);
    }
    
    /* Reduce blur intensity for better iOS performance */
    .full-screen-body {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .full-screen-close {
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    
    .full-screen-image {
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
}

/* Animation Classes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease;
    border-color: #ff4757 !important;
}