/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F28C28;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --navy: #06283D;
    --orange: #FF8B00;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    position: relative;
}

/* Global Responsive Images */
img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Prevent layout shift for images with width/height attributes */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Ensure all divs are responsive by default */
div {
    max-width: 100%;
    box-sizing: border-box;
}

/* Container - Fully Responsive */
.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 1.25rem);
}

/* Section Styles - Fully Responsive */
section {
    width: 100%;
    padding: clamp(2.5rem, 5vw, 5rem) 0;
    box-sizing: border-box;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.highlight {
    color: var(--primary-color);
}

.section-description,
.section-intro {
    font-size: clamp(0.875rem, 2vw, 1.1rem);
    text-align: center;
    width: 100%;
    max-width: 50rem;
    margin: 0 auto clamp(2rem, 4vw, 3.125rem);
    color: var(--text-dark);
    padding: 0 1rem;
    box-sizing: border-box;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: clamp(2rem, 4vw, 3.125rem);
    color: var(--text-dark);
    width: 100%;
    max-width: 100%;
}

/* Global Responsive Enhancements */
* {
    box-sizing: border-box;
}

/* Ensure all images are responsive */
img, picture, video, svg {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ensure all containers are responsive */
div, section, article, aside, header, footer, main, nav {
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure all form elements are responsive */
input, textarea, select, button {
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsive Base */
@media (max-width: 64rem) {
    .container {
        padding: 0 clamp(0.875rem, 2.5vw, 1.125rem);
    }
    
    section {
        padding: clamp(2rem, 4vw, 3.125rem) 0;
    }
}

@media (max-width: 48rem) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    }
    
    .section-description,
    .section-intro {
        padding: 0 0.75rem;
    }
    
    /* Stack all grid layouts on mobile */
    [class*="grid"],
    [class*="wrapper"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 30rem) {
    .container {
        padding: 0 clamp(0.625rem, 1.25vw, 0.75rem);
    }
    
    section {
        padding: clamp(1.25rem, 2.5vw, 2rem) 0;
    }
    
    .section-title {
        font-size: clamp(1.25rem, 3vw, 2rem);
    }
    
    .section-description,
    .section-intro {
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    }
    
    /* Ensure all flex containers stack on very small screens */
    [class*="flex"] {
        flex-direction: column;
    }
}

/* Large Tablets and Small Desktops */
@media (min-width: 64.0625rem) and (max-width: 90rem) {
    .container {
        max-width: 85rem;
        padding: 0 clamp(1.125rem, 2.5vw, 1.5rem);
    }
}

/* Large Desktops */
@media (min-width: 90.0625rem) and (max-width: 120rem) {
    .container {
        max-width: 87.5rem;
        padding: 0 clamp(1.25rem, 3vw, 1.75rem);
    }
}

/* Very Large Screens (4K and above) */
@media (min-width: 120rem) {
    .container {
        max-width: 90rem;
        padding: 0 clamp(1.5rem, 4vw, 2rem);
    }
    
    section {
        padding: clamp(5rem, 6vw, 6.25rem) 0;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 4.5vw, 3rem);
    }
    
    .section-description,
    .section-intro {
        font-size: clamp(1.1rem, 2vw, 1.25rem);
    }
}

