/* ══════════════════════════════════════════
   TNADC 2026 — Enhanced Vintage-Modern CSS
   Palette: #a1d79e (sage) · #ed894a (terra)
   ══════════════════════════════════════════ */

:root {
    --sage: #a1d79e;
    --sage-dark: #7cc478;
    --sage-light: #c8e8c6;
    --terra: #ed894a;
    --terra-dark: #d4712f;
    --terra-light: #f4a97a;
    --paper: #F9F6F0;
    --cream: #F0EAD6;
    --sepia: #E3D7C1;
    --brown: #8B7355;
    --dark: #2C241B;
    --gold: #C5A059;
}

/* ── Base & Paper Texture ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    position: relative;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #1A1A1A; /* Dark charcoal for strong contrast and readability */
}

.paper-texture {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* ── Modal Styles ── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 36, 27, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--paper);
    border: 2px solid var(--sepia);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(44, 36, 27, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Vintage document styling for modal */
.modal-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(161, 215, 158, 0.05), rgba(237, 137, 74, 0.05));
    pointer-events: none;
    border-radius: 6px;
}

.modal-container::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(161, 215, 158, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: none;
    color: var(--vintage-dark);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(161, 215, 158, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--sepia);
    padding: 24px 24px 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 24px 24px 24px;
    margin-bottom: 0;
}

/* Custom scrollbar styling for modal body - vintage-modern theme */
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(249, 246, 240, 0.8);
    border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--sage), var(--terra));
    border-radius: 6px;
    border: 2px solid rgba(161, 215, 158, 0.2);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--terra), var(--sage));
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Firefox scrollbar styling */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--sage) rgba(249, 246, 240, 0.8);
}

.modal-consent {
    flex-shrink: 0;
    margin-bottom: 0;
}

.modal-footer {
    flex-shrink: 0;
    padding: 20px 24px 24px 24px;
    border-top: 1px solid var(--sepia);
    background: rgba(249, 246, 240, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vintage-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-category-badge {
    background: var(--sage);
    color: var(--vintage-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--vintage-dark);
    box-shadow: 2px 2px 0 var(--vintage-dark);
}

.modal-category-badge.terra-badge {
    background: var(--terra);
    box-shadow: 2px 2px 0 var(--vintage-dark);
}

.modal-category-badge.sage-badge {
    background: var(--sage);
    box-shadow: 2px 2px 0 var(--vintage-dark);
}

.modal-body {
    margin-bottom: 32px;
}

.modal-rules {
    display: grid;
    gap: 12px;
}

.modal-rule {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 12px;
    background: rgba(161, 215, 158, 0.05);
    border-left: 3px solid var(--sage);
    border-radius: 4px;
}

.modal-rule-label {
    font-weight: 600;
    color: var(--vintage-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-rule-value {
    color: var(--vintage-brown);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* New styles for detailed guidelines content */
.guidelines-section {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(161, 215, 158, 0.05);
    border: 1px solid var(--sepia);
    border-radius: 4px;
}

.guidelines-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vintage-dark);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--sepia);
    padding-bottom: 8px;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidelines-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(161, 215, 158, 0.2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.guidelines-list li:last-child {
    border-bottom: none;
}

.guidelines-list li strong {
    color: var(--vintage-dark);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--sepia);
}

.modal-consent {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(161, 215, 158, 0.05);
    border: 1px solid var(--sepia);
    border-radius: 4px;
}

.modal-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--vintage-brown);
    line-height: 1.5;
}

.modal-consent-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--sage);
}

.modal-consent-text {
    flex: 1;
}

.modal-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sage);
    color: var(--vintage-dark);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--vintage-dark);
    border-radius: 2px;
    box-shadow: 4px 4px 0 var(--vintage-dark);
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.5;
    pointer-events: none;
}

.modal-submit-btn:not(.disabled) {
    opacity: 1;
    pointer-events: auto;
}

.modal-submit-btn:not(.disabled):hover {
    background: var(--terra);
    color: var(--vintage-dark);
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;    /* Stacks the title and badge vertically */
        align-items: flex-start;   /* Aligns them to the left */
        gap: 12px;                 /* Adds breathing room between them */
        padding-right: 48px;       /* Keeps text from overlapping the X button */
    }

    .modal-category-badge {
        font-size: 0.65rem;        /* Scales the text down slightly for mobile */
        white-space: normal;       /* Ensures the text doesn't overflow */
        text-align: center;
    }
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding-right: 0;
    }
    
    /* Mobile scrollbar styling */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: var(--sage);
        border-radius: 3px;
        border: 1px solid rgba(161, 215, 158, 0.2);
    }
    
    .modal-rule {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-rule-label {
        border-bottom: 1px solid var(--sepia);
        padding-bottom: 4px;
    }
}

