/* Load Local Font: Sinerva (Elegant Pirate Header Theme) */
@font-face {
    font-family: 'Sinerva';
    src: url('assets/fonts/Sinerva.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================
   ONE OVEN 3RD CHARITY CUP - DESIGN SYSTEM CSS
   ========================================== */

/* ==========================================
   SPLASH SCREEN
   ========================================== */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Push content up into the ocean sky, above the waves */
    padding-bottom: clamp(160px, 26vh, 36vh);
    overflow: hidden;
    background: #030f1c;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

#splash-screen.splash-exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

/* Deep layered ocean gradient background */
.splash-ocean-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, #0d4f7a 0%, #06263f 45%, #010c17 100%);
    z-index: 0;
}

/* ---- Waves ---- */
/* ---- Waves (5 layers, horizontal scrolling SVG) ---- */
.splash-waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(200px, 35vh, 45vh);
    z-index: 1;
}

.splash-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-repeat: repeat-x;
    animation: wave-scroll linear infinite;
}

/* Wave 1 — deepest back, light teal, slowest */
.splash-wave-1 {
    height: 140px;
    bottom: 48%;
    opacity: 0.45;
    background-size: 800px 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 140'%3E%3Cpath d='M0,70 C100,30 200,110 300,70 C400,30 500,110 600,70 C700,30 800,110 800,70 L800,140 L0,140 Z' fill='%2349b8e8'/%3E%3C/svg%3E");
    animation-duration: 14s;
}

/* Wave 2 — teal medium */
.splash-wave-2 {
    height: 130px;
    bottom: 34%;
    opacity: 0.55;
    background-size: 700px 130px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 130'%3E%3Cpath d='M0,65 C90,30 180,100 280,65 C380,30 470,100 560,65 C630,38 670,88 700,65 L700,130 L0,130 Z' fill='%231a7a96'/%3E%3C/svg%3E");
    animation-duration: 10s;
    animation-direction: reverse;
}

/* Wave 3 — medium-dark teal */
.splash-wave-3 {
    height: 120px;
    bottom: 22%;
    opacity: 0.7;
    background-size: 600px 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120'%3E%3Cpath d='M0,60 C80,28 160,92 240,60 C320,28 400,92 480,60 C540,36 575,80 600,60 L600,120 L0,120 Z' fill='%230d4f7a'/%3E%3C/svg%3E");
    animation-duration: 7.5s;
}

/* Wave 4 — dark navy */
.splash-wave-4 {
    height: 110px;
    bottom: 10%;
    opacity: 0.85;
    background-size: 500px 110px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 110'%3E%3Cpath d='M0,60 C60,35 130,85 200,60 C270,35 340,85 400,60 C445,42 478,76 500,60 L500,110 L0,110 Z' fill='%23062033'/%3E%3C/svg%3E");
    animation-duration: 5.5s;
    animation-direction: reverse;
}

/* Wave 5 — near black front, fastest, blends to splash bg */
.splash-wave-5 {
    height: 90px;
    bottom: 0;
    opacity: 1;
    background-size: 400px 90px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 90'%3E%3Cpath d='M0,50 C60,28 130,72 200,50 C270,28 340,72 400,50 L400,90 L0,90 Z' fill='%23030f1c'/%3E%3C/svg%3E");
    animation-duration: 4s;
}

@keyframes wave-scroll {
    0%   { background-position-x: 0; }
    100% { background-position-x: 800px; }
}

/* ---- Floating Sea Bubbles ---- */
.splash-bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.sb {
    position: absolute;
    bottom: 10%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: sb-rise linear infinite;
}
.sb1  { width:10px; height:10px; left:10%;  animation-duration:6s;  animation-delay:0s;   }
.sb2  { width:6px;  height:6px;  left:22%;  animation-duration:8s;  animation-delay:1.2s; }
.sb3  { width:14px; height:14px; left:38%;  animation-duration:7s;  animation-delay:0.5s; }
.sb4  { width:8px;  height:8px;  left:55%;  animation-duration:9s;  animation-delay:2s;   }
.sb5  { width:5px;  height:5px;  left:68%;  animation-duration:6.5s;animation-delay:0.8s; }
.sb6  { width:12px; height:12px; left:80%;  animation-duration:7.5s;animation-delay:1.5s; }
.sb7  { width:7px;  height:7px;  left:90%;  animation-duration:5.5s;animation-delay:3s;   }

