/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Pacifico&display=swap');
/* Artistic display font for the Galleria title */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/**
 * HEMBLINGNET STYLE GUIDE
 * 
 * This stylesheet uses CSS variables for consistent theming.
 * To modify the site's appearance, adjust the values below.
 *
 * CUSTOMIZATION GUIDE:
 * 1. Colors: Update the color variables to change the site's color scheme
 * 2. Fonts: Change font variables to modify typography
 * 3. Shadows & Effects: Adjust shadow and transition variables for visual effects
 */

/* === COLOR PALETTE & VARIABLES === */
:root {
    /* Primary Colors - Main theme colors */
    --color-dark-bg: #1E1E40;      /* Main background color */
    --color-primary-blue: #40C9FF;  /* Primary accent color */
    --color-secondary-green: #A2FF86; /* Secondary accent color */
    --color-secondary-gold: #FFD700;  /* Tertiary accent color */
    
    /* Text Colors */
    --color-text-light: #f0f0f0;    /* Primary text color */
    --color-subtle-light: #c0c0c0;  /* Secondary text color */
    
    /* Effects - Modify these to adjust visual styling */
    --shadow-normal: 0 4px 15px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.5);
    --transition-normal: all 0.3s ease;
    
    /* Typography - Update these to change fonts */
    --font-main: 'Montserrat', sans-serif;     /* Body text */
    --font-display: 'Pacifico', cursive;       /* Decorative text */
}

/* === BASIC RESET & COMMON STYLES === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-light);
    line-height: 1.6;
    background-color: var(--color-dark-bg);
    overflow-x: hidden;
}

/* === HERO & BACKGROUND === */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Use the same background image for continuity */
    background: url('https://public-assets.hembling.net/main-site/floridasunset.png') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 20px 20px; /* Increased top padding for more space below nav */
    box-sizing: border-box;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker, more prominent overlay with blur to make text pop */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

/* H1 STYLING - Modern, Playful Blue */
.main-welcome-title {
    font-family: 'Pacifico', cursive;
    font-size: 4.0em;
    color: var(--color-primary-blue);
    text-shadow:
        0 4px 0 rgba(0, 0, 0, 0.4), /* Sharp black shadow for a playful, lifted effect */
        0 0 25px rgba(64, 201, 255, 0.6); /* Blue glow */
    margin-bottom: 50px;
    letter-spacing: 2px;
}

/* === MAIN LOGIN BUTTONS === */
.main-login-container {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-button-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 35px;
    border-radius: 15px;
    font-size: 1.0em;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    max-width: 320px;
    width: 100%;
    box-sizing: border-box;
    /* Styling for the new generic button */
    background-color: rgba(30, 30, 64, 0.7);
    color: var(--color-text-light);
    border: 3px solid var(--color-primary-blue);
}

