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

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #fffdf7;
    color: #1a1a1a;
    overflow-x: hidden;
}

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

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

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fbbf24;
    bottom: 15%;
    left: 5%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

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

.geo-rect-1 {
    width: 160px;
    height: 160px;
    background: #fbbf24;
    border-radius: 24px;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: float-slow 9s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: #f5c77e;
    border-radius: 16px;
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    animation: float-slow 5s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #fbbf24;
    top: 60%;
    left: 15%;
    transform: rotate(-15deg);
    animation: float-slow 7s ease-in-out infinite;
    opacity: 0.1;
}

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

/* 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, #d95228, #fbbf24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(217, 82, 40, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

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

/* Navbar Scroll State */
nav.scrolled {
    background: rgba(61, 17, 9, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .font-display {
    color: #fffdf7;
}

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger Animation */
.menu-line {
    transition: transform 0.3s ease, opacity 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) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
    margin-left: 0;
    margin-right: 0;
}

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

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

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

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

/* Selection */
::selection {
    background: #d95228;
    color: #fffdf7;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* Utility */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-rect-1 {
        width: 80px;
        height: 80px;
    }
}