@keyframes sb-rise {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    15%  { opacity: 0.7; }
    85%  { opacity: 0.4; }
    100% { transform: translateY(-80vh) scale(0.6); opacity: 0; }
}

/* ---- Main Content ---- */
.splash-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    padding: 0 1.5rem;
    animation: splash-rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splash-rise-in {
    0%   { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---- Logo ---- */
.splash-logo-wrapper {
    position: relative;
    width: clamp(260px, 40vh, 420px);
    height: clamp(260px, 40vh, 420px);
    margin-bottom: 0.3rem;
    flex-shrink: 0;
}
.splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: splash-float 3.5s ease-in-out infinite;
    filter: drop-shadow(0 12px 36px rgba(0,0,0,0.75));
}
@keyframes splash-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ---- Text Composition ---- */

/* "ONE OVEN" — Sinerva pirate font, gold, dominant */
.splash-title {
    font-family: 'Sinerva', serif;
    font-size: clamp(2.8rem, 9.8vw, 5rem); /* Enlarged by ~12-14% */
    color: #fad8a1;
    letter-spacing: 10px;
    text-shadow:
        0 0 32px rgba(250, 216, 161, 0.65),
        0 3px 10px rgba(0, 0, 0, 0.9);
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Thin gold divider between title and subtitle */
.splash-divider {
    width: clamp(100px, 18vw, 180px);
    height: 2px;
    background: linear-gradient(90deg, transparent, #fad8a1, transparent);
    margin: 0.8rem auto;
    opacity: 0.7;
}

/* "4TH CHARITY CUP" — Sinerva pirate font, cream, secondary */
.splash-subtitle {
    font-family: 'Sinerva', serif;
    font-size: clamp(1.15rem, 3.8vw, 1.8rem);
    color: #f2e3d8;
    letter-spacing: 5px;
    margin: 0;
    font-weight: normal;
    text-transform: uppercase;
}
.splash-subtitle span {
    font-size: 0.75em;
    vertical-align: super;
    letter-spacing: 0;
}

/* Tagline — Sinerva pirate font, cyan, smallest */
.splash-tagline {
    font-family: 'Sinerva', serif;
    font-size: clamp(0.95rem, 2.8vw, 1.35rem);
    color: rgba(73, 184, 232, 0.95);
    letter-spacing: 2.5px;
    margin: 0.8rem 0 0;
    text-transform: none;
}


:root {
    /* Color Palette based on Assets */
    --clr-cyan: #49b8e8;          /* Dominant background cyan */
    --clr-cyan-light: #00e0ff;    /* Vibrant cyan highlight */
    --clr-cyan-dark: #2497ca;     /* Deep cyan accent */
    --clr-gold: #fad8a1;          /* Dominant mascot/logo gold */
    --clr-gold-light: #fdcd85;    /* Light gold highlight */
    --clr-cream: #f2e3d8;         /* Cream off-white from logo */
    --clr-white: #FFFFFF;
    
    /* Glow highlights (Soften opacity to be easier on the eyes) */
    --clr-cyan-glow: rgba(73, 184, 232, 0.22);
    --clr-cyan-light-glow: rgba(0, 224, 255, 0.22);
    --clr-cyan-dark-glow: rgba(36, 151, 202, 0.22);
    --clr-gold-glow: rgba(250, 216, 161, 0.22);
    --clr-gold-light-glow: rgba(253, 205, 133, 0.22);
    
    /* Dark Theme Shifting to Navy Blue (based on background.png) */
    --clr-bg: #060e1a;            /* Deep navy midnight background */
    --clr-card-bg: rgba(10, 22, 38, 0.65); /* Navy blue translucent card background */
    --clr-border: rgba(73, 184, 232, 0.15); /* Cyan tinted borders */
    
    /* Font Families */
    --ff-title: 'Sinerva', serif; /* Ornate pirate header font */
    --ff-head: 'Londrina Solid', cursive; /* Bold Neobrutalist buttons/timer digits */
    --ff-accent: 'Lobster Two', cursive;
    --ff-body: 'Montserrat', sans-serif; /* Clean, modern, highly legible body font */
}

/* ==========================================
   LIQUID GLASS HEADER
   ========================================== */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Liquid glass base */
    background: rgba(6, 14, 26, 0.28);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    /* Subtle gold & cyan glass border at bottom */
    border-bottom: 1px solid rgba(250, 216, 161, 0.22);
    /* Inner highlight on top edge — liquid glass shimmer */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 4px 32px rgba(6, 14, 26, 0.45);
}

/* Animated glass shimmer strip */
#site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(250, 216, 161, 0.5) 25%,
        rgba(73, 184, 232, 0.6) 50%,
        rgba(250, 216, 161, 0.5) 75%,
        transparent 100%
    );
    animation: header-shimmer 4s ease-in-out infinite;
}