.login-button-main:hover {
    background-color: rgba(30, 30, 64, 0.9);
    transform: translateY(-5px);
    /* Blue glow on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-primary-blue);
}

.request-button-sub {
    display: block;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
    font-family: var(--font-main);
}

/* Style the request button with the new green accent */
.request-button-sub.new-accent-color {
    color: var(--color-secondary-green);
}

.request-button-sub:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

/* === LOWER CONTENT (News Feed, etc.) === */
.lower-content {
    margin-top: 50px;
}

/* Announcements Heading Style - Use Primary Blue for Heading */
.announcements-heading {
    color: var(--color-primary-blue); 
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 3px solid var(--color-secondary-green); /* Green underline */
    padding-bottom: 5px;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

.news-item {
    /* Semi-transparent dark background */
    background: rgba(10, 10, 20, 0.85); 
    backdrop-filter: blur(8px);
    /* Subtle blue border for all items */
    border: 1px solid rgba(64, 201, 255, 0.3); 
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* SPECIAL ANNOUNCEMENT STYLES - Highlight with Green */
.special-announcement .news-item {
    margin-bottom: 80px; /* Increased bottom margin */
    /* Special green border and glow */
    border: 2px solid var(--color-secondary-green); 
    box-shadow: 0 0 25px rgba(162, 255, 134, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.special-announcement .news-title {
    font-size: 2.0em; 
    color: var(--color-secondary-green); /* Green Title */
    text-shadow: 0 0 10px rgba(162, 255, 134, 0.6);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.news-title {
    font-size: 1.495em; /* 15% larger than 1.3em */
    color: var(--color-primary-blue); /* Blue Title */
    margin-bottom: 5px;
    font-weight: 700;
}

.news-date {
    font-size: 0.9em;
    color: var(--color-subtle-light);
    margin-bottom: 15px;
}

/* New News Item Link Style */
.news-item p a {
    color: var(--color-secondary-green);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.news-item p a:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}


/* STYLES FOR MULTIPLE BABY IMAGES */
.baby-image {
    width: 160px;
    height: 160px;
    border-radius: 50%; /* Make them circular for a playful look */
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    /* Green border on images */
    border: 3px solid var(--color-secondary-green); 
    margin-right: 15px;
}

.baby-image:last-of-type {
    margin-right: 0;
}

.baby-image:hover {
    transform: scale(1.08) rotate(-2deg); /* Added a slight rotation for playfulness */
    box-shadow: 0 0 20px var(--color-primary-blue); /* Blue glow on hover */
}

.button-group {
    margin-top: 40px;
    margin-bottom: 20px;
}

.action-button {
    display: inline-block;
    border: none;
    padding: 18px 35px;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    letter-spacing: 1px;
    margin-top: 60px; /* Moved space to above button */
}

/* NEW ACTION BUTTON - Vibrant Blue */
.button-primary-accent {
    background-color: var(--color-primary-blue);
    color: var(--color-dark-bg); /* Dark text on bright button */
}

.button-primary-accent:hover {
    transform: translateY(-4px);
    background-color: #72dbff;
    /* Shadow with the complementary green color */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 25px var(--color-secondary-green); 
}


/* === NAVIGATION STYLES === */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(30, 30, 64, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--color-secondary-gold);
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    text-decoration: none;
    font-size: 3.264rem; /* Reduced by 15% for mobile visibility */
    line-height: 1;
    display: flex;
    align-items: center;
}

.galleria-nav-title {
    border-left: 2px solid var(--color-secondary-green);
    padding-left: 24px;
    margin-top: 8px;
}

/* LOGO WORDMARK STYLES - NEW COLORS */
.logo-name {
    color: var(--color-primary-blue);
    font-family: 'Pacifico', cursive;
    font-size: 1em;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8), /* Prominent black shadow */
        0 0 10px rgba(64, 201, 255, 0.5);
    margin-right: 2px;
}

/* ".net" - Green Accent */
.logo-suffix {
    color: var(--color-secondary-green);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    vertical-align: top;
    text-shadow: 0 0 5px rgba(162, 255, 134, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 20px; /* Keeps increased gap between nav items */
    margin-right: 40px; /* Keeps nav items away from right edge */
}

.nav-links a {
    display: block;
    padding: 10px 20px;
    border-radius: 8px; /* Sharper corners */
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary-blue);
    /* Background in the green accent */
    background-color: rgba(162, 255, 134, 0.1); 
    border-color: var(--color-primary-blue);
    transform: translateY(-2px);
}

/* === HAMBURGER MENU STYLES === */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    z-index: 1001;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #FFDCA8;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 218, 168, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger-menu::before {
    content: "Menu";
    font-style: italic;
    letter-spacing: 1px;
}

.hamburger-menu:hover {
    color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hamburger-menu[aria-expanded="true"]::before {
    content: "Close";
}

/* Casual style for main page */
.hamburger-menu.casual-style {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-blue);
    background-color: rgba(30, 30, 64, 0.8);
    border: 2px solid var(--color-primary-blue);
    border-radius: 12px;
    padding: 10px 20px;
    text-shadow: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hamburger-menu.casual-style::before {
    content: "Menu";
    font-style: normal;
    letter-spacing: 0.5px;
}

.hamburger-menu.casual-style:hover {
    background-color: rgba(30, 30, 64, 0.95);
    color: var(--color-secondary-green);
    border-color: var(--color-secondary-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-secondary-green);
}

.hamburger-menu.casual-style[aria-expanded="true"]::before {
    content: "Close";
}

.hamburger-menu.casual-style[aria-expanded="true"] {
    color: var(--color-secondary-green);
    border-color: var(--color-secondary-green);
}

/* Hide the old bar styling */
.hamburger-menu .bar {
    display: none;
}

/* === MOBILE NAVIGATION DRAWER === */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(30, 30, 64, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    border-left: 3px solid var(--color-secondary-gold);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-drawer[aria-hidden="true"] {
    pointer-events: none;
}

.mobile-nav-drawer[aria-hidden="false"] {
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(162, 255, 134, 0.2);
}

.mobile-nav-links a {
    display: block;
    padding: 20px 30px;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: var(--color-primary-blue);
    background-color: rgba(162, 255, 134, 0.1);
    border-left-color: var(--color-primary-blue);
    transform: translateX(8px);
}

/* === FOOTER SECTION === */
.about-section {
    background-color: #0F0F25; /* Even darker indigo */
    color: var(--color-subtle-light);
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--color-secondary-green); /* Green separator */
}

.about-section h2 {
    font-family: 'Pacifico', cursive;
    color: var(--color-secondary-green); /* Green heading */
    font-size: 2.8em;
    margin-bottom: 20px;
}

.about-section p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === GALLERIA PAGE / FINE ART STYLES === */
.galleria-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(180deg, rgba(18,12,30,0.9), rgba(30,18,40,0.75));
    display: flex;
    align-items: center;
    padding: 120px 20px 40px; /* Increased top padding for better nav clearance */
    box-sizing: border-box;
}

.galleria-header {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.galleria-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.057rem; /* Increased by 10% for better visibility */
    color: #FFDCA8; /* warm ivory/gold */
    text-shadow: 0 6px 12px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

.galleria-subtle {
    color: var(--color-subtle-light);
    font-size: 0.88825rem; /* Increased by 10% for better visibility */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

.gallery-item {
    background: rgba(255,255,255,0.02);
    padding: 18px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-frame {
    background: #0b0b0b;
    padding: 14px;
    border: 8px solid #f3e7d9; /* off-white frame */
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 18px rgba(255,218,170,0.06) inset;
    border-radius: 6px;
}

.gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    margin-top: 12px;
    text-align: center;
    color: var(--color-subtle-light);
    font-size: 0.95rem;
}

.gallery-artist {
    color: var(--color-primary-blue);
    font-weight: 700;
    display: block;
    margin-top: 6px;
}

.gallery-date {
    color: var(--color-secondary-green);
    font-size: 0.85rem;
    margin-top: 4px;
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 18px; }
    .gallery-image { height: 320px; }
    .galleria-title { font-size: 1.6rem; }
    .main-nav { flex-direction: column; }
}

/* === POPOUT STYLES (Kept functional, subtle color tweaks) === */
.popout-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); display: none; justify-content: center; align-items: center; z-index: 3000; }
.video-player { width: 90%; max-width: 450px; max-height: 80vh; border-radius: 10px; }
.popout-image { max-width: 95%; max-height: 95%; object-fit: contain; border-radius: 10px;}
.popout-close-button { 
    position: absolute; top: 20px; right: 30px; 
    color: var(--color-text-light); 
    font-size: 35px; font-weight: bold; cursor: pointer; 
    transition: color 0.3s, transform 0.3s; 
    text-shadow: 0 0 8px black; 
}
.popout-close-button:hover { 
    color: var(--color-primary-blue); 
    transform: scale(1.1); 
}

/* Popout caption styling */
.popout-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.06);
    color: var(--color-text-light);
    padding: 12px 18px;
    border-radius: 6px;
    text-align: center;
    max-width: 85%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    display: none;
    z-index: 3100;
}
.popout-caption-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: #FFDCA8; font-weight:700; }
.popout-caption-artist { font-weight:600; color: var(--color-primary-blue); margin-top:6px; }
.popout-caption-date { color: var(--color-subtle-light); font-size:0.9rem; margin-top:4px; }

