:root {
    --primary-color: #E30A17;
    /* Flag Red */
    --primary-hover: #b00812;
    --whatsapp-color: #25D366;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --bg-light: #2d2d2d;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --font-main: 'Outfit', sans-serif;
    --container-padding: 2rem;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-main);
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

/* Header */
header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* ... skipped (logo class) ... */

.logo-img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 3rem;
    font-weight: 1000;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    /* Background removed to show slider */
    background: transparent;
    margin-top: 0;
    /* Fixed header handles overlap */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(200, 16, 46, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-btns {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Features/Services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns side by side */
    gap: 2rem;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets */
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-speed);
    position: relative;
    group: product;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #252525;
    /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 3rem;
    position: relative;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    /* Gradient ensures visibility of product while keeping text readable */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    border-top: none;
    backdrop-filter: none;
    /* Removed blur to show product */
    transform: translateY(20px);
    /* Slightly hidden */
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
    padding-bottom: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
}

.product-overlay h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    /* Strong shadow for readability */
}

.product-overlay p {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Can implement mobile menu later with JS */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Whatsapp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: var(--transition-speed);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    /* Darken for text readability */
}


/* Logo Corrections */
.logo {
    display: flex !important;
    align-items: center;
    font-size: 0 !important;
    /* Hide any potential text phantom space */
}

.logo-img {
    max-height: 45px;
    /* Adjusted standard size */
    width: auto;
    object-fit: contain;
}

footer .logo-img {
    max-height: 60px;
    margin-bottom: 1rem;
}

/* Slider Styles */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay for text readability */
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
    z-index: 2;
}

.slide-caption h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-caption h2 {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .slide-caption h2 {
        font-size: 2rem;
    }

    .slide-caption p {
        font-size: 1rem;
    }
}

.slide-caption p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #f0f0f0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
    max-width: 700px;
    margin: 0 auto;
}

.slide.active .slide-caption p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .logo-img {
        max-height: 50px;
        /* Increased from 35px */
    }
}