/* ============================================
   Ice Cream Hut — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #151518 0%, #26262b 30%, #333339 60%, #1a1a1f 100%);
    position: relative;
}

.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 107, 107, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 159, 67, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%);
}

/* Floating decorations */
.hero-float {
    animation: float 6s ease-in-out infinite;
}

.hero-float-1 {
    animation-delay: 0s;
}

.hero-float-2 {
    animation-delay: -2s;
}

.hero-float-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero content entrance */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.hero-scroll {
    opacity: 0.6;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* --- Navigation --- */
.nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(21, 21, 24, 0.95);
    backdrop-blur-xl;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Section Styles --- */
.section {
    position: relative;
}

.section-tag {
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.1;
}

.section-subtitle {
    line-height: 1.7;
}

/* --- Menu Cards --- */
.menu-grid {
    display: grid;
    gap: 1.5rem;
}

.menu-card {
    display: flex;
    flex-direction: column;
}

.menu-card-img {
    position: relative;
    overflow: hidden;
}

.menu-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 21, 24, 0.4) 0%, transparent 40%);
    pointer-events: none;
}

.tag-badge {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* --- About Section --- */
.about-images {
    position: relative;
}

.about-img-float {
    bottom: -1.5rem;
    right: -1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-values {
    gap: 1rem;
}

.value-item:hover .value-icon {
    background: rgba(255, 107, 107, 0.2);
    transition: background 0.3s ease;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Location --- */
.location-grid {
    display: grid;
    gap: 3rem;
}

.info-card {
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateX(4px);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #26262b 0%, #333339 50%, #1a1a1f 100%);
    position: relative;
}

.cta-gradient {
    background: 
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 60%);
}

.cta-btn-primary {
    transition: all 0.3s ease;
}

.cta-btn-secondary {
    transition: all 0.3s ease;
}

/* --- Footer --- */
.footer {
    position: relative;
}

.footer a {
    text-decoration: none;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title {
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-img-float {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5.5rem;
    }
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