/* === MARQUEE (intermittent) === */
.marquee-wrap {
    position: fixed;
    top: 12px;
    left: 0;
    width: 100%;
    pointer-events: none; /* unobtrusive */
    display: flex;
    justify-content: center;
    z-index: 2000;
}
.marquee {
    display: inline-block;
    background: rgba(255,255,255,0.5); /* 50% white */
    color: #111;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight:700;
    opacity: 0;
    transform: translateX(-20%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    animation: marquee-cycle 12s linear infinite;
}

/* The marquee moves across then fades; the cycle is paced so it appears intermittently */
@keyframes marquee-cycle {
    0% { opacity: 0; transform: translateX(-40%); }
    10% { opacity: 1; transform: translateX(-20%); }
    40% { opacity: 1; transform: translateX(40%); }
    50% { opacity: 0; transform: translateX(60%); }
    100% { opacity: 0; transform: translateX(60%); }
}

@media (max-width: 480px) {
    .marquee { font-size: 0.85rem; padding: 6px 12px; }
}

/* === Critics static + marquee inside Galleria Featured Works === */


.critics-area { margin-top: 18px; margin-bottom: 28px; display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.critics-static { color: var(--color-text-light); opacity:0; font-weight:600; font-size:1.05rem; }
.critics-marquee-wrap { width:100%; overflow:hidden; }
.critics-marquee { display:inline-block; background: rgba(255,255,255,0.5); color:#111; padding:10px 20px; border-radius:999px; font-weight:700; font-size: 1.3em; }
.marquee-1 { animation: critics-marquee-move-1 100s linear infinite; }
.marquee-2 { animation: critics-marquee-move-2 100s linear infinite; }
.marquee-3 { animation: critics-marquee-move-3 100s linear infinite; }
.marquee-4 { animation: critics-marquee-move-4 100s linear infinite; }

/* Animation for first marquee (left to right) */
@keyframes critics-marquee-move-1 {
    0% { transform: translateX(-110%); opacity: 0; }
    2% { transform: translateX(-110%); opacity: 0; }   /* 2s delay */
    7% { transform: translateX(-30%); opacity: 1; }    /* fade-in */
    22% { transform: translateX(30%); opacity: 1; }    /* mid-move */
    27% { transform: translateX(60%); opacity: 0; }    /* fade-out */
    100% { transform: translateX(60%); opacity: 0; }
}

/* Animation for second marquee (left to right, starts 5s after first) */
@keyframes critics-marquee-move-2 {
    0% { opacity: 0; transform: translateX(-110%); }
    7% { opacity: 0; transform: translateX(-110%); }   /* 7s delay (5s after first) */
    12% { opacity: 1; transform: translateX(-30%); }    /* fade-in */
    27% { opacity: 1; transform: translateX(30%); }     /* mid-move */
    32% { opacity: 0; transform: translateX(60%); }     /* fade-out */
    100% { opacity: 0; transform: translateX(60%); }
}

/* Animation for third marquee (right to left, starts 5s after second) */
@keyframes critics-marquee-move-3 {
    0% { opacity: 0; transform: translateX(110%); }
    12% { opacity: 0; transform: translateX(110%); }    /* 12s delay (5s after second) */
    17% { opacity: 1; transform: translateX(30%); }     /* fade-in */
    32% { opacity: 1; transform: translateX(-30%); }    /* mid-move */
    37% { opacity: 0; transform: translateX(-110%); }   /* fade-out */
    100% { opacity: 0; transform: translateX(-110%); }
}

/* Animation for fourth marquee (left to right, slower, starts after first fades) */
@keyframes critics-marquee-move-4 {
    0% { transform: translateX(-110%); opacity: 0; }
    27% { transform: translateX(-110%); opacity: 0; }   /* starts after first fades (27s) */
    32% { transform: translateX(-30%); opacity: 1; }    /* fade-in */
    47% { transform: translateX(30%); opacity: 1; }     /* mid-move, matches speed of first */
    52% { transform: translateX(60%); opacity: 0; }     /* fade-out */
    100% { transform: translateX(60%); opacity: 0; }
}

/* Animation for first marquee (left to right) */
@keyframes critics-marquee-move-1 {
    0% { transform: translateX(-110%); opacity: 0; }
    2.7% { transform: translateX(-110%); opacity: 0; }   /* 2s delay */
    6.7% { transform: translateX(-30%); opacity: 1; }    /* fade-in */
    21.3% { transform: translateX(30%); opacity: 1; }    /* mid-move */
    26.7% { transform: translateX(60%); opacity: 0; }    /* fade-out */
    100% { transform: translateX(60%); opacity: 0; }
}

/* Animation for second marquee (left to right, starts 2s after first) */
@keyframes critics-marquee-move-2 {
    0% { opacity: 0; transform: translateX(-110%); }
    5.3% { opacity: 0; transform: translateX(-110%); }   /* 4s delay (2s after first) */
    9.3% { opacity: 1; transform: translateX(-30%); }    /* fade-in */
    24% { opacity: 1; transform: translateX(30%); }      /* mid-move */
    29.3% { opacity: 0; transform: translateX(60%); }    /* fade-out */
    100% { opacity: 0; transform: translateX(60%); }
}

/* Animation for third marquee (right to left, starts 3s after second) */
@keyframes critics-marquee-move-3 {
    0% { opacity: 0; transform: translateX(110%); }
    9.3% { opacity: 0; transform: translateX(110%); }    /* 7s delay (3s after second) */
    13.3% { opacity: 1; transform: translateX(30%); }    /* fade-in */
    28% { opacity: 1; transform: translateX(-30%); }     /* mid-move */
    33.3% { opacity: 0; transform: translateX(-110%); }  /* fade-out */
    100% { opacity: 0; transform: translateX(-110%); }
}

@keyframes critics-static-cycle {
    /* map seconds to percent of 25s total cycle */
    0% { opacity: 0; }
    4% { opacity: 1; }      /* 1s */
    48% { opacity: 1; }     /* 12s */
    60% { opacity: 0; }     /* 15s */
    100% { opacity: 0; }
}

@keyframes critics-marquee-move {
    /* marquee active between 2s and 10s -> corresponds to 8% - 40% of 25s */
    0% { transform: translateX(-110%); opacity: 0; }
    8% { transform: translateX(-110%); opacity: 0; }   /* start of marquee period */
    16% { transform: translateX(-30%); opacity: 1; }    /* after 2s fade-in */
    32% { transform: translateX(30%); opacity: 1; }     /* mid-move */
    40% { transform: translateX(60%); opacity: 0; }     /* end of marquee fade-out */
    100% { transform: translateX(60%); opacity: 0; }    /* idle period */
}

@media (max-width: 600px) {
    .critics-marquee { font-size: 1.05em; }
    .critics-static { font-size: 0.98rem; }

    .main-nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .nav-left {
        flex-direction: row;
        margin: 0;
        gap: 24px;
        align-items: center;
        margin-left: 0;
    }

    .nav-logo a {
        font-size: 2.7rem; /* Increased further for more impact */
    }

    /* Galleria-specific styles - only apply if galleria elements exist */
    .galleria-nav-title {
        border-left: 2px solid var(--color-secondary-green);
        padding-left: 24px;
        margin-top: 8px;
        text-align: left;
        position: relative;
        width: auto;
        max-width: none;
        margin: 8px 0 0 0;
    }

    .nav-links {
        display: none; /* Hide traditional nav links on mobile */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
        margin: 18px auto 0 auto; /* Add space above, center horizontally */
        font-size: 0.95rem; /* Make button a bit smaller */
        padding: 7px 16px;
        min-width: 90px;
    }

    .galleria-title {
        font-size: 1.72rem; /* Increased by 15% for better prominence */
        color: #FFDCA8;
        text-align: left;
        padding: 0;
    }

    .galleria-subtle {
        font-size: 0.97rem; /* Increased by 15% to match title growth */
        text-align: left;
        padding: 0;
        margin-bottom: 8px;
        margin-top: 38px; /* Move subtitle down below nav bar */
    }

    .galleria-hero {
        padding: 140px 20px 40px; /* Extra top padding for mobile nav clearance */
    }
}

/* === RESPONSIVE ADJUSTMENTS === */
/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
    :root {
        --content-padding: 20px;
        --reduced-font-size: 85%;
    }
    
    html { font-size: var(--reduced-font-size); }
    
    /* Layout */
    .main-nav { 
        padding: 0.5rem var(--content-padding);
    }

    .nav-left {
        margin-left: var(--content-padding);
        gap: 16px;
    }
    
    /* Typography */
    .main-welcome-title {
    font-size: 3.8em;
        margin: 0 var(--content-padding);
    }
    
    /* Navigation */
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 8px 15px;
    }

    .galleria-nav-title {
        padding-left: 16px;
    }
    
    /* Content Elements */
    .news-item,
    .button-group,
    .action-button,
    .announcements-heading {
        margin-left: var(--content-padding);
        margin-right: var(--content-padding);
    }
    
    .announcements-heading { text-align: center; }
    
    .baby-image {
        width: 85px;
        height: 85px;
    }
    
    .action-button { font-size: 1.1em; }
}

@media (max-width: 480px) {
    /* Typography */
    .main-welcome-title {
        font-size: 1.55em; /* Increased to fill space */
        line-height: 1.1;
        margin-top: 38px; /* More space above title */
        margin-bottom: 24px;
        margin-left: 1px;
        margin-right: 1px;
    }
    .galleria-subtle {
     margin-top: 38px !important; /* Ensure subtitle is moved down on smallest screens */
    }
    
    /* Navigation */
    .main-nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 12px 15px;
        gap: 12px;
    }
    
    .nav-logo {
        margin: 0;
        justify-content: center;
        margin-bottom: 0;
    }

    .nav-left {
        flex-direction: row;
        margin: 0;
        gap: 18px;
        align-items: center;
        margin-left: 0;
    }
    
    .nav-logo a { 
        font-size: 2.35rem; /* Increased further for more impact */
    }
    
    .nav-links {
        display: none; /* Hide traditional nav links on mobile */
    }

    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
        margin: 14px auto 0 auto; /* Add space above, center horizontally */
        font-size: 0.9rem; /* Make button a bit smaller */
        padding: 6px 14px;
        min-width: 80px;
    }
    
    /* Login button */
    .login-button-main {
        font-size: 1.0em; /* 30% smaller */
        padding: 15px 25px;
        max-width: 200px;
    }
    
    /* Special announcement */
    .special-announcement .news-title {
        font-size: 1.5em;
        line-height: 1.3;
    }
    
    /* Content Elements */
    .news-item { 
        padding: 15px;
    }
    
    .button-group {
        margin-top: 20px;
    }
    
    /* Action button */
    .action-button {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1em;
        display: block;
    }
}

