/* =========================================
   STYLE.CSS - TSTH2 COMPANY PROFILE
   Dikembalikan ke format asli yang rapi
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

/* HEADER & NAVIGATION */
header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #054439;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 50px;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
}

/* INTERACTIVE NAV LINKS */
nav a.nav-link {
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav a.nav-link:hover, 
nav a.nav-link.active {
    color: #054439;
    font-weight: 600;
}

/* Animated Underline Effect */
nav a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #054439;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a.nav-link:hover::after,
nav a.nav-link.active::after {
    width: 100%;
}

/* INTERACTIVE LOG IN BUTTON */
.nav-login {
    background: #054439;
    color: white !important;
    padding: 0.6rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(5, 68, 57, 0.2);
    display: inline-block;
}

.nav-login:hover {
    background: #0d7d68;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(5, 68, 57, 0.3);
}

.nav-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(5, 68, 57, 0.2);
}

/* INTERACTIVE SEARCH BUTTON & BOX */
.search-box {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
}

.search-input {
    width: 0;
    opacity: 0;
    border: none;
    background: #f0f5f4;
    border-radius: 20px;
    padding: 0;
    font-size: 0.95rem;
    color: #054439;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: absolute;
    right: 0;
    height: 100%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    font-family: inherit;
}

.search-box.active .search-input {
    width: 200px;
    opacity: 1;
    padding: 0 45px 0 15px;
}

.nav-search {
    background: #f0f5f4;
    color: #054439;
    padding: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    z-index: 2;
}

.nav-search:hover {
    background: #054439;
    color: white;
    transform: scale(1.05);
}

.search-box.active .nav-search {
    background: #054439;
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #054439;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* HERO/ABOUT HEADER */
.hero {
    position: relative;
    min-height: 600px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5;
}

.slider-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5s linear;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5,68,57,0.7) 0%, rgba(13,125,104,0.5) 100%);
    top: 0;
    left: 0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

.dot.active {
    background: white;
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
    font-family: 'Alata', sans-serif;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MAIN CONTAINER */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ABOUT CONTENT SECTION */
.about-section {
    padding: 6rem 0 4rem;
}

.about-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.tsth2-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tsth2-logo {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.tsth2-logo:hover {
    transform: translateY(-10px);
}

.tsth2-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro {
    padding: 2rem;
    border-left: 5px solid #054439;
}

.about-intro h2 {
    color: #054439;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Alata', sans-serif;
}

.about-intro p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* VISION & MISSION */
.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.vm-box {
    background: #fdfdfd;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vm-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #054439;
    transition: width 0.3s ease;
}

.vm-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.vm-box:hover::before {
    width: 8px;
}

.vm-box h3 {
    color: #054439;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Alata', sans-serif;
}

.vm-box p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

.vm-box ul {
    list-style: none;
    padding-left: 0;
}

.vm-box li {
    color: #666;
    padding: 0.8rem 0 0.8rem 2.2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.vm-box li:last-child {
    border-bottom: none;
}

.vm-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0d7d68;
    font-weight: bold;
    font-size: 1.2rem;
    background: #e6f2f0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: 10px;
}

/* DIRECTOR SECTION */
.director-section {
    background: linear-gradient(135deg, #054439 0%, #0d7d68 100%);
    color: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 15px 30px rgba(5,68,57,0.2);
    position: relative;
    overflow: hidden;
}

.director-img-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 8px;
    background: rgba(255,255,255,0.2);
}

.director-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
}

.director-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Alata', sans-serif;
    line-height: 1.3;
}

.director-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* CONTRIBUTIONS / RESEARCH & NEWS SECTION */
.contributions {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: #054439;
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: 'Alata', sans-serif;
}

.section-subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contributions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Tambahan dari saya untuk NEWS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contribution-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.contribution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.contribution-image {
    width: 100%;
    height: 280px;
    background: #eaf5f2;
    overflow: hidden;
    position: relative;
}

