/* ============================================
   PORTFOLIO — Mohammad Osama Khan
   Style: Light Gray + Black + Ink Blue (A4)
   ============================================ */

/* === CSS VARIABLES ===
   These are like settings at the top.
   If you want to change a color across the whole site,
   you only change it here — once — and it updates everywhere. */
:root {
  --bg:           #f2f4f7;      /* Main background: light gray */
  --bg-white:     #ffffff;      /* White used for cards */
  --bg-dark:      #0a0f1e;      /* Very dark navy for footer/contrast sections */
  --accent:       #1e3a8a;      /* Ink blue — the main accent color */
  --accent-light: rgba(30, 58, 138, 0.08); /* Very faint blue for tag backgrounds */
  --accent-border: rgba(30, 58, 138, 0.18); /* Slightly more visible blue for borders */
  --text-primary: #0a0a0a;      /* Near black for main headings */
  --text-secondary: #444444;    /* Dark gray for body text */
  --text-muted:   #888888;      /* Lighter gray for labels and small text */
  --border:       #e4e7ed;      /* Very light border color */
  --font-heading: 'Plus Jakarta Sans', sans-serif; /* Clean, professional font for headings */
  --font-body:    'Inter', sans-serif;             /* Ultra-clean, readable font for body text */
  --radius:       12px;         /* How rounded the corners are */
  --shadow:       0 2px 20px rgba(30, 58, 138, 0.07); /* Subtle blue-tinted shadow */
  --transition:   0.3s ease;    /* How fast hover animations are */
  --max-width:    1100px;       /* Maximum width of content — keeps it from stretching too wide */
}

/* === RESET ===
   Browsers add their own padding/margin by default.
   This removes all of that so we start clean. */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Makes width calculations predictable */
}

/* === BASE STYLES === */
html {
  scroll-behavior: smooth; /* Makes clicking nav links scroll smoothly instead of jumping */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6; /* Space between lines of text */
  overflow-x: hidden; /* Prevents horizontal scrollbar from appearing */
}

/* Makes all links have no underline by default */
a {
  text-decoration: none;
  color: inherit;
}

/* Makes lists have no bullet points by default */
ul {
  list-style: none;
}

/* Makes images never overflow their container */
img {
  max-width: 100%;
  display: block;
}

/* === REUSABLE TAG COMPONENT ===
   These are the little pill-shaped labels used throughout the site */
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px; /* Makes it pill shaped */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-family: var(--font-body);
}

/* Smaller version of the tag for project cards */
.tag.tag-small {
  padding: 3px 10px;
  font-size: 11px;
}

/* === SECTION LAYOUT ===
   These styles apply to every section on the page */
.section {
  padding: 100px 40px; /* Top/bottom space, left/right space */
}

/* This is the inner wrapper that limits content width and centers it */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto; /* Centers the content horizontally */
}

/* The small uppercase label above each section title, e.g. "About" */
.section-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  margin-bottom: 12px;
}

/* The large heading in each section */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 48px;
  line-height: 1.1;
}

/* === NAVBAR ===
   The navigation bar that sticks to the top of the page */
.navbar {
  position: fixed;       /* Stays at the top even when you scroll */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;          /* Sits on top of everything else */
  display: flex;
  justify-content: space-between; /* Pushes logo left and links right */
  align-items: center;
  padding: 26px 40px;
  background: rgba(242, 244, 247, 0.92); /* Slightly transparent background */
  backdrop-filter: blur(12px);  /* Blurs what's behind the navbar */
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

/* Your initials logo on the left */
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

/* The row of navigation links on the right */
.nav-links {
  display: flex;
  gap: 36px; /* Space between each link */
}

/* Individual nav link styles */
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}

/* When you hover over a nav link, it turns ink blue and underlines */
.nav-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Blue pill button for the Contact nav link */
.nav-contact-btn {
  background: var(--accent) !important;
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}

