:root {
    /* Main Theme Palette */
    --primary-color: #2196f3;       /* Sky Blue - Buttons & Links */
    --primary-light: #64b5f6;
    --primary-dark: #1976d2;

    --secondary-color: #ffffff;     /* Pure White - Cards & Components */
    --accent-color: #cc2222;        /* Crimson Red - Accents & Highlights */
    
    /* Backgrounds */
    --bg-main: #1a6b6b;             /* Deep Teal - Main background */
    --bg-section: #8bc34a;          /* Lime Green - Section/Banner area */
    --bg-header: #1a1a1a;           /* Dark Charcoal - Header/Navbar */
    
    /* Text & Highlights */
    --text-highlight: #f5c518;      /* Golden Yellow - Text highlight */
    --text-main: #ffffff;           /* Text on dark backgrounds */
    --text-dark: #1c1c1c;           /* Text on light backgrounds/cards */
    --text-muted: #bdc3c7;
    --text-white: #ffffff;

    /* Status Colors */
    --success: #2ecc71;
    --danger: #cc2222;
    --warning: #f5c518;
    --info: #2196f3;

    /* Gradients */
    --gradient-teal: linear-gradient(135deg, var(--bg-main) 0%, #125151 100%);
    --gradient-banner: linear-gradient(135deg, var(--bg-section) 0%, #7caf3c 100%);
    --gradient-header: linear-gradient(135deg, var(--bg-header) 0%, #000000 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Spacing & Borders */
    --border-radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-header);
}

::-webkit-scrollbar-thumb {
    background: var(--text-highlight);
    border-radius: 10px;
    border: 3px solid var(--bg-header);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-white {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--text-highlight);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-soft-primary {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.btn-soft-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-soft-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-soft-secondary:hover {
    background-color: white;
    color: var(--bg-header);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-white:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    color: var(--text-highlight);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-white);
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Navigation */
header {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-highlight);
}

.auth-btns {
    display: flex;
    gap: 15px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    color: var(--text-white);
}

.hero-bg-animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(26, 107, 107, 0.8) 0%, rgba(26, 26, 26, 1) 100%),
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    background-blend-mode: overlay;
    animation: kenBurns 20s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, var(--primary-color) 0%, transparent 20%);
    opacity: 0.1;
    top: -25%;
    left: -25%;
    animation: pulse 10s infinite alternate;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(5%, 5%); }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glow-btn {
    box-shadow: 0 0 15px var(--primary-color);
}

.glow-btn:hover {
    box-shadow: 0 0 25px var(--primary-color);
    transform: translateY(-3px);
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-section);
    transform: skewY(-2deg);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.2);
}

.hero h1 span {
    background: linear-gradient(45deg, var(--text-highlight), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.3));
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-20px) rotate(2deg) scale(1.03); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

/* Cards & Components */
.card {
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: clamp(1.5rem, 3vw, 2rem);
    /* Responsive padding */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: auto;
    color: var(--text-dark);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Portfolio Card Specific Rotation */
#portfolio .card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

#portfolio .card:hover {
    transform: translateY(-15px) rotateY(360deg);
    border-color: var(--primary-color);
}

#portfolio .card .feature-icon {
    transition: transform 0.5s ease;
}

/* Rewards Section Icon Animation */
#rewards .card .reward-icon-container {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#rewards .card:hover .reward-icon-container {
    transform: rotateY(360deg) scale(1.1);
    background: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 10px 20px rgba(204, 34, 34, 0.3);
}

#rewards .card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color) !important;
}

.feature-icon {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--bg-header);
}

.card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Feature Grid */
.features {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    perspective: 1500px;
}

@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: var(--bg-section);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card Specifics */
.product-card {
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-details {
    padding: clamp(1.2rem, 3vw, 1.5rem);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-details h3 {
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
}

.product-details p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.product-price {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Footer */
footer {
    background-color: var(--bg-header);
    color: var(--text-white);
    padding: 80px 0 30px;
    border-top: 2px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.footer-company-name {
    color: #bdc3c7;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.footer-desc {
    color: #bdc3c7;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    background-image: radial-gradient(circle at 10% 20%, rgba(26, 107, 107, 0.8) 0%, rgba(28, 28, 28, 0.9) 100%);
    padding: 120px 20px 80px;
}

.auth-card {
    background: var(--secondary-color);
    width: 100%;
    max-width: 480px;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--text-highlight);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    /* Responsive input font */
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Rewards Section */
.reward-card {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.reward-icon-container {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.reward-icon {
    font-size: 2.5rem;
    color: var(--warning);
}

.reward-type {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.reward-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-teal);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--text-highlight);
}

.cta-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 45px;
    opacity: 0.95;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-btn {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 18px 60px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
}

.cta-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsiveness */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }



    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile Menu Support */
    .nav-links,
    .auth-btns {
        display: none;
    }

    .mobile-menu-btn {
        display: block !important;
        font-size: 2.2rem;
        cursor: pointer;
        color: var(--text-highlight);
    }

    /* Hero Section Mobile */
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }

    /* Hero content h1 and p font sizes handled by clamp() */

    .hero-container {
        flex-direction: column-reverse;
        /* Convert to column layout */
        text-align: center;
    }

    .hero-image {
        margin-top: 40px;
        justify-content: center;
        width: 100%;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    .cta-btns {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    /* Grid Layouts Mobile */
    .feature-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-grid .card {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Product Card Mobile Tweaks */
    @media (max-width: 480px) {
        .product-footer {
            flex-direction: column;
            align-items: stretch;
            text-align: center;
        }

        .product-price {
            margin-bottom: 10px;
        }

        .btn-sm {
            width: 100%;
        }
    }

    /* User Dashboard Mobile Responsive */
    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 2000;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 10px;
    }

    .top-bar {
        padding: 8px 10px;
        margin-bottom: 15px;
    }

    /* Auth Pages Mobile */
    .auth-container {
        padding: 100px 15px 60px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    /* Footer Mobile */
    footer {
        padding: 50px 0 30px;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-list {
        display: inline-flex !important;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .footer-grid {
        gap: 20px;
        margin-bottom: 30px;
    }
}

/* Helper Components for Responsive UI */
.mobile-menu-btn {
    display: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-header);
    z-index: 3000;
    padding: 60px 40px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border-left: 2px solid var(--accent-color);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    margin-top: 30px;
}

.mobile-nav ul li {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--text-white);
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
}

.mobile-nav ul li a:hover {
    color: var(--text-highlight);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2500;
    display: none;
}

.overlay.active {
    display: block;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-highlight);
}