/* === HELP MODAL STYLES === */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.help-modal-overlay.active {
    display: flex;
}

.help-modal-content {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a2a5a 100%);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-hover);
    border: 2px solid var(--color-primary-blue);
}

.help-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--color-subtle-light);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 1001;
}

.help-modal-close:hover {
    color: var(--color-primary-blue);
    transform: scale(1.1);
}

.help-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--color-primary-blue);
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-secondary-green) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.help-modal-header h2 {
    font-family: var(--font-display);
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-text-light);
    -webkit-text-fill-color: var(--color-text-light);
}

.help-modal-subtitle {
    font-size: 1.1em;
    color: var(--color-primary-blue);
    font-weight: 600;
    -webkit-text-fill-color: var(--color-primary-blue);
}

.help-modal-body {
    padding: 20px 30px 30px;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h3 {
    color: var(--color-secondary-green);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.help-section p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-section ul,
.help-section ol {
    color: var(--color-text-light);
    margin-left: 20px;
    line-height: 1.6;
}

.help-section li {
    margin-bottom: 5px;
}

.help-section strong {
    color: var(--color-primary-blue);
}

.help-link {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: var(--transition-normal);
}

.help-link:hover {
    color: var(--color-secondary-green);
    text-decoration: underline;
}

.help-link strong {
    color: inherit;
}

.help-cta {
    text-align: center;
    padding: 20px;
    background: rgba(64, 201, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--color-primary-blue);
}

.help-cta p {
    color: var(--color-text-light);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.help-email-btn {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-secondary-green));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-normal);
}