.nav-contact-btn:hover {
  background: #162d6e !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

/* The three lines of the hamburger icon */
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO SECTION ===
   The first big section with your name and photo */
.hero {
  min-height: 100vh;
  display: flex;
  background: var(--bg-dark);  /* Dark base — gray panel clips over it */
  overflow: hidden;
}

/* The left side with your text — clipped into a diagonal right edge */
.hero-content {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 7% 80px 10%;
  background: var(--bg);
  clip-path: polygon(0 0, calc(100% - 100px) 0, 100% 100%, 0 100%);
  position: relative;
  z-index: 2;
}


/* Constrains text width so it never stretches too wide */
.hero-text {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* Small text above your name */
.hero-eyebrow {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

/* Your name — the biggest text on the page */
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* Degree / location line directly below the name */
.hero-tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

/* One-liner description below your name */
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

/* The row of skill tags in the hero */
.hero-tags {
  display: flex;
  flex-wrap: wrap; /* Wraps to next line if screen is too narrow */
  gap: 10px;
  margin-bottom: 40px;
}

/* Row of tool logos between tags and CTA */
.hero-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-logos img {
  height: 36px;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity var(--transition), transform var(--transition);
  filter: grayscale(20%);
}

.hero-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
  filter: grayscale(0%);
}

/* The two call-to-action buttons */
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* "Get In Touch" — filled blue button */
.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #162d6e; /* Slightly darker blue on hover */
  transform: translateY(-2px); /* Moves up 2px on hover — subtle lift effect */
}

/* "View Projects" — outlined button */
.btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* The right side with your photo — sits on the dark hero background */
.hero-photo {
  flex: 1;
  position: relative;
  margin-left: -80px;   /* Slides behind the diagonal edge */
  z-index: 1;
  overflow: hidden;
}

/* Photo as a bottom-anchored cutout against the dark panel */
.hero-photo img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-40%);
  height: 96%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: grayscale(6%);
}

/* === STATS BAR ===
   The row of achievement numbers below the hero */
.stats-bar {
  background: var(--bg-dark);  /* Dark navy background */
  padding: 36px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Individual stat item */
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* The big number */
.stat-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

/* The label below the number */
.stat-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* The vertical divider lines between stats */
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

/* Hover tooltip for stats (e.g. language breakdown) */
.stat-has-tooltip {
  position: relative;
}

.stat-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #10192e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 190px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 10;
}

/* Small arrow pointing up to the stat */
.stat-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #10192e;
}

.stat-has-tooltip:hover .stat-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.stat-tooltip ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-tooltip li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.stat-tooltip li span:first-child {
  color: #ffffff;
  font-weight: 600;
}

.stat-tooltip li span:last-child {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* === ABOUT SECTION === */
.about {
  background: var(--bg-white); /* White background to contrast with gray sections */
}

/* Two-column layout: text on left, details on right */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 60px;
  align-items: start;
}

/* The paragraphs of text on the left */
.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Bitmoji image on the right — dark card to match the image's navy background */
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0c1a2e;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.about-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  image-rendering: high-quality;
}

/* Each row of detail information on the right */
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

/* The label like "Degree", "Location" */
.detail-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 100px;
}

/* The value like "MSc Financial Economics" */
.detail-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