/* ── Navigation ── */
#navbar {
    background: rgba(249, 246, 240, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

/* Enhanced TNADC Logo Styling */
.nav-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
    animation: logoPulse 4s ease-in-out infinite, colorShift 6s linear infinite;
}

/* Animated gradient effects for logo */
@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 4px 6px rgba(161, 215, 158, 0.3));
    }
}

/* Color shifting animation for gradient */
@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Enhanced hover effects with color animation */
.nav-logo:hover {
    animation-play-state: paused;
    transform: rotate(15deg) scale(1.2);
    filter: drop-shadow(0 6px 12px rgba(237, 137, 74, 0.4)) hue-rotate(90deg);
}

/* Additional color cycling animation for SVG elements */
.nav-logo svg circle, .nav-logo svg line {
    transition: all 0.4s ease;
}

.nav-logo:hover svg circle, .nav-logo:hover svg line {
    stroke: #ffffff;
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Make the logo container more vibrant */
.nav-logo {
    background: radial-gradient(circle at center, rgba(161, 215, 158, 0.1), transparent 60%);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(4px);
}

/* Enhanced TNADC Text Styling */
.nav-logo + div span {
    color: #1A1A1A; /* Dark charcoal for maximum contrast */
    font-weight: 700; /* Bold for better visibility */
    text-shadow: 1px 1px 1px rgba(255,255,255,0.3); /* Subtle highlight */
}

.nav-logo + div span:last-child {
    color: #1A1A1A; /* Dark charcoal for year text */
    opacity: 0.8;
    font-weight: 600;
}

#navbar.scrolled {
    border-bottom-color: var(--sepia);
    box-shadow: 0 4px 30px rgba(44, 36, 27, 0.06);
}

.nav-inner {
    position: relative;
}

.nav-logo {
    transition: transform 0.3s ease;
}
.nav-logo:hover { transform: rotate(15deg); }

.nav-divider {
    width: 1px;
    height: 14px;
    background: var(--sepia);
}

.nav-link {
    position: relative;
    padding-bottom: 3px;
    font-weight: 600; /* Semi-bold for navigation links */
    letter-spacing: 0.18em; /* Enhanced letter-spacing */
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1.5px;
    background: var(--terra);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700; /* Bold for CTA button */
    letter-spacing: 0.14em; /* Enhanced letter-spacing */
    text-transform: uppercase;
    color: var(--dark);
    background: var(--sage);
    border: 2px solid var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--dark);
}
.nav-cta:hover {
    background: var(--terra);
    border-color: var(--dark);
    color: var(--dark);
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* ── Hero Section ── */
#hero {
    background: var(--paper);
    position: relative;
    overflow: hidden;
}

/* Enhanced hero content container */
.hero-content {
    position: relative;
    z-index: 10;
    animation: heroContentSlideIn 1.2s ease-out;
}

@keyframes heroContentSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced deadline pill for better visibility */
.deadline-pill {
    padding: 12px 28px;
    background: var(--cream);
    border: 1px solid var(--sepia);
    border-radius: 100px;
    box-shadow:
        3px 3px 0 var(--sage-light),
        6px 6px 0 rgba(161, 215, 158, 0.3);
    transition: all 0.3s ease;
    font-weight: 600; /* Semi-bold for deadline text */
    letter-spacing: 0.04em; /* Enhanced letter-spacing */
    margin-bottom: 1.5rem; /* Better spacing */
    animation: deadlinePillAppear 1s ease-out 0.8s both;
}

@keyframes deadlinePillAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.circle-1 {
    width: 500px; height: 500px;
    top: -100px; right: -150px;
    background: radial-gradient(circle, rgba(161, 215, 158, 0.12) 0%, transparent 70%);
}
.circle-2 {
    width: 400px; height: 400px;
    bottom: -80px; left: -100px;
    background: radial-gradient(circle, rgba(237, 137, 74, 0.10) 0%, transparent 70%);
}

.brushstroke-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
    animation: brushFlow 30s ease-in-out infinite;
}

/* Enhanced brushstroke drawing animations */
.brushstroke-bg svg path {
    transition: all 0.5s ease;
    filter: blur(1px);
    animation: texturePulse 4s ease-in-out infinite;
}

/* Dynamic drawing effect on page load */
.brushstroke-bg svg path {
    animation:
        brushFlow 30s ease-in-out infinite,
        texturePulse 4s ease-in-out infinite,
        colorShift 15s linear infinite;
}