.help-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

/* Mobile responsive styles for help modal */
@media (max-width: 768px) {
    .help-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .help-modal-header {
        padding: 20px 20px 15px;
    }
    
    .help-modal-header h2 {
        font-size: 1.5em;
    }
    
    .help-modal-body {
        padding: 15px 20px 20px;
    }
    
    .help-section h3 {
        font-size: 1.1em;
    }
    
    .help-section ul,
    .help-section ol {
        margin-left: 15px;
    }
}

/* === ABOUT MODAL STYLES === */
.about-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.about-modal-overlay.active {
    display: flex;
}

.about-modal-content {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a2a5a 100%);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 1px rgba(64, 201, 255, 0.3);
    border: 1px solid rgba(64, 201, 255, 0.2);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

.about-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-normal);
    z-index: 10;
}

.about-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary-blue);
    transform: rotate(90deg);
}

.about-modal-header {
    background: linear-gradient(135deg, rgba(64, 201, 255, 0.15) 0%, rgba(162, 255, 134, 0.1) 100%);
    padding: 35px 40px 25px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(64, 201, 255, 0.2);
}

.about-modal-header h2 {
    color: var(--color-primary-blue);
    font-size: 2.2em;
    margin: 0;
    font-family: var(--font-display);
    text-align: center;
}

