* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-ivory: #f9f5f0;
    --color-maroon: #8b0000;
    --color-gold: #d4af37;
    --color-emerald: #046307;
    --color-dark: #1a1a1a;
    --color-light: #ffffff;
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-ivory);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-ivory);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    transform: translateY(-20px);
}

.splash-logo img {
    animation: pulse 2s infinite;
    margin-bottom: 20px;
}

.splash-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-maroon);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.splash-subtext {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--color-emerald);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 0, 0, 0.1);
    border-left-color: var(--color-maroon);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(249, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo img {
    margin-bottom: 5px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-maroon);
    font-weight: 700;
    letter-spacing: 1px;
}
.logo-subtext {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--color-emerald);
    text-transform: uppercase;
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-maroon);
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-maroon);
}

nav a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-maroon);
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/Mix.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--color-maroon);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.3s;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-emerald);
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.6s;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.hero-tagline {
    font-style: italic;
    color: var(--color-emerald);
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1s;
}

.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--color-maroon);
    color: var(--color-light);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.2s;
}

.hero-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.hero-cta:hover {
    background-color: var(--color-emerald);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-cta:hover:before {
    left: 100%;
}

/* Products Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-maroon);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories container */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

/* Category buttons */
.category-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--color-maroon);
    color: var(--color-maroon);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;   /* 🔑 keeps text clean */
}

/* Active & hover */
.category-btn.active,
.category-btn:hover {
    background-color: var(--color-maroon);
    color: var(--color-light);
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--color-light);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    background-color: var(--color-ivory);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    display: inline-block;
    background-color: var(--color-ivory);
    color: var(--color-emerald);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* About Section */
.about {
    background-color: var(--color-light);
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-img {
    flex: 1;
    height: 500px;
    background-image: url("images/ALL.png");
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    min-height: 300px;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-maroon);
}

.about-text {
    margin-bottom: 30px;
}

.timeline {
    margin-top: 40px;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 2px solid var(--color-gold);
    position: relative;
}

.timeline-year {
    position: absolute;
    left: -70px;
    top: 0;
    background-color: var(--color-maroon);
    color: var(--color-light);
    padding: 5px 15px;
    font-weight: 600;
    border-radius: 0;
}

.timeline-text {
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-maroon);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-detail i {
    color: var(--color-maroon);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 5px;
    min-width: 20px;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: #25D366;
    color: var(--color-light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0;
    margin-top: 20px;
    transition: var(--transition);
}

.whatsapp-cta i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.whatsapp-cta:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--color-light);
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--color-light);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        width: 100%;
        margin-top: 40px;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-light);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .hero-description, .hero-tagline {
        text-align: center;
    }
    
    .hero-cta {
        display: block;
        text-align: center;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .splash-text {
        font-size: 1.5rem;
    }
    
    .splash-subtext {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo, .footer-links {
        min-width: 100%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtext {
        font-size: 0.6rem;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .timeline-year {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .timeline-item {
        padding-left: 0;
        border-left: none;
        padding-top: 20px;
        border-top: 2px solid var(--color-gold);
    }
    
    .whatsapp-cta {
        width: 100%;
        justify-content: center;
    }
    
    .contact-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-detail i {
        margin-bottom: 10px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .category-btn:hover {
        background-color: transparent;
        color: var(--color-maroon);
    }
    
    .category-btn.active, .category-btn:active {
        background-color: var(--color-maroon);
        color: var(--color-light);
    }
    
    nav a:hover:after {
        width: 0;
    }
    
    .hero-cta:hover {
        transform: none;
    }
    
    .product-card:hover {
        transform: none;
    }
}

/* Landscape mode for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    #splash-screen {
        padding: 20px;
    }
    
    .splash-logo img {
        width: 80px;
        height: 80px;
    }
    
    .splash-text {
        font-size: 1.2rem;
    }
    
    .splash-subtext {
        font-size: 0.7rem;
    }
}
@media (max-width: 768px) {
    .categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        justify-content: center;
        overflow-x: visible;
        padding: 0;
    }
    
    .category-btn {
        width: 100%;
        padding: 10px 8px;
        font-size: 0.85rem;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-btn {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .categories {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .category-btn {
        padding: 8px 10px;
    }
}