/* Hero Section Styles */
.hero-section {
  position: relative;
  width: 100%;
  /* 26vw keeps the whole cloud/laptop illustration (image rows ~195-600 of 750) in frame on
     very wide windows; it only exceeds 450px above ~1730px (CSS) wide. */
  min-height: max(450px, 26vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem 0;
  background-image: url('../img/hero-850.avif');
  /* Sized to the hero box itself (not the viewport, as background-attachment: fixed did),
     so the illustration isn't cropped at the hero's bottom edge or shifted on scroll. */
  background-size: cover;
  background-position: right 55%;
  background-repeat: no-repeat;
  background-color: rgb(255, 255, 255);
  margin: 0;
}

/* Use the large image whenever the hero is rendered wider than the small file
   (matches the <link rel="preload"> srcset so the browser downloads only one). */
@media (min-width: 851px), (min-resolution: 2dppx) {
  .hero-section {
    background-image: url('../img/hero-1550.avif');
  }
}

.hero-content {
  text-align: left;
  max-width: 750px;
  padding-top: 0;
  padding-left: 10rem;
  background-color: transparent;
  border-radius: 10px;
}

.hero-heading {
  font-size: 2.7rem;
  font-weight: 680;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: #1a1a1a;
}

.hero-subheading {
  font-size: 1.1rem;
  max-width: 550px;
  font-weight: 650;
  margin-bottom: 2rem;
  color: #222222;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* =========================
   About / Contact / Resume Cards
   ========================= */

.aboutme-section {
  position: relative;
  width: 100%;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3rem 1rem;
  background-image: linear-gradient(rgba(255, 255, 255, 0.447), rgba(255, 255, 255, 0.589)), image-set(
    url('../img/projects-850.avif') 1x,
    url('../img/projects-1600.avif') 2x
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Section wrapper */
.aboutme-content {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;

  color: #111111;
  background: none;
  text-shadow: none;
  -webkit-text-fill-color: #111111;
}

/* Shared card style */
.info-card {
  background: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

/* About Me card (full width) */
.info-card--about {
  width: 100%;
}

/* Row for Contact + Resume cards */
.info-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* Stack on small screens */
@media (max-width: 800px) {
  .info-card-row {
    grid-template-columns: 1fr;
  }
}

/* Hover polish */
.info-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: rgba(17, 17, 17, 0.16);
}

/* Clickable cards (Contact / Resume) */
.info-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Focus state for accessibility */
.info-card-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 4px;
  border-radius: 18px;
}

/* Card titles (Contact / Resume) */
.info-card-title {
  font-size: 1.15rem;
  font-weight: 720;
  margin: 0 0 0.35rem 0;
  color: #1a1a1a;
}

/* Card body text */
.info-card-text {
  margin: 0;
  color: #2b2b2b;
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.4;
}

/* Keep your About Me typography */
.aboutme-heading {
  font-size: 2.1rem;
  font-weight: 680;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  color: #1a1a1a;
  text-align: left;
}

.aboutme-text {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #222222;
  line-height: 1.55;
}

/* Experience card */
.xp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.xp-item {
  padding-left: 1rem;
  border-left: 3px solid rgba(37, 99, 235, 0.35);
}

.xp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
}

.xp-role {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 720;
  line-height: 1.3;
  color: #1a1a1a;
}

/* .aboutme-content forces -webkit-text-fill-color; let these use their own colors */
.xp-org,
.xp-dates,
.xp-points a,
.aboutme-text a,
.projects-text a {
  -webkit-text-fill-color: currentColor;
}

.xp-org {
  color: #244a9a;
}

.xp-dates {
  font-size: 0.92rem;
  font-weight: 650;
  color: #505a67;
  white-space: nowrap;
}

.xp-points {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: #222222;
  font-size: 1rem;
  font-weight: 520;
  line-height: 1.5;
}

.xp-points li + li {
  margin-top: 0.25rem;
}

.xp-points a,
.aboutme-text a,
.projects-text a {
  color: #1d4ed8;
  text-underline-offset: 2px;
}

.xp-edu {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.10);
  font-size: 1rem;
  font-weight: 560;
  color: #222222;
}

/* Skills & Tools card */
.skills-intro {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 560;
  line-height: 1.55;
  color: #222222;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

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

.skill-group {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.skill-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 720;
  color: #1a1a1a;
}

.skill-how {
  margin: 0 0 0.65rem;
  font-size: 0.96rem;
  font-weight: 520;
  line-height: 1.5;
  color: #222222;
}

.skill-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chips li {
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef3ff;
  border: 1px solid rgba(36, 74, 154, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
  color: #244a9a;
}

/* FAQ card (collapsible; content stays in the HTML for search and answer engines) */
.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 1rem;
}

.faq-q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1a1a;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: #244a9a;
}

.faq-item[open] > .faq-q::after {
  content: "\2013";
}

.faq-q:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-a {
  padding: 0 0 0.9rem;
  font-size: 0.98rem;
  font-weight: 520;
  line-height: 1.55;
  color: #222222;
}

.faq-a p {
  margin: 0;
}

.faq-a a {
  color: #1d4ed8;
}

.xp-stats {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #244a9a;
}

.skills-langs {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  font-weight: 560;
  color: #222222;
}

.skills-intro a {
  color: #1d4ed8;
}

/* .aboutme-content forces -webkit-text-fill-color; let the new elements keep their colors */
.skill-chips li,
.faq-q::after,
.faq-a a,
.xp-stats,
.skills-intro a {
  -webkit-text-fill-color: currentColor;
}


.projects-content {
  color: #111111;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #111111;
  max-width: 1200px;
  align-items: center;
  margin: 0 auto;
}

.projects-heading {
  font-size: 2.1rem;
  font-weight: 680;
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #1a1a1a;
  text-align: left;
}

.projects-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #222222;
}


