/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #fefce8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* === CUSTOM PROPERTIES === */
:root {
    --terracotta-400: #ee6a3c;
    --terracotta-500: #e84f1f;
    --terracotta-600: #d13a12;
    --sand-100: #fef9c3;
    --sand-200: #fef08a;
    --sand-500: #e8d5a8;
    --sand-800: #967142;
}

/* === NAVIGATION === */
.nav-fixed {
    background: rgba(254, 252, 232, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-fixed.scrolled {
    background: rgba(254, 252, 232, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--terracotta-500);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

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

/* === MOBILE MENU === */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

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

.mobile-link {
    display: block;
}

#menuBtn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* === BUTTONS === */
.btn-primary {
    background: linear-gradient(135deg, var(--terracotta-500), var(--terracotta-600));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--terracotta-400), var(--terracotta-500));
}

.btn-secondary {
    transition: all 0.3s ease;
}

/* === HERO === */
.hero {
    position: relative;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero .flex {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero .mt-16 {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* === GEOMETRIC SHAPES === */
.geo-circle {
    animation: float 6s ease-in-out infinite;
}

.geo-circle-1 {
    animation-delay: 0s;
}

.geo-circle-2 {
    animation-delay: 1s;
}

.geo-circle-3 {
    animation-delay: 2s;
}

.geo-circle-4 {
    animation-delay: 3s;
}

.geo-square {
    animation: spin-slow 20s linear infinite;
}

.geo-rect {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.geo-cross {
    animation: spin-slow 15s linear infinite reverse;
}

.geo-dots {
    animation: float 5s ease-in-out infinite;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === 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, var(--terracotta-400), var(--sand-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 3px 3px 0 0;
}

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

/* === WHY US CARDS === */
.why-card {
    transition: all 0.3s ease;
}

/* === CONTACT CARDS === */
.contact-card {
    transition: all 0.3s ease;
}

/* === INPUT FIELDS === */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--terracotta-400);
    box-shadow: 0 0 0 4px rgba(232, 79, 31, 0.1);
}

/* === BACK TO TOP === */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--terracotta-600);
    box-shadow: 0 8px 25px rgba(232, 79, 31, 0.35);
}

/* === SCROLL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .font-display {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .geo-circle-1 {
        width: 60px !important;
        height: 60px !important;
    }
    
    .geo-circle-2 {
        width: 48px !important;
        height: 48px !important;
    }
    
    .geo-square {
        display: none;
    }
    
    .geo-cross {
        display: none;
    }
    
    .geo-rect {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .geo-circle-1 {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (min-width: 769px) {
    .geo-circle-1 {
        width: 24rem !important;
        height: 24rem !important;
    }
    
    .geo-circle-2 {
        width: 18rem !important;
        height: 18rem !important;
    }
}
