/**
 * base.css
 * 
 * Contains reset styles, base typography, and global element styling
 * that applies throughout the website.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Container for consistent width across sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section standard styling */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    clear: both;
}

/* Section title styling */
.section-title {
    font-size: var(--font-xxlarge);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--text-color);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Smooth image loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    will-change: opacity, transform;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Common transitions for interactive elements */
body, 
header, 
.section, 
.feature-card, 
.timeline-content, 
.pricing-card, 
.accordion-item, 
.contact-info, 
.contact-form,
.form-control,
.testimonial-content,
.maps-container {
    transition: background-color var(--transition-medium), 
                color var(--transition-medium), 
                box-shadow var(--transition-medium);
}

/* Basic animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Basic utility classes */
.animate-fadeIn { animation: fadeIn 1s ease; }
.animate-fadeInUp { animation: fadeInUp 1s ease; }
.animate-fadeInDown { animation: fadeInDown 1s ease; }
.animate-fadeInLeft { animation: fadeInLeft 1s ease; }
.animate-fadeInRight { animation: fadeInRight 1s ease; }