/* Enhanced hover effects for brushstrokes */
.brushstroke-bg:hover svg path {
    filter: blur(0px);
    opacity: 1;
    transform: scale(1.02);
}

/* Subtle color shift animation for organic feel */
@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Texture pulse animation for organic movement */
@keyframes texturePulse {
    0%, 100% {
        filter: blur(1px) brightness(1);
    }
    50% {
        filter: blur(0.5px) brightness(1.1);
    }
}

/* Enhanced brushstroke flow animation */
@keyframes brushFlow {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    25% {
        transform: translateX(-10px) translateY(5px);
        opacity: 0.9;
    }
    50% {
        transform: translateX(0) translateY(-5px);
        opacity: 0.7;
    }
    75% {
        transform: translateX(10px) translateY(0);
        opacity: 0.85;
    }
}

/* Drawing stroke animation for paths */
@keyframes drawStroke {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Ensure non-destructive implementation */
.brushstroke-bg {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Enhanced opacity control for text readability */
.brushstroke-bg svg path[opacity="0.8"] {
    opacity: 0.25 !important; /* Reduced from 0.8 to 0.25 for better readability */
}

.brushstroke-bg svg path[opacity="0.6"] {
    opacity: 0.20 !important; /* Reduced from 0.6 to 0.20 for better readability */
}

.brushstroke-bg svg path[opacity="0.08"] {
    opacity: 0.12 !important; /* Increased from 0.08 to 0.12 for visibility */
}

/* Enhanced brushstroke animation */
@keyframes brushFlow {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-10px) translateY(5px);
        opacity: 0.9;
    }
    50% { 
        transform: translateX(0) translateY(-5px);
        opacity: 0.7;
    }
    75% { 
        transform: translateX(10px) translateY(0);
        opacity: 0.85;
    }
}

/* Additional CSS animations for brushstrokes */
.brushstroke-bg svg path {
    transition: all 0.5s ease;
    filter: blur(1px);
}

.brushstroke-bg:hover svg path {
    filter: blur(0px);
    opacity: 1;
}

/* Subtle color shift animation for brushstrokes */
@keyframes colorDrift {
    0% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
    100% { filter: hue-rotate(360deg); }
}

.brushstroke-bg svg path:nth-child(1) {
    animation: colorDrift 25s linear infinite;
}

.brushstroke-bg svg path:nth-child(2) {
    animation: colorDrift 20s linear infinite reverse;
}

.brushstroke-bg svg path:nth-child(3) {
    animation: colorDrift 30s linear infinite;
}

/* Enhanced colorful brushstroke effects */
.brushstroke-bg svg path[stroke*="#4fc3f7"] {
    filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.2));
}

.brushstroke-bg svg path[stroke*="#ba68c8"] {
    filter: drop-shadow(0 0 6px rgba(186, 104, 200, 0.2));
}

.brushstroke-bg svg path[stroke*="#f06292"] {
    filter: drop-shadow(0 0 7px rgba(240, 98, 146, 0.2));
}

/* Multi-layered animation effects for colorful strokes */
.brushstroke-bg svg path {
    animation:
        brushFlow 30s ease-in-out infinite,
        texturePulse 4s ease-in-out infinite,
        colorShift 15s linear infinite,
        vibrantPulse 6s ease-in-out infinite;
}

/* Enhanced vibrant pulse for colorful strokes */
@keyframes vibrantPulse {
    0%, 100% {
        filter: blur(1px) brightness(1) saturate(1);
    }
    50% {
        filter: blur(0.5px) brightness(1.1) saturate(1.2);
    }
}

/* Color-specific animation delays for staggered effect */
.brushstroke-bg svg path:nth-child(4) {
    animation-delay: 2s;
}

.brushstroke-bg svg path:nth-child(5) {
    animation-delay: 4s;
}

.brushstroke-bg svg path:nth-child(6) {
    animation-delay: 6s;
}

.brushstroke-bg svg path:nth-child(7) {
    animation-delay: 8s;
}

.brushstroke-bg svg path:nth-child(8) {
    animation-delay: 10s;
}

/* Enhanced opacity control for text readability */
.brushstroke-bg svg path[opacity="0.8"] {
    opacity: 0.25 !important; /* Reduced from 0.8 to 0.25 for better readability */
}

.brushstroke-bg svg path[opacity="0.6"] {
    opacity: 0.20 !important; /* Reduced from 0.6 to 0.20 for better readability */
}

.brushstroke-bg svg path[opacity="0.08"] {
    opacity: 0.12 !important; /* Increased from 0.08 to 0.12 for visibility */
}

.brushstroke-bg svg path[opacity="0.18"] {
    opacity: 0.22 !important; /* Deep blue stroke visibility */
}

