@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #1a2a44;
    --primary-light: #2c3e50;
    --secondary: #2a9d8f;
    --accent: #e9c46a;
    --brand-blue: #3d7fb8;
    --text-dark: #2d3436;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-soft: #f4f7f6;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
    background: var(--bg-light);
    z-index: 1;
}

/* Utilities */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--brand-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: white;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--bg-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
    transition: var(--transition);
    white-space: nowrap;
}

.logo-text .thin {
    font-weight: 300;
}

header.scrolled .logo-text {
    color: var(--primary);
}

.logo-text:hover {
    color: var(--secondary);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    /* Stronger shadow for contrast */
}

header.scrolled .nav-links a {
    color: var(--primary);
    /* Dark color for white header */
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

header.scrolled .mobile-menu-btn {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 0;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, rgba(26, 42, 68, 0.7), rgba(42, 157, 143, 0.5)),
        url('assets/slide/17.jpg') no-repeat center center/cover;
    will-change: transform;
    transform-origin: center center;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Word-by-word Animation */
.animate-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1em 0.3em;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInWord 0.6s ease forwards;
}

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

/* Cards & Sections */
.section-title {
    margin-bottom: 3rem;
}

.credentials {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 400;
    margin-top: -0.5rem;
    letter-spacing: 1px;
}

.formation-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

.formation-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.themes-grid {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.themes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.themes-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--primary-light);
}

.themes-list i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

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

.card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card i {
    font-size: 3rem;
    color: var(--brand-blue);
    margin-bottom: 1.5rem;
    display: block;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 42, 68, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 2000;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2005;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-prev,
.lightbox-next {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
    z-index: 2005;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary);
}

.lightbox-prev {
    position: absolute;
    left: 20px;
}

.lightbox-next {
    position: absolute;
    right: 20px;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}

/* Footer */
footer {
    background: var(--brand-blue);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    margin-top: 1.5rem;
    opacity: 0.7;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow);
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--primary) !important;
        text-shadow: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 60px 0;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 35px !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        margin-left: 0 !important;
        text-align: center;
    }
}

/* Parallax Utilities */
.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.floating-box {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--glass);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    z-index: -1;
    border: 1px solid var(--glass-border);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.contact-icon {
    width: 20px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
    /* Align icon with first line of text */
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px);
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}