@keyframes header-shimmer {
    0%, 100% { opacity: 0.4; transform: scaleX(0.8); }
    50%       { opacity: 1;   transform: scaleX(1);   }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1.8rem;
    position: relative;
    min-height: 72px;
}

/* Logo slots */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-logo-left  { justify-content: flex-start; }
.header-logo-right { justify-content: flex-end; }
.header-logo-center { justify-content: center; }

.header-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Center OVEN logo is the hero logo — a bit bigger */
.header-logo-center-img {
    height: 68px;
    filter:
        drop-shadow(0 0 16px rgba(250, 216, 161, 0.55))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.header-logo-img:hover {
    transform: scale(1.08) translateY(-2px);
    filter:
        drop-shadow(0 0 16px rgba(73, 184, 232, 0.5))
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-cyan) var(--clr-bg);
    scroll-padding-top: 88px;
}

body {
    font-family: var(--ff-body);
    background-color: var(--clr-bg);
    /* Lighter, atmospheric deep turquoise ocean-sky gradient overlay */
    background-image: 
        linear-gradient(rgba(12, 38, 58, 0.42), rgba(4, 9, 18, 0.78)), 
        url('assets/images/background.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    /* Mobile fix: fallback to scroll for browsers that don't support fixed */
    will-change: background-position;
    color: var(--clr-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: var(--clr-bg);
}
body::-webkit-scrollbar-thumb {
    background: var(--clr-cyan);
    border-radius: 10px;
}

/* Active Particles Canvas & Watermarks */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999; /* Bring to front so particles float over the layout */
    overflow: hidden;
}

/* Golden Spark Dust */
.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff 10%, var(--clr-gold) 80%);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-gold);
    opacity: 0;
    animation: float-up linear infinite;
}

/* Cute Calm Sea Bubbles */
.bubble-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset -1px -1px 3px rgba(255, 255, 255, 0.2), 0 0 4px rgba(73, 184, 232, 0.2);
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(105vh) translateX(0px) scale(0.6);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-5vh) translateX(var(--drift, 100px)) scale(1.2);
        opacity: 0;
    }
}

/* Helper Typographies */
.londrina { font-family: var(--ff-head); font-weight: 400; }
.lobster { font-family: var(--ff-accent); font-weight: 700; font-style: italic; }

/* ==========================================
   CARRD CENTERING WRAPPER LAYOUT
   ========================================== */
#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* subpages start from top, no weird center gap */
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 2rem 1.5rem;
    padding-top: calc(1.5rem + 88px); /* offset for fixed header */
}

/* home section still centers vertically */
#home-section {
    min-height: calc(100vh - 88px - 4rem);
    justify-content: center;
    perspective: 1000px;
}

#main {
    width: 100%;
    max-width: 52rem; /* wider to fill desktop better */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

#main > .inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section Router Transitions */
section {
    display: none;
    opacity: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateY(12px);
}

section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    animation: section-enter 0.4s ease-out forwards;
}

@keyframes section-enter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo Image Header */
.logo-header-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-header-img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.7)) drop-shadow(0 0 20px rgba(250,216,161,0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-header-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.7)) drop-shadow(0 0 28px rgba(250,216,161,0.35));
}


/* Logo Display with Float (Idle Animation) */
.logo-wrapper {
    perspective: 1000px;
    margin-bottom: 1.8rem;
    cursor: grab;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    display: flex;
    justify-content: center;
    width: 100%;
}

