/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #1a5490;
    --primary-dark: #0d3a6b;
    --primary-light: #2d6fb8;
    --accent-color: #e63946;
    --red-color: #D20A11;
    --blue-color: #004b87;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --border-color: #e0e0e0;

    /* Typography */
    --font-primary: Arial, Helvetica, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: var(--line-height-base);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo img {
    height: 22px;
    /* Reduced size */
    width: auto;
    transition: transform var(--transition-medium);
}

.logo img:hover {
    transform: scale(1.05);
}

/* ===== Navigation ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-list li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width var(--transition-fast);
}

.nav-list li a:hover::after {
    width: 80%;
}

.nav-list li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    margin-top: 54px;
    /* Adjusted to match header height (22px logo + 2*16px padding) */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #000;
    /* Prevent white flash */
}

.hero-overlay {
    position: absolute;
    top: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* ===== Yellow Section (Philosophy) ===== */
.section-yellow {
    background-color: #f9d71c;
    padding: var(--spacing-xl) 0;
}

.section-content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-content-wide {
    max-width: 1000px;
    margin: 0 auto;
}

.section-label-box {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.section-title-large {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ===== White Section (Goals) ===== */
.section-white {
    background-color: #ffffff;
    padding: var(--spacing-xl) 0;
}

.goals-list-simple {
    list-style: none;
    text-align: left;
    max-width: 700px;
    margin: var(--spacing-lg) auto 0;
}

.goals-list-simple li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.goals-list-simple li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* ===== Yellow Section with Background Image (Philosophy) ===== */
.section-yellow-image {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 0;
}

.section-overlay-yellow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(249, 215, 28, 0.85);
}

.section-yellow-image .section-content-centered {
    position: relative;
    z-index: 2;
}

/* ===== Red Section (About) ===== */
.section-red {
    background-color: var(--red-color);
    padding: var(--spacing-xl) 0;
}

.section-title-large-white {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.section-title-large-white.uppercase {
    text-transform: uppercase;
}

.section-subtitle-white {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
}

.section-text-white {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ===== Red Section with Background Image (Goals) ===== */
.section-red-image {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 0;
}

.section-overlay-red {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(210, 10, 17, 0.85);
}

.section-red-image .section-content-centered,
.section-red-image .section-content-wide {
    position: relative;
    z-index: 2;
}

.goals-list-white {
    list-style: none;
    text-align: left;
    margin: 0;
}

.goals-list-white li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    /* Reduced spacing */
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.6;
}

.goals-list-white li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}

/* ===== Columns Layout ===== */
.two-columns-text,
.two-columns-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.white-text p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* ===== Stats Section ===== */
.stats-section {
    background-color: var(--red-color);
    padding: var(--spacing-xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-divider {
    width: 40px;
    height: 3px;
    background-color: #ffffff;
    margin: var(--spacing-sm) 0;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

/* ===== Locations Section (New) ===== */
.locations-section {
    padding-top: 0;
}

.locations-list-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.location-group-simple {
    margin-bottom: var(--spacing-lg);
}

.location-country-simple {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.location-list-simple {
    list-style: none;
    padding-left: 0;
}

.location-list-simple li {
    margin-bottom: 5px;
}

.location-list-simple li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.location-list-simple li a::before {
    content: '→ ';
    margin-right: 5px;
    display: inline-block;
}

.location-list-simple li a:hover {
    border-bottom-color: #ffffff;
    padding-left: 5px;
}

/* ===== Sections ===== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-blue {
    background-color: var(--blue-color);
    color: #ffffff;
}

.section-title-white {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.text-block p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
    font-size: 1.05rem;
}

.highlight-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* ===== Portfolio ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.7), rgba(230, 57, 70, 0.7));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.portfolio-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    animation: fadeIn var(--transition-medium);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2.5rem;
}

.lightbox-prev {
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-thumbnails {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    max-width: 90%;
    overflow-x: auto;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.lightbox-thumbnail {
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumbnail:hover,
.lightbox-thumbnail.active {
    opacity: 1;
    border-color: white;
    transform: scale(1.1);
}

/* ===== Contact Form ===== */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 84, 144, 0.1);
}

.captcha-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.captcha-display {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-align: center;
    color: var(--primary-color);
    user-select: none;
}

.captcha-refresh {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: var(--spacing-xs);
    transition: all var(--transition-fast);
}

.captcha-refresh:hover {
    text-decoration: underline;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-red {
    background-color: var(--red-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer a:hover {
    opacity: 1;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-medium);
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
    }

    .header-content {
        padding: var(--spacing-xs) 0;
    }

    .two-columns-text,
    .two-columns-list {
        grid-template-columns: 1fr;
    }
}