@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&family=Press+Start+2P&display=swap');

:root {
    --primary: #ffb7c5;
    /* Hanami Pink */
    --primary-glow: rgba(255, 183, 197, 0.4);
    --primary-bright: #ffffff;
    --accent: #2d1b33;
    /* Zen Indigo Background */
    --bg-dark: #0b0612;
    /* Deep Night Purple */
    --bg-card: #150c1f;
    --text-main: #ffffff;
    --text-dim: #f8f0f2;
    --border-color: rgba(255, 183, 197, 0.15);
    --glass-bg: rgba(11, 6, 18, 0.92);
    --selection-bg: rgba(255, 183, 197, 0.3);
    --trans-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Sakura Glow System */
    --sha-sakura: 0 0 20px var(--primary-glow), 0 0 40px rgba(255, 183, 197, 0.1);
    --sha-btn: 0 10px 40px -10px rgba(255, 183, 197, 0.3);
}

@keyframes global-flicker {

    0%,
    100% {
        background-color: var(--bg-dark);
    }

    50% {
        background-color: #0a0402;
    }
}

@keyframes fire-flicker {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }

    33% {
        transform: scale(1.1) rotate(2deg);
    }

    66% {
        transform: scale(0.9) rotate(-2deg);
    }
}

@keyframes bg-swirl {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Pixelify Sans', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 0.03em;
    font-weight: 600;
    /* Heavier base weight */
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.nav-links li a,
.btn-primary,
.badge,
.section-title {
    font-family: 'Pixelify Sans', cursive, sans-serif !important;
    text-transform: uppercase;
    font-weight: 700;
    scroll-margin-top: 100px;
    /* Space for fixed nav */
}

/* --- Sakura Theme --- */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Top layer visibility */
}

.petal {
    position: absolute;
    background: linear-gradient(135deg, #ffc1ce, #ffb7c5);
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 50% 100%, 0% 70%, 0% 35%, 20% 10%);
    opacity: 0;
    transition: opacity 1s;
    box-shadow: 0 0 10px rgba(255, 193, 206, 0.3);
}

.petal::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 45%;
    width: 10%;
    height: 20%;
    background: var(--bg-dark);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

@keyframes sakura-drift {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) scale(0) rotateX(0deg);
        opacity: 0;
    }

    10% {
        opacity: var(--opac, 0.5);
        transform: scale(1) rotateX(20deg);
    }

    50% {
        transform: translateX(calc(var(--drift) * 0.5)) rotate(180deg) scale(0.9) rotateX(45deg);
    }

    100% {
        top: 110%;
        transform: translateX(var(--drift)) rotate(360deg) scale(0.7) rotateX(0deg);
        opacity: 0;
    }
}

/* --- Section Dividers --- */
.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 6rem 0;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Sakura Background --- */
.hero-sakura-static {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 85, 0, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 174, 0, 0.05) 0%, transparent 60%),
        var(--bg-dark);
    z-index: 0;
}

h1,
h2,
h3,
.logo {
    font-family: 'Pixelify Sans', cursive, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* --- Boutique Anti-AI Elements --- */
body::-webkit-scrollbar {
    width: 6px;
    /* Custom boutique slimness */
}

/* Chromatic Aberration Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    background: linear-gradient(rgba(255, 0, 0, 0.02), transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 255, 0.02), transparent 1px);
    background-size: 3px 3px;
    opacity: 0.3;
}

/* Asymmetric Grid Foundation */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
    /* More boutique gutter */
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    z-index: 1000;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: var(--trans-fast);
}

.nav.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 7, 0.98);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    background: linear-gradient(to bottom, #ffffff, #ff7ea5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    text-shadow: none;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.8rem) !important;
    font-weight: 900;
    line-height: 1.0;
    background: linear-gradient(to bottom, #ffffff 20%, #ff7ea5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 50px var(--primary-glow));
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    transition: var(--trans-fast);
    opacity: 0.6;
}

.nav-links li a:hover {
    opacity: 1;
    color: var(--primary);
}

.nav-links.badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 183, 197, 0.1);
    border: 2px solid var(--primary);
    border-radius: 0;
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0;
    backdrop-filter: blur(5px);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    transition: var(--trans-fast);
    opacity: 0.6;
}

.nav-links a:hover:not(.btn-primary) {
    opacity: 1;
    color: var(--primary);
    transform: translateY(-1px);
}

/* --- Buttons --- */
/* --- Buttons (Neon-Gothic HUD) --- */
.btn-primary,
.btn-secondary {
    padding: 1.1rem 3.5rem;
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--primary-glow);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: var(--bg-dark) !important;
    box-shadow: 4px 4px 0 var(--primary-glow);
    padding: 1.2rem 4rem;
    opacity: 1 !important;
    /* Force high visibility */
    font-weight: 900;
}