.brushstroke-bg svg path[opacity="0.16"] {
    opacity: 0.20 !important; /* Purple stroke visibility */
}

.brushstroke-bg svg path[opacity="0.14"] {
    opacity: 0.18 !important; /* Pink stroke visibility */
}

.brushstroke-bg svg path[opacity="0.06"] {
    opacity: 0.10 !important; /* Subtle diagonal stroke visibility */
}

/* Ensure non-destructive implementation */
.brushstroke-bg {
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Enhanced hover effects for colorful brushstrokes */
.brushstroke-bg:hover svg path {
    filter: blur(0px) brightness(1.2) saturate(1.3);
    opacity: 1;
    transform: scale(1.02);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive color enhancement on hover */
.brushstroke-bg:hover svg path[stroke*="#4fc3f7"] {
    filter: drop-shadow(0 0 12px rgba(79, 195, 247, 0.4)) brightness(1.3);
}

.brushstroke-bg:hover svg path[stroke*="#ba68c8"] {
    filter: drop-shadow(0 0 10px rgba(186, 104, 200, 0.4)) brightness(1.3);
}

.brushstroke-bg:hover svg path[stroke*="#f06292"] {
    filter: drop-shadow(0 0 11px rgba(240, 98, 146, 0.4)) brightness(1.3);
}

/* Anniversary Badge */
.anniversary-badge {
    background: rgba(161, 215, 158, 0.1);
    border: 1px solid rgba(161, 215, 158, 0.4);
    border-radius: 100px;
    backdrop-filter: blur(4px);
}
.badge-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--terra);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}
.anniversary-text{
    color: var(--dark);
}
@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Hero Title */
/* 1. Stacks the words tightly and centers them */
.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1; 
    gap: 0.2rem;
    text-align: center;
}

/* 2. Styles the top and bottom uppercase words */
.title-line {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--dark); /* Dark charcoal */
    letter-spacing: 0.15em; 
    text-transform: uppercase;
}

/* 3. Sets up the middle word to hold the horizontal "wings" */
.title-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px; /* Space between the word and the lines */
    width: 100%;
    
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    font-style: italic;
    padding: 0.1em 0;
}

/* 4. Creates the actual fading lines on the left and right */
.title-accent::before,
.title-accent::after {
    content: '';
    display: block;
    flex-grow: 1; /* Tells the lines to stretch out dynamically */
    max-width: 150px; /* Prevents them from getting too long on desktop */
    height: 2px;
    border-radius: 2px;
    opacity: 0.8;
}

/* Fades the left line to transparent */
.title-accent::before {
    background: linear-gradient(to left, var(--sage), transparent);
}

/* Fades the right line to transparent */
.title-accent::after {
    background: linear-gradient(to right, var(--terra), transparent);
}

/* 5. Applies the gradient to the text and adds a clean shadow */
.art-design-colors {
    background: linear-gradient(135deg, var(--sage) 0%, var(--terra) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Using drop-shadow filter prevents muddy edges on gradient text */
    filter: drop-shadow(2px 4px 6px rgba(44, 36, 27, 0.12));
}
@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

/* Enhanced brushstroke underline */
.brush-underline {
    max-width: 400px;
    margin: 0.5rem auto 0;
    opacity: 0.9;
    animation: brushStrokeAppear 1.5s ease-out 0.5s both;
}

@keyframes brushStrokeAppear {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Hero subtitle and description */
.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; /* Increased size for better visibility */
    font-weight: 600; /* Medium-bold for better readability */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    margin-bottom: 1.5rem; /* More spacing */
    letter-spacing: 0.02em;
    line-height: 1.4; /* Improved line-height */
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

.hero-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem; /* Increased size for better visibility */
    font-weight: 500; /* Medium weight for prominence */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1.6; /* Improved line-height for comfort */
    letter-spacing: 0.01em;
    max-width: 600px; /* Limited width for better readability */
    margin: 0 auto 2rem auto; /* Centered with proper spacing */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Enhanced shadow for readability */
    padding: 16px 20px; /* Padding for better visibility */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

/* Enhanced categories section text */
.categories-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* Enhanced countdown message */
.countdown-message {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(237, 137, 74, 0.15); /* Terra background for contrast */
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(237, 137, 74, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


.title-line {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    font-weight: 800; /* Extra bold for main headings */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    letter-spacing: 0.06em; /* Enhanced letter-spacing for elegance */
}

.title-accent {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 6.5rem); /* Significantly increased size */
    font-weight: 800; /* Extra-bold for maximum impact */
    font-style: italic;
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    letter-spacing: 0.04em; /* Enhanced letter-spacing for premium feel */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15); /* Subtle text shadow for readability */
    position: relative;
    margin-bottom: 0.5rem;
}

/* Soft highlight underline for "Heart of Wonders" */
.title-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ed894a, #a1d79e);
    opacity: 0.8;
    border-radius: 2px;
}

.brush-underline {
    max-width: 400px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

/* Deadline Pill */
.deadline-pill {
    padding: 12px 28px;
    background: var(--cream);
    border: 1px solid var(--sepia);
    border-radius: 100px;
    box-shadow:
        3px 3px 0 var(--sage-light),
        6px 6px 0 rgba(161, 215, 158, 0.3);
    transition: all 0.3s ease;
    font-weight: 600; /* Semi-bold for deadline text */
    letter-spacing: 0.04em; /* Enhanced letter-spacing */
}
.deadline-pill:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow:
        5px 5px 0 var(--sage-light),
        10px 10px 0 rgba(161, 215, 158, 0.2);
}

/* Countdown */
.countdown-container {
    animation: float 6s ease-in-out infinite;
    position: relative;
}

/* Dynamic pulse animation for countdown container */
@keyframes countdownPulse {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 0 var(--dark);
    }
    50% { 
        transform: translateY(-2px) scale(1.01);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 0 var(--dark);
    }
}

