/* 
* Global CSS
* Contains global styles, variables, and utility classes
*/

:root {
    /* Color Variables */
    --primary-color: #0056b3;      /* Primary Blue */
    --primary-dark: #003d7a;       /* Darker Blue for hover states */
    --secondary-color: #ffc107;    /* Secondary Yellow */
    --secondary-dark: #e0a800;     /* Darker Yellow for hover states */
    --text-dark: #333333;          /* Dark text color */
    --text-light: #ffffff;         /* Light text color */
    --text-muted: #6c757d;         /* Muted text color */
    --bg-light: #f8f9fa;           /* Light background */
    --bg-dark: #343a40;            /* Dark background */
    --border-color: #dee2e6;       /* Border color */
    
    /* Spacing Variables */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Container Width */
    --container-width: 120rem;
    --container-padding: 2rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section Styles */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.4rem;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 0.4rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: white;
    border: 2px solid var(--bg-light);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* Responsive Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Media Queries */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
    }
}