.btn-primary:hover {
    background: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--primary);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(255, 183, 197, 0.1);
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-primary.small {
    padding: 0.7rem 2rem;
    font-size: 0.75rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 10rem;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg-dark);
}

.hero-vignette {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-image-side {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.hero-side-img {
    width: 100%;
    max-width: 550px;
    border: 2px solid var(--primary);
    box-shadow: 10px 10px 0 var(--primary-glow);
}

/* --- Human Touch: Grain & Atmosphere --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    /* Very subtle */
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 183, 197, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.hero-title {
    font-family: 'Pixelify Sans', serif;
    font-size: clamp(3rem, 8.5vw, 6.2rem);
    /* Reduced size as requested */
    line-height: 0.85;
    font-weight: 900;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    /* More standard spacing for better readability at smaller size */
    background: linear-gradient(to bottom, #f4e4e9 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px var(--primary-glow));
    position: relative;
    z-index: 2;
}

.hero-title::before {
    content: 'SAKURA SEASON NOW ACTIVE';
    /* Updated text */
    display: block;
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 0.12em;
    letter-spacing: 0.6em;
    opacity: 0.7;
    color: var(--primary-bright);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.accent-text {
    /* Merged with parent style for cleaner rendering */
    display: inline;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    background: rgba(255, 183, 197, 0.03);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 var(--primary-glow);
}

@keyframes badge-pulse {

    0%,
    100% {
        border-color: rgba(255, 183, 197, 0.2);
        box-shadow: 0 0 20px rgba(255, 183, 197, 0.1);
    }

    50% {
        border-color: rgba(255, 183, 197, 0.5);
        box-shadow: 0 0 30px rgba(255, 183, 197, 0.2);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-sakura-static {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 183, 197, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(157, 0, 255, 0.05) 0%, transparent 50%),
        var(--bg-dark);
    z-index: 0;
}

.hero-image-container {
    position: relative;
    border-radius: 4px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transition: var(--trans-slow);
    width: 100%;
}

.hero-logo-center {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

.floating-logo {
    width: 60%;
    max-width: 400px;
    filter: drop-shadow(0 0 50px rgba(255, 85, 0, 0.4));
    animation: hero-logo-float 6s infinite ease-in-out;
}

@keyframes hero-logo-float {

    0%,
    100% {
        transform: translateY(0) scale(1.0);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-image-container img {
    width: 100%;
    border-radius: 2px;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.hero-image-container:hover .main-hero-img {
    filter: brightness(0.6) contrast(1.3);
    transform: scale(1.02);
}

.header-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- About & Features Sections --- */
.about,
.features,
.gallery {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: -6rem auto 0;
    /* Reduced overlap for cleaner look */
    padding: 8rem 3rem;
    position: relative;
    z-index: 20;
}

/* Light Leak Atmospheric Backgrounds */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(234, 200, 211, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.lead-text {
    font-size: 1.6rem !important;
    font-weight: 300;
    color: var(--primary-bright) !important;
    margin: 0 auto 5rem !important;
    /* Centered with auto margins */
    letter-spacing: 0.02em;
    max-width: 800px;
    line-height: 1.5;
    text-align: center;
}

.lore-expansion {
    display: flex;
    flex-wrap: wrap;
    /* Flexible boutique grid */
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 6rem;
    width: 100%;
}

.lore-pillar {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: rgba(12, 12, 15, 0.4);
    padding: 4rem 3rem;
    border-radius: 2px;
    border: 1px solid rgba(234, 200, 211, 0.04);
    transition: all 0.6s var(--trans-slow);
    position: relative;
    backdrop-filter: blur(20px);
    text-align: center;
    /* Centered for boutique feel */
    overflow: hidden;
}

.lore-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 183, 197, 0.05), transparent);
    opacity: 0;
    transition: 0.5s;
}

.lore-pillar:hover {
    transform: translateY(-15px);
    border-color: rgba(234, 200, 211, 0.2);
    border-top-color: var(--primary);
    background: rgba(12, 12, 15, 0.9);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lore-pillar::after {
    content: '0' + counter(section);
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    opacity: 0.03;
    color: var(--primary);
    transition: 0.8s;
}

.lore-pillar:hover::after {
    opacity: 0.1;
    transform: scale(1.1);
}

.lore-pillar h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--primary-bright);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
}

.lore-pillar h3::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--primary);
    opacity: 0.4;
}

.lore-pillar p {
    font-size: 0.95rem !important;
    line-height: 1.8 !important;
    opacity: 0.8;
    color: var(--text-dim) !important;
}

@media (max-width: 768px) {
    .lore-expansion {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.about h2 {
    font-size: 3.5rem;
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    background: linear-gradient(to bottom, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(255, 183, 197, 0.3));
    position: relative;
}

.about h2,
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    /* Elegant, smaller scale */
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(to bottom, var(--primary-bright) 10%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    text-align: center;
    width: 100%;
    position: relative;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--primary);
    opacity: 0.2;
}

.about p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-section {
    padding: 8rem 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 520px;
    border: 2px solid var(--primary);
    box-shadow: 10px 10px 0 var(--primary-glow);
}

/* --- Ultimate Gallery System --- */
.ultimate-gallery {
    padding: 12rem 0;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.gallery-wrapper-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    width: 100%;
    margin: 5rem auto 0;
}

.gallery-card-pixel {
    flex: 0 1 380px;
    position: relative;
}

.gallery-card-pixel img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 6px solid var(--primary);
    box-shadow: 10px 10px 0 var(--primary-glow);
    transition: all 0.25s steps(4);
    /* Pixelated transition feel */
    display: block;
}

.gallery-card-pixel img:hover {
    transform: translate(-8px, -8px);
    box-shadow: 18px 18px 0 var(--primary);
}

@media (max-width: 1100px) {
    .gallery-wrapper-centered {
        gap: 2rem;
    }

    .gallery-card-pixel {
        flex: 0 1 45%;
    }
}

@media (max-width: 768px) {
    .gallery-card-pixel {
        flex: 0 1 100%;
        max-width: 450px;
    }
}

.features {
    position: relative;
    overflow: hidden;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(234, 200, 211, 0.02), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.feature-card {
    background: rgba(21, 12, 31, 0.6);
    padding: 4rem 3rem;
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--primary-glow);
    border: 1px solid rgba(255, 183, 197, 0.1);
    transition: var(--trans-slow);
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    color: var(--primary);
    margin: 0 auto 2.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.feature-card h3 {
    font-family: 'Pixelify Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-bright);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-card:hover {
    background: rgba(12, 12, 15, 0.9);
    border-color: rgba(234, 200, 211, 0.2);
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Column Side-by-Side */
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    background: #000;
    border: 1px solid var(--border-color);
    transition: var(--trans-premium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s var(--trans-slow);
    filter: brightness(0.6) grayscale(0.2);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
    z-index: 10;
}

.gallery-item:hover img {
    filter: brightness(1.2) grayscale(0);
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 15, 0.95), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.5s var(--trans-slow);
    font-family: 'Pixelify Sans', serif;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--primary-bright);
    text-transform: uppercase;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 1.5rem;
    border: 1px solid var(--primary);
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.7s var(--trans-slow);
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 0.4;
    transform: scale(1);
    inset: 0.75rem;
}

/* --- Footer Redesign --- */
.footer {
    padding: 6rem 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    color: var(--primary);
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--trans-fast);
    letter-spacing: 0.05rem;
}

.footer-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.footer-sep {
    width: 4px;
    height: 4px;
    background: var(--border-color);
    border-radius: 0;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05rem;
}

/* --- Policy Pages Styling --- */
.policy-page {
    background: radial-gradient(circle at 50% 10%, rgba(74, 20, 140, 0.08) 0%, transparent 40%), var(--bg-dark);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
}

.policy-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.policy-content .last-updated {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 4rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.policy-content section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    transition: var(--trans-fast);
}

.policy-content section:hover {
    border-color: var(--primary-glow);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.policy-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Pixelify Sans', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.policy-content p {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1.1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    margin-bottom: 3rem;
    opacity: 0.6;
    transition: var(--trans-fast);
}

.back-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(-5px);
}

/* --- Interactive UI Enhancements --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.sakura-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 183, 197, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), #fff);
    z-index: 9999;
    width: 0%;
    box-shadow: 0 0 10px var(--primary-glow);
}





@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* --- PREMIUM HUD NOTIFICATION --- */
.download-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(21, 12, 31, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 183, 197, 0.3);
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(157, 0, 255, 0.15),
        inset 0 0 20px rgba(255, 183, 197, 0.05);
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    overflow: hidden;
}

.download-notification.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.download-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), #9d00ff);
}

.notification-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 183, 197, 0.1);
    border-radius: 50%;
}

.notification-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.notification-content-text h3 {
    font-family: 'Pixelify Sans', cursive !important;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notification-content-text p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(to right, var(--primary), #9d00ff);
    transition: width 5s linear;
}

.download-notification.show .notification-progress {
    width: 100%;
}

.notification-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--trans-fast);
    padding: 0.5rem;
    line-height: 1;
}

.notification-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

@keyframes notification-pulse {
    0% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(157, 0, 255, 0.15);
    }

    50% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 45px rgba(255, 183, 197, 0.3);
    }

    100% {
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(157, 0, 255, 0.15);
    }
}

.download-notification.show {
    animation: notification-pulse 3s infinite ease-in-out 1s;
}