/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

/* Accent gradient for modern purple -> gradient text */
:root {
  --accent-gradient: linear-gradient(90deg,#7A5DE8 0%, #B65FCF 100%);
  --accent-fallback: #B65FCF;
}

/* Alternate lighter purple for experience card titles */
:root {
  --accent-alt-gradient: linear-gradient(90deg,#9f7be8 0%, #caa4f3 100%);
  --accent-alt-fallback: #CBB0F4;
}

/* Even lighter pink-leaning gradient for experience subheadings (company names) */
:root {
  --accent-sub-gradient: linear-gradient(90deg,#f2c1f7 0%, #ffd7f0 100%);
  --accent-sub-fallback: #F3D0F6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #0f1113 0%, #17181b 60%, #1d2026 100%);
  color: #d0d0d0;
}

html { scroll-behavior: smooth; }

p { color: #bfbfbf; line-height: 1.6; }

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* NAV */

nav, .nav-links { display: flex; }

/* Desktop navigation: logo left, links right */
#desktop-nav {
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15,16,18,0.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

/* Mobile hamburger nav (hidden on desktop) */
#hamburger-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15,16,18,0.55);
  z-index: 1001;
}

.nav-links { gap: 1.25rem; list-style: none; font-size: 1rem; margin-left: auto; }
#desktop-nav .logo { display: block; }

a { color: #cfcfcf; text-decoration: none; }

a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 6px; }

.logo { font-size: 1.05rem; font-weight: 600; color: #B65FCF; }

/* Gradient text utility applied to elements that previously used purple */
.accent-gradient-text {
  color: var(--accent-fallback);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .accent-gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #d0d0d0;
  transition: transform 220ms ease, opacity 160ms ease;
}

.menu-links {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #242629;
  width: 220px;
  max-height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  transition: max-height 260ms ease-in-out, padding 260ms ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 1rem;
  color: #e6e6e6;
  text-decoration: none;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
  opacity: 1;
}

/* SECTIONS */

/* top offset matches nav height */
main, section { padding-top: 72px; }

section {
  margin: 0 auto;
  max-width: 1100px;
  padding: 3.5rem 1.5rem;
  box-sizing: border-box;
}

.section-container { display: flex; gap: 2.5rem; }

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  align-items: center;
}

.prof-pic {
    border-radius: 50%;
}
.section__pic-container {
  display: flex;
  height: 320px;
  width: 320px;
  margin: auto 0;
  align-items: center;
  justify-content: center;
}
.prof-pic { max-width: 100%; height: auto; border-radius: 50%; display: block; }

.section__text { max-width: 720px; }

.details-container { margin: 0; }

/* About (profile) specific: center layout and scale image */
/* About (profile) specific: center layout and scale image */
#about { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; padding-top: 110px; }
#about .section__pic-container { width: 220px; height: 220px; }
#about .section__text { max-width: 760px; }

/* Education: smaller image and compact card */
/* Education: smaller image and compact card */
#education .section__pic-container { width: 240px; height: 240px; }
#education .details-container { max-width: 640px; padding: 1.25rem 4rem; margin: 0 auto; }

#education .details-container-upper {
  display: block;
  max-width: 640px; padding: 1rem; margin: 0 auto;
}

/* Column that holds the education headings and Degrees card so they align */
.education-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}


/* Center education headings with the card */
#education .section__text__p1,
#education .title { text-align: center; }
#education .details-container { margin-left: auto; margin-right: auto; }

@media (min-width: 900px) {
  /* Use a normal flex row: center the headings/card and keep the image to the right without overlap */
  #education .section-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

  #education .details-container-upper,
  #education .details-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
  }

  #education .section__pic-container {
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
    margin-left: 5rem; /* add breathing room between image and text/card */
  }
}
.logo {
    color: #B65FCF;
}
.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h1 {
    /* fallback color preserved for non-supporting browsers */
    color: var(--accent-fallback);
}
.title {
  font-size: 2.4rem;
  text-align: center;
}