.contribution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.contribution-card:hover .contribution-image img {
    transform: scale(1.08);
}

.contribution-content {
    padding: 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contribution-content h4 {
    color: #054439;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Alata', sans-serif;
    line-height: 1.4;
}

.contribution-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Tambahan Tanggal News */
.news-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}

.see-more {
    color: #054439;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.see-more::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.see-more:hover {
    color: #0d7d68;
}

.see-more:hover::after {
    transform: translateX(5px);
}

/* COMMODITIES SECTION */
.commodities {
    padding: 6rem 0;
    background: #f8fbfb;
    margin: 4rem 0;
}

.commodities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.commodity-item {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.commodity-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(5,68,57,0.1);
    border-color: #054439;
}

.commodity-image {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 15px;
    transition: transform 0.3s ease;
}

.commodity-item:hover .commodity-image {
    transform: scale(1.1);
}

.commodity-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.commodity-name {
    font-weight: 600;
    color: #054439;
    font-size: 1.1rem;
    font-family: 'Alata', sans-serif;
}

/* GALLERY SECTION */
.gallery-section {
    padding: 6rem 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.gallery-grid.hidden {
    display: none;
    opacity: 0;
}

.album-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 280px;
    background: #eaf5f2;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(5,68,57,0.15);
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.album-card:hover img {
    transform: scale(1.08);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(5,68,57,0.9), rgba(5,68,57,0.4) 40%, transparent);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: padding 0.3s ease;
}

.album-card:hover .album-overlay {
    padding-bottom: 2rem;
}

.album-title {
    font-family: 'Alata', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.album-count {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 500;
}

/* PHOTOS VIEW (Inside Album) */
.photo-view {
    margin-top: 3rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-view.hidden {
    display: none;
}

.photo-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f5f4;
}

.back-btn {
    background: #f0f5f4;
    border: none;
    color: #054439;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s;
    font-family: inherit;
}

.back-btn::before {
    content: "←";
    margin-right: 8px;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.back-btn:hover {
    background: #054439;
    color: white;
}

.back-btn:hover::before {
    transform: translateX(-4px);
}

.album-title-large {
    font-family: 'Alata', sans-serif;
    color: #054439;
    font-size: 2rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    cursor: pointer;
    background-color: #eaf5f2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.photo-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* IMAGE MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    color: #d4a574;
}

/* NEWSLETTER */
.newsletter {
    background: linear-gradient(135deg, #4a9b6f 0%, #054439 100%);
    color: white;
    padding: 5rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 6rem auto;
    max-width: 1000px;
    box-shadow: 0 20px 40px rgba(5,68,57,0.2);
}

.newsletter h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Alata', sans-serif;
}

.newsletter p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.newsletter-btn {
    background-color: #d4a574;
    color: #054439;
    padding: 1rem 3rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.newsletter-btn:hover {
    background-color: #e5b685;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(212, 165, 116, 0.6);
}

.album-date {
    display: block;
    font-size: 13px;
    color: #eee;
    margin-top: 4px;
}

.album-date-large {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.album-description-large {
    font-size: 15px;
    color: #444;
    margin-top: 8px;
}

.album-detail-header {
    display: flex;
    flex-direction: column;
}

/* FOOTER */
footer {
    background: #032b20;
    color: white;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 2rem 0;
}

.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #d4a574;
    color: #032b20;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 165, 116, 0.3);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.8rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .about-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .tsth2-logo-box {
        order: -1;
    }
    .about-intro {
        border-left: none;
        border-top: 5px solid #054439;
    }
    .contributions-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .director-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden state */
        opacity: 0;
        pointer-events: none;
    }

    nav ul.show {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        pointer-events: all;
    }
    
    .search-box.active .search-input {
        width: 150px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .newsletter {
        margin: 4rem 1rem;
        padding: 3rem 1.5rem;
    }
}
