/* ===== Base & Typography ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #C85A3C;
    color: #FFFFFF;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C85A3C;
}

/* ===== Hero Animations ===== */
.hero-bg {
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

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

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

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

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

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ===== Navbar ===== */
.navbar-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ===== Section Headers ===== */
.section-eyebrow {
    opacity: 0;
    transform: translateY(15px);
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
}

.section-visible .section-eyebrow,
.section-visible .section-title {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible .section-title {
    transition-delay: 0.1s;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.service-card {
    background: #1A1A1A;
    padding: 3rem;
    transition: background 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-visible .service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease;
}

.service-visible .service-card:nth-child(1) { transition-delay: 0.05s; }
.service-visible .service-card:nth-child(2) { transition-delay: 0.15s; }
.service-visible .service-card:nth-child(3) { transition-delay: 0.25s; }
.service-visible .service-card:nth-child(4) { transition-delay: 0.35s; }

.service-card:hover {
    background: #222222;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.4s ease;
}

.service-icon svg {
    transition: transform 0.4s ease;
}

/* ===== About ===== */
.about-image-wrapper {
    opacity: 0;
    transform: translateX(-40px);
}

.about-content {
    opacity: 0;
    transform: translateX(40px);
}

.about-visible .about-image-wrapper,
.about-visible .about-content {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-visible .about-content {
    transition-delay: 0.2s;
}

.about-stat {
    opacity: 0;
    transform: translateY(20px);
}

.about-visible .about-stat {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-visible .about-stat:nth-child(1) { transition-delay: 0.3s; }
.about-visible .about-stat:nth-child(2) { transition-delay: 0.4s; }
.about-visible .about-stat:nth-child(3) { transition-delay: 0.5s; }

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
}

.gallery-visible .gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-visible .gallery-item:nth-child(1) { transition-delay: 0.05s; }
.gallery-visible .gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-visible .gallery-item:nth-child(3) { transition-delay: 0.15s; }
.gallery-visible .gallery-item:nth-child(4) { transition-delay: 0.2s; }
.gallery-visible .gallery-item:nth-child(5) { transition-delay: 0.25s; }
.gallery-visible .gallery-item:nth-child(6) { transition-delay: 0.3s; }

.gallery-img {
    transition: transform 0.7s ease;
    display: block;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(13, 13, 13, 0.2);
}

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.testimonial-card {
    background: #1A1A1A;
    padding: 3rem;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-visible .testimonial-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-visible .testimonial-card:nth-child(1) { transition-delay: 0.05s; }
.testimonial-visible .testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-visible .testimonial-card:nth-child(3) { transition-delay: 0.25s; }

.testimonial-quote-mark {
    line-height: 1;
}

/* ===== CTA Section ===== */
.cta-dark {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-dark:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.cta-light:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ===== Contact Form ===== */
.form-input {
    background: #2C2C2C;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: #C85A3C;
    background: #333333;
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    background: #2C2C2C;
    color: #FFFFFF;
}

textarea.form-input {
    resize: none;
}

.form-submit {
    background: #C85A3C;
    color: #FFFFFF;
    padding: 1.1rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Inter', system-ui, sans-serif;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    background: #D4724E;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(200, 90, 60, 0.3);
}

.submit-arrow {
    transition: transform 0.3s ease;
}

.form-submit:hover .submit-arrow {
    transform: translateX(4px);
}

.form-success {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Menu Button ===== */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    width: 6rem;
    background: #C85A3C;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 3.5rem;
    }
    .hero-headline span:last-child {
        font-size: 2.5rem !important;
    }
    .section-title {
        font-size: 2.75rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .about-accent {
        width: 24px !important;
        height: 24px !important;
        font-size: 1rem !important;
    }
    .about-image-main {
        margin-bottom: 2rem;
    }
    .cta-dark, .cta-light {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    .hero-headline span:last-child {
        font-size: 2rem !important;
    }
    .section-title {
        font-size: 2.25rem;
    }
    .service-card {
        padding: 2rem;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg {
        animation: heroZoom 20s ease-in-out infinite alternate;
    }
}

@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-eyebrow,
    .hero-headline,
    .hero-sub,
    .hero-cta {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
