/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-color: #172A39;
    --secondary-color: #2D5F7C;
    --accent-color: #216E7A;
    --light-accent: #CDAF81;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #F5F0E6;
    --bg-tertiary: #FAF7F2;
    --border-color: #CDAF81;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 6px 10px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    contain: layout style;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    contain: layout;
}

section {
    padding: 3rem 0;
    position: relative;
    contain: layout;
}

.section-light {
    background: var(--bg-primary);
}

.section-gray {
    background: var(--bg-secondary);
}

.section-dark {
    background: var(--primary-color);
    color: white;
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   BUTTONS
   =================================== */
button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--secondary-color);
    font-family: inherit;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-accent);
}

button:active {
    transform: translateY(0);
}

.cta-button:not(.nav-links .cta-button) {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--secondary-color);
}

.cta-button:not(.nav-links .cta-button):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-accent);
}

.cta-button::before {
    display: none;
}

.nav-links .cta-button {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 2px solid var(--secondary-color);
    min-width: auto;
    width: auto;
    text-align: center;
    white-space: nowrap;
}

.nav-links .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-accent);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, #1a365d, #2c5282);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    contain: layout;
}

.hero.hero-home {
    padding: 10rem 0 5rem;
    min-height: 85vh;
    contain: layout;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.8));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    /* Remove animation to prevent CLS */
}

.hero .subheadline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    /* Remove animation to prevent CLS */
}




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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===================================
   MESSAGES & STATES
   =================================== */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.success-message {
    background: #48bb78;
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}




/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet and Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subheadline {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .cta-button:not(.nav-links .cta-button) {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .dropdown-selected {
        font-size: 16px;
        min-height: 50px;
        padding: 12px;
    }
    
    .dropdown-options {
        max-height: none;
        overflow-y: visible;
    }
    
    .dropdown-option {
        padding: 16px 12px;
        font-size: 16px;
        min-height: 50px;
    }
    
}

/* Mobile Small */
@media (max-width: 480px) {
    
    .hero {
        padding: 5rem 0 2.5rem;
        min-height: 50vh;
    }

    .hero.hero-home {
        padding: 7rem 0 3rem;
        min-height: 60vh;
    }
    
    nav {
        padding: 1rem 0;
    }
    
    .logo-img {
        height: 50px;
        margin: 6px 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
}