.home-logo-img {
    max-width: 420px; /* More proportional, fits on one screen better */
    width: 85%;
    height: auto;
    filter:
        drop-shadow(0 16px 32px rgba(0, 0, 0, 0.65))
        drop-shadow(0 0 50px rgba(73, 184, 232, 0.22))
        drop-shadow(0 5px 15px rgba(250, 216, 161, 0.18));
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-tagline {
    font-family: var(--ff-title);
    font-size: clamp(1.4rem, 4.5vw, 2.4rem);
    color: #2b1810; /* Dark engraved brown ink */
    background: linear-gradient(135deg, #f5ebd5 0%, #dcd0b8 100%);
    border: 3.5px solid #63452c;
    border-radius: 6px;
    padding: 0.6rem 2.8rem;
    display: inline-block;
    margin: 0.5rem auto 2.2rem auto;
    position: relative;
    box-shadow: 
        0 10px 28px rgba(0, 0, 0, 0.6),
        inset 0 0 12px rgba(99, 69, 44, 0.2);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* 3D ribbon ends styling */
    transform-style: preserve-3d;
    transform: rotate(-1deg);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.hero-tagline:hover {
    transform: translateY(-5px) rotate(1deg) scale(1.02);
    box-shadow: 
        0 14px 36px rgba(0, 0, 0, 0.7),
        inset 0 0 16px rgba(99, 69, 44, 0.25);
}

/* 3D Ribbon Left Tail */
.hero-tagline::before {
    content: '';
    position: absolute;
    top: 6px;
    left: -18px;
    width: 22px;
    height: 100%;
    background: #c3b191;
    border: 3.5px solid #63452c;
    border-right: none;
    z-index: -1;
    transform: translateZ(-1px) skewY(5deg);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* 3D Ribbon Right Tail */
.hero-tagline::after {
    content: '';
    position: absolute;
    top: 6px;
    right: -18px;
    width: 22px;
    height: 100%;
    background: #c3b191;
    border: 3.5px solid #63452c;
    border-left: none;
    z-index: -1;
    transform: translateZ(-1px) skewY(-5deg);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Pirate Themed Divider styling */
.pirate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(to right, transparent, var(--clr-gold), transparent);
}

.divider-icon {
    font-size: 1.4rem;
    color: var(--clr-gold);
    text-shadow: 0 0 10px var(--clr-gold-glow);
    animation: pulse-slow 3s infinite ease-in-out;
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Floating Countdown Timer */
.timer-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.timer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.digit-box {
    font-family: var(--ff-head);
    font-size: 3.5rem;
    color: var(--clr-white);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 60px;
    text-align: center;
    position: relative;
    box-shadow: none;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.digit-box::after {
    display: none;
}

.timer-label {
    font-family: var(--ff-head);
    font-size: 0.95rem;
    color: var(--clr-gold);
    margin-top: 0.4rem;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.timer-divider {
    font-family: var(--ff-head);
    font-size: 3rem;
    color: var(--clr-gold);
    margin-top: -1.2rem;
    animation: blink 1.5s infinite ease-in-out;
}

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

/* Action Capsule Buttons Stack */
.buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 3.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2rem;
    border-radius: 50px;
    font-family: var(--ff-head);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    border: 3.5px solid #ffffff;
    box-shadow: 4.5px 4.5px 0px #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, letter-spacing 0.15s ease;
    width: 100%;
    color: #ffffff;
}

.btn span {
    transition: letter-spacing 0.15s ease;
}

.btn-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.15s ease;
}

.btn:hover {
    transform: translate(3.5px, 3.5px);
    box-shadow: 1px 1px 0px #ffffff;
}

.btn:hover .btn-icon {
    transform: scale(1.15) rotate(-6deg);
}

.btn:hover span {
    letter-spacing: 2px;
}

.btn:active {
    transform: translate(4.5px, 4.5px);
    box-shadow: 0px 0px 0px #ffffff;
}

/* Button Color schemes - Neo-Brutalist 3D style (Pirate Theme Colors) */
.btn-red {
    background: #c62828; /* Pirate Crimson Red */
    color: #ffffff;
}

.btn-orange {
    background: #0e6f80; /* Deep Sea Teal */
    color: #ffffff;
}

.btn-yellow {
    background: #e5b82b; /* Treasure Gold */
    color: #060e1a;
}

.btn-white {
    background: #d8cbb0; /* Vintage Parchment Cream */
    color: #060e1a;
}

/* Home Social Icons Row */
.socials-container {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--clr-white);
    transition: fill 0.3s ease;
}

.social-icon:hover {
    background: var(--clr-cyan-light);
    border-color: var(--clr-cyan-light);
    box-shadow: 0 0 15px var(--clr-cyan-light-glow);
    transform: translateY(-3px);
}

.social-icon:hover svg {
    fill: #060e1a;
}

/* ==========================================
   SUBPAGES (ABOUT, LOMBA, MERCH) GENERAL STYLING
   ========================================== */
.poster-container-card {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

/* Smaller poster variant for About Us & Mascot */
.poster-sm {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.section-full-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65)) drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
    cursor: pointer;
}

.section-full-img:hover {
    transform: scale(1.025);
    filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.section-full-img:active {
    transform: scale(1.04);
}

.btn-back {
    margin-top: 1.5rem;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(216, 203, 176, 0.92) !important; /* Flat parchment cream */
    color: #060e1a !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-back:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 22px rgba(0,0,0,0.45) !important;
    background: #e8dcc8 !important;
}

.btn-back:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.btn-back .btn-icon {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
}

/* ==========================================
   8 COMPETITIONS MENU SESELECTOR GRID
   ========================================== */
.competitions-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.comp-selector-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.comp-sel-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
}

.comp-selector-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.comp-selector-card:hover .comp-sel-img {
    transform: scale(1.03);
}

/* ==========================================
   COMPETITION DETAIL PAGES LINKS
   ========================================== */
.competition-links-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.sub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.95rem 1.8rem;
    border-radius: 50px;
    font-family: var(--ff-head);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    border: 3.5px solid #ffffff;
    box-shadow: 4px 4px 0px #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, letter-spacing 0.15s ease;
    width: 100%;
    box-sizing: border-box;
    /* Default (Guide Book) -> Vintage Parchment Cream */
    background: #d8cbb0;
    color: #060e1a;
}

.sub-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0px #ffffff;
    background: #e8dcc8;
    color: #060e1a;
}

.sub-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #ffffff;
}

