/* Base Styles */
*, *::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;
}

/* Navbar */
.nav-fixed {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(180, 85, 45, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

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

.nav-logo-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 4px;
}

/* Hero */
.hero {
    position: relative;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geo-circle, .geo-square, .geo-diamond, .geo-triangle, .geo-ring {
    position: absolute;
    opacity: 0.12;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid white;
    top: -100px;
    right: -80px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    bottom: 15%;
    left: 5%;
    animation: float-medium 14s ease-in-out infinite;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    top: 40%;
    right: 10%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 150px;
    height: 150px;
    background: white;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-medium 16s ease-in-out infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    border: 3px solid white;
    bottom: 25%;
    right: 6%;
    transform: rotate(30deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-diamond-1 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 255, 255, 0.15);
    top: 15%;
    right: 20%;
    animation: float-slow 25s ease-in-out infinite;
}

.geo-ring-1 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    bottom: -50px;
    left: 30%;
    animation: float-medium 19s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-3deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C4653A, #C9A84C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Animation */
.nav-mobile {
    animation: slideDown 0.3s ease;
}

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

/* Image hover effects */
img {
    max-width: 100%;
    height: auto;
}

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

/* Utility */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

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

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

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

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