
/* styles.css - v3: modal dropdowns in popup, improved services */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');
:root{
  --bg:#071224;
  --card:#0f2940;
  --card-ink:#cfeeff;
  --accent:#0ea5ff;
  --accent-2:#6dd3ff;
  --muted:#9fb6c8;
  --glass:rgba(255,255,255,0.06);
  --container:1200px;
  --radius:16px;
  --shadow: 0 30px 90px rgba(2,12,25,0.6);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial;background:linear-gradient(180deg,#071224 0%, #0b2f48 60%);color:#e6f7ff;min-height:100vh;-webkit-font-smoothing:antialiased;overflow-x:hidden}
.container{max-width:var(--container);margin:0 auto;padding:28px}
.header{position:sticky;top:18px;z-index:60;display:flex;justify-content:center}
.navbar{width:100%;max-width:var(--container);display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-radius:12px;background:linear-gradient(90deg,rgba(255,255,255,0.03),rgba(255,255,255,0.02));backdrop-filter:blur(8px);box-shadow:0 8px 30px rgba(0,0,0,0.35)}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:42px;transition:transform .28s ease}
.brand img:hover{transform:translateY(-4px)}
.nav{display:flex;gap:18px;align-items:center;position:relative}
.nav a{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:8px;font-weight:600;transition:all .18s ease;display:inline-block}
.nav a:hover{color:var(--accent);transform:translateY(-3px)}
.cta{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#022;padding:10px 16px;border-radius:10px;font-weight:800;box-shadow:0 12px 40px rgba(14,165,255,0.12);transition:transform .18s}
.cta:hover{transform:translateY(-4px)}

/* Preloader */
#preloader{position:fixed;inset:0;background:linear-gradient(180deg,#071224, #082a44);display:flex;align-items:center;justify-content:center;z-index:9999}
.loader{width:120px;height:120px;border-radius:20px;background:linear-gradient(135deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));display:flex;align-items:center;justify-content:center;box-shadow:0 18px 60px rgba(2,12,25,0.6);animation:popIn .9s ease}
.loader .ring{width:56px;height:56px;border-radius:50%;border:4px solid rgba(14,165,255,0.12);border-top-color:var(--accent);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes popIn{0%{transform:scale(.96);opacity:0}100%{transform:scale(1);opacity:1}}

/* Hero */
.hero{display:flex;gap:36px;align-items:center;padding:92px 0}
.hero-left{flex:1;max-width:680px}
.kicker{display:inline-block;background:rgba(255,255,255,0.04);color:var(--accent);padding:8px 14px;border-radius:999px;font-weight:700;margin-bottom:18px}
h1{font-size:44px;margin:0 0 18px;line-height:1.02;font-weight:800;color:#f7fcff}
.lead{color:var(--muted);margin-bottom:24px;font-size:16px}
.hero-actions{display:flex;gap:12px}
.btn{padding:12px 16px;border-radius:12px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:10px;cursor:pointer}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#022}
.btn.ghost{border:1px solid rgba(255,255,255,0.06);background:transparent;color:var(--muted)}

/* separator */
.separator{height:28px;margin-bottom:18px;display:flex;align-items:center;justify-content:center}
.separator .line{width:90%;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.04),transparent);border-radius:2px}

/* Services improved */
.section{padding:64px 0}
.title{text-align:center;margin-bottom:26px}
.services-grid{display:grid;grid-template-columns:2fr 1fr;gap:28px;max-width:1200px;margin:0 auto;align-items:start}
.services-list{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.service-card{background:linear-gradient(180deg,rgba(255,255,255,0.01),rgba(255,255,255,0.02));padding:22px;border-radius:14px;box-shadow:0 12px 40px rgba(2,12,25,0.36);transition:transform .22s,box-shadow .22s;cursor:pointer}
.service-card:hover{transform:translateY(-10px);box-shadow:0 40px 110px rgba(2,12,25,0.6)}
.service-card h3{margin:0 0 8px}
.service-card p{margin:0;color:var(--muted);font-size:14px}
.service-cta{margin-top:12px;display:inline-flex;gap:8px}
.service-feature{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--muted)}
.service-feature span{background:rgba(255,255,255,0.02);padding:6px;border-radius:8px;font-weight:700;color:var(--accent)}

/* right side - highlighted offering */
.offer-card{background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(255,255,255,0.02));padding:22px;border-radius:14px;box-shadow:0 18px 60px rgba(2,12,25,0.5)}
.offer-card h3{margin-top:0}
.offer-list{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.offer-list li{color:var(--muted)}

/* platforms */
.platforms{background:linear-gradient(180deg,#072033, #0b3b5d);padding:36px;border-radius:14px;margin-top:28px}
.pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:980px;margin:10px auto}
.pill{background:#e6f7ff; color:#022;padding:12px;border-radius:10px;text-align:center;font-weight:700;box-shadow:0 10px 30px rgba(2,12,25,0.3);cursor:pointer;transition:transform .18s}
.pill:hover{transform:translateY(-8px)}

/* contact and modal dropdowns */
.contact{display:grid;grid-template-columns:480px 1fr;gap:28px;max-width:1100px;margin:0 auto}
.form{background:var(--card);padding:20px;border-radius:12px}
.input, textarea, select{width:100%;padding:12px;border-radius:10px;border:1px solid rgba(255,255,255,0.06);background:rgba(255,255,255,0.02);color:var(--card-ink);margin-top:8px;margin-bottom:12px}
.input::placeholder, textarea::placeholder{color:rgba(207,238,255,0.6)}
.submit{background:var(--accent);color:#022;padding:12px 16px;border-radius:10px;border:0;font-weight:800}

/* modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(3,8,15,0.5);display:flex;align-items:center;justify-content:center;z-index:2000;opacity:0;pointer-events:none;transition:opacity .28s ease}
.modal-backdrop.visible{opacity:1;pointer-events:auto}
@keyframes modalBounceIn {
  0% { transform: translateY(-12px) scale(.86); opacity:0; }
  60% { transform: translateY(6px) scale(1.05); opacity:1; }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.modal{width:640px;max-width:94%;background:linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.03));backdrop-filter:blur(10px);border-radius:14px;padding:20px;box-shadow:0 40px 120px rgba(2,12,25,0.6);transform:scale(.88);opacity:0;transition:all .28s cubic-bezier(.2,.9,.2,1)}
.modal.back-in{animation:modalBounceIn .42s cubic-bezier(.2,.9,.2,1) forwards}
.modal .close{position:absolute;right:18px;top:12px;background:transparent;border:0;color:var(--muted);font-size:18px;cursor:pointer}
.modal h3{margin:0 0 10px}
.modal .row{display:flex;gap:12px}
.modal .left{flex:1}
.modal .right{width:260px}

/* show/hide other input */
.hidden{display:none}

/* responsive */
@media(max-width:980px){
  .services-grid{grid-template-columns:1fr;gap:18px}
  .services-list{grid-template-columns:1fr}
  .pgrid{grid-template-columns:repeat(2,1fr)}
  .contact{grid-template-columns:1fr}
  .modal{width:92%}
}



/* Client/testimonial cards */
.testimonials{margin-top:16px}
.test-card{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));padding:18px;border-radius:10px;max-width:320px;box-shadow:0 12px 40px rgba(2,12,25,0.4);}
.test-card .quote{color:#e6f7ff;margin:0 0 10px;font-style:italic;line-height:1.4}
.test-card .author{color:var(--muted);margin:0;font-weight:700}

/* about stats */
.stat-card{background:linear-gradient(90deg,#0ea5ff,#6dd3ff);padding:16px;border-radius:10px;color:#022;min-width:140px;text-align:center;box-shadow:0 12px 40px rgba(2,12,25,0.4)}
.stat-num{font-size:20px;font-weight:800}
.stat-label{font-size:13px;color:rgba(2,2,2,0.65);margin-top:6px}

/* section backgrounds */
.dark-section{background:linear-gradient(180deg,#07263a,#0b3b50);padding:28px 0;margin-top:12px}
.light-section{background:transparent;padding:28px 0}



/* iPhone-like spring modal animation */
@keyframes iosSpringIn {
  0% { transform: translateY(12px) scale(.92); opacity:0; }
  45% { transform: translateY(-6px) scale(1.03); opacity:1; }
  80% { transform: translateY(2px) scale(.99); }
  100% { transform: translateY(0) scale(1); opacity:1; }
}
.modal{transition:none}
.modal.show{animation: iosSpringIn 420ms cubic-bezier(.2,.85,.32,1) forwards}



/* outcomes grid */
.outcomes-grid{margin-top:18px;max-width:1000px;margin-left:auto;margin-right:auto}
.outcome-card{background:linear-gradient(180deg,rgba(255,255,255,0.03),rgba(255,255,255,0.02));padding:20px;border-radius:12px;box-shadow:0 20px 60px rgba(2,12,25,0.45);min-height:120px;display:flex;flex-direction:column;justify-content:flex-start}
.outcome-metric{font-size:20px;font-weight:800;color:#e6f7ff;margin-bottom:8px}
.outcome-text{color:var(--muted);line-height:1.5}

/* about highlights */
.highlight-card{background:rgba(255,255,255,0.03);padding:12px;border-radius:10px;min-width:200px;text-align:center;box-shadow:0 12px 40px rgba(2,12,25,0.35)}
.highlight-card .small{color:var(--muted);font-size:13px;margin-top:6px}

/* responsive tweaks */
@media(max-width:900px){
  .outcomes-grid{margin-top:18px;max-width:1000px;margin-left:auto;margin-right:auto}
  .outcome-metric{font-size:18px}
  .pgrid{grid-template-columns:repeat(2,1fr)}
}



/* Outcome card hover & entrance animation */
.outcome-card{opacity:0;transform:translateY(10px);transition:transform .28s ease, box-shadow .28s ease, opacity .28s ease}
.outcome-card.visible{opacity:1;transform:translateY(0)}
.outcome-card:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 30px 80px rgba(2,12,25,0.55)}

/* Stagger via nth-child to avoid JS if possible */
.outcomes-grid .outcome-card:nth-child(1){transition-delay:0s}
.outcomes-grid .outcome-card:nth-child(2){transition-delay:.05s}
.outcomes-grid .outcome-card:nth-child(3){transition-delay:.1s}
.outcomes-grid .outcome-card:nth-child(4){transition-delay:.15s}
.outcomes-grid .outcome-card:nth-child(5){transition-delay:.2s}
.outcomes-grid .outcome-card:nth-child(6){transition-delay:.25s}

/* About highlight hover */
.highlight-card{transition:transform .22s ease, box-shadow .22s ease}
.highlight-card:hover{transform:translateY(-6px);box-shadow:0 20px 50px rgba(2,12,25,0.45)}

.about-long p{opacity:0;transform:translateY(14px);transition:all .45s ease}
.about-long p.visible{opacity:1;transform:translateY(0)}



/* Symmetrical 2-column layout for about highlights */
.about-highlights{
  display:grid;
  grid-template-columns:repeat(2, minmax(220px, 1fr));
  gap:18px;
  max-width:820px;
  margin:28px auto 0;
  align-items:stretch;
}
.highlight-card{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:18px;border-radius:10px;box-shadow:0 12px 40px rgba(2,12,25,0.35);background:rgba(255,255,255,0.03);transition:transform .22s,box-shadow .22s}
.highlight-card strong{display:block;margin-bottom:6px;font-size:16px;color:#e6f7ff}
.highlight-card .small{color:var(--muted);font-size:13px;margin-top:0}
@media(max-width:900px){
  .about-highlights{grid-template-columns:1fr;padding:0 12px}
}



/* contact two-column layout */
.contact-grid{margin-top:18px}
@media(max-width:900px){
  .contact-grid{grid-template-columns:1fr!important;padding:0 16px}
  .contact-aside{order:2;margin-top:12px}
  .contact-form-wrap{order:1}
}
/* ============================================================
   SERVICE SECTION — HIGHLIGHTED OFFER CARD HEIGHT TUNING
   You can adjust the card height by changing the active variable.
   ============================================================ */

/* Preset heights — pick one */
:root{
  --offer-height-1: 580px;  /* Slightly smaller than your current height */
  --offer-height-2: 560px;  /* Recommended based on your screenshot */
  --offer-height-3: 540px;  /* If you want it a bit shorter */
  --offer-height-4: 520px;  /* If still tall, try this */
}

/* Apply the selected height */
.offer-card {
  height: var(--offer-height-3) !important;      /* ← Change this number */
  min-height: var(--offer-height-3) !important;  /* ← to 1, 2, 3, or 4    */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
