/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 30%;
    left: 10%;
    animation-delay: 4s;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 255, 255, 0.07);
    top: 20%;
    right: 15%;
    transform: rotate(15deg);
    animation-delay: 1s;
}

.geo-square {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    bottom: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 3s;
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 15px 15px;
    top: 60%;
    left: 20%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

/* Nav Styles */
.nav-text {
    color: #8b4726;
}

.nav-link {
    position: relative;
}

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(253, 246, 236, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(196, 112, 63, 0.1);
}

#navbar.scrolled .nav-text {
    color: #8b4726;
}

#navbar.scrolled .nav-link {
    color: #733b22;
}

/* Mobile Menu */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service Cards */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: #C4703F;
}

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

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

/* Default state for reveal (no JS) */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

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

/* Back to Top */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Form Focus Styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(196, 112, 63, 0.15);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #C4703F;
    border-radius: 5px;
}

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

/* Selection Color */
::selection {
    background: #C4703F;
    color: white;
}
