/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #4e54c8;
    --secondary: #8f94fb;
    --accent: #ff0055;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #2d3436;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(78, 84, 200, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 10px;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}

/* Glassmorphism Components */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.card,
.product-card,
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    position: absolute;
    top: -5px;
    right: -10px;
    animation: pulse 2s infinite;
}

/* Hero Section */
.hero {
    height: 120vh;
    /* Background moved to ::before for blur effect */
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
    z-index: 1;
    /* Ensure new stacking context */
}

/* Blurred Background Image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/homepage-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
}

/* Dark Tint Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* Modifier to remove blurred background (for other pages) */
.hero.static-bg::before {
    display: none;
}

/* About Page Hero with slight blur */
.hero.about-hero::before {
    display: block;
    /* Ensure it is visible */
    background: url('../images/about-page-cover.png') no-repeat center center/cover;
    background-attachment: fixed;
    filter: blur(2px);
    /* Reduced to ~10% blur */
    z-index: -2;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #fff;
    /* Ensure clean background for contained images */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    position: relative;
    z-index: 2;
    background: white;
}

.product-cat {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 700;
    color: var(--dark);
}

.product-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: block;
}

/* Features/Services */
.features {
    background: rgba(255, 255, 255, 0.8);
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transition: 0.4s;
    z-index: 0;
    opacity: 0.1;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: 0.4s;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 1;
}

/* About Styles */
.about-section {
    display: flex;
    align-items: center;
    gap: 60px;
    perspective: 1000px;
}

.about-img {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: rotateY(-5deg);
    transition: 0.5s;
    background: white;
}

.about-img:hover {
    transform: rotateY(0deg) scale(1.02);
}

.about-img img {
    width: 100%;
    display: block;
}

.about-content {
    flex: 1;
}

/* Contact Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.contact-info-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
    flex-shrink: 0;
    /* Prevent shrinking with long text */
}

/* Footer */
footer {
    background: var(--dark) !important;
    color: white;
    position: relative;
    overflow: hidden;
}

footer::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(50px);
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff4757);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.fab-trigger:hover {
    transform: scale(1.1) rotate(15deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-container:hover .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1);
}

.fab-whatsapp {
    background: #25D366;
}

.fab-phone {
    background: #3498db;
}

/* Keyframes & Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .about-section,
    .contact-grid {
        flex-direction: column;
        display: block;
    }

    .about-img {
        margin-bottom: 30px;
        transform: none;
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 20px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Brand Carousel */
.brand-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brand-track {
    display: flex;
    gap: 80px;
    animation: scroll 40s linear infinite;
}

.brand-item {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
}

.brand-item img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-230px * 7));
    }
}

/* Stats Counter */
.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* Product Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    display: block;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.category-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.category-overlay p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    margin-bottom: 15px;
}

.cat-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.category-card:hover .cat-btn {
    opacity: 1;
    transform: translateX(0);
}