:root {
    --primary-green: #2d8a4e;
    --primary-green-hover: #36a65d;
    --bg-dark: #0a0e0c;
    --text-white: #ffffff;
    --text-muted: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 12, 0.4) 0%, rgba(10, 14, 12, 0.9) 100%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.header-logo {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1rem;
    color: var(--text-white);
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-video-link {
    background: rgba(45, 138, 78, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 30px;
    border: 1px solid var(--primary-green);
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.7rem !important;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.6rem;
    padding: 0.2rem 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.1rem 0.2rem;
}

.lang-btn.active {
    color: var(--primary-green);
}

.lang-divider {
    width: 1px;
    height: 10px;
    background: var(--glass-border);
}

/* Hero */
.hero {
    padding: 5.5rem 0 2.5rem;
    text-align: center;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(45, 138, 78, 0.25) 0%, transparent 70%);
    z-index: -1;
    filter: blur(15px);
    pointer-events: none;
    animation: logoGlow 6s infinite alternate ease-in-out;
}

@keyframes logoGlow {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.logo:hover {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 12px 25px rgba(45, 138, 78, 0.4));
}

.main-title {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #ffffff 40%, #8be8a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #92e0ab;
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 2.2rem 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 1rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    text-align: justify;
}

/* Cards */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1e5e34 100%);
    color: #fff;
    padding: 0.9rem 2.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(45, 138, 78, 0.25);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-primary:hover::after {
    left: 125%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 138, 78, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    display: inline-block;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Cards */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    border-color: var(--primary-green);
}

.card h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.card .btn-secondary {
    background: var(--primary-green);
    border: none;
    box-shadow: 0 4px 10px rgba(45, 138, 78, 0.3);
}

.card .btn-secondary:hover {
    background: var(--primary-green-hover);
    box-shadow: 0 6px 15px rgba(45, 138, 78, 0.5);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

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

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(45, 138, 78, 0.2);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item h5 { font-size: 1.1rem; margin-bottom: 0.3rem; color: #fff; font-weight: 600; }
.gallery-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}

.partners-grid.single-partner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.4s ease;
    filter: grayscale(1) opacity(0.6);
    overflow: hidden;
}

.partner-logo-container.large-logo {
    height: 160px;
    width: 320px;
    max-width: 100%;
    padding: 0;
}

.partner-logo-container img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

.partner-logo-container.large-logo img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-logo-container:hover {
    filter: grayscale(0) opacity(1);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
    border-color: var(--primary-green);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.contact-icon svg { width: 16px; height: 16px; }

.contact-info span { font-size: 0.65rem; color: var(--text-muted); }
.contact-info p { font-size: 0.85rem; color: #fff; font-weight: 600; }

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-image {
    height: 140px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--glass-border);
}

.news-content {
    padding: 1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.news-item h5 {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.news-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Audio control - Floating button */
#audioToggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero { padding: 4.5rem 0 2rem; }
    .main-title { font-size: 1.8rem; }
    .sub-title { font-size: 1rem; }
}

/* Institutional Video Specifics */
.video-body { overflow: hidden !important; background: #000; font-family: var(--font-main); }
.video-experience { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999; }
.scene { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 2s ease; }
.scene.active { opacity: 1; visibility: visible; }
.scene-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }

.scene-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.6) 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 2rem;
}

.scene-content {
    max-width: 850px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1.5s ease 1s;
    background: rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scene.active .scene-content {
    transform: translateY(0);
    opacity: 1;
}

.scene-text {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    color: #fff;
}

.scene-subtext {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    letter-spacing: 0.5px;
    color: var(--primary-green);
}

.progress-bar-container { position: fixed; bottom: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.1); }
.progress-bar { height: 100%; background: var(--primary-green); width: 0; }

.video-ui { position: fixed; bottom: 30px; left: 30px; display: flex; align-items: center; gap: 20px; z-index: 10000; }
.audio-control { cursor: pointer; color: #fff; opacity: 0.6; transition: all 0.3s ease; }
.audio-control:hover { opacity: 1; }
.btn-skip { color: #fff; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; transition: opacity 0.3s ease; }
.btn-skip:hover { opacity: 1; }

/* Grid layouts for About and Training sections */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.training-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.section-image-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.section-image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;
}

.section-image-card:hover img {
    transform: scale(1.05);
}

.image-caption {
    padding: 0.8rem 1rem;
    background: rgba(10, 14, 12, 0.85);
    border-top: 1px solid var(--glass-border);
}

.image-caption h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-white);
}

.image-caption p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .about-grid, .training-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.partner-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