/* Apply gradient text to primary purple text selectors */
.logo,
h1,
.title,
.experience-sub-title,
.project-links a,
.details-container.highlight h3,
.project-title {
  /* baseline fallback color */
  color: var(--accent-fallback);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .logo,
  h1,
  .title,
  .experience-sub-title,
  .project-links a,
  .details-container.highlight h3,
  .project-title {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  filter: brightness(0.9) invert(1.0) sepia(.5) hue-rotate(100deg) saturate(200%);
}

/* BUTTONS */

.btn-container { display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; }

.btn {
  font-weight:600;
  transition: transform 180ms ease, box-shadow 180ms ease;
  padding: 0.8rem 1.2rem;
  border-radius:999px;
  display:inline-flex; align-items:center; justify-content:center;
}

.btn-color-1 {
  background: linear-gradient(90deg,#B65FCF 0%, #7A5DE8 100%);
  color: white; border: none; box-shadow: 0 8px 28px rgba(96,42,158,0.18);
}
.btn-color-1:hover { transform: translateY(-3px); }

.btn-color-2 { background: transparent; color: #d0d0d0; border:1px solid rgba(200,200,200,0.06); }
.btn-color-2:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  border: 1px solid rgba(163,163,163,0.06);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Highlighted experience card (current role) */
.details-container.highlight {
  border-left: 4px solid #B65FCF;
  padding-left: 1.25rem;
  background: linear-gradient(180deg, rgba(182,95,207,0.03), rgba(255,255,255,0.01));
}

.details-container.highlight h3 { color: #F3E8FF; }
.details-container.highlight ul { text-align: left; margin-left: 1rem; }

/* Skills card: visually separate from other experience items */
.skills-card {
  flex-basis: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  text-align: left;
}
.skills-card .article-container {
  gap: 1rem; justify-content:flex-start; flex-wrap:wrap;
}
.skills-card article { min-width:180px; align-items:center; gap:0.6rem; }

/* Projects as text list */
.project-list { list-style:none; padding:0.5rem 0; display:flex; flex-direction:column; gap:1rem; }
.project-list li { display:flex; flex-direction:column; gap:0.5rem; padding:0.75rem 1rem; border-radius:10px; background: rgba(255,255,255,0.015); }
.project-links a { color:#B65FCF; margin-right:1rem; text-decoration:none; font-weight:600; }
.project-links a:hover { text-decoration:underline; }

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.icon {
    background: url(black.png);
    filter: brightness(0.9) invert(1.0) sepia(.5) hue-rotate(100deg) saturate(200%);
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: #E0BBE4;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container .project-img {
  height: 40vh;
}

.article-container {
  display: flex;
  text-align: initial;
  /* height: 40vh; */
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}
.article-container ul {
    display: flex;
    text-align: left;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
    margin-left: 2.5rem;
}

li {
    color: white;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

h3 {
    color: white;
}
article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.btn a{
    color:white;
  }

#projects h2 {
    color: white;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: #1d2026;
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title { margin:0; color:#eaeaea; }

/* small visual tweaks */
.experience-sub-title { letter-spacing:0.2px; }
.section__text__p2 { opacity:0.95; }

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* Desktop: make experience cards a fixed-size horizontal scroller (scoped to #experience) */
@media (min-width: 1000px) {
  #experience .about-containers {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  #experience .about-containers::-webkit-scrollbar { height: 10px; }
  #experience .about-containers::-webkit-scrollbar-thumb { background: rgba(150,150,150,0.15); border-radius: 8px; }

  #experience .about-containers .details-container {
    flex: 0 0 32%; /* three cards visible width-wise */
    min-width: 300px;
    scroll-snap-align: center;
  }
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgba(250, 250, 250, 0.02);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

/* Center footer nav links (override header-specific layout) */
footer .nav-links { margin-left: 0 !important; justify-content: center !important; gap: 1rem; }
footer .nav-links-container { display: flex; justify-content: center; }
footer nav { display:flex; justify-content:center; }

/* Ensure experience card headings and Skills/Projects section titles use the accent gradient */
#experience .details-container h2,
#experience .details-container h3,
#skills .title,
#projects .title {
  color: var(--accent-fallback);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  #experience .details-container h2,
  #experience .details-container h3,
  #skills .title,
  #projects .title {
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
  }
}

/* Apply the lighter alternate gradient to the experience card titles */
#experience .details-container h2,
#experience .experience-sub-title {
  color: var(--accent-alt-fallback);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  #experience .details-container h2,
  #experience .experience-sub-title {
    background: var(--accent-alt-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
  }
}

/* Pink-leaning gradient for company names / subheadings */
#experience .details-container h3 {
  color: var(--accent-sub-fallback);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  #experience .details-container h3 {
    background: var(--accent-sub-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
  }
}