/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --color-navy: #071B40;
    --color-red: #E72D31;
    --color-red-hover: #ff3b3f;
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;
    --color-text-dark: #071B40;
    --color-text-light: rgba(255, 255, 255, 0.9);
    --font-main: 'Inter', sans-serif;

    --transition-speed: 0.3s;
    --border-radius: 12px;
    --glass-bg: rgba(7, 27, 64, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-navy);
    /* Subtle radial gradient for depth */
    background-image: radial-gradient(circle at top center, #0f2a5b 0%, var(--color-navy) 60%);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-red {
    color: var(--color-red) !important;
}

.text-navy {
    color: var(--color-navy) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(231, 45, 49, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 45, 49, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.bg-flag-decor {
    position: absolute;
    top: -15%;
    left: -5%;
    width: 50%;
    max-width: 800px;
    opacity: 0.15;
    transform: rotate(-45deg);
    z-index: 0;
    pointer-events: none;
}

.header {
    width: 100%;
    border-bottom: 1px solid var(--color-red);
    /* Animations */
    animation: fadeInDown 0.8s ease forwards;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-top: 0.2rem;
}

.header-right {
    position: relative;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 6rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-top: 4rem;
    animation: fadeInLeft 1s ease forwards;
}

.accent-word {
    color: var(--color-red);
    position: relative;
    display: inline-block;
}

/* Underlines using SVGs */
.accent-word.honesty::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 9px;
    background-image: url('images/text-underline__large-variant-1__h1-heading.svg?v=2');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.accent-word.courage::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 14px;
    background-image: url('images/text-underline__large-variant-2__h1-heading.svg?v=2');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.speech-text {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--color-red);
    padding-left: 1.5rem;
}

.speech-text p {
    margin-bottom: 1rem;
}

.speech-text p:last-child {
    margin-bottom: 0;
}

.speech-text strong {
    font-weight: 700;
    color: var(--color-white);
}

.speech-closing {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 1.1;
    position: relative;
    max-width: 650px;
    display: flex;
    justify-content: center;
    align-self: flex-start;
    animation: fadeInRight 1s ease forwards;
}

.hero-image {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4/5;
    -webkit-mask-image: radial-gradient(circle at right center, black 70%, transparent 100%);
    mask-image: radial-gradient(circle at right center, black 70%, transparent 100%);
}

.floating-quote {
    position: absolute;
    text-align: center;
    top: 15%;
    right: -70px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    max-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-quote p {
    font-size: 1.3rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.quote-icon {
    position: absolute;
    top: 1.25rem;
    left: 0.75rem;
    color: var(--color-red);
    font-size: 1.2rem;
    opacity: 1;
    z-index: 1;
}

.quote-icon-right {
    position: absolute;
    bottom: 1.25rem;
    right: 0.75rem;
    color: var(--color-red);
    font-size: 1.2rem;
    opacity: 1;
    z-index: 1;
}

/* ==========================================================================
   Pillars Section
   ========================================================================== */
.pillars {
    position: relative;
    margin-top: 0;
    padding: 0 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    height: 70px;
    width: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(231, 45, 49, 0.1);
}

.pillar-card:nth-child(3) .pillar-icon {
    background-color: rgba(7, 27, 64, 0.1);
}

.pillar-card p {
    color: #4a5568;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    margin-top: auto;
    padding: 6rem 5% 3rem;
    text-align: center;
    position: relative;
}

.footer-quote {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.accent-word.unity::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 7px;
    background-image: url('images/text-underline__small__page-bottom-left.svg?v=2');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.accent-word.purpose::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 11px;
    background-image: url('images/double-text-underline__page-bottom-right.svg?v=2');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.social-connect {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-connect h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.8rem;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--color-red);
    transform: scale(1.1);
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #000;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.close-btn:hover {
    color: var(--color-red);
}

.video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1530px) {
    .floating-quote {
        right: -10px;
    }
}

@media (max-width: 1200px) {
    .floating-quote {
        right: 10px;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
        padding-bottom: 6rem;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 0;
        align-self: center;
        max-width: 520px;
    }

    .floating-quote {
        top: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: -40px;
        width: 90%;
        max-width: 400px;
    }

    .pillar-icon {
        font-size: 2rem;
        height: 60px;
        width: 60px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .hero {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-content {
        margin-top: 0;
    }

    .pillars {
        margin-top: 2rem;
    }

    .pillar-card {
        padding: 2rem 1.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .footer {
        padding-top: 4rem;
    }


    .pillar-icon {
        font-size: 2rem;
        height: 40px;
        width: 40px;
    }
}