/* ═══════════════════════════════════════════════════
   That's Great Frozen Creations — Custom Styles
   ═══════════════════════════════════════════════════ */

/* ── Base ── */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* ── Navigation ── */
#nav {
    background: transparent;
}

#nav.scrolled {
    background: rgba(6, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #D4B96A !important;
}

/* ── Mobile menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Hero animations ── */
.hero-eyebrow {
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-title {
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease 0.6s both;
}

.hero-cta {
    animation: fadeUp 0.8s ease 0.8s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Floating cards ── */
.floating-card {
    animation: float1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float2 5s ease-in-out infinite;
}

.floating-card-3 {
    animation: float3 7s ease-in-out infinite;
}

.floating-badge {
    animation: float4 5.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ── Scroll line ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 48px; }
    50% { opacity: 0.8; height: 60px; }
}

/* ── Menu cards ── */
.menu-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
}

/* ── Gallery ── */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* ── Visit cards ── */
.visit-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.visit-card:hover {
    transform: translateX(6px);
}

/* ── Contact form ── */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: rgba(201, 168, 76, 0.6) !important;
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.contact-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .floating-card,
    .floating-card-2,
    .floating-card-3,
    .floating-badge {
        display: none;
    }

    #hero {
        min-height: 100vh;
    }

    .hero-title {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .gallery-item {
        min-height: 160px;
    }
}
