/* --- GLOBAL VARIABLES --- */
:root {
    --primary: #ff9900;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --white: #ffffff;
    --red: #ef4444;
    --green: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: var(--light); color: var(--text); padding-top: 80px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER (FIXED) --- */
.header { background: var(--dark); color: var(--white); height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 3%; position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: bold; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.logo img { height: 40px; width: auto; }
.logo span { color: var(--primary); }

.nav-menu { display: flex; gap: 20px; }
.nav-menu a { font-weight: 500; transition: 0.3s; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #cbd5e1; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.cart-btn { position: relative; cursor: pointer; font-size: 1.4rem; transition: 0.3s; color: var(--white); }
.cart-btn:hover { color: var(--primary); }
.cart-badge { position: absolute; top: -8px; right: -10px; background: var(--primary); color: var(--dark); font-size: 0.75rem; padding: 2px 6px; border-radius: 50%; font-weight: bold; }

/* --- HERO SLIDER --- */
.slider-container { position: relative; width: 100%; height: 550px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.slide.active { opacity: 1; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.slide-content { position: relative; z-index: 2; color: white; max-width: 700px; padding: 20px; }
.slide-content h2 { font-size: 3.5rem; margin-bottom: 15px; color: var(--primary); text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.btn-main { background: var(--primary); color: var(--dark); padding: 12px 35px; border-radius: 5px; font-weight: bold; display: inline-block; border: none; cursor: pointer; font-size: 1rem; transition: 0.3s; }
.btn-main:hover { background: #e68a00; transform: translateY(-2px); }

/* --- SCENARIO GRID (Fixed 4x2) --- */
.scenario-section { padding: 60px 5%; background: white; }
.scenario-grid { display: grid; gap: 20px; margin-top: 40px; }

/* Desktop: 4 Columns */
@media (min-width: 1024px) { .scenario-grid { grid-template-columns: repeat(4, 1fr); } }
/* Tablet: 2 Columns */
@media (min-width: 600px) and (max-width: 1023px) { .scenario-grid { grid-template-columns: repeat(2, 1fr); } }
/* Mobile: 1 Column */
@media (max-width: 599px) { .scenario-grid { grid-template-columns: 1fr; } }

.scenario-card { position: relative; border-radius: 12px; overflow: hidden; height: 200px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s; cursor: pointer; }
.scenario-card:hover { transform: scale(1.03); }
.scenario-card img { width: 100%; height: 100%; object-fit: cover; }
.scenario-text { position: absolute; bottom: 0; left: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: white; width: 100%; padding: 10px; text-align: center; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; }

/* --- INSTALLATION PAGE --- */
.install-container { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; }
.install-step { display: flex; align-items: center; gap: 30px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--primary); }
.install-step img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.step-num { font-size: 3rem; font-weight: bold; color: #e2e8f0; line-height: 1; }

/* --- SECTIONS --- */
.section { padding: 60px 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--dark); position: relative; font-weight: 700; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--primary); margin: 15px auto 0; border-radius: 2px; }

/* --- PRODUCT & FEATURES --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; }
.product-card img { width: 100%; height: 280px; object-fit: cover; }
.p-details { padding: 25px; text-align: center; }
.feature-box { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }

/* --- MODAL --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: white; width: 95%; max-width: 500px; padding: 30px; border-radius: 15px; max-height: 90vh; overflow-y: auto; position: relative; }
.close { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; cursor: pointer; color: #666; }
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; margin-bottom: 15px; }
.qty-controls { display: flex; gap: 10px; }
.qty-btn { background: #f1f5f9; border: 1px solid #cbd5e1; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.remove-btn { color: var(--red); cursor: pointer; margin-left: 10px; }

/* --- FORMS & UPI BOX --- */
.form-box { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 600px; margin: 0 auto; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; outline: none; background: #f8fafc; }

/* STYLISH UPI BOX */
.upi-input-container { position: relative; margin-top: 15px; }
.upi-input-container input { 
    width: 100%; 
    padding: 12px 12px 12px 40px; /* Space for icon */
    border: 2px solid #bbf7d0; 
    border-radius: 8px; 
    background: #ffffff; 
    font-size: 1rem;
    color: #166534;
    transition: 0.3s;
}
.upi-input-container input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); outline: none; }
.upi-input-container i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 1.2rem; }

/* --- FOOTER --- */
.footer { background: var(--dark); color: #94a3b8; padding: 70px 10% 30px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer h3 { color: var(--white); margin-bottom: 25px; font-size: 1.3rem; border-left: 3px solid var(--primary); padding-left: 10px; }
.footer a { display: block; margin-bottom: 12px; transition: 0.3s; font-size: 0.95rem; }
.footer a:hover { color: var(--primary); }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
.social-icons a:hover { background: var(--primary); color: var(--dark); }
.copyright { text-align: center; border-top: 1px solid #334155; padding-top: 30px; font-size: 0.9rem; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .header { padding: 0 15px; height: 70px; }
    .nav-menu { display: none; } 
    .install-step { flex-direction: column; text-align: center; }
    .install-step img { width: 100%; height: auto; }
}