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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(59, 7, 17, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#navbar.scrolled .nav-link:hover {
    color: #ffffff;
}

/* ========== HERO ========== */
.hero-bg {
    will-change: transform;
}

.hero-img {
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero-bg.loaded .hero-img {
    transform: scale(1);
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(59, 7, 17, 0.65) 0%,
        rgba(59, 7, 17, 0.55) 40%,
        rgba(59, 7, 17, 0.75) 100%
    );
}

.hero-tag {
    animation: fadeDown 0.8s 0.2s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title {
    animation: fadeUp 0.9s 0.4s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-subtitle {
    animation: fadeUp 0.9s 0.6s both cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta {
    animation: fadeUp 0.9s 0.8s both cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, #a11736 0%, #c22747 50%, #db4563 100%);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(161, 23, 54, 0.4);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #841632 0%, #a11736 50%, #c22747 100%);
    box-shadow: 0 12px 40px rgba(161, 23, 54, 0.5);
    color: #ffffff;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-secondary:hover {
    color: #ffffff;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    opacity: 1;
}

/* ========== GALLERY ========== */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(59, 7, 17, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gallery-item {
    position: relative;
}

/* ========== FORM ========== */
.input-field {
    border: 1.5px solid #f5d4c2;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #4a3728;
    background: #fffaf8;
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
}

.input-field::placeholder {
    color: #c4a882;
}

.input-field:hover {
    border-color: #f9d0d9;
    background: #ffffff;
}

.input-field:focus {
    border-color: #a11736;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(161, 23, 54, 0.1);
}

.input-field.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-field.success {
    border-color: #16a34a;
}

select.input-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a11736' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-nav-link {
    display: block;
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title::after {
        content: ' — Our Passion';
    }
}

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

/* ========== 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-img {
        transform: none;
    }

    .scroll-indicator {
        display: none;
    }
}
