/* Modern Design System for Direct Mobility Online */
:root {
    --primary-color: #8a2e8a; /* Logo Purple */
    --primary-light: #a64ca6;
    --secondary-color: #f8f9fa;
    --accent-color: #7d7d7d; /* Logo Gray */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(138, 46, 138, 0.1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(138, 46, 138, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
    line-height: 1.6;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
}

.reveal-left.active {
    animation: slideInLeft 0.8s ease-out forwards;
}

/* Navbar Styling */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Fix for Products link border bottom - Absolute Removal */
.navbar-nav .nav-item.dropdown .nav-link::after {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    background: var(--white);
    padding: 2rem;
    min-width: 600px !important;
    border-top: 5px solid var(--primary-color);
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) !important;
    transition: var(--transition);
    visibility: hidden;
    opacity: 0;
    display: none; /* Changed from block to none for better click handling */
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0) !important;
}

/* Desktop Hover Support */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0) !important;
    }
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: rgba(138, 46, 138, 0.05);
    color: var(--primary-color);
    transform: translateX(8px);
}

/* Animated Search - Capsule Shape */
.search-container {
    position: relative;
    width: 250px;
    height: 40px;
    background: var(--white);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: text;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-container:focus-within {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.search-container.active {
    width: 280px;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-dark);
    padding-left: 10px;
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Social Icons */
.social-group a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    background: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--glass-border);
}

.social-group a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px) rotate(360deg);
}

.social-group a.facebook:hover { background: #1877f2; }
.social-group a.x-twitter:hover { background: #000000; }

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-new.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 4rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    color: var(--white);
    animation: fadeInUp 1s ease-out;
    padding-bottom: 5rem;
}

.hero-content h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 700px;
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

.btn-modern {
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    border: none;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(138, 46, 138, 0.4);
    z-index: 1;
    overflow: hidden;
}

.btn-primary-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
    z-index: -1;
}

.btn-primary-modern:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(138, 46, 138, 0.5);
}

.btn-primary-modern:hover::after {
    transform: translateX(100%);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Welcome Section */
.welcome-section {
    padding: 5rem 0 0 0;
    background: var(--white);
    position: relative;
    background-image: radial-gradient(var(--primary-color) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    background-position: center;
    background-attachment: fixed;
}

.welcome-card {
    background: var(--white);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    border: 1px solid rgba(138, 46, 138, 0.1);
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    letter-spacing: -2px;
}

.welcome-text p {
    font-size: 1.25rem;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    font-weight: 400;
}

/* Pricing Styling */
.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1.5rem;
    background: rgba(138, 46, 138, 0.05);
    padding: 10px;
    border-radius: 12px;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    cursor: pointer;
    z-index: 10;
}

.scroll-down i {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}
.section-title {
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    background: var(--white);
    height: 100%;
    position: relative;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(138, 46, 138, 0.12);
}

.category-card img {
    height: 280px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card .card-body {
    padding: 1.5rem;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 2;
}

.category-card .card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-dark);
    transition: var(--transition);
}

.category-card:hover .card-title {
    color: var(--primary-color);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(138, 46, 138, 0.1);
    border-color: rgba(138, 46, 138, 0.1);
}

.product-card img {
    transition: transform 0.6s ease;
    padding: 1rem;
    height: 300px;
    object-fit: contain;
}

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

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(138, 46, 138, 0.3);
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.product-card h5 {
    font-size: 1.15rem;
}

/* Section Spacing */
.py-large {
    padding: 5rem 0 !important;
}

/* Footer */
footer {
    background: #0f172a; /* Premium Dark Slate */
    color: var(--white);
    padding: 5rem 0;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.8rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section-title {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.feature-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 2rem;
}

@media (max-width: 991px) {
    .feature-products-grid {
        grid-template-columns: 1fr;
    }
    .search-container {
        width: 100%;
        margin-top: 1rem;
    }
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: rotate(360deg);
}

/* Responsive Tweaks */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 991px) {
    .navbar {
        background: var(--white);
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-section {
        height: auto;
        padding: 10rem 0 5rem;
        text-align: center;
    }
    .hero-content .d-flex {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 8rem 0 4rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