.about-modal-body {
    padding: 40px 50px 50px;
    color: var(--color-text-light);
    line-height: 1.9;
    font-size: 1.05em;
}

.about-modal-body p {
    margin: 0 0 1.5em 0;
    text-align: left;
}

.about-tagline {
    font-size: 1.4em;
    color: var(--color-secondary-green);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2em !important;
    font-style: italic;
}

.about-emphasis {
    color: var(--color-primary-blue);
    font-size: 1.15em;
    font-weight: 600;
    margin: 1.8em 0 1.2em 0 !important;
}

.about-modal-body strong {
    color: var(--color-secondary-green);
    font-weight: 600;
}

.about-signature {
    text-align: center;
    font-style: italic;
    color: var(--color-subtle-light);
    margin-top: 2.5em !important;
    font-size: 1.1em;
    padding-top: 30px;
    border-top: 1px solid rgba(64, 201, 255, 0.2);
}

/* Smooth scrollbar for About modal */
.about-modal-content::-webkit-scrollbar {
    width: 10px;
}

.about-modal-content::-webkit-scrollbar-track {
    background: rgba(30, 30, 64, 0.5);
    border-radius: 10px;
}

.about-modal-content::-webkit-scrollbar-thumb {
    background: var(--color-primary-blue);
    border-radius: 10px;
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-green);
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive styles for about modal */
@media (max-width: 768px) {
    .about-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .about-modal-header {
        padding: 30px 25px 20px;
    }
    
    .about-modal-header h2 {
        font-size: 1.6em;
    }
    
    .about-modal-body {
        padding: 30px 25px 35px;
        font-size: 1em;
        line-height: 1.8;
    }
    
    .about-tagline {
        font-size: 1.2em;
    }
    
    .about-emphasis {
        font-size: 1.1em;
    }
}

