/* ===== Base & Reset ===== */
*, *::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;
}

::selection {
    background: #1B4332;
    color: #fefdf8;
}

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

.geo-circle-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.06) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

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

.geo-rect-1 {
    top: 30%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(27, 67, 50, 0.04);
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-triangle {
    bottom: 20%;
    left: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(193, 105, 79, 0.06);
    animation: float-medium 18s ease-in-out infinite;
}

.geo-dots {
    top: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(27, 67, 50, 0.1) 2px, transparent 2px);
    background-size: 12px 12px;
    animation: float-slow 25s 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(50deg); }
}

/* ===== Hero Animations ===== */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

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

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

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-logo-sub {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1B4332;
}

#navbar.scrolled .nav-logo-sub {
    color: #1B4332;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #1B4332;
}

#navbar.scrolled .nav-link::after {
    background: #1B4332;
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A373, #C1694F);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Product Cards ===== */
.product-card {
    cursor: pointer;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.product-card:hover::after {
    border-color: rgba(27, 67, 50, 0.15);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    font-weight: 900;
    color: rgba(27, 67, 50, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

.reveal.visible {
    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; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }

    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }

    .geo-triangle {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
}

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

/* ===== Print ===== */
@media print {
    #navbar, .geo-shape, #hero .absolute {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
