/* Base styles and custom properties */
:root {
    --terracotta: #C66B44;
    --terracotta-light: #E8C07A;
    --sand: #F5EDE3;
    --sand-light: #FDF8EC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Background Shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(198, 107, 68, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 192, 122, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: rgba(198, 107, 68, 0.06);
    top: 40%;
    right: 10%;
    animation: float-medium 12s ease-in-out infinite;
}

.geo-circle-4 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    top: -50px;
    left: 10%;
    animation: float-medium 14s ease-in-out infinite reverse;
}

.geo-circle-6 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 192, 122, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float-slow 16s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(198, 107, 68, 0.05);
    border-radius: 24px;
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: float-medium 10s ease-in-out infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: rgba(232, 192, 122, 0.1);
    border-radius: 16px;
    bottom: 15%;
    right: 8%;
    transform: rotate(20deg);
    animation: float-slow 13s ease-in-out infinite reverse;
}

.geo-rect-3 {
    width: 100px;
    height: 100px;
    background: rgba(198, 107, 68, 0.06);
    border-radius: 20px;
    bottom: 10%;
    right: 5%;
    transform: rotate(30deg);
    animation: float-medium 11s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(198, 107, 68, 0.04);
    top: 30%;
    right: 3%;
    transform: rotate(-15deg);
    animation: float-slow 17s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(198, 107, 68, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    width: 120px;
    height: 120px;
    top: 15%;
    left: 2%;
}

.geo-dots-light {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 5%;
}

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

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

/* Service cards */
.service-card {
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--terracotta), var(--sand));
    border-radius: 0 0 24px 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: rgba(198, 107, 68, 0.2);
    color: #783927;
}

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

::-webkit-scrollbar-track {
    background: var(--sand);
}

::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 5px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
}