/* === PROJECTS SECTION === */
.projects {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.projects-bg-left {
  position: absolute;
  inset: 0;
  width: 62%;
  clip-path: polygon(0 0, calc(100% - 90px) 0, 100% 100%, 0 100%);
  background: var(--bg);
  z-index: 1;
}

.projects-bg-right {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.projects .section-inner {
  position: relative;
  z-index: 2;
}

/* 2-row horizontal scroll — all cards equal width, fills column by column */
.projects-grid {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 420px;
  gap: 24px;
  overflow-x: scroll;
  scrollbar-width: none;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

/* Individual project card */
.project-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Lifts the card slightly on hover */
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.12);
  border-color: var(--accent-border);
}

/* The big faded number like "01", "02" */
.project-number {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
  min-width: 52px;
}

/* The content next to the number */
.project-content {
  flex: 1;
}

/* Row of tags at the top of the project */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

/* Project title */
.project-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Project description text */
.project-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* Row of highlight stats at the bottom of each project */
.project-highlights {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Individual highlight stat */
.project-highlights span {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* "View on GitHub ↗" link at the bottom of each project card */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 7px 16px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  text-decoration: none;
}

.project-link:hover {
  background: #162d6e;
  transform: translateY(-1px);
  opacity: 1;
}

/* === EXPERIENCE SECTION === */
.experience {
  background: var(--bg-white);
}

/* The vertical timeline container */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Each row in the timeline */
.timeline-item {
  display: grid;
  grid-template-columns: 160px 24px 1fr; /* Date | Dot | Content */
  gap: 0 24px;
  padding-bottom: 48px;
  position: relative;
}

/* The date on the left */
.timeline-left {
  padding-top: 4px;
  text-align: right;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
}

/* Company logo below the date */
.timeline-logo {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.timeline-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.timeline-item:first-child .timeline-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.timeline-logo-fallback {
  display: none;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  align-items: center;
  justify-content: center;
}

/* The blue dot in the middle of the timeline */
.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%; /* Makes it a circle */
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 3px var(--accent-border);
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* The vertical line connecting the dots */
.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 48px); /* Extends to connect to the next dot */
  background: var(--border);
  z-index: 0;
}

/* The content on the right side of each timeline item */
.timeline-right {
  padding-top: 0;
}

/* Timeline content block */
.timeline-right {
  display: block;
  color: inherit;
  border-radius: 8px;
  padding: 16px;
  margin: -16px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  transform-origin: left center;
}

.timeline-item:hover .timeline-right {
  background: var(--accent-light);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.timeline-item:hover .timeline-role {
  color: var(--accent);
}

/* Job title */
.timeline-role {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Company name */
.timeline-company {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

/* Bullet points for each role */
.timeline-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

/* Custom bullet point (a small blue dot) */
.timeline-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === SKILLS SECTION === */
.skills {
  background: var(--bg);
}

/* Two equal columns: technical left, soft right */
.skills-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Each column */
.skill-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Column heading */
.skill-column-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 4px;
}

/* Each group inside a column */
.skill-group {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Sub-group title */
.skill-group-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Tag row */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tools & Software centered below the two columns */
.tools-section {
  margin-top: 48px;
  text-align: center;
}

.tools-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.tools-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition);
}

.tool-item:hover {
  transform: translateY(-4px);
}

.tool-item img {
  height: 48px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

.tool-item span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* === EDUCATION SECTION === */
.education {
  background: var(--bg-white);
}

/* Three-column grid for education cards */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Individual education card */
.edu-card {
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.edu-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.10);
}

.edu-card:hover .ext-arrow {
  opacity: 1;
}

/* University logo — top-right, pinned to its own grid column */
.edu-logo {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  height: 70px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

/* Text content always in left column */
.edu-degree,
.edu-school,
.edu-note {
  grid-column: 1;
}

/* Degree name */
.edu-degree {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

/* University name */
.edu-school {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Extra note below school name */
.edu-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* === CONTACT SECTION === */
.contact {
  background: var(--bg-dark); /* Dark navy background */
}

/* Override text colors for dark background */
.contact .section-label {
  color: rgba(255,255,255,0.5);
}

.contact .section-title {
  color: #ffffff;
}

/* Subtitle text */
.contact-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-top: -24px;
  margin-bottom: 48px;
  font-weight: 300;
}

/* Social row: icons on the left, contact details on the right */
.contact-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition);
}

.social-icon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.contact-detail-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 40px;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* === GLOBAL HOVER EFFECTS === */

/* Tags scale up slightly on hover */
.tag {
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.tag:hover {
  transform: scale(1.07) translateY(-1px);
  box-shadow: 0 3px 10px rgba(30, 58, 138, 0.15);
}

/* Skill groups lift and glow */
.skill-group {
  transition: all var(--transition);
}
.skill-group:hover {
  border-color: var(--accent-border);
  box-shadow: 0 6px 24px rgba(30, 58, 138, 0.10);
  transform: translateY(-3px);
}

/* Stats pulse on hover */
.stat {
  transition: transform var(--transition);
  cursor: default;
}
.stat:hover {
  transform: scale(1.08);
}

/* Nav logo pulses */
.nav-logo {
  transition: color var(--transition), transform var(--transition);
  cursor: pointer;
}
.nav-logo:hover {
  color: var(--accent);
  transform: scale(1.05);
}


/* === SCROLL ANIMATIONS ===
   These classes are added/removed by JavaScript.
   Elements start invisible and slide up, then
   JavaScript adds 'visible' to make them appear. */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes — these stagger the animations
   so items don't all appear at the same time */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* === RESPONSIVE DESIGN ===
   These rules apply only when the screen is
   narrower than the specified width (mobile/tablet) */

/* Tablet — screens narrower than 900px */
@media (max-width: 900px) {
  /* Stack hero vertically on tablet/mobile */
  .hero {
    flex-direction: column-reverse; /* Photo goes on top */
  }

  .hero-content {
    flex: none;
    padding: 48px 32px 60px;
    text-align: center;
    align-items: center;
    clip-path: none;   /* Remove diagonal on small screens */
    background: var(--bg);
  }

  .hero-text {
    max-width: 100%;
  }

  /* Full-width photo panel on mobile */
  .hero-photo {
    width: 100%;
    height: 50vh;
    margin-left: 0;
    flex: none;
    overflow: hidden;
  }

  .hero-photo img {
    position: static;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: top center;
  }

  /* Center tags on mobile */
  .hero-tags, .hero-cta {
    justify-content: center;
  }

  /* Stack about grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Single column projects on mobile */
  .projects-grid {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-rows: none;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  /* Stack skills columns on mobile */
  .skills-columns {
    grid-template-columns: 1fr;
  }

  /* Single column education */
  .edu-grid {
    grid-template-columns: 1fr;
  }

  /* Simplify timeline on mobile */
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-left {
    text-align: left;
    padding-bottom: 4px;
  }

  .timeline-logo {
    justify-content: flex-start;
    margin-top: 6px;
  }

  .timeline-dot {
    display: none; /* Hide dots on mobile */
  }

  /* Reduce stats gap */
  .stats-bar {
    gap: 32px;
  }

  .stat-divider {
    display: none;
  }
}

/* === LARGE SCREENS (≥ 1440px) ===
   Better proportions for wide monitors */
@media (min-width: 1440px) {
  :root {
    --max-width: 1300px;
  }

  .navbar {
    padding: 20px clamp(40px, 5vw, 120px);
  }

  .hero-content {
    padding-left: clamp(80px, 8vw, 200px);
    padding-right: clamp(60px, 6vw, 140px);
  }

  .hero-text {
    max-width: 600px;
  }

  .section {
    padding: 120px clamp(40px, 5vw, 120px);
  }

  .stats-bar {
    padding: 40px clamp(40px, 5vw, 120px);
  }
}

/* === ULTRA-WIDE (≥ 1920px) ===
   2K / 4K displays */
@media (min-width: 1920px) {
  :root {
    --max-width: 1520px;
  }

  .navbar {
    padding: 24px clamp(60px, 8vw, 240px);
  }

  .hero-content {
    padding-left: clamp(100px, 9vw, 260px);
    padding-right: clamp(80px, 7vw, 180px);
  }

  .hero-text {
    max-width: 700px;
  }

  .hero-name {
    font-size: clamp(50px, 3.6vw, 74px);
  }

  .section {
    padding: 130px clamp(60px, 8vw, 220px);
  }

  .stats-bar {
    padding: 48px clamp(60px, 8vw, 220px);
    gap: 80px;
  }

  .section-title {
    font-size: clamp(50px, 4vw, 72px);
  }
}

/* Mobile — screens narrower than 600px */
@media (max-width: 600px) {
  /* Reduce section padding */
  .section {
    padding: 60px 24px;
  }

  /* Show hamburger menu */
  .nav-toggle {
    display: flex;
  }

  /* Hide nav links — JavaScript will toggle them */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }

  /* When menu is open, show the links */
  .nav-links.open {
    display: flex;
  }

  .navbar {
    padding: 16px 24px;
  }

  .hero-content {
    padding: 40px 20px 48px;
  }

  .stats-bar {
    padding: 28px 24px;
  }
}