/* ============================================================
   Shounak Rendalkar — Portfolio
   Theme: deep space + electric gradient
   ============================================================ */

:root {
  --bg: #060e22;
  --bg-2: #0a1838;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eaf0ff;
  --muted: #97a3c4;
  --brand: #0a60e0;
  --brand-2: #2f8af0;
  --accent: #19e5c8;
  --grad: linear-gradient(120deg, #0a60e0 0%, #2f8af0 50%, #19e5c8 100%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name { font-family: 'Sora', sans-serif; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background:
    linear-gradient(var(--bg-2), var(--bg)),
    radial-gradient(circle at 50% 0%, rgba(10,96,224,0.12), transparent 60%);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.glow-1 { width: 480px; height: 480px; background: #0a60e0; top: -120px; left: -100px; animation: float1 16s ease-in-out infinite; }
.glow-2 { width: 520px; height: 520px; background: #19e5c8; bottom: -160px; right: -120px; opacity: 0.32; animation: float2 20s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(80px, 60px); } }
@keyframes float2 { 50% { transform: translate(-70px, -50px); } }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  transition: background 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(6, 14, 34, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 800; font-family: 'Sora';
  font-size: 0.95rem; box-shadow: 0 6px 20px rgba(10,96,224,0.4);
}
.brand-name { font-size: 1.02rem; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 20px; border-radius: 30px; color: #fff !important;
  background: var(--grad); font-weight: 600;
  box-shadow: 0 8px 24px rgba(10,96,224,0.35);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Active nav link ---------- */
.nav-links a.active { color: var(--text); position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--grad); border-radius: 2px; }
.nav-links a.nav-cta.active::after { display: none; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(125px, 17vh, 175px) clamp(20px, 5vw, 40px) 10px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { max-width: 660px; margin: 18px auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }

/* ---------- CTA band ---------- */
.cta-band { max-width: var(--maxw); margin: 0 auto; padding: 30px clamp(20px, 5vw, 40px) clamp(70px, 10vw, 110px); }
.cta-band-inner {
  text-align: center;
  background: linear-gradient(160deg, rgba(10,96,224,0.12), rgba(25,229,200,0.05));
  border: 1px solid var(--border); border-radius: 26px; padding: clamp(40px, 6vw, 64px);
}
.cta-band-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.cta-band-inner p { color: var(--muted); max-width: 540px; margin: 14px auto 28px; font-size: 1.04rem; }

/* ---------- Home highlights ---------- */
.home-more { text-align: center; margin-top: 38px; }
.home-more a { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 1rem; }
.home-more a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 30px; font-weight: 600; font-size: 0.96rem;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px rgba(10,96,224,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(10,96,224,0.5); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(130px, 18vh, 200px) clamp(20px, 5vw, 40px) 60px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 30px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.86rem; color: var(--muted);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(25,229,200,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(25,229,200,0); } 100% { box-shadow: 0 0 0 0 rgba(25,229,200,0); } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { max-width: 720px; margin: 26px auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-lead { max-width: 640px; margin: 24px auto 0; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

.hero-stats { display: flex; gap: clamp(20px, 5vw, 60px); justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.stat { text-align: center; }
.stat-num, .stat-suffix { font-family: 'Sora'; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.hero-techstrip {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  margin-top: 70px; padding-top: 36px; border-top: 1px solid var(--border);
}
.hero-techstrip span { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; opacity: 0.8; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 40px); }
.section-alt { position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Cards grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform 0.3s, border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 1.9rem; margin-bottom: 16px; display: inline-block; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Featured service cards ---------- */
.card-feature { background: linear-gradient(160deg, rgba(10,96,224,0.12), rgba(25,229,200,0.05)); border-color: rgba(10,96,224,0.3); }
.card-feature h3 { font-size: 1.32rem; }
.card em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- Skills ---------- */
.skills-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.skill-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.skill-group h4 { font-size: 1.05rem; margin-bottom: 16px; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span {
  padding: 7px 14px; border-radius: 20px; font-size: 0.85rem;
  background: rgba(10,96,224,0.1); border: 1px solid rgba(10,96,224,0.22); color: #bcd4ff;
  transition: transform 0.2s, background 0.2s;
}
.chips span:hover { transform: translateY(-2px); background: rgba(10,96,224,0.2); }

/* ---------- Selected Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.work-card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: rgba(10,96,224,0.3); }
.work-tag { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: rgba(25,229,200,0.1); padding: 5px 12px; border-radius: 16px; margin-bottom: 14px; }
.work-card h3 { font-size: 1.28rem; margin-bottom: 14px; }
.work-problem, .work-result { color: var(--muted); font-size: 0.94rem; margin-bottom: 12px; }
.work-problem strong { color: #ff9e80; font-weight: 600; }
.work-result strong { color: var(--accent); font-weight: 600; }
.work-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.work-chips span { font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; padding: 5px 11px; border-radius: 14px; background: rgba(10,96,224,0.1); border: 1px solid rgba(10,96,224,0.2); color: #bcd4ff; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 28px; transition: transform 0.3s, border-color 0.3s;
}
.price-card:hover { transform: translateY(-6px); }
.price-popular { border-color: var(--brand); background: linear-gradient(170deg, rgba(10,96,224,0.14), rgba(25,229,200,0.05)); box-shadow: 0 18px 50px rgba(10,96,224,0.18); }
.price-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; white-space: nowrap; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.price-desc { color: var(--muted); font-size: 0.92rem; min-height: 42px; }
.price { font-family: 'Sora'; font-size: 2.5rem; font-weight: 800; margin: 14px 0 4px; }
.price-from { font-size: 0.9rem; font-weight: 500; color: var(--muted); vertical-align: middle; margin-right: 4px; }
.price-per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-list { list-style: none; margin: 18px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.price-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.93rem; }
.price-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 30px; }
.price-note a { color: var(--brand); text-decoration: underline; }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; transition: transform 0.3s, background 0.3s; }
.cert-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.cert-badge { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; font-size: 1.7rem; background: rgba(10,96,224,0.12); border: 1px solid rgba(10,96,224,0.25); }
.cert-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.cert-card p { color: var(--muted); font-size: 0.92rem; }
.edu-strip { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; padding: 20px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); flex-wrap: wrap; text-align: center; }
.edu-icon { font-size: 1.5rem; }
.edu-strip p { color: var(--muted); font-size: 0.96rem; }
.edu-strip strong { color: var(--text); }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.industry-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 38px 28px; transition: transform 0.3s, background 0.3s; }
.industry-card:hover { transform: translateY(-6px); background: var(--surface-2); }
.industry-icon { font-size: 2.6rem; margin-bottom: 16px; }
.industry-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.industry-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform 0.3s; }
.process-step:hover { transform: translateY(-6px); }
.step-num { font-family: 'Sora'; font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.85; }
.process-step h3 { font-size: 1.18rem; margin: 8px 0 10px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { display: flex; justify-content: center; }
.contact-card {
  width: 100%; max-width: 760px; text-align: center;
  background: linear-gradient(160deg, rgba(10,96,224,0.1), rgba(25,229,200,0.05));
  border: 1px solid var(--border); border-radius: 26px; padding: clamp(40px, 6vw, 64px);
}
.contact-card h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 12px; }
.contact-card > p { color: var(--muted); max-width: 520px; margin: 16px auto 0; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 36px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); background: rgba(0,0,0,0.4); }
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.9rem; color: var(--accent); min-height: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 50px clamp(20px, 5vw, 40px) 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-family: 'Sora'; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { max-width: var(--maxw); margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 0.82rem; opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 40px; background: rgba(10,24,56,0.97); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border); transform: translateX(100%); transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
