/* ===== CSS Custom Properties ===== */
:root {
    --terracotta-500: #d44f25;
    --terracotta-400: #e56840;
    --sand-50: #fefdf8;
    --sand-100: #fdf9ed;
    --warm-900: #2a1f12;
}

/* ===== Base Reset & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(42, 31, 18, 0.08);
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 79, 37, 0.06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 185, 82, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(212, 79, 37, 0.07);
    border-radius: 24px;
    top: 25%;
    right: 38%;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(226, 185, 82, 0.08);
    top: 40%;
    left: 2%;
    animation: float-medium 18s ease-in-out infinite;
}

.geo-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(212, 79, 37, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
    bottom: 20%;
    right: 5%;
    animation: float-slow 10s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(25px, -25px) rotate(55deg); }
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d44f25, #e56840);
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 100%;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Utility ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== Selection ===== */
::selection {
    background: rgba(212, 79, 37, 0.2);
    color: #2a1f12;
}

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

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

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

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