.countdown-grid {
    background: rgba(240, 234, 214, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 0 var(--dark);
    display: inline-block;
    animation: countdownPulse 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.countdown-grid:hover {
    animation-play-state: paused;
    transform: translateY(-4px) scale(1.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 12px 0 var(--dark);
}

.countdown-grid {
    background: rgba(240, 234, 214, 0.8);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 8px 0 var(--dark);
    display: inline-block;
}

.countdown-item {
    position: relative;
    background: var(--paper);
    border: 2px solid var(--dark);
    border-radius: 4px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 3px 3px 0 var(--dark);
    cursor: pointer;
}

/* Dynamic flip animation for countdown numbers */
.countdown-number {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 800; /* Extra bold for countdown numbers */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 0 rgba(44, 36, 27, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
    z-index: 2;
}

/* Flip animation effect */
@keyframes numberFlip {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.countdown-item:hover .countdown-number {
    animation: numberFlip 0.6s ease-in-out;
    transform: scale(1.05);
}

/* Subtle shadow movement for dynamic feel */
@keyframes shadowPulse {
    0%, 100% { 
        box-shadow: 3px 3px 0 var(--dark);
    }
    50% { 
        box-shadow: 4px 4px 0 var(--dark);
    }
}

.countdown-item {
    animation: shadowPulse 4s ease-in-out infinite;
}

.countdown-item:hover {
    animation-play-state: paused;
    transform: translate(3px, 3px);
    box-shadow: none;
}
.countdown-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--terra));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.countdown-item:hover::before { transform: scaleX(1); }
.countdown-item:hover {
    transform: translate(3px, 3px);
    border-color: var(--sage);
    box-shadow: none;
}

.countdown-number {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    font-weight: 800; /* Extra bold for countdown numbers */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 0 rgba(44, 36, 27, 0.1);
}

.countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 9px;
    letter-spacing: 0.28em; /* Enhanced letter-spacing */
    text-transform: uppercase;
    color: #1A1A1A; /* Dark charcoal for consistency */
    margin-top: 6px;
    font-style: italic;
    font-weight: 600; /* Semi-bold for better readability */
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
}

/* Dynamic label effects */
.countdown-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #a1d79e, #ed894a);
    transition: width 0.4s ease;
}

.countdown-item:hover .countdown-label {
    opacity: 1;
    transform: translateY(-1px);
}

.countdown-item:hover .countdown-label::after {
    width: 100%;
}

/* Subtle background animation for countdown container */
.countdown-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(161, 215, 158, 0.05), rgba(237, 137, 74, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.countdown-grid:hover::before {
    opacity: 1;
}

/* Enhanced hover effects for countdown items */
.countdown-item:nth-child(1) { transition-delay: 0.1s; }
.countdown-item:nth-child(2) { transition-delay: 0.2s; }
.countdown-item:nth-child(3) { transition-delay: 0.3s; }
.countdown-item:nth-child(4) { transition-delay: 0.4s; }

/* Subtle breathing effect for the entire countdown */
@keyframes countdownBreathing {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.01);
    }
}

.countdown-container {
    animation: float 6s ease-in-out infinite, countdownBreathing 12s ease-in-out infinite;
}

