/* =========================================================
   STEP 1: GLOBAL RESET & THEME TOKENS
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-body: #f4f4f5;
  --bg-surface: #ffffff;

  --accent: #db4a11;
  --accent-soft: #eef2ff;
  --accent-dark: #db4a11;

  --text-main: #0f172a;
  --text-muted: #4b5563;

  --border-subtle: rgba(148, 163, 184, 0.4);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);

  --radius-card: 18px;
  --radius-pill: 999px;

  --section-max-width: 1100px;
  --transition-fast: 0.25s ease;

  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   STEP 2: BODY & GENERIC SECTION LAYOUT
   ========================================================= */
body {
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
}

.section {
  padding: 3rem 1.5rem;
  max-width: var(--section-max-width);
  margin: 0 auto;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1,
h2,
h3 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* =========================================================
   STEP 3: TOP BAR (NAME + LINKS)
   ========================================================= */
.top-bar {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(10px);
  background: rgba(244, 244, 245, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-weight: 900;
}

/* name + role area */
.top-bar-left {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.brand-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* top-right links */
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.top-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-main);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.top-links a:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* =========================================================
   STEP 4: HERO CONTAINER (ABOUT)
   ========================================================= */
.hero {
  max-width: var(--section-max-width);
  margin: 2.75rem auto 0 auto;
  padding: 0 1.5rem 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

/* title style for greeting inside card */
.hero-greeting {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

/* =========================================================
   STEP 5: HERO LEFT COLUMN (IMAGE + NAV)
   ========================================================= */
.hero-left {
  padding-top: 0.25rem;
}

.hero-photo-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem;
  max-width: 660px;
}

.hero-photo-card img {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* =========================================================
   STEP 6: HERO RIGHT COLUMN (ABOUT TEXT CARD)
   ========================================================= */
.hero-about {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 2.1rem;
}

.hero-about p {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

/* =========================================================
   STEP 7: HERO SECTION NAV
   ========================================================= */
.section-nav {
  margin-top: 0.9rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.section-nav a {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-weight: 900;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.section-nav a:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* =========================================================
   STEP 8: PROJECTS SECTION (CARDS + IMAGES)
   ========================================================= */
#projects .projects-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.75rem 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: var(--accent);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-size: 1.2rem;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.project-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  text-decoration: none;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid #c7d2fe;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.project-link:hover {
  background: var(--accent-dark);
  color: #eef2ff;
  transform: translateY(-1px);
}

.project-overview {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.project-highlights {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.9rem;
  padding-left: 1.1rem;
}

.project-highlights li {
  margin-bottom: 0.2rem;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1.5fr));
  gap: 0.75rem;
}

.project-images.single-image {
  grid-template-columns: minmax(0, 1fr);
}

.project-images img,
.project1-img {
  width: 100%;
  max-height: 900px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-images img:hover,
.project1-img:hover {
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25);
}

/* ===== Special layout for Tableau project (Project 2) ===== */
.project-card--tableau .project-tableau-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.project-card--tableau .project-tableau-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card--tableau .project-tableau-image .project-images {
  display: block;
}

.project-card--tableau .project-tableau-image img {
  max-width: 420px;
  width: 100%;
  margin-left: auto;
}

/* =========================================================
   STEP 9: LIGHTBOX OVERLAY (IMAGE ZOOM)
   ========================================================= */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  object-fit: contain;
}


/* =========================================================
   STEP 10: WORKSHOPS SECTION (CARDS)
   ========================================================= */
#workshops .workshop-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.workshop-item {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.workshop-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: var(--accent);
}

.workshop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.workshop-item h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.workshop-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #c7d2fe;
}

.workshop-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.workshop-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent-dark);
  margin-top: 0.4rem;
}

.workshop-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.workshop-body li {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.workshop-body li::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.05rem;
}

.workshop-image {
  margin-top: 0.25rem;
  border-radius: 12px;
  overflow: hidden;
}

.workshop-image img {
  width: 100%;
  max-width: 380px;   /* optional: controls width like analytics cards */
  height: auto;
  max-height: 260px;  /* 👈 limit image height */
  display: block;
  transition: transform 0.3s ease;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px; /* optional for consistency */
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #f8fafc;
}


.workshop-item:hover .workshop-image img {
  transform: scale(1.03);
}

/* =========================================================
   STEP 11: CONTACT SECTION (PILLS)
   ========================================================= */
#contact h2 {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  font-weight: 1000;
}

.contact-card {
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.7);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border-color: var(--accent);
}

.email-card {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
}

