/* ========================================
   SADIQCAN MUSEUM - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #c9a227;
    --color-primary-dark: #a68521;
    --color-secondary: #8b7355;
    --color-dark: #1a1a1a;
    --color-darker: #0d0d0d;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-brown: #a08060;
    --color-tan: #c4a574;
    --color-cream: #d4c4a8;
    
    --font-heading: 'Poppins', Arial, sans-serif;
    --font-body: 'Poppins', Arial, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: #DE851C;
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #c9760f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-brown);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #333333;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Language Dropdown */
.lang-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-dropdown .dropdown-toggle .fa-globe {
    font-size: 14px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 10px;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100px;
    background-color: #333333;
    border-radius: 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-white);
    font-size: 14px;
}

/* Language Switcher */
.lang-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-form {
    margin: 0;
}
.lang-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn:hover {
    background-color: rgba(222, 133, 28, 0.2);
    color: #DE851C;
}
.lang-btn.active {
    color: #DE851C;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background-color: rgba(201, 162, 39, 0.1);
    color: var(--color-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-btn {
    margin-left: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #333333;
}

.hero-content {
    text-align: center;
    color: var(--color-white);
}

.hero-image-frame {
    display: inline-block;
    margin-bottom: 30px;
}

.hero-portrait {
    max-width: 380px;
    height: auto;
    display: block;
}

.hero-tagline {
    font-family: 'Srisakdi', cursive;
    font-size: 35px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-white);
    margin-bottom: 15px;
}

.hero-cta-link {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-style: solid;
    transition: var(--transition);
}

.hero-cta-link:hover {
    color: var(--color-cream);
}

/* ========================================
   BIOGRAPHY SECTION
   ======================================== */
.biography {
    padding: 100px 0;
    background-color: #D9D4CE;
}

.biography-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.biography-name {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 62px;
    font-weight: 400;
    color: var(--color-dark);
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 40px;
}

.biography-years {
    margin-top: 30px;
}

.year-large {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 80px;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0;
    line-height: 100%;
}

.biography-text p {
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
}

.biography-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   ART TRACES SECTION
   ======================================== */
.art-traces {
    padding: 80px 0 60px;
    background-color: #333333;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 85px;
    font-weight: 400;
    font-style: italic;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-white);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 48px;
    }
}

.section-description {
    max-width: 750px;
    margin: 0 auto 30px;
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.btn-gallery {
    display: inline-block;
    padding: 14px 50px;
    background-color: #6F2716;
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    margin-bottom: 50px;
    transition: var(--transition);
}

.btn-gallery:hover {
    background-color: #8a3420;
}

/* Gallery Carousel */
.gallery-carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding-bottom: 20px;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 15px;
    padding-left: calc((100vw - 1100px) / 2);
    padding-right: 50px;
    width: max-content;
}

.carousel-item {
    flex: 0 0 270px;
    height: 340px;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.carousel-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .carousel-track {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 220px;
        height: 280px;
    }
    .carousel-track {
        padding-left: 20px;
    }
}

/* Legacy gallery grid for other pages */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--color-white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   MUSEUM DIARY SECTION
   ======================================== */
.museum-diary {
    padding: 80px 0;
    background-color: #D9D4CE;
}

.section-title-dark {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 62px;
    font-weight: 600;
    font-style: italic;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-dark);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .section-title-dark {
        font-size: 36px;
    }
}

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

.news-card {
    background-color: transparent;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-content {
    padding: 0;
}

.news-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content p {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 10px;
    line-height: 1.5;
    display: none;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.news-link:hover {
    color: var(--color-primary);
}

.news-link i {
    font-size: 10px;
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
}

.video-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 62px;
    font-weight: 800;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 20px;
}

.video-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 40px;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #DE851C;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.play-btn i {
    color: var(--color-white);
    font-size: 28px;
    margin-left: 4px;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(222, 133, 28, 0.5);
}

@media (max-width: 768px) {
    .video-title {
        font-size: 36px;
    }
    .video-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 120px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6F2716;
    color: var(--color-white);
    border-radius: 50%;
    font-size: 16px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: #8a3420;
    transform: scale(1.1);
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright {
    color: var(--color-text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.powered-by img {
    height: 40px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .biography-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-portrait {
        max-width: 250px;
    }
    
    .hero-tagline {
        font-size: 20px;
    }
    
    .biography-name {
        font-size: 36px;
    }
    
    .year-large {
        font-size: 48px;
    }
    
    .section-title,
    .video-title {
        font-size: 32px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .video-section {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-portrait {
        max-width: 200px;
    }
    
    .biography-name {
        font-size: 28px;
    }
    
    .year-large {
        font-size: 36px;
    }
    
    .section-title,
    .video-title {
        font-size: 26px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
/* ========================================
   PAGE TITLE SECTION (All Pages)
   ======================================== */
.page-title-section {
    padding: 120px 0 40px;
    background-color: #333333;
}

.page-main-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    color: var(--color-white);
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 100px 0 30px;
    }
    .page-main-title {
        font-size: 28px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-dark);
    padding: 20px;
    gap: 15px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