.sub-btn-wa {
    background: #128c7e; /* WhatsApp Green */
    color: #060e1a;
}

.sub-btn-wa:hover {
    background: #1ebd59; /* Bright WhatsApp Green on hover */
    color: #060e1a;
}

/* Color schemes for Pendaftaran button, matching the main buttons */
.orange-bg {
    background: #e5b82b; /* Treasure Gold */
    color: #060e1a;
}
.orange-bg:hover {
    background: #fad8a1;
    color: #060e1a;
}

.red-bg {
    background: #c62828; /* Crimson Red */
    color: #060e1a;
}
.red-bg:hover {
    background: #d32f2f;
    color: #060e1a;
}

.blue-bg {
    background: #0e6f80; /* Teal */
    color: #060e1a;
}
.blue-bg:hover {
    background: #13879b;
    color: #060e1a;
}

.yellow-bg {
    background: #e5b82b; /* Treasure Gold */
    color: #060e1a;
}
.yellow-bg:hover {
    background: #fad8a1;
    color: #060e1a;
}

/* ==========================================
   MERCHANDISE PAGE CTA BOX
   ========================================== */
.merch-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.merch-cta-btn {
    width: 100%;
}

/* ==========================================
   SEIZOME CAM SECTION (DOCUMENTATION)
   ========================================== */
.seizomecam-title {
    font-family: var(--ff-title);
    font-size: 3rem;
    color: var(--clr-white);
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
}

.seizomecam-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    text-align: center;
}

.seizomecam-days-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.day-btn {
    background: var(--clr-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--clr-white);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.day-btn-title {
    font-size: 1.5rem;
    color: var(--clr-gold);
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}

.day-btn-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.day-btn:hover {
    border-color: var(--clr-cyan-light);
    box-shadow: 0 10px 25px var(--clr-cyan-light-glow);
    transform: translateY(-4px);
    background: rgba(10, 22, 38, 0.75);
}

/* ==========================================
   SCROLL UNROLLING ANIMATION STYLES
   ========================================== */

.scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem auto;
    cursor: pointer;
    user-select: none;
}

/* Outer clip wrapper — clips the scroll open/close animation */
.scroll-clip {
    width: 100%;
    overflow: hidden;
    max-height: 196px;  /* closed: default height matching aspect ratio */
    min-height: 80px;   /* safety: never collapse to 0 while JS loads */
    border-radius: 12px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.7));
    cursor: pointer;
    position: relative;
    /* Default transition (opening) - Snappy Ease Out Expo */
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.2s ease;
}

.scroll-wrapper.closing .scroll-clip {
    /* Closing transition — Snappy Ease Out */
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.2s ease;
}

.scroll-wrapper.closed .scroll-clip:hover {
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85)) brightness(1.05);
}

.scroll-wrapper.open .scroll-clip {
    max-height: 1200px;  /* big enough to show full scroll */
}

/* Scroll closed image */
.scroll-closed-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.25s ease;
}

