:root {
    --primary: #2d6a4f;
    --primary-light: #52b788;
    --secondary: #d8f3dc;
    --text-dark: #1b4332;
    --text-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 12px 36px 0 rgba(31, 38, 135, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: #eef7f3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Background elements */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 {
    width: 60vw;
    height: 60vw;
    background: #74c69d;
    top: -15vw;
    left: -15vw;
}
.shape-2 {
    width: 50vw;
    height: 50vw;
    background: #95d5b2;
    bottom: -15vw;
    right: -10vw;
}

/* Glassmorphism Classes */
.glass-header, .glass-card, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    height: 65px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 3px rgba(255,255,255,0.7);
    line-height: 1;
}

.contact-btn {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: rgba(82, 183, 136, 0.15);
    border-radius: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary);
    color: white;
}

.header-text h1 {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    text-shadow: 1px 1px 3px rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.pdf-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.pdf-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 183, 136, 0.5);
}

/* Main Container */
.container {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-light);
    bottom: -12px;
    left: 25%;
    border-radius: 4px;
    transition: width 0.4s ease, left 0.4s ease;
}
.category-section:hover .section-title::after,
.slider-section:hover .section-title::after {
    width: 80%;
    left: 10%;
}

/* Catalog Preview */
.catalog-preview {
    max-width: 480px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.catalog-preview:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(45, 106, 79, 0.35);
}

.preview-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Make it wider/half-height equivalent */
    overflow: hidden;
    background: white; /* In case of transparency */
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom; /* Focus on the bottom cutout */
    transition: transform 0.7s ease;
}

.catalog-preview:hover .preview-image {
    transform: scale(1.08);
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 67, 50, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.catalog-preview:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.4s ease, background 0.3s ease;
}
.catalog-preview:hover .overlay span {
    transform: translateY(0);
}
.overlay span:hover {
    background: rgba(255,255,255,0.2);
}

/* Random Slider */
.slider-section {
    text-align: center;
}

.random-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.slider-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: opacity 0.8s ease-in-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    cursor: pointer;
}
.slider-img.loaded {
    opacity: 1;
}

.slider-img:hover {
    transform: scale(1.1) rotate(2deg);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    padding: 3.5rem 10% 2.5rem;
    text-align: center;
    margin-top: auto;
    border-radius: 30px 30px 0 0;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 2rem;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.15rem;
    color: #2b2b2b;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.contact-info a:hover {
    color: var(--primary-light);
    text-decoration: underline;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(15px);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95vw;
    height: 95vh;
    padding: 2rem 0;
}

.modal-image-wrapper {
    flex: 1;
    width: 100%;
    display: block; /* Flexbox clipping fix */
    text-align: center;
    overflow: auto; /* Allow scrolling when zoomed */
    border-radius: 12px;
}

/* Hide scrollbar for clean UI but keep functionality */
.modal-image-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.modal-image-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
}

#modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    transition: opacity 0.4s ease, transform 0.3s ease;
    cursor: zoom-in;
    transform-origin: center center;
}

#modal-image.zoomed {
    max-width: none;
    max-height: none;
    width: 100vw;
    height: auto;
    margin: 0 auto;
    cursor: zoom-out;
}

.modal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin-top: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.nav-btn {
    background: var(--primary);
    border: none;
    padding: 1rem 2rem;
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.nav-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(82, 183, 136, 0.6);
}
.nav-btn:disabled {
    background: #444;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#page-indicator {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s ease;
}
.close-modal:hover {
    color: var(--text-dark);
    background: white;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    .overlay span {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
    .modal-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    .close-modal {
        top: 10px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
}