/* === FAQ MODAL STYLES === */
.faq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.faq-modal-overlay.active {
    display: flex;
}

.faq-modal-content {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a2a5a 100%);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 1px rgba(64, 201, 255, 0.3);
    border: 1px solid rgba(64, 201, 255, 0.2);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

.faq-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-normal);
    z-index: 10;
}

.faq-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary-blue);
    transform: rotate(90deg);
}

.faq-modal-header {
    background: linear-gradient(135deg, rgba(64, 201, 255, 0.15) 0%, rgba(162, 255, 134, 0.1) 100%);
    padding: 35px 40px 25px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(64, 201, 255, 0.2);
}

.faq-modal-header h2 {
    color: var(--color-primary-blue);
    font-size: 2em;
    margin: 0;
    font-family: var(--font-main);
    font-weight: 600;
    text-align: center;
}

.faq-modal-body {
    padding: 35px 45px 45px;
    color: var(--color-text-light);
}

.faq-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(64, 201, 255, 0.15);
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--color-secondary-green);
    font-size: 1.2em;
    margin: 0 0 12px 0;
    font-weight: 600;
    font-family: var(--font-main);
}

.faq-item p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-link {
    color: var(--color-primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
}

.faq-link:hover {
    color: var(--color-secondary-green);
    text-decoration: underline;
}

.faq-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(64, 201, 255, 0.2);
    text-align: center;
}

.faq-footer-title {
    font-size: 1.3em;
    color: var(--color-secondary-green);
    font-weight: 600;
    margin-bottom: 15px !important;
}

.faq-footer p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin: 0 0 10px 0;
}

/* Smooth scrollbar for FAQ modal */
.faq-modal-content::-webkit-scrollbar {
    width: 10px;
}

.faq-modal-content::-webkit-scrollbar-track {
    background: rgba(30, 30, 64, 0.5);
    border-radius: 10px;
}

.faq-modal-content::-webkit-scrollbar-thumb {
    background: var(--color-primary-blue);
    border-radius: 10px;
}

.faq-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-green);
}

/* Mobile responsive styles for FAQ modal */
@media (max-width: 768px) {
    .faq-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .faq-modal-header {
        padding: 30px 25px 20px;
    }
    
    .faq-modal-header h2 {
        font-size: 1.5em;
    }
    
    .faq-modal-body {
        padding: 25px 20px 30px;
    }
    
    .faq-item {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .faq-item h3 {
        font-size: 1.1em;
    }
    
    .faq-item p {
        font-size: 0.95em;
    }
    
    .faq-footer {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .faq-footer-title {
        font-size: 1.2em;
    }
}
