/* ===================================
   Base & Reset
   =================================== */
*, *::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;
}

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(211, 82, 61, 0.08);
    border-radius: 50%;
    top: 10%;
    right: -100px;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(211, 82, 61, 0.05);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(168, 130, 30, 0.15);
    border-radius: 50%;
    top: 40%;
    left: 10%;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(211, 82, 61, 0.06);
    top: 60%;
    right: 15%;
    transform: rotate(15deg);
}

.geo-square {
    width: 80px;
    height: 80px;
    background: rgba(168, 130, 30, 0.08);
    bottom: 30%;
    right: 25%;
    transform: rotate(45deg);
}

.geo-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(211, 82, 61, 0.15) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 25%;
    left: 20%;
}

/* ===================================
   Hero Geometric Elements
   =================================== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: 10%;
    right: 5%;
}

.hero-geo-2 {
    width: 150px;
    height: 150px;
    background: rgba(253, 219, 196, 0.1);
    border-radius: 50%;
    bottom: 20%;
    right: 15%;
}

.hero-geo-3 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 255, 255, 0.05);
    top: 30%;
    left: 10%;
    transform: rotate(-20deg);
}

.hero-geo-4 {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(253, 219, 196, 0.15);
    bottom: 30%;
    left: 20%;
    transform: rotate(30deg);
}

.hero-geo-5 {
    width: 60px;
    height: 60px;
    background: rgba(253, 219, 196, 0.08);
    top: 50%;
    right: 30%;
    transform: rotate(45deg);
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

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

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-nav-link {
    position: relative;
}

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

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

/* ===================================
   Scroll Reveal Animations
   =================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===================================
   Button Hover Effects
   =================================== */
a {
    text-decoration: none;
}

/* ===================================
   Form Styling
   =================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(211, 82, 61, 0.1);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 100px;
        height: 100px;
    }
    
    .geo-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(211, 82, 61, 0.06);
    }
    
    .geo-square {
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   Selection Color
   =================================== */
::selection {
    background: rgba(211, 82, 61, 0.2);
    color: #431711;
}

/* ===================================
   Smooth Transitions
   =================================== */
img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .geo-shape,
    .hero-geo {
        display: none;
    }
}