/* Scroll Hint */
.scroll-hint { margin-top: 2rem; }
.scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--sepia);
    border-radius: 50%;
    color: var(--brown);
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-btn:hover {
    border-color: var(--sage);
    color: var(--sage-dark);
    background: rgba(161, 215, 158, 0.08);
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ── Section Dividers ── */
.section-divider {
    padding: 0;
    height: 60px;
    overflow: hidden;
}

/* ── Section Ornament ── */
.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.ornament-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--sage);
    opacity: 0.6;
}
.ornament-line.ornament-terra { background: var(--terra); }
.ornament-icon { flex-shrink: 0; }

/* ── Section Headings ── */
h2 {
    font-family: 'Cinzel', serif;
    font-weight: 700; /* Bold for section headings */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    letter-spacing: 0.04em; /* Enhanced letter-spacing */
    margin-bottom: 0.5rem;
}

h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600; /* Semi-bold for card titles */
    color: #1A1A1A; /* Dark charcoal for consistency */
    letter-spacing: 0.02em;
}

/* ── Hero Anniversary Styling ── */
/* ═══════════════════════════════════════ 
   ANIMATED ANNIVERSARY BADGE
   ═══════════════════════════════════════ */

.anniversary-badge {
    /* 1. Set a transparent border to make room for the gradient */
    border: 2px solid transparent;
    
    /* 2. Layer the backgrounds: Solid white inside, Gradient on the border */
    background: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) padding-box,
        linear-gradient(90deg, var(--terra), var(--sage), var(--terra)) border-box;
        
    /* 3. Make the gradient twice as wide so it can slide seamlessly */
    background-size: 100% 100%, 200% 100%;
    
    /* 4. Trigger the flowing animation */
    animation: borderFlow 3s linear infinite;

    /* Your existing layout rules */
    border-radius: 100px;
    backdrop-filter: blur(4px);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Hover effect: speeds up the border movement and lifts the badge */
.anniversary-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: borderFlow 1.5s linear infinite; 
}

/* 5. The animation that slides the border gradient */
@keyframes borderFlow {
    0% { background-position: 0% 0%, 0% 0%; }
    100% { background-position: 0% 0%, 200% 0%; }
}

/* Enhanced badge with subtle texture */
.anniversary-badge::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(161, 215, 158, 0.1), rgba(237, 137, 74, 0.1));
    opacity: 0.6;
    pointer-events: none;
}

.anniversary-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: #a1d79e;
}

.anniversary-text {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 800; /* Extra bold for maximum impact */
    letter-spacing: 0.25em; /* Enhanced letter-spacing */
    text-transform: uppercase;
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
    position: relative;
    z-index: 2;
}

/* Enhanced visibility with subtle background enhancement */
.anniversary-text::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2px;
    z-index: -1;
    opacity: 0.8;
    filter: blur(1px);
}

/* Stronger gradient overlay for extra visibility */
.anniversary-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(161, 215, 158, 0.3), rgba(237, 137, 74, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
    z-index: 1;
}

.anniversary-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #a1d79e, #ed894a);
    opacity: 0.6;
    margin-top: 4px;
}

/* ── Corner Marks (Guidelines section) ── */
.corner-mark {
    position: absolute;
    width: 40px; height: 40px;
    pointer-events: none;
}
.corner-tl {
    top: 40px; left: 40px;
    border-top: 1.5px solid var(--sage);
    border-left: 1.5px solid var(--sage);
    opacity: 0.5;
}
.corner-br {
    bottom: 40px; right: 40px;
    border-bottom: 1.5px solid var(--terra);
    border-right: 1.5px solid var(--terra);
    opacity: 0.4;
}

/* ── Guidelines Sketch Background ── */
.guidelines-sketch-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
    filter: blur(0.5px) contrast(0.9);
    mix-blend-mode: multiply;
}

/* ── Guideline Cards ── */
.guideline-card {
    background: var(--paper);
    border: 1px solid var(--sepia);
    border-radius: 4px;
    padding: 2rem 2rem 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.guideline-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sage), var(--terra));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.guideline-card:hover {
    transform: translateY(-4px);
    border-color: rgba(161, 215, 158, 0.5);
    box-shadow: 0 16px 32px rgba(44, 36, 27, 0.07);
}
.guideline-card:hover::before { transform: scaleX(1); }

.gc-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--sepia);
}

.gc-icon-wrap {
    width: 38px; height: 38px;
    background: rgba(161, 215, 158, 0.12);
    border: 1px solid rgba(161, 215, 158, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-dark);
    flex-shrink: 0;
    margin-top: 2px;
}

.gc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700; /* Bold for guideline titles */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1.2;
    margin-bottom: 2px;
    letter-spacing: 0.01em; /* Subtle letter-spacing */
}