/* Slider Section (light tan background overrides) */
.slider-section {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background-image: linear-gradient(rgba(177, 173, 220, 0.501), rgba(224, 249, 253, 0.651)), url('../img/projects-1600.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 2rem 0 3rem;
}

.slider-section .hero-slider {
  position: relative;
  background-image: linear-gradient(rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.629)), url('../img/projects-1600.avif');
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
}

.slider-section .hero-viewport {
  min-height: 0px;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.slider-section .hero-title {
  color: #111111;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: #111111;
}

.slider-section .hero-subtitle,
.slider-section .hero-text {
  color: #444444;
  text-shadow: none;
}

.hero-slide-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(120deg, #114acf, #1a5cff);
  box-shadow: 0 12px 20px rgba(17, 24, 39, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px rgba(17, 24, 39, 0.22);
}

.slider-section .hero-arrow {
  background: #ffffff;
  color: #111111;
  border-color: rgba(17, 24, 39, 0.15);
}

.slider-section .hero-arrow:hover {
  background: #f2f2f2;
  border-color: rgba(17, 24, 39, 0.25);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.15);
}

.slider-section .hero-dot {
  background: rgba(17, 24, 39, 0.2);
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: none;
}

.slider-section .hero-dot.is-active {
  background: #111111;
  border-color: #111111;
  box-shadow: none;
}
/* ---------------------------------------------------------
   Responsive Breakpoints
--------------------------------------------------------- */
@media (max-width: 480px) {
  .hero-section {
    min-height: 500px;
    padding: 1.5rem 1rem;
    background-position: center left;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 0;
    text-align: center;
    align-items: center;
  }

  .hero-heading {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .hero-subheading {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #000000;
    text-shadow: 1px 1px 2px #f2f2f2;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }

  .aboutme-content {
    padding: 0 1rem;
  }
  .projects-content {
    padding: 0 1rem;
  } 
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-section {
    min-height: 500px;
    padding: 2rem 1.5rem;
    background-position: left;   
    background-attachment: scroll; 
  }

  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .aboutme-content {
    padding: 1rem 4rem;
    max-width: 1080px;
  }
  .hero-heading {
    font-size: 2.3rem;
  }
  .projects-content {
    padding: 1rem 4rem;
    max-width: 1080px;
  }
  .hero-subheading {
    font-size: 1.05rem;
  }

  .slider-section .hero-viewport {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .hero-section {
    min-height: 430px;
    padding: 2.5rem 2rem;
    background-attachment: scroll;
  }
  .aboutme-content {
    padding-left: 5rem;
    max-width: 1080px;
    margin: 0 auto;
  }
   .projects-content {
    padding-left: 5rem;
    max-width: 1080px;
    margin: 0 auto;
  } 
  .hero-content {
    padding-left: 5rem;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-subheading {
    font-size: 1.08rem;
    max-width: 500px;
  }
  
  .slider-section .hero-viewport {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}
