@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #002957;
    --primary-dark: #001d3e;
    --secondary: #2d5888;
    --accent: #ff7c09;
    --dark: #09193d;
    --dark-surface: #1e293b;
    --light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(9, 25, 61, 0.9);
    --border-radius: 1.25rem;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1140px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 3rem 0;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    background: radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.05), transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.05), transparent 40%);
    overflow: hidden; /* Prevent floating cards and AOS from causing horizontal scroll */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* AOS Variations */
[data-aos="fade-up"] { opacity: 0; transform: translateY(40px); }
[data-aos="fade-left"] { opacity: 0; transform: translateX(40px); }
[data-aos="fade-right"] { opacity: 0; transform: translateX(-40px); }
[data-aos="zoom-in"] { opacity: 0; transform: scale(0.9); }

[data-aos].active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Specific Element Enhancements */
.hero-image img {
    animation: float 8s ease-in-out infinite;
}

.floating-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-tile {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.category-tile:hover i {
    animation: pulse 1s ease-in-out infinite;
}

/* Dashboard Section */
.dashboard-reveal {
    background: var(--dark);
    color: white;
    border-radius: 3rem 3rem 0 0;
    margin-top: -3rem;
    padding: 4rem 0;
    overflow: hidden;
}

.dashboard-reveal h2 {
    color: white;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.dashboard-mockup {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--dark-surface);
    border-radius: 2rem;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.dashboard-mockup img {
    width: 100%;
    border-radius: 1rem;
}

/* Services Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3.5rem 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 41, 87, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.category-tile {
    background: white;
    padding: 1.25rem 0.75rem;
    border-radius: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-tile h3 {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Showcase Slider */
.showcase-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.showcase-slider::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.showcase-item:hover {
    transform: scale(1.05) translateY(-10px);
}

.showcase-item img {
    width: 100%;
    display: block;
}

/* Coupons Section */
.coupons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.coupon-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.coupon-card::before, .coupon-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--light);
    border-radius: 50%;
    left: 40%;
}

.coupon-card::before { top: -10px; }
.coupon-card::after { bottom: -10px; }

.coupon-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.coupon-info h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.coupon-info p { font-size: 0.9rem; margin: 0; }

.coupon-value {
    margin-left: auto;
    padding-left: 1.5rem;
    border-left: 2px dashed #e2e8f0;
    text-align: center;
}

.coupon-value span {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

/* "Work with Us" Section */
.work-with-us {
    background: var(--light);
    overflow: hidden;
}

.tab-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
}

.partner-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.partner-card h3 { color: white; margin: 1.5rem 0; font-size: 2rem; }
.partner-card p { color: rgba(255,255,255,0.9); font-size: 1rem; line-height: 1.7; }

.partner-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
}

.partner-badge {
    display: inline-block;
    margin-top: 2rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Footer & Policies */
footer {
    background: #0f172a;
    color: white;
    padding: 6rem 0 3rem;
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 { color: white; margin-bottom: 1.5rem; }
.footer-brand p { color: #94a3b8; }

.footer-links h4 { color: white; margin-bottom: 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 1rem; }
.footer-links ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-links ul li a:hover { color: white; }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations */
[data-aos] {
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

/* FAQ Section */
.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    user-select: none;
}

.faq-question i {
    transition: var(--transition);
    font-size: 0.8rem;
    opacity: 0.5;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-answer {
    padding-bottom: 1rem;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Store Buttons */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: black;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.store-btn:hover {
    transform: scale(1.05);
    background: #222;
}

.store-btn i { font-size: 2rem; }
.store-btn-text span { display: block; font-size: 0.7rem; color: #94a3b8; }
.store-btn-text strong { display: block; font-size: 1.1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .tab-container, .footer-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    .hero-image { order: -1; }
    .hero-image img { animation: none; } /* Disable float for better performance on mobile */
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .floating-card { right: 0 !important; } /* Reset floating card position on tablets */
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .nav-links { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    
    /* Ensure no horizontal bleed from slider */
    .showcase-slider {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
        gap: 1rem;
    }
    .showcase-item {
        min-width: 260px;
        max-width: 260px;
    }
    
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-btns { flex-direction: column; }
    
    .stats { 
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem; 
        margin-bottom: 3rem; 
        text-align: center;
    }
    
    .stats h3 { font-size: 1.5rem; }
    .stats p { font-size: 0.8rem; }
    
    .dashboard-reveal h2 { font-size: 2.2rem; }
    
    .section h2 { font-size: 2rem; }
    .section p { font-size: 0.95rem; }
    .tab-container { padding: 1.25rem; gap: 2rem; }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-content h1 { font-size: 1.8rem; }
}
