/* ==========================================

   INSPIREWALL - CINEMATIC LANDING PAGE
   Premium, Minimal, Motivational
   ========================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Dark Cinematic */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-gradient-start: #0a0a0a;
    --bg-gradient-end: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    
    --accent-primary: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    --spacing-3xl: 10rem; /* larger spacing for big layout separations */
    
    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.8s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Cinematic Background Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: subtleRotate 60s linear infinite;
}

@keyframes subtleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-md);
    background: 
        radial-gradient(ellipse at top, rgba(60, 60, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(30, 30, 30, 0.2) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    transform: translateY(-2rem);
}

.logo-container {
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

/* Allow wrapping and tighter spacing for smaller screens */
@media (max-width: 480px) {
    .logo-container { gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
}

.logo {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Image logo fallback for actual image element */
img.logo { display: block; max-width: 320px; height: auto; }


/* Smaller avatar for mobile */
@media (max-width: 480px) {
    /* Increased logo size for mobile — more presence while staying constrained */
    .logo { font-size: clamp(1.75rem, 13vw, 2.8rem); max-width: 260px; height: auto; display: inline-block; }
    img.logo { max-width: 300px; }
    .logo-container { gap: 0.6rem; align-items: center; }
    .hero-content { transform: translateY(0); }
}
/* Avatar removed; this was used for a circular avatar image */

/* Additional mobile layout adjustments */
@media (max-width: 480px) {
    .hero { min-height: 68vh; padding-top: 1.4rem; padding-bottom: 1.4rem; }
    .showcase { min-height: auto; padding: var(--spacing-lg) var(--spacing-sm); }
    .showcase-container { gap: var(--spacing-md); max-width: 680px; margin: 0 auto; }
    .wallpaper-image { aspect-ratio: 10 / 16; border-radius: var(--radius-md); }
    /* Ensure MailerLite embed stacks and uses full width inputs/buttons on small screens */
    #mlb2-34039006 .ml-form-embedWrapper { padding: 10px; border-radius: 14px; }
    #mlb2-34039006 input.form-control { width: 100%; }
    #mlb2-34039006 .ml-form-embedSubmit button { width: 100%; }
}

@media (max-width: 480px) {
    .description-text { font-size: 0.9rem; padding: 0 0.35rem; }
    .wishlist-content { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

/* Hero scroll chevron (chevron rotated to point down) */
.hero-scroll {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 1.35rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: none;
    transform: none; /* no rotation - using a down caret icon now */
}

.hero-scroll:focus {
    outline: 3px solid rgba(255, 255, 255, 0.08);
    outline-offset: 3px;
}

.hero-scroll:hover,
.hero-scroll:focus {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.16);
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(255,255,255,0.12), 0 0 14px rgba(255,255,255,0.06);
}

/* Gentle pulsing animation to catch the eye on non-interaction */
@keyframes heroPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.95; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-scroll.pulse {
    animation: heroPulse 2.5s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-scroll.pulse { animation: none; }
}

/* Apply Montserrat bold for headings */
h1, h2, h3, .wishlist-title, .footer-logo {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
}

/* Scroll Indicator */
/* Scroll indicator removed per design request */

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ==========================================
   WALLPAPER SHOWCASE SECTION
   ========================================== */

.showcase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    margin-top: var(--spacing-xl); /* add extra distance from the hero */
    position: relative;
    z-index: 1;
   
}


.showcase-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    /* Show 3 columns at desktop widths */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-3xl) var(--spacing-xl); /* larger vertical gap and generous horizontal gap */
    padding: var(--spacing-md);
    size: 100%;
}

.wallpaper-card {
    position: relative;
    opacity: 1;
    transform: none;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), filter var(--transition-medium), opacity var(--transition-medium);
    cursor: pointer;
}

/* Transitioning class used when rotating content in/out */
.wallpaper-card.transitioning {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Base shadow for gallery cards to provide subtle depth */


/* Focused card style when hovered or focused */
.wallpaper-card.is-focused {
    z-index: 20;
    /* bring the focused card above others */
    /* we want the image to focus, not the entire card - style kept minimal here */
}

/* Dim non-focused cards to make the focused card stand out */
.wallpaper-card.is-dimmed {
    filter: brightness(0.45) contrast(0.85) saturate(0.9) blur(0px);
    opacity: 0.66;
    transition: filter var(--transition-medium), opacity var(--transition-medium);
}

/* Subtle base shadow on the image only (not the card/description) */

/* When the card is focused show a stronger image shadow and scale the image */
.wallpaper-card.is-focused .wallpaper-image {
    transform: translateY(-12px) scale(1.06);
    box-shadow: 0 48px 110px rgba(255,255,255,0.12), 0 0 40px rgba(255,255,255,0.10);
    filter: brightness(1.03) saturate(1.06);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), filter var(--transition-medium);
}

/* reveal animation not used for the gallery */

.wallpaper-image {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 10px 36px rgba(255, 255, 255, 0.06); /* subtle white glow under the wallpaper image only */
    transition: all var(--transition-medium);
    cursor: pointer;
}

.wallpaper-image:hover {
    transform: translateY(-8px) scale(1.04);
}

.wallpaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform var(--transition-slow);
}

