
:root {
  --bg: #0b0f14;
  --text: #eef2f7;
  --muted: rgba(238, 242, 247, 0.72);
  --muted-2: rgba(238, 242, 247, 0.55);
  --line: rgba(238, 242, 247, 0.18);

  --overlay: rgba(11, 15, 20, 0.35);

  /* accents */
  --accent: #5ea2ff; /* experience accent */
  --edu-accent: #26d7c5; /* education teal */
  --ice: rgba(160, 210, 255, 1);

  /* surfaces */
  --panel: rgba(238, 242, 247, 0.08);
  --panel-2: rgba(238, 242, 247, 0.06);
  --ring: rgba(94, 162, 255, 0.18);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: ui-sans-serif, system-ui, -apple-system,
      BlinkMacSystemFont, "Segoe UI", sans-serif;
  
}

/* Helps anchors not hide behind fixed header */
section {
  scroll-margin-top: 90px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 20, 0.7),
    rgba(11, 15, 20, 0.1)
  );
  backdrop-filter: blur(10px);
}

/* ✅ 3-column layout: left | center | right */
.header-inner {
  width: 100%;
  padding: 18px 24px; /* controls distance from screen edge */

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
/* center the nav block (your underline styles stay the same) */
.nav {
  justify-self: center;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center; /* important for wrapping */
  align-items: center;
  white-space: nowrap;
}

/* right side socials */
.social-links {
  justify-self: end;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* icon styling (snowflake + social icons) */
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
  color: rgba(160, 210, 255, 0.95);
}


.icon-link:hover {
  color: #d6ecff;
}

/* make bootstrap icons consistent */
.icon-link i {
  font-size: 20px;
  line-height: 1;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  padding: 6px 2px;
  transition: color 200ms ease;
}

.nav-link:hover {
  color: rgba(160, 210, 255, 0.75);
}

.nav-link.active {
  color: rgba(160, 210, 255, 0.95);
}

.nav-link:hover {
  transform: translateY(-0.5px);
}



@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "left right"
      "nav nav";
    row-gap: 12px;
  }

  .header-inner > a.icon-link {
    grid-area: left;
  }

  .social-links {
    grid-area: right;
  }

  .nav {
    grid-area: nav;
    justify-self: start;
    justify-content: flex-start;
    gap: 12px;
    white-space: normal; /* allow wrap on mobile */
  }
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 18px 60px; /* top accounts for fixed header */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(11, 15, 20, 0.2),
      rgba(11, 15, 20, 0.55)
    ),
    linear-gradient(to bottom, rgba(11, 15, 20, 0.1), var(--overlay));
}

.hero-content {
  position: relative;
  max-width: 780px;
  width: 100%;
  text-align: center;
  padding: 0 10px;
  animation: fadeUp 700ms ease-out both;
}

.hero-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.4px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.85);
}

.hero-subtitle {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;        /* 18px */
  line-height: 1.75rem;
  max-width: 36rem;
  margin: 0 auto;

  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.85);
}

/* Tailwind sm:text-xl */
@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.25rem;       /* 20px */
  }
}

