/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: #012a1c;
    color: white;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    color: #012a1c;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

h2 {
    color: white;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== HEADER ===== */
header {
    background-color: #012a1c;
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.6s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(1, 42, 28, 0.15);
}

#header-logo {
    position: absolute;
    padding-left: 5%;
    transform: translateX(-50%);
}

header img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

#header-title {
    margin-left: auto;
}

#header-title button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#header-title button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

#header-title h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ===== PROJECT PAGE ===== */

#project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

#project-container {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.gallery {
    width: 100%;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Remove background when gallery contains video */
.gallery:has(#gallery-video) {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.gallery:has(#gallery-video):hover {
    transform: none;
    box-shadow: none;
}

#gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

#gallery-image:hover {
    transform: scale(1.03);
}

#gallery-video {
    
    max-width: 500px;
    max-height: 550px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.gallery-controls button {
    background-color: #012a1c;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-controls button:hover {
    background-color: #024d30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 42, 28, 0.3);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot:hover {
    background-color: #024d30;
    transform: scale(1.3);
}

.dot.active {
    background-color: #012a1c;
    width: 28px;
    border-radius: 5px;
}

#image-counter {
    color: #012a1c;
    font-weight: 700;
    font-size: 14px;
}

.section-divider {
    border: none;
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #012a1c, #024d30);
    margin: 0 0 32px 0;
    border-radius: 2px;
}

#about-text {
    padding: 0;
    max-width: 540px;
}

#about-text p {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#about-text p:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

#left-container {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ===== MEDIA QUERIES ===== */

/* Tablet (1024px and below) */
@media screen and (max-width: 1024px) {
    header {
        height: 100px;
        padding: 0 30px;
        justify-content: space-between;
    }

    #header-logo {
        position: relative;
        padding-left: 0;
        transform: none;
    }

    header img {
        height: 70px;
    }

    #header-title button {
        padding: 12px 24px;
        font-size: 15px;
    }

    #project-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 40px;
    }

    .gallery {
        max-width: 100%;
    }

    #about-text {
        max-width: 100%;
    }

    #gallery-video {
        max-width: 500px;
    }
}

/* Tablet - Small (768px and below) */
@media screen and (max-width: 768px) {
    header {
        height: 90px;
        padding: 0 20px;
    }

    header img {
        height: 65px;
    }

    #header-title button {
        padding: 10px 20px;
        font-size: 14px;
    }

    h1 {
        font-size: clamp(28px, 6vw, 40px);
    }

    p {
        font-size: 16px;
    }

    #project-container {
        gap: 24px;
        padding: 40px 24px;
    }

    .gallery {
        border-radius: 16px;
    }

    #gallery-image {
        aspect-ratio: 16/10;
    }

    .gallery-dots {
        padding: 16px;
        gap: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 24px;
    }

    #about-text p {
        padding: 24px;
        font-size: 15px;
    }

    .section-divider {
        width: 60px;
        height: 3px;
        margin-bottom: 24px;
    }

    #gallery-video {
        max-width: 400px;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    header {
        height: 70px;
        padding: 0 16px;
    }

    #header-logo {
        position: relative;
        padding: 0;
        transform: none;
    }

    header img {
        height: 50px;
    }

    #header-title {
        margin-left: auto;
    }

    #header-title button {
        padding: 10px 16px;
        font-size: 13px;
    }

    h1 {
        font-size: 26px;
        letter-spacing: -0.5px;
    }

    p {
        font-size: 15px;
        line-height: 1.7;
    }

    #project-container {
        gap: 20px;
        padding: 32px 16px;
    }

    .gallery {
        border-radius: 12px;
    }

    #gallery-image {
        aspect-ratio: 4/3;
    }

    .gallery-dots {
        padding: 12px;
        gap: 8px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .dot.active {
        width: 20px;
    }

    #about-text p {
        padding: 20px;
        font-size: 14px;
        border-radius: 12px;
    }

    .section-divider {
        width: 50px;
        height: 3px;
        margin-bottom: 20px;
    }

    #gallery-video {
        max-width: 100%;
        border-radius: 8px;
    }
}

/* Mobile - Small (360px and below) */
@media screen and (max-width: 360px) {
    h1 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    header img {
        height: 45px;
    }

    #project-container {
        padding: 24px 12px;
        gap: 16px;
    }

    #about-text p {
        padding: 16px;
        font-size: 13px;
    }
}