/* Prevent image dragging and selection to reduce casual downloading */
.wallpaper-image img, #spotlightImage, #lightboxImage {
    -webkit-user-drag: none; /* safari */
    -moz-user-select: none; /* firefox */
    -ms-user-select: none; /* IE10+ */
    user-select: none;
}

/* Prevent long-press image menu on iOS and Android where possible */
#lightboxImage, #spotlightImage { -webkit-touch-callout: none; }

/* Overlay above the image to prevent long-press save on mobile while keeping click/tap handlers */
.wallpaper-image .img-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 4; /* sits above the image but below controls if any */
    cursor: zoom-in;
    -webkit-touch-callout: none; /* disable long-press callout in iOS */
    touch-action: manipulation; /* keep taps and double taps functional */
}

/* Temporary full-screen black overlay used to block screenshots when keys are detected */
.screenshot-blocker {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 999999; /* very high to cover everything */
    opacity: 1;
    pointer-events: none; /* let pointer events pass through if needed */
}
.screenshot-blocker.hidden { opacity: 0; }

/* Devtools / Inspect Blocker overlay */
.inspect-blocker {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    color: #fff;
    z-index: 2147483647; /* highest z-index to cover everything */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 1.25rem;
    text-align: center;
    padding: 2rem;
}
@media (max-width: 480px) {
    .inspect-blocker { display: none; } /* skip on small devices due to detection false positives */
}

.wallpaper-image:hover img {
    transform: scale(1.03);
}

.wallpaper-card.transitioning .wallpaper-image img {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
}

/* Ensure hover states on the card elevate the image slightly */
.wallpaper-card:hover .wallpaper-image,
.wallpaper-card:focus-within .wallpaper-image {
    transform: translateY(-12px) scale(1.06);
    box-shadow: 0 48px 110px rgba(255,255,255,0.12), 0 0 40px rgba(255,255,255,0.10);
    filter: brightness(1.02) saturate(1.05);
}

/* Hover/active card effect */
.wallpaper-card:hover {
    /* No transform on the card itself - image handles focus/transform */
    z-index: 20; /* match focused z-index so hovering brings the card forward */
}

/* On hover, brighten the description so it reads together with the image */
.wallpaper-card:hover .description-text {
    color: var(--text-primary);
    transform: translateY(-6px);
    font-weight: var(--font-weight-semibold);
}

/* Expanded card when clicked */
.wallpaper-card.is-expanded {
    /* Keep card scale minimal; image will scale for emphasis to avoid scaling text */
    z-index: 40;
}