.gc-code {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    letter-spacing: 0.28em; /* Enhanced letter-spacing */
    text-transform: uppercase;
    color: #1A1A1A; /* Dark charcoal for consistency */
    font-weight: 700; /* Bold for category codes */
}

.gc-body { display: flex; flex-direction: column; gap: 10px; }
.gc-row {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1.8; /* Improved readability */
    padding: 6px 0;
}
.gc-label {
    font-weight: 700; /* Significantly bolder */
    color: var(--dark);
    flex-shrink: 0;
    width: 80px;
    background: rgba(161, 215, 158, 0.15); /* Pastel highlight */
    padding: 2px 8px;
    border-radius: 4px;
    border-left: 3px solid var(--sage);
}

/* ── Category Cards ── */
.cat-card {
    background: var(--paper);
    border: 3px solid #ffffff; /* Inner thick white border */
    border-bottom: 4px solid var(--dark); /* Outer dark charcoal border */
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 0 var(--dark), 0 12px 20px rgba(44, 36, 27, 0.15);
    padding: 2px; /* Space for double border effect */
    margin-bottom: 2rem; /* More breathing room between cards */
}

/* Responsive improvements */
@media (max-width: 768px) {
    .cat-card {
        margin-bottom: 1.5rem;
    }
    
    .countdown-grid {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .gc-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .gc-label {
        width: auto;
        padding: 4px 8px;
    }
}

.cat-card-inner {
    background: var(--paper);
    border: 1px solid var(--sepia);
    border-radius: 4px;
    padding: 2.2rem 2rem 2rem;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 0 var(--dark), 0 16px 24px rgba(44, 36, 27, 0.12);
    border-color: #ffffff;
    border-bottom-color: var(--dark);
}

/* Washi tape decorations - Enhanced realism */
.cat-tape {
    position: absolute;
    border-radius: 3px;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    opacity: 0.85; /* Slight opacity for realism */
    mix-blend-mode: multiply; /* Realistic tape effect */
    transform-origin: center;
}

.cat-tape-tl {
    width: 60px; height: 20px;
    top: -10px; right: 28px;
    transform: rotate(-2deg); /* Natural rotation */
}
.cat-tape-br {
    width: 44px; height: 16px;
    bottom: -8px; left: 34px;
    transform: rotate(2deg); /* Natural rotation */
}

.sage-tape {
    background: linear-gradient(135deg, rgba(161, 215, 158, 0.85), rgba(124, 196, 120, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.15);
}
.terra-tape {
    background: linear-gradient(135deg, rgba(237, 137, 74, 0.8), rgba(212, 113, 47, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.15);
}

.cat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cat-icon-ring {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.cat-card:hover .cat-icon-ring { transform: rotate(10deg) scale(1.05); }

.sage-ring {
    background: rgba(161, 215, 158, 0.12);
    border: 1.5px solid rgba(161, 215, 158, 0.45);
    color: var(--sage-dark);
}
.terra-ring {
    background: rgba(237, 137, 74, 0.10);
    border: 1.5px solid rgba(237, 137, 74, 0.4);
    color: var(--terra-dark);
}

.cat-code-badge {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.22em; /* Enhanced letter-spacing */
    font-weight: 700; /* Bold for category codes */
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(161, 215, 158, 0.12);
    border: 1px solid rgba(161, 215, 158, 0.35);
    color: #1A1A1A; /* Dark charcoal for consistency */
}
.terra-badge {
    background: rgba(237, 137, 74, 0.10);
    border-color: rgba(237, 137, 74, 0.35);
    color: #1A1A1A; /* Dark charcoal for consistency */
}

.cat-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700; /* Bold for card titles */
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.01em; /* Subtle letter-spacing */
}
.cat-title em {
    font-style: italic;
    font-weight: 500; /* Semi-bold for better readability */
    font-size: 0.9em;
    color: #1A1A1A; /* Consistent dark charcoal */
}

.cat-desc {
    font-size: 13.5px;
    color: #1A1A1A; /* Dark charcoal for strong contrast */
    line-height: 1.8; /* Improved readability */
    margin-bottom: 1.5rem;
    padding-left: 16px;
    border-left: 2px solid var(--sepia);
}

.cat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sepia);
}

.cat-link {
    font-size: 12px;
    letter-spacing: 0.06em; /* Enhanced letter-spacing */
    color: #1A1A1A; /* Dark charcoal for consistency */
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    font-weight: 500; /* Semi-bold for better readability */
}
.cat-link span { 
    display: inline-block;
    transition: transform 0.2s ease;
}
.cat-link:hover { color: var(--terra); }
.cat-link:hover span { transform: translateX(3px); }

/* Buttons */
.cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700; /* Bold for buttons */
    letter-spacing: 0.14em; /* Enhanced letter-spacing for elegance */
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
}

