:root {
    --bg-body: rgb(8, 20, 55);                /* deep navy base */
    --bg-card: rgb(20, 36, 80);               /* card base slightly lighter */
    --bg-card-hover: rgb(38, 60, 110);        /* hover more pronounced */
    --text-main: #e6f0ff;                     /* soft white for readability */
    --text-muted: #9bb0c7;                    /* muted text brighter for contrast */
    --primary-color: #6CE0FF;                 /* cyan accent */
    --primary-hover: #4fd0ff;                 /* hover accent slightly stronger */
    --secondary-color: #3bb0ff;               /* secondary buttons/links */
    --accent-gradient: linear-gradient(135deg, #6CE0FF 0%, #2ea6ff 100%);
    --navbar-bg: rgba(8, 20, 55, 0.85);       /* darker with transparency */
    --border-color: #1d395c;                  /* subtle card borders */
}

/* Base */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

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

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(108, 224, 255, 0.1), 0 2px 4px -1px rgba(108, 224, 255, 0.06);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(108, 224, 255, 0.2);
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline-light:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

/* Background elements for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 224, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 176, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff 20%, #9bb0c7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Cards (Categories & Products) */
.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: var(--bg-card-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(108, 224, 255, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.product-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(8, 20, 55, 0.85) 0%, rgba(20, 36, 80, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: rgb(5, 10, 25);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0 !important;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
}

/* Background image support for cards */
.custom-card-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Gradient overlay for text readability */
.custom-card-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 25, 60, 0.9), rgba(20, 36, 80, 0.7));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.custom-card-bg:hover::before {
    background: linear-gradient(to top, rgba(10, 25, 60, 0.85), rgba(20, 36, 80, 0.5));
}


.custom-card-bg * {
    z-index: 2;
    position: relative;
}
