/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a192f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

#navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

.cta-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #d4af37;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #d4af37;
    color: #0a192f;
}

/* Mobile menu */
.mobile-menu {
    animation: slideIn 0.4s ease forwards;
}

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

.mobile-link {
    font-family: 'Playfair Display', serif;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: #0a192f;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 25, 47, 0.7) 0%,
        rgba(10, 25, 47, 0.5) 40%,
        rgba(10, 25, 47, 0.8) 100%
    );
}

.hero-content {
    padding-top: 80px;
}

.hero-badge {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.9s both;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.6), transparent);
    margin: 0 auto 8px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.cta-btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #d4af37;
    color: #0a192f;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn-primary:hover {
    background: transparent;
    color: #d4af37;
}

.cta-btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: #d4af37;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn-secondary:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

/* ===== SECTION STYLES ===== */
.section-label {
    font-weight: 500;
}

.section-title {
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    line-height: 1.8;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card {
    background: #fff;
    padding: 40px 32px;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    background: #0a192f;
}

.service-card:hover .service-title,
.service-card:hover .service-desc {
    color: #fff;
}

.service-card:hover .service-desc {
    color: rgba(255, 255, 255, 0.6);
}

.service-card:hover .service-icon {
    color: #d4af37;
}

.service-icon {
    color: #d4af37;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.service-title {
    transition: color 0.4s ease;
}

.service-desc {
    transition: color 0.4s ease;
}

/* ===== ABOUT ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    position: relative;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image-frame:hover .about-image {
    transform: scale(1.03);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: -1;
}

.about-stat {
    text-align: left;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
}

.gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-caption {
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

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

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 36px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(10, 25, 47, 0.08);
    transform: translateY(-4px);
}

.testimonial-quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    color: #d4af37;
    position: absolute;
    top: 16px;
    left: 24px;
    opacity: 0.3;
}

.testimonial-text {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== CONTACT ===== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    color: #d4af37;
    flex-shrink: 0;
}

.contact-form {
    position: relative;
}

.form-label {
    font-family: 'Manrope', sans-serif;
}

.form-input {
    font-family: 'Manrope', sans-serif;
}

.form-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 1px #d4af37;
}

.form-success {
    animation: fadeInUp 0.4s ease;
}

/* ===== MAP ===== */
.map-section {
    filter: grayscale(0.4) contrast(1.1);
    height: 350px;
}

/* ===== FOOTER ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item--tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item--large {
        grid-column: span 1;
    }

    .about-stats {
        grid-template-columns: 3;
        gap: 2rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-title {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        padding: 14px 28px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* ===== 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-img {
        transform: none !important;
    }
}