.sage-btn {
    background: var(--sage);
    color: var(--dark);
}
.sage-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.terra-btn {
    background: var(--terra);
    color: var(--dark);
}
.terra-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.75s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Footer ── */
footer {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.footer-accent-line {
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--terra), var(--sage));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.footer-brush {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
}
.footer-icon { flex-shrink: 0; width: 20px; text-align: center; }

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dark);
    background: var(--sage);
    padding: 12px 28px;
    border-radius: 2px;
    border: 1.5px solid var(--sage);
    transition: all 0.3s ease;
}
.footer-cta-btn:hover {
    background: var(--terra);
    border-color: var(--terra);
    color: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 137, 74, 0.3);
}

/* ── Simple Art Background Animation ── */
.simple-art-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(1px);
    animation: float 6s ease-in-out infinite;
}

/* Shape 1 - Sage Green */
.shape-1 {
    width: 120px; height: 120px;
    top: 20%; left: 10%;
    background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
    animation-duration: 8s;
    animation-delay: 0s;
}

/* Shape 2 - Terra Orange */
.shape-2 {
    width: 80px; height: 80px;
    top: 60%; right: 15%;
    background: radial-gradient(circle, var(--terra) 0%, transparent 70%);
    animation-duration: 10s;
    animation-delay: 1s;
}

/* Shape 3 - Sage Green */
.shape-3 {
    width: 100px; height: 100px;
    top: 40%; left: 70%;
    background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
    animation-duration: 12s;
    animation-delay: 2s;
}

/* Shape 4 - Terra Orange */
.shape-4 {
    width: 60px; height: 60px;
    top: 80%; left: 25%;
    background: radial-gradient(circle, var(--terra) 0%, transparent 70%);
    animation-duration: 9s;
    animation-delay: 3s;
}

/* Shape 5 - Sage Green */
.shape-5 {
    width: 90px; height: 90px;
    top: 10%; right: 30%;
    background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
    animation-duration: 11s;
    animation-delay: 4s;
}

/* Shape 6 - Terra Orange */
.shape-6 {
    width: 70px; height: 70px;
    top: 50%; left: 5%;
    background: radial-gradient(circle, var(--terra) 0%, transparent 70%);
    animation-duration: 13s;
    animation-delay: 5s;
}

/* Enhanced floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(0) translateX(20px) rotate(180deg);
    }
    75% {
        transform: translateY(15px) translateX(10px) rotate(270deg);
    }
}

/* Subtle color pulse animation */
@keyframes colorPulse {
    0%, 100% {
        opacity: 0.15;
        filter: blur(1px);
    }
    50% {
        opacity: 0.25;
        filter: blur(0.5px);
    }
}

/* Apply color pulse to all shapes */
.bg-shape {
    animation: float 6s ease-in-out infinite, colorPulse 4s ease-in-out infinite;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .bg-shape {
        opacity: 0.10; /* Slightly reduce opacity on mobile */
        filter: blur(0.5px); /* Reduce blur on mobile */
    }
    
    .shape-1 { width: 80px; height: 80px; }
    .shape-2 { width: 60px; height: 60px; }
    .shape-3 { width: 70px; height: 70px; }
    .shape-4 { width: 50px; height: 50px; }
    .shape-5 { width: 60px; height: 60px; }
    .shape-6 { width: 45px; height: 45px; }
}

@media (max-width: 480px) {
    .bg-shape {
        opacity: 0.08; /* Further reduce opacity on small screens */
    }
    
    .shape-1 { width: 60px; height: 60px; }
    .shape-2 { width: 45px; height: 45px; }
    .shape-3 { width: 55px; height: 55px; }
    .shape-4 { width: 40px; height: 40px; }
    .shape-5 { width: 45px; height: 45px; }
    .shape-6 { width: 35px; height: 35px; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .title-line { font-size: clamp(1.8rem, 8vw, 3rem); }
    .title-accent { font-size: clamp(2.4rem, 10vw, 4rem); }
    .countdown-number { font-size: 2rem; }
    .cat-card-inner { padding: 1.75rem 1.5rem; }
    .cat-footer { flex-direction: column; align-items: flex-start; }
    .cat-btn { width: 100%; }
    .gc-label { width: 60px; font-size: 12px; }
}

@media (max-width: 480px) {
    .countdown-item { padding: 1rem 0.75rem; }
    .countdown-number { font-size: 1.75rem; }
}
