/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #151515;
  background: #f5f7fb;
}

/* Layout helpers */

.container {
  width: min(1100px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header p {
  color: #555;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #444;
}

/* Typography */

h1, h2, h3, h4 {
  font-weight: 650;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #0f63ff, #4b9dff);
  color: #fff;
  box-shadow: 0 10px 25px rgba(15, 99, 255, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 99, 255, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.4);
  color: #0f63ff;
  border-color: rgba(15, 99, 255, 0.35);
}

.btn.ghost:hover {
  background: #fff;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 99, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #0f63ff;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #444;
}

/* Nav */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #222;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-list a {
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
}

.nav-list a:hover {
  color: #0f63ff;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, #d9e7ff 0, #f5f7fb 40%, #f5f7fb 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-text p {
  max-width: 540px;
  color: #333;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f63ff;
}

.metric-label {
  font-size: 0.8rem;
  color: #555;
}

.hero-figure {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 0.8rem;
  box-shadow: 0 16px 40px rgba(15, 35, 75, 0.15);
  border: 1px solid rgba(15, 99, 255, 0.08);
}

.hero-figure img {
  display: block;
  width: 100%;
  border-radius: 1.2rem;
}

.hero-figure figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Grids & cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 12px 30px rgba(15, 35, 75, 0.08);
  border: 1px solid rgba(15, 99, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-image {
  border-radius: 0.8rem;
  margin-top: 0.5rem;
  max-height: 180px;
  object-fit: cover;
}

/* About */

.about-highlight {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 26px rgba(15, 35, 75, 0.08);
  border: 1px solid rgba(15, 99, 255, 0.06);
}

.checklist {
  list-style: none;
  margin-top: 0.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  color: #0f63ff;
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 12px 30px rgba(15, 35, 75, 0.08);
  border: 1px solid rgba(15, 99, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.project-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 99, 255, 0.08);
  color: #0f63ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #0f63ff;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.project-card-muted {
  opacity: 0.9;
}

.project-link.disabled {
  color: #999;
  cursor: default;
}

/* Bullets */

.bullets {
  padding-left: 1.1rem;
}

.bullets li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

/* Impact */

.impact-figure {
  background: #ffffff;
  padding: 0.8rem;
  border-radius: 1.4rem;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
  border: 1px solid rgba(15, 99, 255, 0.06);
}

.impact-figure img {
  width: 100%;
  border-radius: 1rem;
}

.impact-figure figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.4rem;
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.team-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 26px rgba(15, 35, 75, 0.07);
  border: 1px solid rgba(15, 99, 255, 0.05);
}

.team-card .role {
  font-size: 0.85rem;
  color: #0f63ff;
  margin-bottom: 0.4rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-form {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 35, 75, 0.08);
  border: 1px solid rgba(15, 99, 255, 0.06);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.85rem;
  color: #555;
}

.form-row input,
.form-row textarea {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(15, 99, 255, 0.4);
  border-color: transparent;
}

.form-note {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.4rem;
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 1.8rem;
  background: #0b1020;
  color: #d3ddff;
  margin-top: 1.5rem;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
}

/* Links */

a {
  color: #0f63ff;
}

a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    inset-inline: 0;
    top: 56px;
    background: rgba(245, 247, 251, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem 1rem;
    gap: 0.8rem;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(15, 99, 255, 0.06);
    transition: max-height 0.2s ease;
  }

  .nav-list.nav-open {
    max-height: 260px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================
   Mobile & Tablet Polish
   Paste at END of styles.css
   ========================= */

/* Prevent horizontal scrolling from long titles/URLs */
html, body { overflow-x: hidden; }
* { overflow-wrap: anywhere; word-break: break-word; }

/* iOS: prevent zoom-in on form fields (must be >= 16px) */
input, select, textarea { font-size: 16px; }

/* Safe-area padding for iOS notches */
body{
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Touch targets: 44px minimum */
.btn, .nav__menu a, .nav__toggle { min-height: 44px; }

/* If you ever use tables: wrap them to scroll */
.tableWrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Tablet tuning */
@media (max-width: 980px){
  :root{ --pad: 18px; }
  .section{ padding: 22px 0; }
  .grid{ gap: 12px; }
}

/* Small phones */
@media (max-width: 520px){
  :root{
    --pad: 14px;
    --radius2: 18px;
  }

  .topbar__inner{ gap: 10px; }
  .header__inner{ gap: 12px; }

  .hero{ padding: 38px 0 18px; }
  .card{ padding: 14px; }

  /* Mobile menu should fit the screen */
  .nav__menu{
    right: var(--pad);
    left: var(--pad);
    min-width: unset;
  }

  /* Reduce “dense” feel */
  .grid{ gap: 10px; }
}

/* Extra small phones */
@media (max-width: 380px){
  .brand__tag{ display:none; } /* optional, reduces header wrapping */
  .brand__logo{ width: 42px; height: 42px; }
}

img{ max-width:100%; height:auto; }

/* =========================
   Tables: readable header
   ========================= */

.data-table{
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th{
  background: #141b28;    /* dark header */
  color: #ffffff;         /* key fix: force white text */
  font-weight: 650;
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.data-table tbody td{
  padding: 10px 10px;
  vertical-align: top;
}

/* Optional: subtle row separators for clarity */
.data-table tbody tr + tr td{
  border-top: 1px solid rgba(0,0,0,0.08);
}
