/* ============================================================
   SHABNAM SHAILA — PERSONAL WEBSITE STYLESHEET
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #c9a96e;
  --color-accent-light: #e8c98a;
  --color-text: #2d2d2d;
  --color-text-light: #6b6b6b;
  --color-bg: #fafaf8;
  --color-bg-alt: #f4f3ef;
  --color-white: #ffffff;
  --color-card-bg: #ffffff;
  --color-border: #e8e8e4;
  --color-hero-gradient-start: #1a1a2e;
  --color-hero-gradient-end: #0f3460;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);

  --transition: 0.25s ease;
  --nav-height: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav-links a:hover { color: var(--color-accent-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active {
  color: var(--color-accent-light);
}
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-hero-gradient-start) 0%, var(--color-hero-gradient-end) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15,52,96,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
}

/* --- Profile Picture --- */
.profile-pic-wrapper {
  margin-bottom: var(--spacing-sm);
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 6px rgba(201,169,110,0.15), var(--shadow-lg);
}

.profile-pic:hover {
  border-color: var(--color-accent-light);
  box-shadow: 0 0 0 8px rgba(201,169,110,0.2), var(--shadow-lg);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.profile-pic svg {
  display: none;
}

.profile-pic-label {
  display: none;
}

/* --- Hero Text --- */
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  max-width: 520px;
  letter-spacing: 0.02em;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-xs);
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  height: 84px;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  text-align: center;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-btn:hover {
  background: rgba(201,169,110,0.2);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-3px);
}

.hero-cta {
  display: inline-block;
  margin-top: var(--spacing-sm);
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201,169,110,0.35);
}

.hero-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.45);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

/* ---------- About ---------- */
.about-section {
  background: var(--color-bg);
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 760px;
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.stat-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Skills ---------- */
.skills-section {
  background: var(--color-bg-alt);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.skill-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.skill-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.skill-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ---------- Experience / Timeline ---------- */
.experience-section {
  background: var(--color-bg);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 0; left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.3);
}

.timeline-content {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-company {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.timeline-company::before {
  content: '·';
  margin-right: var(--spacing-xs);
  color: var(--color-border);
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.35;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.7rem;
  top: 3px;
}

/* ---------- Education ---------- */
.education-section {
  background: var(--color-bg-alt);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.edu-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.edu-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
}

.edu-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.edu-details h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.edu-info {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* --- Certifications --- */
.cert-block { margin-top: var(--spacing-md); }

.cert-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.cert-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.cert-badge {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-item strong {
  display: block;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--color-primary);
}

.cert-item span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--spacing-lg);
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.footer-icons a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.footer-icons a svg {
  width: 18px;
  height: 18px;
}

.footer-icons a:hover {
  background: rgba(201,169,110,0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(26,26,46,0.97);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .social-icons {
    flex-wrap: wrap;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .timeline-company::before { display: none; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .edu-card {
    flex-direction: column;
  }

  .section {
    padding: 3.5rem 0;
  }
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
