/* ============================================
   Viking Foods — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Fixed Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.geo-circle-1 {
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: #702135;
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 300px;
    height: 300px;
    background: #ff7a99;
    border-radius: 50%;
}

.geo-triangle {
    top: 50%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #702135;
    transform: translateY(-50%) rotate(15deg);
}

.geo-diamond {
    top: 70%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: #ff7a99;
    transform: rotate(45deg);
    border-radius: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-bg-gradient {
    background: linear-gradient(160deg, #FFF8F5 0%, #FDF0E8 40%, #faf0f2 100%);
}

.hero-geo {
    transition: transform 8s ease-in-out;
}

.hero-geo-1 { animation: floatGeo 12s ease-in-out infinite; }
.hero-geo-2 { animation: floatGeo 15s ease-in-out infinite reverse; }
.hero-geo-3 { animation: spinGeo 20s linear infinite; }
.hero-geo-4 { animation: floatGeo 10s ease-in-out infinite; }

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

@keyframes spinGeo {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Scroll line */
.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #c44d68, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ============================================
   Divider
   ============================================ */
.divider-line {
    height: 3px;
    background: linear-gradient(to right, transparent, #c44d68 20%, #d46b84 50%, #c44d68 80%, transparent);
    border-radius: 2px;
}

/* ============================================
   Section Labels
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c44d68;
    background: linear-gradient(135deg, #fce7eb, #faf0f2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid #f3c4cf;
}

.section-label-light {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffc5d4;
    background: rgba(255, 122, 153, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 122, 153, 0.3);
}

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(112, 33, 53, 0.08);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(112, 33, 53, 0.15);
}

.menu-card-visual {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 1;
}

.menu-card:hover .menu-card-img {
    transform: scale(1.1);
}

.menu-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 16, 25, 0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    z-index: 2;
}

.menu-card-emoji {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.menu-card-content {
    padding: 1.25rem;
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 16, 25, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   Buttons
   ============================================ */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a83450, #702135);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary span,
.cta-primary svg {
    position: relative;
    z-index: 1;
}

.cta-secondary {
    position: relative;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(112, 33, 53, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-nav-link {
    position: relative;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================================
   Accessibility: 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;
    }
    
    .hero-geo {
        animation: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.6;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-triangle {
        border-left-width: 60px;
        border-right-width: 60px;
        border-bottom-width: 104px;
    }
    
    .geo-diamond {
        width: 50px;
        height: 50px;
    }
    
    .floating-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #fce7eb;
    color: #3d1019;
}
