:root {
    --primary-color: #6B4E71;
    --accent-color: #9B7FA4;
    --accent-dark-color: #856389;
    --light-color: #F5F0F7;
    --white: #FFFFFF;
    --nav-bg: #4A3B4E;  /* Darker shade for navbar */
    --text-color: #333333;
    --dark-purple: #4A3B4E;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 80px;
}

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

/* Navigation */
nav {
    background-color: var(--nav-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--light-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--light-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navbar scroll effects */
nav.scroll-down {
    transform: translateY(-100%);
}

nav.scroll-up {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Products */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

/* Products Section */
.products-section {
    padding: 60px 0;
    position: relative;
}

.products-section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(107, 78, 113, 0.3), 
        var(--accent-color),
        rgba(107, 78, 113, 0.3), 
        transparent
    );
}

.products-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

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

.products {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--white), var(--light-color));
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 78, 113, 0.15);
    border: 3px solid var(--accent-color);
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(107, 78, 113, 0.2), transparent);
    z-index: 1;
    transition: var(--transition);
}

.gallery-item:hover::before {
    background: linear-gradient(45deg, rgba(107, 78, 113, 0.1), transparent);
}

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

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-close {
    top: 20px;
    right: 20px;
    font-size: 24px;
}

.modal-prev,
.modal-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Gallery Item Styles */
.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 78, 113, 0.15);
    border: 3px solid var(--accent-color);
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(107, 78, 113, 0.2), transparent);
    z-index: 1;
    transition: var(--transition);
}

.gallery-item:hover::before {
    background: linear-gradient(45deg, rgba(107, 78, 113, 0.1), transparent);
}

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

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

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.item-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    color: white;
}

.view-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.gallery-item:hover .view-more {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Horizontal Scroll */
.horizontal-scroll {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 0;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-arrow i {
    font-size: 1.2rem;
}

/* Modern Gallery */
.modern-gallery {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
}

.modern-gallery .gallery-item {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 78, 113, 0.15);
    border: 3px solid var(--accent-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modern-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* News Section */
.news-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.news-video {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

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

.video-description {
    padding: 1.5rem;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
}

.podcast-intro {
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.news-article {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

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

.news-image-container {
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top; /* Show more from the first half of the image */
    transition: transform 0.3s ease;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.show {
    display: block;
}

.image-container {
    position: relative;
    width: 80%;
    max-width: 900px;
    height: 80vh;
    margin: 0 auto;
    overflow: hidden;
    cursor: move;
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: 0 0;
}

.zoom-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
}

.zoom-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.zoom-controls button:hover {
    background-color: var(--accent-color);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-content p {
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    background-color: var(--accent-dark-color);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-item {
        width: calc(50% - 10px);
    }
    
    .news-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-video iframe {
        height: 350px;
    }
    
    .news-image {
        height: 250px;
    }
    
    .modal img {
        max-width: 95%;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 280px;
    }
    
    .modal img {
        max-width: 98%;
    }
    
    .close-modal {
        right: 15px;
        top: 10px;
        font-size: 32px;
    }
}

/* Product Grid */
.product-grid {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    width: max-content;
    transition: transform 0.3s ease;
}

.product-item {
    flex: 0 0 auto;
    width: 300px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 78, 113, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(107, 78, 113, 0.2);
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

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

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(107, 78, 113, 0.1);
    border: 2px solid var(--accent-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(107, 78, 113, 0.1);
    border: 2px solid var(--accent-color);
    min-height: 400px;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--white), var(--light-color));
}

.about-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(107, 78, 113, 0.08);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.about-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.about-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 1rem;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.about-content {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--white), var(--light-color));
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.about-text a:hover {
    color: var(--accent-color);
}

.about-gallery {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 1rem;
}

.about-gallery .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
}

.about-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.about-gallery .item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.about-image {
    position: relative;
    height: 100%;
    min-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 78, 113, 0.15);
    border: 3px solid var(--accent-color);
    position: sticky;
    top: 100px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(107, 78, 113, 0.2), transparent);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
}

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

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        min-height: 400px;
        position: relative;
        top: 0;
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .map {
        min-height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .product-item img {
        height: 250px;
    }

    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .product-item,
    .gallery-item {
        width: 250px;
        height: 250px;
    }

    .product-item img {
        height: 250px;
    }

    .modal-nav {
        padding: 0 15px;
    }

    .modal-prev,
    .modal-next {
        padding: 10px 15px;
        font-size: 20px;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, 
.footer-section a {
    color: var(--white);
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(230, 215, 243, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}
