/* ===== InternConnect — shared stylesheet ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f6ef7;
  --primary-dark: #3b5bf0;
  --primary-soft: #e9edff;
  --ink: #1f2430;
  --muted: #6b7280;
  --bg: #f6f8fd;
  --surface: #ffffff;
  --line: #e5e9f2;
  --success: #16a34a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 36, 48, 0.14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

section[id], .form-card, .form-success { scroll-margin-top: 84px; }

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn a { color: inherit; text-decoration: none; display: block; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 20px rgba(79, 110, 247, 0.35); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); text-decoration: none; }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-badge {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-size: 1.15rem;
}
.brand span b { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { background: var(--primary-soft); text-decoration: none; }
.nav-links a.active { background: var(--primary); color: #fff; }

.nav-cta { margin-left: 0.4rem; }
.nav-links a.btn { padding: 0.7rem 1.4rem; color: #fff; }
.nav-links a.btn:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.4rem; border-radius: 8px;
}
.nav-toggle:hover { background: var(--primary-soft); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 4px 0; border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.8rem 4%;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 10px; padding: 0.8rem 1rem; }
  .nav-links .btn { margin-top: 0.4rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(600px 380px at -5% 10%, rgba(79, 110, 247, 0.18), transparent 60%),
    linear-gradient(180deg, #eef1ff 0%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: 5rem 0 6rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d4dcff;
  padding: 0.35rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1.1rem; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary), #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}
.hero-card:hover { transform: rotate(0deg) translateY(-4px); }
.hero-card .mini {
  font-size: 0.8rem; color: var(--muted);
  border-left: 3px solid var(--primary);
  padding-left: 0.6rem; margin-bottom: 0.7rem;
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.hero-card .tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.pill {
  font-size: 0.78rem; font-weight: 600;
  background: var(--primary-soft); color: var(--primary);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.hero-card .meta { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.hero-card .meta b { color: var(--success); }

/* ===== Stats band ===== */
.stats { background: linear-gradient(120deg, var(--primary), #6d5cf6); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 2.6rem 0; text-align: center; }
.stat b { display: block; font-size: 2rem; letter-spacing: -0.02em; }
.stat span { font-size: 0.95rem; opacity: 0.9; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ===== Cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.job-card h3 { font-size: 1.15rem; margin: 0.2rem 0 0.15rem; }
.job-card .company { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.8rem; }
.job-card .desc { font-size: 0.95rem; color: var(--muted); flex: 1; }
.job-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1.1rem; }

.icon-badge {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Steps ===== */
.steps { counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -20px; left: 1.4rem;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 14px rgba(79, 110, 247, 0.4);
}
.step h3 { margin: 0.5rem 0 0.4rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== Testimonials ===== */
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.7rem; }
.testimonial p.quote { font-size: 0.99rem; color: var(--ink); }
.stars { color: #f5a623; letter-spacing: 2px; margin-bottom: 0.7rem; }
.attribution { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.attribution .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.attribution b { display: block; font-size: 0.95rem; }
.attribution span { font-size: 0.85rem; color: var(--muted); }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--primary), #8b5cf6);
  color: #fff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.cta-band p { opacity: 0.92; max-width: 34rem; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background:
    radial-gradient(500px 300px at 90% -20%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(500px 300px at 0% 0%, rgba(79, 110, 247, 0.15), transparent 60%),
    linear-gradient(180deg, #eef1ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { padding: 4.5rem 0 3.5rem; max-width: 46rem; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin: 0.9rem 0 0.9rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--primary); }

/* ===== Services ===== */
.service-card { align-items: flex-start; }
.service-card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: 0.95rem; }

/* ===== Checklist / value pairs ===== */
.value-pair { display: flex; gap: 1.6rem; align-items: flex-start; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.value-pair:last-child { border-bottom: none; }
.value-pair .icon-badge { flex-shrink: 0; }
.value-pair h3 { margin-bottom: 0.4rem; }
.value-pair p { color: var(--muted); }

/* ===== Timeline ===== */
.timeline { position: relative; margin-left: 1.4rem; padding-left: 2rem; border-left: 3px solid var(--primary-soft); }
.timeline-item { position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2.45rem; top: 0.25rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item .year { font-weight: 800; color: var(--primary); }
.timeline-item h3 { margin: 0.2rem 0 0.3rem; }
.timeline-item p { color: var(--muted); max-width: 40rem; }

/* ===== Team ===== */
.team-card { text-align: center; align-items: center; }
.avatar-lg {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1.8rem; font-weight: 800;
  margin-bottom: 1rem;
}
.team-card h3 { margin-bottom: 0.1rem; }
.team-card .role { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.92rem; }

/* ===== Forms ===== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.4rem;
  max-width: 44rem;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.18);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.form-note { display: flex; align-items: flex-start; gap: 0.6rem; background: var(--primary-soft); border: 1px solid #d4dcff; color: #3a4b9f; border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.9rem; grid-column: 1 / -1; }

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 3.5rem 2rem;
  max-width: 44rem;
  margin: 0 auto;
}
.form-success.visible {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.form-success.visible { display: block; }
.form-success .tick {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: #dcfce7; color: var(--success);
}
.form-success h3 { margin-bottom: 0.4rem; }

/* ===== FAQ ===== */
.faq { max-width: 46rem; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.8rem; overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: inherit; font-weight: 700; font-size: 1.02rem;
  color: var(--ink);
  background: none; border: none;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  text-align: left;
}
.faq-question:hover { background: var(--primary-soft); }
.faq-question .chevron { transition: transform 0.25s ease; color: var(--primary); flex-shrink: 0; }
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: #151a24; color: #c3cad6; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding: 3.5rem 0 2.5rem; }
.footer-grid .brand { color: #fff; margin-bottom: 0.8rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #c3cad6; }
.site-footer a:hover { color: #fff; }
.contact-line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.2rem 0; font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; color: #8a93a5; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; }
}