.linkedin-card {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.github-card {
  background: linear-gradient(135deg, #ede7f6, #d1c4e9);
}

.contact-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -1rem 0 1.5rem;
}

.contact-card a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.contact-value {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

/* =========================================================
   STEP 12: FOOTER
   ========================================================= */
.site-footer {
  text-align: center;
  padding: 1.3rem 1rem 1.6rem;
  background: #111827;
  color: #d1d5db;
  font-size: 0.85rem;
}

.site-footer a {
  color: #a5b4fc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* =========================================================
   STEP 13: RESPONSIVE MEDIA QUERIES
   Phone → Tablet → Laptop/Desktop
   ========================================================= */

/* Small phones and up (base is already mobile-friendly) */
@media (max-width: 600px) {
  .section {
    padding: 2.2rem 1rem;
  }

  .hero {
    padding: 0 1rem 2.5rem;
    margin-top: 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .hero-about {
    padding: 1.6rem 1.5rem;
  }

  .hero-greeting {
    font-size: 1.6rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-images {
    grid-template-columns: 1fr;
  }

  #workshops .workshop-layout {
    grid-template-columns: 1fr;
  }

  .section-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: center;
  }

  .top-links {
    justify-content: center;
  }

  .contact-card {
    min-width: 100%;
  }
}

/* Tablets (portrait & small landscape) */
@media (min-width: 601px) and (max-width: 900px) {
  .section {
    padding: 2.6rem 1.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-about {
    padding: 1.8rem 1.7rem;
  }

  #workshops .workshop-layout {
    grid-template-columns: 1fr;
  }

  .project-card--tableau .project-tableau-layout {
    grid-template-columns: 1fr;
  }

  .project-card--tableau .project-tableau-image img {
    margin-inline: auto;
    max-width: 100%;
  }
}

/* Larger tablets & small laptops: keep two-column hero, relaxed grids */
@media (min-width: 901px) and (max-width: 1200px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
  }

  #workshops .workshop-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* =========================================================
   MOBILE STABILITY FIXES (NO STYLE CHANGES)
   ========================================================= */

/* 1. Prevent horizontal shaking */
body {
  overflow-x: hidden;
}

/* 2. Disable hover animations on touch devices */
@media (hover: none) {
  .project-card:hover,
  .workshop-item:hover,
  .project-images img:hover,
  .project1-img:hover,
  .top-links a:hover,
  .section-nav a:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* 3. Lock image dimensions to prevent reflow */
.project-images img,
.project1-img {
  width: 100%;
  border-radius: 10px;
  max-height: 320px;   /* 👈 controls image height */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* 4. Force stable single-column image grid on phones */
@media (max-width: 600px) {
  .project-images {
    grid-template-columns: 1fr;
  }
}

/* 5. Fix sticky header jitter on mobile (keeps same look) */
@media (max-width: 768px) {
  .top-bar {
    backdrop-filter: none;
    background: rgba(244, 244, 245, 0.98);
  }
}
/* ================= ANALYSIS EXPERIENCE ================= */

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.analysis-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;             /* Slightly more padding for better spacing */
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;          /* Minimum height for uniform card sizes */
}

.analysis-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.analysis-card h3 {
  margin-top: 12px;
  font-size: 1.15rem;        /* Slightly larger heading */
}

.analysis-card p {
  font-size: 0.95rem;
  margin: 10px 0 14px 0;     /* More spacing after paragraph */
  flex-grow: 1;
}

.analysis-card ul {
  padding-left: 18px;
  font-size: 0.92rem;
}

.analysis-img {
  width: 100%;
  max-height: 280px;         /* Slightly larger image */
  object-fit: cover;          /* Fill card nicely */
  border-radius: 12px;
  background: #f8f8f8;
  margin-bottom: 12px;
}


/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}
/* =========================================================
   ANALYTICS SECTION – ISOLATED IMAGE CONTROL
   ========================================================= */

#analytics .analytics-image {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.75rem;
}

#analytics .analytics-img {
  width: 100%;
  max-width: 380px;   /* 👈 YOU CONTROL ANALYTICS SIZE HERE */
  height: auto;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #f8fafc;
  cursor: pointer;
}

#analytics .analytics-text {
  display: flex;
  flex-direction: column;
}

/* Center Analytics images */
#analytics .analytics-image {
  display: flex;
  justify-content: center; /* center the image horizontally */
  margin-top: 0.75rem;    /* keep your existing spacing */
}


#analytics .analytics-img {
  width: 100%;
  max-width: 280px;
  max-height: 260px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #f8fafc;
}
/* Projects container as a 2-column grid */
#analytics .projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2rem; /* Space between cards */
}


/* Ensure images stay proportional */
#analytics .analytics-img {
  width: 100%;
  max-width: 280px;   /* Controls max width of image */
  max-height: 260px;  /* Controls max height */
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Text styling */
#analytics .analytics-text {
  display: flex;
  flex-direction: column;
  gap: 0.10rem;
}

/* Responsive: single column on small screens */
@media (max-width: 900px) {
  #analytics .projects-container {
    grid-template-columns: 1fr; /* 1 column on smaller screens */
  }

  #analytics .analytics-image {
    justify-content: center;
  }
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  object-fit: contain;
}
/* Make analytics images show pointer on hover */
#analytics .analytics-img {
  cursor: pointer; /* 👈 shows hand pointer */
  transition: transform 0.25s ease; /* optional: smooth hover effect */
}

#analytics .analytics-img:hover {
  transform: scale(1.03); /* optional: small zoom effect on hover */
}
/* Ensure clickable images show pointer on hover */
#analytics .analytics-img,
.project-images img,
.workshop-image img {
  cursor: pointer;       /* shows hand pointer */
  transition: transform 0.25s ease; /* optional smooth hover */
}

#analytics .analytics-img:hover,
.project-images img:hover,
.workshop-image img:hover {
  transform: scale(1.03); /* optional zoom on hover */
}

