:root {
    /* Brand Colors - Derived from "Azul" description */
    --primary-color: #003366;
    /* Deep professional blue */
    --primary-light: #0055a5;
    /* Lighter vivid blue */
    --accent-color: #00a8e8;
    /* Bright accent cyan/blue */
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-gray: #666666;
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --bg-dark: #0f172a;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 5rem 2rem;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 85, 165, 0.7)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Geometric Overlay for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    opacity: 0.9;
}

/* Specific override for Hero primary button to stand out against dark background */
.hero .btn-primary {
    border: 2px solid white;
}

/* About Section - Alternative Design with Equal Heights */
.about {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

/* Intro section at full width */
.about-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Description section */
.about-content {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.about-description {
    background: var(--bg-off-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.about-description p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.about-description p:last-child {
    margin-bottom: 0;
}

.about-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Mission Cards - FIXED Equal Height Grid */
.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
    /* Key for equal heights */
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 450px;
    /* Ensures consistent minimum height */
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.mission-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
    flex-shrink: 0;
    /* Prevents icon from shrinking */
}

.mission-card:hover .mission-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
}

.mission-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    flex-shrink: 0;
    /* Prevents title from shrinking */
    min-height: 2em;
    /* Ensures consistent title height */
}

.mission-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

.mission-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    /* Slightly smaller for better fit */
    text-align: center;
}

.mission-card p:last-child {
    margin-bottom: 0;
}

.mission-card strong {
    color: var(--primary-color);
}

/* Tablet - 2 columns */
@media (max-width: 992px) {
    .mission-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-card {
        min-height: 380px;
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .about-intro {
        margin-bottom: 2rem;
    }

    .about-intro p {
        font-size: 1rem;
    }

    .about-description {
        padding: 2rem;
    }

    .mission-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-card {
        padding: 2rem;
        min-height: auto;
        /* Remove fixed height on mobile */
    }

    .mission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .mission-card h3 {
        font-size: 1.3rem;
        min-height: auto;
    }

    .mission-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-description {
        padding: 1.5rem;
    }

    .mission-card {
        padding: 1.5rem;
    }
}


/* Services */
.services {
    padding: var(--section-padding);
    background-color: var(--bg-off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    background: var(--primary-color);
    padding: 2rem;
    color: white;
    text-align: center;
}

.service-body {
    padding: 2rem;
    flex-grow: 1;
}

.service-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.service-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact/Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.2rem;
}

.footer-col p {
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.powered-by a {
    color: var(--accent-color);
    font-weight: bold;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accreditations Section */
.accreditations {
    padding: var(--section-padding);
    background-color: var(--bg-light);
    text-align: center;
}

.accreditation-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.accreditation-item img {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.accreditation-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - var(--header-height));
        padding: 2rem;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 0 1rem;
        background-attachment: scroll;
        /* Fix for some mobile browsers */
    }
}