/* Modern CSS Reset & Variables */
:root {
    --primary-color: #00a86b;
    --beside-color: #00cc81;
    --primary-light: #00ff88;
    --secondary-color: #121212;
    --accent-color: #00ff88;
    --text-color: #333;
    --text-light: #666;
    --light-bg: #f8fafc;
    --white: #fff;
    --max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header {
    background-color: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.header__logo img {
    height: 50px;
    width: auto;
    vertical-align: middle;
    transition: var(--transition);
}

.header__logo :hover img {
    transform: scale(1.05);
}

/* Desktop nav — fixed, visually overlaps right side of header */
.nav {
    position: fixed;
    top: 0;
    right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
    height: 72px;
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 1001;
}

.nav__list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav__link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
    opacity: 0.8;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover {
    opacity: 1;
    color: var(--primary-color);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__lang {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.nav__lang .nav__link {
    font-size: 0.8rem;
    padding: 4px;
}

.nav__lang .nav__link.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav__sep {
    opacity: 0.3;
}

.header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav__mobile-header {
    display: none;
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    z-index: 1;
    max-width: 1200px;
}

.hero__content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 168, 107, 0.25);
    animation: fadeInUp 0.8s ease-out;
}


.hero__content p {
    font-size: 1.25rem;
    opacity: 1;
    margin-bottom: 32px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section--about {
    padding: 100px 0;
}

.about-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-img-container {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.about-img {
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 480px) {

    .about-text,
    .about-img-container {
        min-width: 100%;
    }

    .about-text p {
        font-size: 1rem;
    }
}

.section--light {
    background: var(--light-bg);
}

.section__title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.section__title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 16px auto;
    border-radius: 2px;
}

/* Grids */
.grid {
    display: grid;
    gap: 32px;
}

.grid--3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.grid--3>* {
    flex: 1 1 320px;
    max-width: 380px;
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 168, 107, 0.1);
}

.card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.gallery-trigger:hover .card__overlay {
    opacity: 1;
}

.btn--gallery {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(0, 168, 107, 0.3);
    pointer-events: none;
    /* Let clicks pass through to the overlay/card */
}

.card__content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card__content .btn {
    margin-top: auto;
    padding-top: 15px;
    /* Added spacing above button */
}

.card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.card__content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ================================================
   BUTTONS — 3 types:
   .btn           Primary   (green fill)
   .btn--outline  Secondary (green border)
   .btn--ghost    Hero      (white border, dark bg only)
   ================================================ */

/* Shared base */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    /* Primary defaults */
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0, 168, 107, 0.3);
}

/* Primary hover — darker green */
.btn:hover {
    background: #008a57;
    border-color: #008a57;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.45);
}

/* Outline — green border, transparent bg */
.btn--outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.3);
}

/* Ghost — white border for hero/dark backgrounds */
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.btn--ghost:hover {
    background: #fff;
    border-color: #fff;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-light);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__link {
    opacity: 0.7;
    transition: var(--transition);
}

.footer__link:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Contact Card */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(0, 168, 107, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    max-width: 600px;
    margin: 0 auto;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 168, 107, 0.1);
}

.contact-card__item {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.contact-card__icon {
    font-size: 3rem;
    background: var(--light-bg);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 168, 107, 0.1);
}

.contact-card__info {
    flex: 1;
}

.contact-card__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-card__link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-card:hover .contact-card__link {
    color: var(--primary-color);
}

/* Slight delay for the second link to appear "later" as requested */
.contact-card__item:nth-child(3) .contact-card__link {
    transition-delay: 0.1s;
}

.contact-card__link:hover {
    color: var(--beside-color) !important;
    transform: scale(1.05);
    text-shadow: 0 4px 15px rgba(0, 168, 107, 0.4);
}

.contact-card__subtext {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 0 !important;
}

.contact-card__divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 168, 107, 0.1);
}

@media (max-width: 991px) {
    .contact-card {
        flex-direction: column;
        padding: 40px 30px;
        gap: 30px;
    }

    .contact-card__divider {
        width: 100%;
        height: 1px;
    }

    .contact-card__item {
        width: 100%;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 16px;
    }

    .contact-card__link {
        font-size: 1.25rem;
    }

    .contact-card__sep {
        display: none;
    }

    .contact-card__detail {
        display: block;
    }
}

/* Error Page */
.error-page {
    height: 35vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.error-page__code {
    font-size: 20rem;
    color: var(--primary-color);
    font-weight: 900;
    line-height: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 168, 107, 0.2), 0 0 20px rgba(0, 168, 107, 0.1);
    }

    50% {
        text-shadow: 0 0 30px rgba(0, 168, 107, 0.39), 0 0 60px rgba(0, 168, 107, 0.25), 0 0 90px rgba(0, 168, 107, 0.15);
    }
}

/* Masonry Fallback */
.masonry {
    columns: 3 300px;
    column-gap: 24px;
}

.masonry__item {
    margin-bottom: 24px;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.masonry__item:hover {
    transform: scale(1.02);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero__content {
        font-size: 2.75rem;
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__content h1 {
        font-size: 2.75rem;
    }

    .hero__content p {
        font-size: 1.1rem;
    }

    .section__title {
        font-size: 2.25rem;
    }
}

/* Lightbox Gallery */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox__container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox__content {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    text-align: center;
    font-weight: 500;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--primary-color);
}

.lightbox__close {
    top: -60px;
    right: 0;
}

.lightbox__prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-bottom: 10px;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
}

.lightbox__thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    border: 2px solid transparent;
}

.lightbox__thumb:hover,
.lightbox__thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

@media (max-width: 991px) {
    .header .container {
        padding: 0 16px;
    }

    .header__container {
        padding: 24px 0;
    }

    .header__logo img {
        height: 40px;
    }

    .header__toggle {
        display: flex;
    }

    /* Dark overlay behind the open nav */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1040;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        visibility: hidden;
        width: min(320px, 85%);
        height: 100vh;
        background: #ffffff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 32px 40px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.35s;
        z-index: 1050;
        display: block;
    }

    .nav.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0s;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .nav__lang {
        margin-left: 0;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
    }

    .nav__mobile-header {
        display: flex;
        justify-content: flex-end;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .nav__close {
        font-size: 2rem;
        line-height: 1;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--secondary-color);
        padding: 4px 8px;
    }
}

@media (max-width: 1400px) {
    .lightbox__prev {
        left: 20px;
    }

    .lightbox__next {
        right: 20px;
    }
}

@media (max-width: 768px) {

    .lightbox__prev,
    .lightbox__next {
        bottom: -60px;
        top: auto;
        transform: none;
    }

    .lightbox__prev {
        left: calc(50% - 60px);
    }

    .lightbox__next {
        right: calc(50% - 60px);
    }

    .lightbox__container {
        width: 95%;
    }
}