/* CSS Variables */
:root {
    --primary: #5e5bff;
    --primary-dark: #4a47e0;
    --primary-light: #e9e8ff;
    --secondary: #10b981;
    --accent: #3b82f6;
    --dark: #1e1b4b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --gradient-primary: linear-gradient(135deg, #5e5bff 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-top-nav: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Base Styles */
body {
    font-family: 'Manrope', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background-color: var(--light);
    padding-top: 40px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Top Navigation */
.topnav {
    background: var(--gradient-top-nav);
    color: white;
    font-size: 14px;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(106, 17, 203, 0.3);
}

.topnav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
}

.topnav a:hover {
    opacity: 0.8;
    color: white;
}

/* Main Navigation */
.navbar {
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 40px;
    z-index: 1020;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 600;
    padding: 10px 18px !important;
    margin: 0 4px;
    border-radius: var(--border-radius);
    color: var(--dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link i {
    margin-right: 8px;
    font-size: 0.9em;
    width: 20px;
    text-align: center;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    width: calc(100% - 36px);
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary) !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 10px;
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Cart Button */
.nav-cart {
    position: relative;
    margin-left: 10px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 91, 255, 0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

/* Fixed Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(94, 91, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(94, 91, 255, 0.4);
    color: white !important;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Fixed Learn More Button */
.btn-learn-more {
    background: white;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    box-shadow: 0 3px 10px rgba(94, 91, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-learn-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-learn-more:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 91, 255, 0.4);
    border-color: var(--primary);
}

.btn-learn-more:hover::before {
    opacity: 1;
}

/* Fixed Outline White Button */
.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn-outline-white:hover {
    color: var(--primary) !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover::before {
    transform: translateX(0);
}

.btn-outline-white span {
    position: relative;
    z-index: 1;
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: var(--darker);
    color: white;
    padding-top: 100px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--gradient-primary);
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%231e1b4b" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%231e1b4b" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.40C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%231e1b4b"/></svg>') no-repeat;
    background-size: cover;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-about {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.footer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: white;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.footer-links a:hover::before {
    width: 6px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-light);
    margin-right: 15px;
    margin-top: 4px;
    font-size: 1.1rem;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(94, 91, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 60px;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-policy-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-policy-links a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

@media (max-width: 991px) {
    .navbar-brand img {
        height: 38px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 36px;
    }
    
    .navbar {
        top: 36px;
    }
    
    .topnav .col-md-4 span {
        display: none;
    }
    
    .topnav .col-6.text-end span {
        display: inline;
    }
    
    .navbar-collapse {
        padding: 20px;
        background: white;
        margin-top: 10px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
    }
    
    .footer-col {
        margin-bottom: 40px;
    }
}

@media (max-width: 575px) {
    .btn {
        padding: 10px 20px;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
