:root {
    /* RESTORED FINALIZED 3-COLOR THEME */
    --brand-cyan: #0ea5e9;
    --brand-blue: #3b82f6;
    --brand-purple: #a855f7;
    --brand-dark: #0f172a;
    --bg-body: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    
    /* Custom Gradients */
    --gradient-brand: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue), var(--brand-purple));
    --gradient-nav: linear-gradient(90deg, var(--brand-cyan), var(--brand-purple));
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-body); color: var(--text-main); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }

/* --- 1. MOBILE-OPTIMIZED NAVBAR --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 5%; background: rgba(10, 15, 28, 0.95); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.logo { 
    display: flex; align-items: center; gap: 12px; 
    text-decoration: none; 
    font-size: 1.5rem; letter-spacing: -0.5px;
}
.brand-image {
    height: 42px; width: 42px; object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
    border: 2px solid rgba(14, 165, 233, 0.3);
}
.logo .apex { color: var(--white); font-weight: 800; }
.logo .code { color: var(--brand-cyan); font-weight: 700; }
.logo .craft { color: var(--brand-purple); font-weight: 600; }

.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li { margin: 0 15px; }
.nav-links a { 
    color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    position: relative; padding-bottom: 5px;
}
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 3px;
    bottom: 0; left: 0; border-radius: 2px;
    background: var(--gradient-nav); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; color: white; font-size: 1.5rem; cursor: pointer; border: none; background: transparent; }

/* --- 2. HERO SECTION --- */
.hero {
    position: relative; height: auto; min-height: 85vh;
    background: linear-gradient(135deg, #090e17 0%, #15091f 100%);
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 120px 5% 150px 5%; overflow: hidden;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 10; color: var(--white); max-width: 800px; margin-top: 20px; }
.hero h1 { font-size: 3.8rem; line-height: 1.15; margin-bottom: 25px; font-weight: 800; letter-spacing: -1px; }
.hero p { font-size: 1.15rem; font-weight: 400; color: #cbd5e1; max-width: 600px; margin: 0 auto 35px; line-height: 1.6; }

.btn-primary { 
    background: var(--gradient-brand); color: var(--white); padding: 15px 35px; 
    border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 1.05rem; 
    display: inline-block; transition: 0.3s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4); }

/* --- 3. THE 3 BOXES --- */
.overlap-section { padding: 0 5%; position: relative; z-index: 20; margin-top: -80px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.premium-box {
    background: var(--white); padding: 45px 30px; border-radius: 12px; text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 5px 10px rgba(0,0,0,0.04); 
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: default;
}
.icon-wrap { font-size: 3.5rem; color: var(--brand-purple); margin-bottom: 20px; transition: all 0.4s ease; }
.premium-box h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--brand-dark); font-weight: 700; transition: all 0.4s ease; }
.premium-box p { font-size: 0.95rem; color: var(--text-light); line-height: 1.5; transition: all 0.4s ease; }
.premium-box:hover {
    background: var(--gradient-brand); transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.3); border-color: transparent;
}
.premium-box:hover .icon-wrap, .premium-box:hover h3, .premium-box:hover p { color: var(--white); }
.premium-box:hover .icon-wrap { transform: scale(1.1); }

/* --- 4. ABOUT US SECTION --- */
.about-section { padding: 100px 5%; }
.about-container { display: flex; align-items: center; gap: 60px; background: var(--white); border-radius: 24px; padding: 60px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.03); flex-wrap: wrap; }
.about-image { flex: 1; min-width: 300px; position: relative; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.about-image::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100px; height: 100px; background: var(--gradient-brand); border-radius: 16px; z-index: -1; opacity: 0.15; }
.about-text { flex: 1; min-width: 300px; }
.about-text h4 { color: var(--brand-purple); font-weight: 700; margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.about-text h2 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 25px; color: var(--brand-dark); font-weight: 800; }
.about-text p { color: var(--text-light); line-height: 1.7; margin-bottom: 20px; font-size: 1.05rem; }
.bullet-points { list-style: none; margin-bottom: 30px; }
.bullet-points li { margin-bottom: 12px; font-weight: 600; color: var(--brand-dark); display: flex; align-items: center; gap: 12px; }
.bullet-points li i { color: var(--brand-blue); font-size: 1.2rem; }

/* --- 5. BENTO GRID --- */
.section { padding: 90px 5%; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--brand-dark); }
.section-header p { color: var(--text-light); font-size: 1.05rem; margin-top: 10px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.bento-card {
    position: relative; background: var(--bg-body); border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px; min-height: 250px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 5px 10px rgba(0,0,0,0.04);
    overflow: hidden; cursor: pointer; transition: all 0.4s ease;
}
.bento-card:hover { border-color: transparent; box-shadow: 0 20px 45px rgba(168, 85, 247, 0.2); transform: translateY(-5px); }
.bento-cover {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--white); border-radius: 16px; z-index: 2; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-card:hover .bento-cover { height: 70px; background: var(--gradient-brand); border-radius: 16px 16px 20px 20px; box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4); }
.bento-cover i {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -80%);
    font-size: 3.5rem; color: var(--brand-blue); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-card:hover .bento-cover i { top: 50%; left: 25px; transform: translate(0, -50%); font-size: 1.8rem; color: var(--white); }