/* Inner image — the full scroll image fills everything */
.scroll-full-img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Toggle visibility between states */
.scroll-wrapper.open .scroll-closed-img {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

.scroll-wrapper.open .scroll-full-img {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* Hint Overlay sits on top of the scroll clip */
.scroll-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease 0.1s;
}

.scroll-wrapper.open .scroll-hint-overlay {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-btn {
    background: rgba(250, 216, 161, 0.92);
    color: #060e1a;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(250, 216, 161, 0.4);
    animation: hint-pulse 2s infinite ease-in-out;
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-hint-btn:hover {
    background: rgba(250, 216, 161, 1);
    box-shadow: 0 6px 22px rgba(250, 216, 161, 0.6);
}

.scroll-hint-btn span {
    font-size: 1rem;
    letter-spacing: 1px;
}

.scroll-hint-btn .hint-icon {
    font-size: 1.2rem;
    animation: bounce-down 1.5s infinite ease-in-out;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Close button (standalone below scroll, shows when open) */
.scroll-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.6rem auto 1.5rem auto;
    background: rgba(216, 203, 176, 0.12);
    border: 1px solid rgba(216, 203, 176, 0.35);
    color: rgba(250, 216, 161, 0.9);
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--ff-head);
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease 0.5s, background 0.3s ease;
    backdrop-filter: blur(4px);
    width: auto;
}

/* When wrapper is open, show the button — but button is now outside wrapper */
/* So JS toggles a class on the button directly */
.scroll-close-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-close-btn:hover {
    background: rgba(216, 203, 176, 0.25);
}

@keyframes hint-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(250, 216, 161, 0.3);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 6px 22px rgba(250, 216, 161, 0.55);
    }
}

/* ==========================================
   CARRD FOOTER CREDITS
   ========================================== */
.carrd-credits {
    margin-top: 3rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.carrd-credits:hover {
    opacity: 0.8;
}

.carrd-credits a {
    text-decoration: none;
    color: var(--clr-white);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

/* Tablet & Mobile tweaks */
@media (max-width: 768px) {
    /* Fix: background-attachment: fixed tidak didukung dengan baik di mobile */
    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }

    #wrapper {
        padding: 1rem 0.8rem;
        padding-top: calc(0.5rem + 62px);
    }
    
    #main {
        max-width: 100%;
    }
    
    .header-logo-img {
        height: 40px;
    }
    
    .header-logo-center-img {
        height: 52px;
    }
    
    .header-inner {
        padding: 0.4rem 1rem;
        min-height: 62px;
    }
    
    /* Logo subpage di mobile */
    .logo-header-img {
        max-height: 110px;
    }
    
    .logo-header-container {
        margin-bottom: 1.2rem;
    }
    
    .home-logo-img {
        max-width: 220px;
        width: 68%;
    }
    
    #home-section {
        min-height: calc(100vh - 62px - 2rem);
    }
    
    .hero-tagline {
        font-size: clamp(0.95rem, 3.2vw, 1.4rem);
        padding: 0.4rem 1.6rem;
    }
    
    .timer-container {
        gap: 0.6rem;
    }
    
    .digit-box {
        font-size: 2.6rem;
        min-width: 45px;
        padding: 0;
    }
    
    .timer-label { 
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .timer-divider { font-size: 2.2rem; margin-top: -1rem; }
    
    .btn {
        font-size: 1.1rem;
        padding: 0.95rem 1.4rem;
    }
    
    .buttons-stack {
        margin-bottom: 2rem;
    }
    
    .poster-container-card {
        margin-bottom: 1.2rem;
    }
    
    /* Competition cards berjejer ke bawah satu persatu di mobile */
    .competitions-selector-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.2rem;
    }
    
    .comp-selector-card {
        max-width: 290px;
        width: 100%;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .mascot-img {
        max-width: 230px;
    }
    
    .timer-container {
        gap: 0.5rem;
    }
    
    .timer-container .digit-box {
        font-size: 2rem;
        min-width: 38px;
        padding: 0;
    }
    
    .timer-container .timer-divider {
        font-size: 1.8rem;
        margin-top: -0.7rem;
    }
    
    .timer-container .timer-label {
        font-size: 0.7rem;
        margin-top: 0.3rem;
        letter-spacing: 0.5px;
    }
    
    .competitions-selector-grid {
        gap: 0.8rem;
    }
    
    .seizomecam-days-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}
