/* Custom Styles for E&H Contractors */

:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --emerald-950: #022c22;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ee;
    --cream-300: #f5e8b0;
    --cream-400: #efd77a;
    --cream-500: #e8c24e;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Geometric Background Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--emerald-500) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cream-400) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: var(--emerald-600);
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    opacity: 0.05;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--cream-400);
    top: 20%;
    right: 10%;
    opacity: 0.08;
    transform: rotate(-15deg);
}

.shape-dots {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--emerald-600) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.03;
}

/* Hero Animation */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--emerald-900);
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--emerald-600);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--emerald-50);
    transform: translateY(-2px);
}

/* Service Cards */
.service-card {
    animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Project Cards */
.project-card {
    animation: fadeInUp 0.6s ease-out both;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* Testimonial Cards */
.testimonial-card {
    animation: fadeInUp 0.6s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

/* Navigation */
#navbar {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

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

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-700);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .shape-square-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-triangle-1 {
        border-left-width: 50px;
        border-right-width: 50px;
        border-bottom-width: 87px;
    }
}
