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

body {
    font-family: system-ui, sans-serif;
    background: #f5f5f3;
    color: #1a1a18;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgb(60, 189, 180);
    border-bottom: 0.5px solid black;
}

.logo img {
    height: 36px;
}

.nav-link {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link a {
    text-decoration: none;
    font-size: 15px;
    color: black;
    transition: color 0.15s;
}

.nav-link a:hover {
    color: #1a1a18;
}

.hamb {
    display: none;
    width: 28px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: white;
    border-bottom: 0.5px solid #ddd;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: #f0f0ee;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-value {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a18;
}

/* About Hero */
.about-hero {
    min-height: 560px;
    background: url('/images/hero.jpg') center/cover no-repeat;
    background-color: rgb(60, 189, 180);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.about-hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    max-width: 680px;
    width: 100%;
}

.about-hero-overlay h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-hero-overlay p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

/* Carousel */
.carousel {
    position: relative;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.carousel-track {
    width: 560px;
    height: 340px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-top: -14px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-prev { left: -44px; }
.carousel-next { right: -44px; }

.carousel-dots {
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: white;
}

/* About Cards */
.about-cards {
    display: flex;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.about-card {
    flex: 1;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.about-card-img {
    height: 220px;
    background: rgb(60, 189, 180) center/cover no-repeat;
}

.about-card-body {
    padding: 1.5rem;
}

.about-card-body h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1a1a18;
}

.about-card-body p {
    font-size: 15px;
    color: #555;
    line-height: 1.65;
}

/* Experience Cards */
.exp-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.exp-card {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    background: white;
    min-height: 320px;
}

.exp-card-text {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.exp-card-text h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a18;
}

.exp-card-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.exp-card-img {
    flex: 1;
    background: rgb(60, 189, 180) center/contain no-repeat;
    min-height: 280px;
}

/* Footer */
.site-footer {
    background: rgb(60, 189, 180);
    border-top: 0.5px solid rgba(0, 0, 0, 0.15);
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
}

.footer-col {
    flex: 1;
}

.footer-brand {
    flex: 1.5;
}

.footer-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a18;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(26, 26, 24, 0.75);
    line-height: 1.6;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1a1a18;
    margin-bottom: 0.75rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-list li,
.footer-list a {
    font-size: 14px;
    color: rgba(26, 26, 24, 0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-list a:hover {
    color: #1a1a18;
}

.footer-bottom {
    border-top: 0.5px solid rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 1rem 1.5rem;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(26, 26, 24, 0.65);
}

/* Projects card */
.exp-card--clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.exp-card--clickable:hover,
.exp-card--clickable:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    outline: none;
}

.projects-hint {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 14px;
    font-weight: 700;
    color: rgb(60, 189, 180);
    letter-spacing: 0.03em;
}

/* Projects overlay */
.projects-overlay {
    position: fixed;
    inset: 0;
    background: #f5f5f3;
    z-index: 500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.projects-overlay[hidden] {
    display: none;
}

.projects-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: rgb(60, 189, 180);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.projects-overlay-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a18;
}

.projects-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #1a1a18;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.projects-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.projects-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.project-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    display: flex;
    min-height: 240px;
}

.project-img {
    width: 300px;
    flex-shrink: 0;
    object-fit: cover;
}

.project-info {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.project-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a18;
}

.project-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.tag {
    background: rgb(60, 189, 180);
    color: #1a1a18;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Gallery page */
.gallery-page {
    background: #111;
    padding: 40px 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.gallery img:hover {
    transform: scale(1.03);
    opacity: 0.85;
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    animation: zoomin 0.2s ease;
}

@keyframes zoomin {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

/* Mobile */
@media (max-width: 600px) {
    .nav-link {
        display: none;
    }

    .hamb {
        display: block;
    }

    .hero h1 {
        font-size: 26px;
    }

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

    .about-hero {
        min-height: 500px;
    }

    .carousel-track {
        width: 300px;
        height: 190px;
    }

    .carousel-prev { left: -36px; }
    .carousel-next { right: -36px; }

    .about-hero-overlay h1 {
        font-size: 26px;
    }

    .about-cards {
        flex-direction: column;
    }

    .exp-card,
    .exp-card.exp-card-reverse {
        flex-direction: column;
    }

    .exp-card-img {
        min-height: 220px;
    }

    .exp-card-text {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.75rem;
    }

    .footer-brand {
        flex: 1;
    }

    .project-item {
        flex-direction: column;
        min-height: auto;
    }

    .project-img {
        width: 100%;
        height: 200px;
    }

    .project-info {
        padding: 1.25rem;
    }

    .projects-scroll {
        padding: 1rem;
        gap: 1.25rem;
    }

    .projects-overlay-header {
        padding: 1rem 1.25rem;
    }
}