/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(128, 0, 32, 0.15);
    color: #800020;
}

/* ===== Navigation ===== */
.nav-logo-text,
.nav-sub-text {
    transition: color 0.4s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.btn-nav {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.btn-nav:hover {
    background: white;
    color: #800020;
    transform: translateY(-1px);
}

.nav-scrolled .nav-logo-text,
.nav-scrolled .nav-sub-text {
    color: #800020;
}

.nav-scrolled .nav-link {
    color: #374151;
}

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

.nav-scrolled .btn-nav {
    background: #800020;
    border-color: #800020;
    color: white;
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0 -0.25rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

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

.hero-img {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-title {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-badge {
    animation: fadeUp 1s ease 0.1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    animation: fadeUp 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    animation: fadeUp 1s ease 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #800020;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #800020;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.btn-primary:hover {
    background: #6c001a;
    border-color: #6c001a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
}

/* ===== Section Labels & Titles ===== */
.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #800020;
    background: rgba(128, 0, 32, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* ===== About Section ===== */
.about-img-wrapper {
    position: relative;
    z-index: 1;
}

.about-img {
    transition: transform 0.6s ease;
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.02);
}

.about-badge {
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

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

.about-feature {
    transition: transform 0.3s ease;
}

.about-feature:hover {
    transform: translateX(4px);
}

/* ===== Service Cards ===== */
.service-card {
    perspective: 1000px;
}

.service-card-inner {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

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

/* ===== Area Cards ===== */
.area-card-inner {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.area-card-inner:hover {
    box-shadow: 0 12px 40px rgba(128, 0, 32, 0.2);
}

.area-content {
    transition: padding 0.3s ease;
}

/* ===== Testimonial Cards ===== */
.testimonial-card-inner {
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card:hover .testimonial-card-inner {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Contact Form ===== */
.form-input,
.form-select,
.form-textarea {
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: white;
    color: #111827;
    font-family: inherit;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #800020;
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-wrapper {
    transition: box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.08);
}

/* ===== Scroll Reveal ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Divider ===== */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #800020, #ff8da1);
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        gap: 4px;
    }

    .hero-stat .text-3xl {
        font-size: 1.75rem;
    }

    .about-badge {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .about-accent {
        display: none !important;
    }
}
