/* =========================================
   Ecom With Adeel — Design System
   ========================================= */
:root {
  --navy-900: #0b1f3a;
  --navy-800: #122a4d;
  --navy-700: #1c3b67;
  --accent: #f7a325;       /* warm gold */
  --accent-2: #1f9d8b;     /* teal */
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #1a2540;
  --text-muted: #5a6a85;
  --border: #e3e8f0;
  --shadow-sm: 0 4px 12px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* =========================================
   Header / Navigation
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.brand span { color: var(--accent); font-weight: 700; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  transition: var(--transition);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--navy-900);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: #fff;
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* =========================================
   Hero (Home)
   ========================================= */
.hero {
  padding: 80px 0 60px;
  background:
    linear-gradient(135deg, rgba(11,31,58,0.03), rgba(247,163,37,0.05)),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(247,163,37,0.12), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.eyebrow {
  display: inline-block;
  background: rgba(31, 157, 139, 0.1);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--accent); }
.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stats div { display: flex; flex-direction: column; }
.stats strong {
  font-size: 1.6rem;
  color: var(--navy-900);
  font-weight: 800;
  line-height: 1;
}
.stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-photo { display: flex; justify-content: center; }
.photo-ring {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-lg);
}
.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
}

/* =========================================
   Sections (shared)
   ========================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--navy-900);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.card p { color: var(--text-muted); }

/* CV */
.cv-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.cv-heading {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.cv-heading.mt { margin-top: 32px; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.t-item { position: relative; margin-bottom: 28px; }
.t-dot {
  position: absolute;
  left: -28px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.t-body h4 { color: var(--navy-900); font-size: 1.05rem; margin-bottom: 4px; }
.t-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 8px;
}
.t-body p { color: var(--text-muted); font-size: 0.95rem; }

.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills li {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 60px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-inner p { color: rgba(255,255,255,0.8); }

/* =========================================
   Page hero (subpages)
   ========================================= */
.page-hero {
  padding: 70px 0 50px;
  background: linear-gradient(135deg, var(--bg-alt), #fff);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.page-hero .lead {
  margin: 0 auto;
  text-align: center;
}

/* =========================================
   Services grid
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(247, 163, 37, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   Contact
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.3rem;
  color: var(--navy-900);
  margin-bottom: 24px;
}
.info-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.info-list li { display: flex; flex-direction: column; gap: 4px; }
.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
}
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247, 163, 37, 0.15);
}
.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 20px;
}
.form-status.success { color: var(--accent-2); }
.form-status.error { color: #d64545; }

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--navy-900);
  color: #fff;
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .brand { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text .eyebrow, .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .stats { justify-content: center; }
  .photo-ring { max-width: 280px; }
  .about-grid, .cv-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { max-height: 320px; padding: 12px 0; }
  .nav-links a {
    padding: 12px 24px;
    width: 100%;
    text-align: left;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }

  .hero { padding: 50px 0 40px; }
  .section { padding: 60px 0; }
  .contact-form { padding: 24px; }
}
