/* ========================================
   Clauss Construction — Custom Styles
   ======================================== */

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

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

body {
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF9F6;
}
::-webkit-scrollbar-thumb {
    background: #9cc178;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #528430;
}

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #3d6625;
    top: -200px;
    right: -150px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #528430;
    bottom: 10%;
    left: -100px;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #3d6625;
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.square-1 {
    width: 200px;
    height: 200px;
    background: #73a34a;
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
}

.circle-3 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #9cc178;
    top: 20%;
    left: 50%;
    opacity: 0.02;
}

/* Geo Pattern */
.geo-pattern {
    background-image: 
        linear-gradient(30deg, #3d6625 12%, transparent 12.5%, transparent 87%, #3d6625 87.5%, #3d6625),
        linear-gradient(150deg, #3d6625 12%, transparent 12.5%, transparent 87%, #3d6625 87.5%, #3d6625),
        linear-gradient(30deg, #3d6625 12%, transparent 12.5%, transparent 87%, #3d6625 87.5%, #3d6625),
        linear-gradient(150deg, #3d6625 12%, transparent 12.5%, transparent 87%, #3d6625 87.5%, #3d6625),
        linear-gradient(60deg, #528430 25%, transparent 25.5%, transparent 75%, #528430 75%, #528430),
        linear-gradient(60deg, #528430 25%, transparent 25.5%, transparent 75%, #528430 75%, #528430);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.03;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

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

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

@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 4s ease-in-out infinite;
    animation-delay: 1s;
}

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

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    background: #3d6625;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #315020;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 102, 37, 0.3);
}

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

.service-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Project Cards
   ======================================== */
.project-card {
    cursor: pointer;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.project-card:hover::after {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Testimonial Cards
   ======================================== */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 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; }

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    position: relative;
    padding-left: 0;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #528430;
    transition: width 0.3s ease;
}

.mobile-link:hover::before {
    width: 20px;
}

/* ========================================
   Focus Styles
   ======================================== */
*:focus-visible {
    outline: 2px solid #528430;
    outline-offset: 2px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h1 br {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 {
        font-size: 4rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .geo-shape,
    .animate-float,
    .animate-float-delay,
    .animate-spin-slow {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