/* Expanded card's shadow should appear only under the image */
.wallpaper-card.is-expanded .wallpaper-image {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 40px 120px rgba(255,255,255,0.10), 0 0 40px rgba(255,255,255,0.08);
}

/* On smaller screens, expanded card still fits full width */
@media (max-width: 1024px) {
    /* On smaller screens, only slightly scale instead of taking the full width */
    .wallpaper-card.is-expanded { transform: none; }
    .wallpaper-card.is-expanded .wallpaper-image { transform: scale(1.06) translateY(-4px); }
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 92%;
    max-height: 92%;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px rgba(255,255,255,0.06);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

/* Spotlight (centered, small overlay, for single-click) */
.spotlight {
    position: fixed;
    inset: 0; /* cover viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45); /* dim the background a bit */
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.spotlight.show {
    opacity: 1;
    visibility: visible;
}

.spotlight-inner {
    max-width: 780px; /* keep it noticeably larger than the thumbnails but not fullscreen */
    width: calc(min(70vw, 780px));
    max-height: calc(70vh);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 120px rgba(255,255,255,0.06);
}

.spotlight img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Make sure the close button sits above the spotlight inner content */
.spotlight .lightbox-close {
    z-index: 10001;
    color: var(--text-primary);
}

/* Responsive: fallback to 2/1 columns */
@media (max-width: 1024px) {
    .showcase-container { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-xl); }
}

@media (max-width: 480px) {
    .showcase-container { grid-template-columns: 1fr; gap: var(--spacing-lg); }
}

/* Placeholder styling for when images are loading */
/* removed placeholder ::before gradient to avoid darker overlay behind image/description */

.wallpaper-description {
    margin-top: 1.25rem; /* give the description slightly more spacing from the image */
    text-align: center;
}

.description-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0 0.5rem;
    opacity: 0; /* hidden by default */
    transform: translateY(6px); /* slightly pulled down when hidden */
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

/* When a card is focused, uplift and brighten description text */
.wallpaper-card.is-focused .description-text,
.wallpaper-card:hover .description-text,
.wallpaper-card.is-expanded .description-text {
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    font-weight: var(--font-weight-semibold);
}

/* When a card is dimmed, reduce description visibility */
.wallpaper-card.is-dimmed .description-text {
    /* Keep description hidden on dimmed cards to avoid showing non-focused descriptions */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wallpaper-card.transitioning .description-text {
    opacity: 0;
    transform: translateY(6px);
}

/* ==========================================
   WISHLIST / EMAIL CAPTURE SECTION
   ========================================== */

.wishlist {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    position: relative;
    z-index: 1;

}

.wishlist-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(60px);
    transition: all var(--transition-slow);
}

.wishlist-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.wishlist-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wishlist-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

/* Email Form */
.email-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: var(--spacing-sm) 0;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    outline: none;
    transition: all var(--transition-medium);
}

.input-container input::placeholder {
    color: var(--text-muted);
}

.input-container input:focus {
    border-bottom-color: var(--text-primary);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width var(--transition-medium);
}

.input-container input:focus ~ .input-underline {
    width: 100%;
}

.submit-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    color: var(--bg-primary);
    background: var(--text-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
    pointer-events: none;
    margin-top: var(--spacing-md);
}

.success-message.show {
    opacity: 1;
    transform: translateY(0);
}

.success-message p {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--text-muted) 50%, transparent 100%);
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: var(--font-weight-light);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

/* Fade In Animation */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in.delay-1 {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.fade-in.delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal Up Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

/* Show reveal elements when they receive the `.is-visible` class */
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-medium);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .showcase-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
        --spacing-2xl: 5rem;
    }
    
    .showcase-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --spacing-2xl: 4rem;
    }
    
    .hero {
        padding: var(--spacing-sm);
    }
    
    .showcase,
    .wishlist {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .wallpaper-image {
        border-radius: var(--radius-md);
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (already dark, but for consistency) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.no-scroll {
    overflow: hidden;
}
