/* ============================================
   Done Right Fabrications, LLC — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

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

/* Hero Section Shapes */
.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 122, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(110, 156, 86, 0.1);
    border-radius: 50%;
    bottom: 10%;
    left: -50px;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: rgba(74, 122, 53, 0.12);
    border-radius: 16px;
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(110, 156, 86, 0.15);
    top: 60%;
    right: 10%;
    transform: rotate(-20deg);
}

.geo-ring-1 {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(74, 122, 53, 0.1);
    border-radius: 50%;
    top: 20%;
    left: 15%;
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(74, 122, 53, 0.2) 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: 20%;
    right: 5%;
}

/* Services Section Shapes */
.geo-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 253, 248, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -150px;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(254, 253, 248, 0.08);
    border-radius: 12px;
    top: 15%;
    left: 8%;
    transform: rotate(30deg);
}

.geo-dots-light {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(254, 253, 248, 0.1) 2px, transparent 2px);
    background-size: 18px 18px;
    top: 30%;
    right: 12%;
}

/* Why Us Section Shapes */
.geo-circle-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 122, 53, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    left: -100px;
}

.geo-square-3 {
    width: 100px;
    height: 100px;
    background: rgba(74, 122, 53, 0.08);
    border-radius: 20px;
    bottom: 10%;
    right: 5%;
    transform: rotate(45deg);
}

/* CTA Section Shapes */
.geo-circle-5 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(254, 253, 248, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.geo-triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(254, 253, 248, 0.04);
    bottom: 10%;
    right: 15%;
    transform: rotate(10deg);
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 122, 53, 0.1);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(15, 26, 10, 0.1);
}

/* ============================================
   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, #365c26, #6e9c56);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-from-bottom {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-from-bottom.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-from-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-from-left.revealed {
        opacity: 1;
        transform: translateX(0);
    }
    
    .reveal-from-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-from-right.revealed {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #365c26;
    outline: none;
    box-shadow: 0 0 0 3px rgba(54, 92, 38, 0.15);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

.mobile-link:hover {
    padding-left: 0.5rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-square-1 {
        width: 50px;
        height: 50px;
    }
    
    .geo-triangle-1 {
        display: none;
    }
    
    .geo-ring-1 {
        width: 80px;
        height: 80px;
    }
    
    .geo-dots {
        width: 60px;
        height: 60px;
    }
    
    .geo-circle-3 {
        width: 300px;
        height: 300px;
    }
    
    .geo-square-2 {
        width: 40px;
        height: 40px;
    }
    
    .geo-dots-light {
        width: 80px;
        height: 80px;
    }
    
    .geo-circle-4 {
        width: 200px;
        height: 200px;
    }
    
    .geo-square-3 {
        width: 60px;
        height: 60px;
    }
    
    .geo-circle-5 {
        width: 350px;
        height: 350px;
    }
    
    .geo-triangle-2 {
        display: none;
    }
    
    /* Floating card positioning for mobile */
    .absolute.-bottom-6.-left-6 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        margin-left: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .absolute.-top-4.-right-4,
    .absolute.top-1/2.-right-8 {
        display: none;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    .geo-shape,
    button {
        display: none;
    }
    
    body {
        color: #1a1a1a;
        background: white;
    }
    
    a {
        color: #365c26;
    }
}