.hero-support {
  margin: 14px auto 0;
  max-width: 64ch;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  margin-top: 26px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  letter-spacing: 0.35px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.hero-cta:hover {
  border-bottom-color: rgba(160, 210, 255, 0.7);
  transform: translateY(-1px);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--muted-2);
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.scroll-line {
  width: 1px;
  height: 34px;
  background: var(--line);
  animation: pulse 1600ms ease-in-out infinite;
}

/* ---------- Projects ---------- */
.projects {
  padding: 110px 18px;
  border-top: 1px solid rgba(238, 242, 247, 0.06);
  background: var(--bg);
}

.projects-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.projects-title {
  margin: 0 0 70px;
  text-align: center;
  font-size: 32px; /* matches About */
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Card */
.project-card {
  background: rgba(238, 242, 247, 0.06);
  border-radius: 16px;
  padding: 22px 22px 20px;
  box-shadow: 0 0 0 1px rgba(238, 242, 247, 0.08) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  background: rgba(238, 242, 247, 0.075);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(238, 242, 247, 0.10) inset;
}

/* Title */
.project-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}

/* Summary text — matches About font feel */
.project-desc {
  margin: 14px 0 0;
  max-width: 60ch;
  color: rgba(238, 242, 247, 0.88);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

/* Links */
.project-links {
  margin-top: 18px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.25px;

  text-decoration: none;
  color: rgba(160, 210, 255, 0.95);
  background: rgba(160, 210, 255, 0.14);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);

  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
/* Project image */
.project-card img {
  width: 100%;
  height: 160px;
  object-fit: contain; /* shows full logo/image */
  object-position: center;

  margin-bottom: 14px;
  padding: 12px;

  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(238, 242, 247, 0.08) inset;
}

.project-link:hover {
  transform: translateY(-1px);
  background: rgba(160, 210, 255, 0.22);
  box-shadow:
    0 10px 28px rgba(160, 210, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.project-link:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-title {
    margin-bottom: 46px;
  }
}

/* ---------- About ---------- */
.about {
  padding: 110px 18px 300px;
  background: #ffffff;
  color: #0b0f14;
  border-top: 1px solid rgba(11, 15, 20, 0.08);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 64px;
  color: #0b0f14;
}

.about-content {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}

/* Image */
.about-image {
  display: flex;
  justify-content: center;
  transform: translateY(-30px);
}

.about-image img {
  width: 300px;
  height: 300px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Text */
.about-text p {
  margin: 0 0 18px;
  max-width: 53ch;
  color: rgba(11, 15, 20, 0.92);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}
.about-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* desktop */
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 20px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;

  color: black;
  background: rgba(160, 211, 255, 0.389);
  border-radius: 999px;

  text-decoration: none;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.about-cta:hover {
  transform: translateY(-2px);
  background: rgba(5, 5, 5, 0.6);
  color: rgba(160, 210, 255, 0.75);

  box-shadow:
    0 2px 86x rgba(160, 210, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.351);
}

.about-cta:active {
  transform: translateY(0);
  background: rgba(5, 5, 5, 0.6);
  color: rgba(160, 210, 255, 0.75);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* Responsive */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about {
    padding: 110px 18px 300px;
    background: #ffffff;
    color: #0b0f14;
    border-top: 1px solid rgba(11, 15, 20, 0.08);
  }
  

  .about-image {
    display: flex;
    justify-content: center;
    transform: translateY(0px);
  }
  .about-cta {
    align-self: center; /* centers the button only */
  }

  .about-title {
    margin-bottom: 40px;
  }

  .about-image img {
    width: 260px;
    height: 260px;
  }
}

/* ---------- Experience + Education ---------- */
.experience {
  padding: 110px 18px;
  border-top: 1px solid rgba(238, 242, 247, 0.06);
  background: var(--bg);
}

.experience-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Section title (match About/Projects) */
.experience-title {
  margin: 0 0 70px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.experience-list {
  display: grid;
  gap: 54px; /* slightly tighter */
}

.xp-item {
  display: grid;
  grid-template-columns: 260px 70px 1fr; /* less wide */
  gap: 24px;
  align-items: start;
}

/* left column */
.xp-left {
  text-align: right;
  padding-top: 2px;
}

.xp-role {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(160, 210, 255, 0.95); /* icy blue */
}

.xp-dates {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: white;
}

/* icon column */
.xp-mid {
  display: grid;
  justify-items: center;
}

.xp-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(238, 242, 247, 0.08);
  color: rgba(160, 210, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(238, 242, 247, 0.06) inset;
}

/* right column */
.xp-company {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}

.xp-text {
  margin: 12px 0 0;
  max-width: 60ch;
  color: white;
  font-size: 14px;          /* match About */
  line-height: 1.5;
  font-weight: 500;         /* match About */
}

/* Education block inside experience */
.education-title {
  margin: 90px 0 46px;
  text-align: center;
  font-size: 28px;          /* smaller than Experience */
  font-weight: 800;
  letter-spacing: 0.2px;
}

.edu-item {
  display: grid;
  grid-template-columns: 260px 70px 1fr;
  gap: 24px;
  align-items: start;
}

.edu-left {
  text-align: right;
}

.edu-degree {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: rgba(160, 210, 255, 0.95); /* unify accent */
}

.edu-dates {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(238, 242, 247, 0.65);
}

.edu-mid {
  display: grid;
  justify-items: center;
}

.edu-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(238, 242, 247, 0.08);
  color: rgba(160, 210, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(238, 242, 247, 0.06) inset;
}

.edu-school {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}

.edu-line {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: white;
}

/* Responsive */
@media (max-width: 900px) {
  .xp-item,
  .edu-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .xp-left,
  .edu-left {
    text-align: left;
  }

  .xp-mid,
  .edu-mid {
    justify-items: start;
  }

  .experience-list {
    gap: 40px;
  }
}


/* ---------- Interests ---------- */
.interests {
  padding: 110px 18px;
  border-top: 1px solid rgba(238, 242, 247, 0.06);
  background: white;
}

.interests-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.interests-title {
  margin: 0 0 70px;
  text-align: center;
  font-size: 32px;        /* match About feel */
  font-weight: 800;
  letter-spacing: 0.2px;
  color: black;
}

.interest-list {
  display: grid;
  gap: 70px;
}

.interest {
  display: grid;
  grid-template-columns: 520px 1fr; /* slightly tighter than 560 */
  gap: 48px;
  align-items: start;
}

.interest-media {
  aspect-ratio: 16 / 9;
}

.interest-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interest-content {
  padding-top: 6px;
}

/* ✅ Heading aligned with icon */
.interest-heading {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: black;;
}

/* ✅ Uniform icon styling (SVG + Bootstrap icon) */
.interest-icon {
  width: 22px;
  height: 22px;
  font-size: 22px; /* for bootstrap <i> */
  flex: 0 0 auto;

  color: rgba(76, 163, 240, 0.95);
  filter: drop-shadow(0 0 6px rgba(160, 210, 255, 0.25));
}

/* ✅ Make text match About text style */
.interest-text {
  margin: 14px 0 0;
  max-width: 60ch;

  color: black;;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 980px) {
  .interest {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .interest-media img {
    height: 280px;
  }

  .interest-heading {
    font-size: 24px;
  }
}

/* ---------- Contact (match Projects cards) ---------- */
#contacts{
  padding: 110px 18px; /* match .projects padding */
  background: var(--bg);
  border-top: 1px solid rgba(238, 242, 247, 0.06);
  text-align: center;
}

#contacts h1{
  margin: 0 0 70px;     /* match projects-title spacing */
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}

/* Grid = same as projects-grid */
.contact-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Card = same feel as project-card */
.contact-card{
  background: rgba(238, 242, 247, 0.06);
  border-radius: 16px;
  padding: 28px 22px 24px;
  min-height: 190px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(238, 242, 247, 0.08) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-card:hover{
  transform: translateY(-2px);
  background: rgba(160, 210, 255, 0.18);
  box-shadow:
    0 12px 30px rgba(160, 210, 255, 0.22),
    0 0 0 1px rgba(160, 210, 255, 0.25) inset;
}

/* Icon */
.contact-card i{
  color: rgba(238, 242, 247, 0.95);
  font-size: 56px;
  line-height: 1;
  margin-bottom: 14px;
}

/* Text = similar to project-name/project-desc vibe */
.contact-card p{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(238, 242, 247, 0.90);
}



/* Responsive = same breakpoint behavior as projects */
@media (max-width: 980px){
  .contact-grid{
    grid-template-columns: 1fr;
  }

  #contacts h1{
    margin-bottom: 46px;
  }
}




/* ---------- Footer ---------- */
.footer {
  padding: 28px 18px 40px;
  border-top: 1px solid rgba(238, 242, 247, 0.06);
  color: var(--muted-2);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.85;
    transform: translateY(5px);
  }
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contact-head {
    margin-bottom: 46px;
  }

  .interest {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .interest-media img {
    height: 280px;
  }

  .interest-heading {
    font-size: 26px;
  }

  .interest-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .interest-list {
    gap: 46px;
  }
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .about-text {
    text-align: left;
  }

  .xp-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .xp-left {
    text-align: left;
  }

  .xp-mid {
    justify-items: start;
  }

  .experience-title {
    margin-bottom: 46px;
  }

  .experience-list {
    gap: 46px;
  }

  .edu-item {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .edu-left {
    text-align: left;
  }

  .edu-mid {
    justify-items: start;
  }

  .edu-degree,
  .edu-school {
    font-size: 28px;
  }

  .edu-dates,
  .edu-line {
    font-size: 18px;
  }

  .education-title {
    margin-bottom: 46px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    gap: 12px;
  }

  .hero-content {
    text-align: left;
  }
}
