/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

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

/* ===== Geometric Hero Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(212, 168, 75, 0.12);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation: float-slow 18s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 168, 75, 0.1);
    top: 30%;
    right: 5%;
    transform: rotate(15deg);
    animation: float-slow 22s ease-in-out infinite;
}

.square-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    bottom: 25%;
    right: 20%;
    transform: rotate(45deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

.dot-pattern {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    top: 60%;
    left: 8%;
    animation: float-slow 25s ease-in-out infinite;
}

.hero-photo-frame {
    border-radius: 50% 50% 0 0;
    overflow: hidden;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* ===== Marquee ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== Specialty Cards ===== */
.specialty-card {
    perspective: 1000px;
}

.specialty-card .group:hover {
    transform: translateY(-4px);
}

/* ===== Gallery Items ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(253, 251, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled #navbar a:not(.bg-emerald-600) {
    color: #1a1a1a;
}

/* ===== Mobile Menu ===== */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.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; }

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