.bento-cover h3 {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, 30%);
    font-size: 1.3rem; font-weight: 700; color: var(--brand-dark); width: 100%; text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.bento-card:hover .bento-cover h3 { top: 50%; left: 65px; transform: translate(0, -50%); font-size: 1.1rem; color: var(--white); width: auto; text-align: left; }
.bento-content {
    position: absolute; bottom: 0; left: 0; width: 100%; height: calc(100% - 70px);
    padding: 20px 30px; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(20px); transition: all 0.4s ease; z-index: 1;
}
.bento-card:hover .bento-content { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.bento-content p { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; text-align: center; margin: 0; }

/* --- 6. CRICKET AUCTION ENGINE SECTION (ELEGANT UPGRADE) --- */
#auction-engine {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0; 
    position: relative;
}
.auction-content-wrapper {
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 5%; 
    text-align: center;
}
.auction-intro-text {
    margin: 0 auto 3.5rem; 
    max-width: 800px; 
    line-height: 1.8; 
    font-size: 1.15rem; 
    color: var(--text-light);
}
.auction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem; 
    text-align: left;
}
.auction-feature-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    padding: 2.5rem; 
    border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    z-index: 1;
}
.auction-feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.auction-feature-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08); 
    border-color: rgba(0,0,0,0.05);
}
.auction-feature-card:hover::after { opacity: 1; }
.auction-icon-box {
    width: 65px; height: 65px; border-radius: 18px; 
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--brand-blue); display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 1.5rem; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.auction-feature-card:hover .auction-icon-box {
    background: var(--gradient-brand); color: var(--white);
    transform: scale(1.08) rotate(-5deg); box-shadow: 0 12px 25px rgba(168, 85, 247, 0.3);
}
.auction-feature-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.8rem;
}
.auction-feature-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- 7. PACKAGES --- */
.price-card { 
    background: var(--white); border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; 
    padding: 45px 35px; transition: 0.3s; box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 5px 10px rgba(0,0,0,0.04);
}
.price-card:hover { border-color: var(--brand-purple); box-shadow: 0 20px 45px rgba(168, 85, 247, 0.2); transform: translateY(-5px); }
.p-title { font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); margin-bottom: 5px; }
.p-subtitle { font-size: 0.9rem; color: var(--brand-purple); font-weight: 700; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.p-list { list-style: none; text-align: left; margin-bottom: 35px; }
.p-list li { padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.95rem; color: var(--text-main); display: flex; gap: 12px; align-items: flex-start; }
.p-list li i { color: #10b981; margin-top: 3px; font-size: 1.1rem; }
.btn-outline { display: block; text-align: center; border: 2px solid #e2e8f0; color: var(--brand-dark); padding: 14px 0; border-radius: 8px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-filled { background: var(--gradient-brand); border: none; color: var(--white) !important; }
.btn-filled:hover { box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3); }

/* --- 8. CONTACT SECTION --- */
.contact-section { 
    background: linear-gradient(135deg, #090e17 0%, #15091f 100%); 
    padding: 100px 5%; color: var(--white); border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-section .section-header h2 { color: var(--white); }
.contact-container {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px;
    max-width: 1100px; margin: 0 auto;
    background: rgba(255,255,255,0.03); padding: 50px; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1); align-items: start;
}
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; font-weight: 800; color: var(--white); }
.contact-info p { color: #cbd5e1; margin-bottom: 30px; line-height: 1.6; }
.contact-details { list-style: none; }
.contact-details li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; color: #e2e8f0; font-size: 1.05rem; }
.contact-details i { 
    width: 45px; height: 45px; background: rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: var(--brand-cyan); font-size: 1.2rem; 
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: #cbd5e1; }
.form-group input, .form-group textarea { 
    width: 100%; padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255,255,255,0.1); color: #fff; 
    font-family: inherit; font-size: 1rem; outline: none; transition: 0.3s; 
    -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-cyan); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* WHATSAPP FLOAT */
.wa-float { position: fixed; bottom: 90px; right: 20px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 1000; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); transition: 0.3s; }
.wa-float:hover { transform: scale(1.1); }

footer { background: var(--brand-dark); color: #94a3b8; text-align: center; padding: 30px 5%; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- 9. AI CHATBOT WIDGET CSS --- */
.ai-chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; font-family: 'Plus Jakarta Sans', sans-serif; }
.ai-chat-toggle {
    width: 60px; height: 60px; border-radius: 50%; border: none;
    background: var(--gradient-brand); color: var(--white);
    font-size: 24px; cursor: pointer; box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.ai-chat-toggle:hover { transform: translateY(-3px) scale(1.05); }
.ai-chat-window {
    position: absolute; bottom: 80px; right: 0;
    width: 350px; max-width: calc(100vw - 40px); height: 450px;
    background: var(--bg-body); border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); transform-origin: bottom right;
}
.ai-chat-window.active { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.ai-chat-header {
    background: var(--brand-dark); color: var(--white);
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--brand-cyan);
}
.ai-header-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.ai-header-title i { color: var(--brand-cyan); }
#ai-chat-close { background: none; border: none; color: var(--text-light); font-size: 1.2rem; cursor: pointer; transition: 0.3s; }
#ai-chat-close:hover { color: var(--white); }
.ai-chat-messages {
    flex: 1; padding: 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 15px; background: var(--white);
}
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; }
.bot-msg { background: #f1f5f9; color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
.user-msg { background: var(--brand-blue); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-chat-input-area { display: flex; padding: 15px; background: var(--white); border-top: 1px solid #f1f5f9; gap: 10px; }
.ai-chat-input-area input {
    flex: 1; padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 20px;
    outline: none; font-family: inherit; font-size: 0.9rem; transition: 0.3s;
}
.ai-chat-input-area input:focus { border-color: var(--brand-blue); }
.ai-chat-input-area button {
    background: var(--gradient-brand); color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer;
    transition: 0.3s; display: flex; justify-content: center; align-items: center; font-size: 1rem;
}
.ai-chat-input-area button:hover { box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3); }

/* --- 10. MOBILE RESPONSIVENESS & SCALED TEXT --- */
@media(max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); } 
    .hero h1 { font-size: 3rem; }
    .about-container, .contact-container { padding: 40px 30px; }
}

@media(max-width: 768px) {
    /* Navbar & General Spacing */
    nav { padding: 15px 5%; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 60px; left: 0; width: 100%; height: auto;
        background: var(--brand-dark); flex-direction: column; padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); 
        transition: clip-path 0.4s ease-in-out; border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .nav-links li { margin: 12px 0; width: 100%; text-align: center; }
    .nav-links a { font-size: 1.1rem; display: block; padding: 10px; }
    .nav-links a::after { display: none; } 

    /* Typography Reductions for Mobile */
    .hero { padding: 120px 5% 100px 5%; min-height: 90vh; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 15px; } /* Scaled down */
    .hero p { font-size: 0.95rem; margin-bottom: 25px; } /* Scaled down */
    
    .section-header h2 { font-size: 1.8rem; } /* Scaled down */
    .section-header p { font-size: 0.95rem; } /* Scaled down */
    
    /* 3 Boxes */
    .overlap-section { margin-top: -50px; }
    .premium-box { padding: 35px 20px; }
    .premium-box h3 { font-size: 1.15rem; } /* Scaled down */
    .premium-box p { font-size: 0.85rem; } /* Scaled down */
    .icon-wrap { font-size: 2.5rem; }

    /* About Section */
    .about-section, .contact-section { padding: 60px 5%; }
    .about-text h2 { font-size: 1.8rem; } /* Scaled down */
    .about-text p { font-size: 0.95rem; } /* Scaled down */

    /* Bento Grid */
    .section { padding: 60px 5%; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card { padding: 30px 25px; }
    .bento-cover h3 { font-size: 1.1rem; } /* Scaled down */

    /* Auction Section */
    #auction-engine { padding: 4rem 0; }
    .auction-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .auction-feature-card { padding: 1.8rem; }
    .auction-intro-text { 
        font-size: 0.95rem; /* Scaled down heavily */
        line-height: 1.6; 
        margin-bottom: 2rem; 
    }
    .auction-feature-title { font-size: 1.15rem; } /* Scaled down */
    .auction-feature-text { font-size: 0.9rem; } /* Scaled down */

    /* Packages */
    .price-card { padding: 30px 25px; }
    .p-title { font-size: 1.3rem; } /* Scaled down */
    .p-subtitle { font-size: 0.85rem; }
    .p-list li { font-size: 0.9rem; }

    /* Contact Section */
    .contact-container { grid-template-columns: 1fr; gap: 30px; padding: 25px; }
    .contact-info h3 { font-size: 1.6rem; } /* Scaled down */
    .contact-info p { font-size: 0.9rem; } /* Scaled down */
    .contact-details li { font-size: 0.95rem; }

    /* Floating UI Elements */
    .wa-float { width: 55px; height: 55px; font-size: 28px; bottom: 85px; right: 15px; }
    .ai-chat-widget { bottom: 15px; right: 15px; }
}
