/* --- CORE VARIABLES --- */
:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-hover: #1e293b;
    --primary: #ef4444;    /* Crimson */
    --secondary: #10b981;  /* Emerald */
    --accent: #8b5cf6;     /* Purple */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- RESET & TYPOGRAPHY --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 800; }
a { text-decoration: none; cursor: pointer; transition: 0.3s; }

/* --- UTILITIES --- */
.section-container { padding: 100px 8%; position: relative; }
.text-gradient { background: linear-gradient(to right, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ambient-glow { position: fixed; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.2; }
.glow-red { top: -10%; left: -10%; background: var(--primary); }
.glow-green { bottom: -10%; right: -10%; background: var(--secondary); }

/* --- NAVBAR --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 8%; min-height: 78px; background: rgba(2,6,23,0.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.logo { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.logo img { flex-shrink: 0; }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: white; }
.menu-toggle { display: none; border: 1px solid var(--border); background: rgba(15,23,42,0.7); color: var(--text-main); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle:hover { border-color: rgba(255,255,255,0.25); }
.web-portal-link { color: #10b981 !important; font-weight: 700 !important; border: 1px solid #10b981; padding: 8px 15px; border-radius: 20px; margin-left: 10px; display: inline-flex; align-items: center; gap: 8px; }
.web-portal-link:hover { color: #052e26 !important; background: #10b981; }

@media (max-width: 1100px) {
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.9rem; }
    .web-portal-link { padding: 7px 12px; margin-left: 4px; }
}

/* --- BUTTONS --- */
.btn-cta { background: linear-gradient(135deg, var(--secondary), #059669); color: white; padding: 12px 30px; border-radius: 50px; font-weight: 700; border: none; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(16,185,129,0.2); }
.btn-secondary { background: rgba(255,255,255,0.05); color: white; padding: 12px 30px; border-radius: 50px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 10px; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* --- HERO --- */
header { padding: 140px 8% 100px; text-align: center; max-width: 1200px; margin: 0 auto; }
.hero-header { padding-top: 180px; padding-bottom: 120px; }
.badge { background: rgba(239,68,68,0.1); color: var(--primary); border: 1px solid rgba(239,68,68,0.2); padding: 6px 16px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 25px; }
header h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
header .subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* --- PROBLEM SECTION (Timeline) --- */
.section-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.story-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.story-card { background: var(--bg-card); padding: 35px; border-radius: 20px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: 0.3s; }
.story-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.card-icon.warning { background: rgba(56,189,248,0.1); color: #38bdf8; }
.card-icon.danger { background: rgba(250,204,21,0.1); color: #facc15; }
.card-icon.critical { background: rgba(239,68,68,0.1); color: #ef4444; }

/* --- SOLUTION SECTION --- */
.solution-bg { background: linear-gradient(to bottom, var(--bg-dark), #0a0f1e, var(--bg-dark)); }
.split-layout { display: flex; align-items: center; gap: 60px; }
.text-content { flex: 1; }
.h2-large { font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.schedule-item { background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; display: flex; align-items: center; gap: 15px; border: 1px solid var(--border); }
.day-badge { background: var(--bg-dark); padding: 5px 10px; border-radius: 8px; font-weight: bold; border: 1px solid var(--border); color: var(--text-muted); }
.schedule-item.gold { border-color: rgba(250,204,21,0.3); background: rgba(250,204,21,0.05); }
.schedule-item.gold .day-badge { color: #facc15; border-color: #facc15; }

/* Visual Mockup */
.visual-content { flex: 1; display: flex; justify-content: center; }
.app-card { background: #0f172a; border: 1px solid var(--border); width: 320px; border-radius: 24px; padding: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.app-header { display: flex; justify-content: space-between; color: white; margin-bottom: 20px; font-weight: bold; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.task-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 12px; margin-bottom: 10px; }
.task-item.overdue { border-left: 3px solid var(--primary); }
.task-item.pending { border-left: 3px solid #facc15; }
.task-item.done { border-left: 3px solid var(--secondary); opacity: 0.7; }
.task-info { display: flex; flex-direction: column; font-size: 0.9rem; }
.task-info span { font-size: 0.75rem; color: var(--text-muted); }
.btn-sm { background: var(--text-main); color: black; border: none; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; cursor: pointer; }

/* --- FEATURES GRID --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-box { background: var(--bg-card); padding: 35px; border-radius: 24px; border: 1px solid var(--border); transition: 0.3s; }
.feature-box:hover { background: var(--bg-hover); transform: translateY(-5px); border-color: var(--secondary); }
.f-icon { width: 55px; height: 55px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.f-icon.red { background: rgba(239,68,68,0.1); color: var(--primary); }
.f-icon.green { background: rgba(16,185,129,0.1); color: var(--secondary); }
.f-icon.purple { background: rgba(139,92,246,0.1); color: var(--accent); }
.f-icon.yellow { background: rgba(250,204,21,0.1); color: #facc15; }
.f-icon.blue { background: rgba(56,189,248,0.1); color: #38bdf8; }
.f-icon.pink { background: rgba(236,72,153,0.1); color: #ec4899; }

/* --- CONTACT --- */
.contact-bg { background: linear-gradient(180deg, var(--bg-dark), #0f172a); }
.contact-layout { display: flex; gap: 50px; max-width: 1000px; margin: 0 auto; background: var(--bg-card); padding: 50px; border-radius: 30px; border: 1px solid var(--border); flex-wrap: wrap; }
.contact-text { flex: 1; min-width: 300px; }
.contact-meta { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; color: var(--text-muted); }
.contact-form-wrapper { flex: 1.5; min-width: 300px; }
.input-group { display: flex; gap: 15px; margin-bottom: 15px; }
input, textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 12px 15px; border-radius: 10px; color: white; outline: none; transition: 0.3s; }
input:focus, textarea:focus { border-color: var(--secondary); }
textarea { height: 120px; resize: none; margin-bottom: 15px; }
.full { width: 100%; }

/* --- FOOTER --- */
footer { background: #000; border-top: 1px solid var(--border); padding: 60px 8% 30px; margin-top: 50px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.f-logo { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.f-logo span { color: var(--primary); }
.f-col h4 { color: white; margin-bottom: 20px; }
.f-col a { display: block; color: var(--text-muted); margin-bottom: 10px; }
.f-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding-top: 20px; border-top: 1px solid var(--border); }

.hero-btns-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Default: Left align */
    gap: 12px;
    margin-top: 30px;
}

/* Ye naya bada button hai */
.btn-hero {
    padding: 16px 35px;       
    font-size: 1.2rem;       
    font-weight: 700;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); /* Glow effect */
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.trust-badge {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- 2. VIDEO SECTION STYLES --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ye magic number hai (16:9 ratio) taaki video mobile pe na kate */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- 3. MOBILE FIXES --- */
@media (max-width: 768px) {
    .hero-btns-wrapper {
        align-items: center; /* Mobile par button center me aayega */
        width: 100%;
    }
    
    .btn-hero {
        width: 90%; /* Mobile par button chouda (wide) dikhega */
        justify-content: center;
    }
}


/* --- MODAL --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 2000; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 500px; margin: 10% auto; padding: 30px; border-radius: 20px; border: 1px solid var(--border); position: relative; }
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: white; }

/* ===== FINAL MOBILE FIX (NO CUT GUARANTEE) ===== */
@media (max-width: 768px) {

    /* GLOBAL SAFETY */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    nav {
        padding: 14px 5%;
        min-height: 72px;
    }

    .logo {
        font-size: 1.05rem;
        max-width: calc(100% - 56px);
    }

    .logo img {
        height: 34px !important;
        width: 34px !important;
        margin-right: 8px !important;
    }

    /* SECTIONS */
    .section-container {
        padding: 60px 6%;
    }
  header {
        padding: 100px 6% 70px;
        max-width: 100%;
    }

    .hero-header {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    header h1 {
        font-size: 2rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .hero-btns {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.hero-btns a {
    width: 100%;
    white-space: normal;
    line-height: 1.3;
}

    .btn-cta,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* NAV MENU */
    .menu-toggle {
        display: inline-flex;
        position: relative;
        right: auto;
        top: auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 5%;
        right: 5%;
        width: auto;
        background: rgba(2, 6, 23, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
        display: none;
    }

    .nav-links a {
        width: 100%;
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .web-portal-link {
        margin-left: 0;
        justify-content: center;
    }

    .nav-links.active {
        display: flex;
    }

    /* SPLIT LAYOUT */
    .split-layout {
        flex-direction: column;
        gap: 40px;
    }

    /* SCHEDULE */
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    /* APP CARD */
    .app-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* FEATURES */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-bg {
      padding: 40px 0; /* gives breathing room above & below */
  }

  .contact-layout {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px 16px;          /* reduced inner padding */
      margin: 0 auto;
      width: calc(100% - 20px);    /* remove hidden overflow */
      max-width: 95vw;
      gap: 20px;
      border-radius: 18px;
      box-sizing: border-box;
  }

  .contact-text {
      width: 100%;
      text-align: center;
      padding: 0 5px;
  }

  .contact-text h2 {
      font-size: 1.55rem;
      margin-bottom: 10px;
      line-height: 1.3;
  }

  .contact-text p {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 15px;
  }

  .contact-meta {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      font-size: 0.9rem;
      word-break: break-word;
  }

  .contact-form-wrapper {
      width: 100%;
      padding: 0 5px; /* keeps inputs from touching screen edge */
  }

  .input-group {
      flex-direction: column;
      gap: 12px;
      width: 100%;
  }

  input, textarea {
      font-size: 0.95rem;
      padding: 12px 14px;
      width: 100%;
      box-sizing: border-box;
  }

  .btn-cta.full {
      width: 100%;
      justify-content: center;
      margin-top: 5px;
  }

    /* FOOTER */
    .footer-top {
        grid-template-columns: 1fr;
        padding: 0 10px;
        text-align: center;
    }
    
}
