/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --secondary: #EF4444;
    --dark: #1F2933;
    --light: #F9FAFB;
    --gray: #6B7280;
}

* {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F59E0B;
}

/* ============ GRADIENT CLASSES ============ */
.gradient-orange-red {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    position: relative;
    overflow: hidden;
}

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

.gradient-orange-red:hover::before {
    left: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 50%, #F59E0B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ============ NAVIGATION ============ */
nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 1.5rem 0;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

nav .nav-link {
    color: white;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
    color: var(--dark);
    text-shadow: none;
}

nav.scrolled .nav-link:hover,
nav.scrolled .nav-link.active {
    color: var(--primary);
}

/* ============ HERO SECTION ============ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1.05);
    animation: zoomOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2.5rem;
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 140px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    min-width: 140px;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

@media (min-width: 768px) {

    .btn-primary,
    .btn-outline-white {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        min-width: auto;
    }
}

/* ============ TRUST BAR ============ */
.trust-bar-item {
    position: relative;
    overflow: hidden;
}

.trust-bar-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ============ SERVICE CARDS ============ */
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(245, 158, 11, 0.1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Service Icon FA Pro */
.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 1.5rem;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 2rem;
    padding: 2px;
    background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05) rotate(3deg);
    background: white;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card .text-4xl {
    transition: transform 0.4s ease;
}

.service-card:hover .text-4xl {
    transform: scale(1.2) rotate(5deg);
}

/* ============ GALLERY SECTION ============ */
.pixel-pattern {
    background-image:
        linear-gradient(45deg, rgba(245, 158, 11, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(245, 158, 11, 0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(245, 158, 11, 0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(245, 158, 11, 0.03) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: brightness(1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
}

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

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay i {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 50%;
}

/* ============ LOCATION CARDS ============ */
.location-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.2);
}

/* ============ BUTTONS ============ */
.gradient-orange-red,
a[href^="https://wa.me"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gradient-orange-red:hover,
a[href^="https://wa.me"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.gradient-orange-red:active,
a[href^="https://wa.me"]:active {
    transform: translateY(0);
}

/* ============ NAVIGATION (Legacy Overwrite) ============ */
/* Removed old nav styles to avoid conflict */

/* ============ WHATSAPP FLOAT BUTTON ============ */
.whatsapp-float {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    z-index: 9999 !important;
    animation: whatsapp-pulse 2s infinite;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .whatsapp-float {
        bottom: 40px !important;
        right: 40px !important;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* ============ LIGHTBOX ============ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox .close-lightbox {
    transition: all 0.3s ease;
}

.lightbox .close-lightbox:hover {
    transform: rotate(90deg) scale(1.1);
    color: #EF4444;
}

/* ============ SECTION TITLES ============ */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    border-radius: 2px;
}

/* ============ WHY CHOOSE US ============ */
.feature-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ============ PRODUCT CARDS ============ */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
}

/* ============ FOOTER ============ */
footer a[href*="instagram"],
footer a[href*="tiktok"],
footer a[href*="facebook"] {
    transition: all 0.3s ease;
}

footer a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
}

footer a[href*="tiktok"]:hover {
    background: #000;
}

footer a[href*="facebook"]:hover {
    background: #1877F2;
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 768px) {
    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .service-card:hover {
        transform: translateY(-8px);
    }
}

/* ============ LOADING SKELETON ============ */
.skeleton {
    background: linear-gradient(90deg, #1F2937 25%, #374151 50%, #1F2937 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============ DECORATIVE ELEMENTS ============ */
.decorative-dots {
    background-image: radial-gradient(rgba(245, 158, 11, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ============ INFINITE MARQUEE ============ */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #F9FAFB 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #F9FAFB 0%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    width: 280px;
    height: 200px;
    object-fit: cover;
    margin: 0 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Hero Marquee Specifics */
.hero-marquee-item {
    width: 200px;
    height: 140px;
    object-fit: cover;
    margin: 0 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-marquee-item:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.mask-image-gradient {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ============ MASONRY GALLERY ============ */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.8) 0%, rgba(239, 68, 68, 0.8) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

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

.masonry-item img {
    width: 100%;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.masonry-item:hover img {
    transform: scale(1.1);
}

/* Tall items for masonry variation */
.masonry-item.tall {
    height: 400px;
}

.masonry-item:not(.tall) {
    height: 250px;
}

/* ============ SCROLL REVEAL ANIMATION ============ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delays for scroll reveal */
.scroll-reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.scroll-reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.scroll-reveal:nth-child(5) {
    transition-delay: 0.5s;
}

.scroll-reveal:nth-child(6) {
    transition-delay: 0.6s;
}

/* ============ MOBILE MENU ============ */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#mobileMenu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* ============ SCROLL DOWN INDICATOR ============ */
.scroll-down {
    position: relative;
    margin: 30px auto 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-down span {
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-down i {
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============ FULL WIDTH GALLERY ============ */
.gallery-full-width {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.gallery-full-width img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-full-width img:hover {
    transform: scale(1.02);
}

/* ============ MASONRY GALLERY ============ */
.masonry-gallery {
    column-count: 4;
    column-gap: 1.5rem;
}

@media (max-width: 1280px) {
    .masonry-gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-gallery {
        column-count: 1;
    }
}

.masonry-gallery .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.masonry-gallery .masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.6) 0%, rgba(239, 68, 68, 0.6) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.masonry-gallery .masonry-item img {
    width: 100%;
    display: block;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.masonry-gallery .masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

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

/* Tall items untuk variasi masonry */
.masonry-gallery .masonry-item.tall {
    height: 400px;
}

.masonry-gallery .masonry-item:not(.tall) {
    height: 280px;
}

/* Responsive heights */
@media (max-width: 768px) {
    .masonry-gallery .masonry-item.tall {
        height: 300px;
    }

    .masonry-gallery .masonry-item:not(.tall) {
        height: 200px;
    }
}

/* Ensure lightbox works on mobile */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

/* ============ NAVIGATION UPDATE ============ */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Active nav link */
nav a[href="index.html"] {
    color: #F97316;
    font-weight: 600;
}

/* ============ LOCATION MODAL ============ */
.location-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.location-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    margin: 5vh auto;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(245, 158, 11, 0.1);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #6B7280;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    transform: rotate(90deg);
}

/* Modal Body */
.modal-body {
    padding: 1.5rem 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Location Options */
.location-option {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: white;
    border: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-option:last-child {
    margin-bottom: 0;
}

.location-option:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: #F97316;
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.location-icon i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.location-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-desc {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.location-number {
    color: #F97316;
    font-weight: 600;
    font-size: 0.875rem;
}

.location-arrow {
    color: #D1D5DB;
    transition: all 0.3s ease;
}

.location-option:hover .location-arrow {
    color: #F97316;
    transform: translateX(4px);
}

/* Modal Footer */
.modal-footer {
    padding: 1rem 2rem;
    border-top: 2px solid rgba(245, 158, 11, 0.1);
    text-align: center;
}

.modal-cancel {
    background: white;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cancel:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

/* Responsive */
@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 2.5vh auto;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
    }

    .modal-footer {
        padding: 0.75rem 1.5rem;
    }

    .location-option {
        padding: 1rem;
    }

    .location-icon {
        width: 50px;
        height: 50px;
        margin-right: 0.75rem;
    }

    .location-icon i {
        font-size: 1.5rem;
    }

    .location-name {
        font-size: 1.125rem;
    }
}