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

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

body {
    margin: 0;
    background-color: #FDF9F3;
}

::selection {
    background-color: #C4593A;
    color: white;
}

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

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid #F5B8A0;
}

.geo-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid #E8C99A;
}

.geo-rect-1 {
    top: 40%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: #FADDD3;
    transform: rotate(45deg);
    opacity: 0.3;
}

.geo-triangle {
    bottom: 30%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #F5B8A0;
    opacity: 0.2;
}

.geo-dots {
    top: 60%;
    left: 15%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #C49040 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.3;
}

/* ===== CTA Buttons ===== */
.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn:active {
    transform: translateY(0);
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(62, 58, 52, 0.08);
}

/* Mobile menu */
.mobile-link {
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
}

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

.service-card .group:hover .w-14 {
    transform: rotate(-5deg) scale(1.05);
}

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img,
    .service-card .group:hover .w-14 {
        transition: none;
    }
    
    .cta-btn:hover,
    .cta-btn:active {
        transform: none;
    }
}

/* ===== Hero Badge Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hero-badge {
    animation: float 4s ease-in-out infinite;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF9F3;
}

::-webkit-scrollbar-thumb {
    background: #E8E6E0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #C4593A;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #C4593A;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 767px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-rect-1,
    .geo-triangle,
    .geo-dots {
        display: none;
    }
}
