/* ───────────────────────────────────────────── RESET & BASE ───────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    /* ensure anchor scrolls account for fixed header height */
  }
  body {
    font-family: Arial, sans-serif;
    text-align: center;
    overflow-x: hidden;
    color: #333;
  }
  
  /* ───────────────────────────────────────────── HEADER & NAV ───────────────────────────────────────────── */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #444;
    z-index: 10;
  }
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    flex: none;
  }
  .nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-menu a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 4px;
    transition: color 0.2s;
  }
  .nav-menu a:hover,
  .nav-menu a.active {
    color: #00aaff;
  }
  .nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #00aaff;
    transition: width 0.3s;
  }
  .nav-menu a:hover::after,
  .nav-menu a.active::after {
    width: 100%;
  }
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    display: block;
  }
  
  /* MOBILE NAV */
  @media (max-width: 768px) {
    .nav-menu {
      position: absolute;
      top: 100%;
      right: 0;
      background: rgba(0, 0, 0, 0.9);
      flex-direction: column;
      align-items: flex-start;
      width: 200px;
      padding: 1rem;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s;
    }
    .nav-menu.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
    .hamburger {
      display: flex;
    }
  }
  
  /* ───────────────────────────────────────────── HERO & SLIDESHOW ───────────────────────────────────────── */
  .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 4rem; /* space for fixed header */
  }
  .slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
  }
  .slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .slideshow-container img.active {
    opacity: 1;
  }
  /* ───────────────────────────────────────────────── OVERLAY ───────────────────────────────────────────────── */
  .overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 60px 20px 20px;
    max-width: 800px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  .overlay p {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 2rem;
  }
  
 /* ───────────────────────────────────────────────── GOOEY BUTTON ─────────────────────────────────────────────── */
.c-button {
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 0.9em 1.6em;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 1;
  }
  
  .c-button--gooey {
    color: #06c8d9;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 4px solid #06c8d9;
    background-color: transparent;
    border-radius: 0;
    position: relative;
    transition: all 700ms ease;
    overflow: hidden;
  }
  
  .c-button--gooey .c-button__blobs {
    position: absolute;
    top: 0; left: 0; right: -1px; bottom: -3px;
    filter: url(#goo);
    overflow: hidden;
    z-index: -1;
  }
  
  .c-button--gooey .c-button__blobs div {
    position: absolute;
    width: 34%; height: 100%;
    background-color: #06c8d9;
    border-radius: 100%;
    transform: scale(1.4) translateY(125%) translateZ(0);
    transition: all 700ms ease;
  }
  
  .c-button--gooey .c-button__blobs div:nth-child(1) { left: -5%; }
  .c-button--gooey .c-button__blobs div:nth-child(2) { left: 30%; transition-delay: 60ms; }
  .c-button--gooey .c-button__blobs div:nth-child(3) { left: 66%; transition-delay: 25ms; }
  
  .c-button--gooey:hover {
    color: #fff;
  }
  
  .c-button--gooey:hover .c-button__blobs div {
    transform: scale(1.4) translateY(0) translateZ(0);
  }
  
  /* ───────────────────────────────────────────────── GOO FILTER ─────────────────────────────────────────────── */
  
  /* ───────────────────────────────────────────── ABOUT SECTION ───────────────────────────────────────────── */
  .about {
    padding: 60px 20px;
    background: #bee5eb;
    scroll-snap-align: start;
  }
  .about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
  }
  .about p,
  .about ul {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
  }
  .about ul {
    margin-top: 1rem;
  }
  .about {
    padding: 2rem 1rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
  
  /* ───────────────────────────────────────────────── SLIDES ───────────────────────────────────────────────── */
  .slide {
    height: 100vh;
    padding: 4rem 2rem;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
  .slide-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    color: #222;
  }
  
  /* ───────────────────────────────────────────────────────────────────────────────────────── */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
 
  .blog-list {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
  }
  .blog-list li + li {
    margin-top: 1rem;
  }
  .blog-list a {
    text-decoration: none;
    color: #00aaff;
    font-weight: 500;
  }
  .blog-list a:hover {
    text-decoration: underline;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin-top: 2rem;
  }
  form input,
  form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  form button {
    width: fit-content;
    align-self: flex-start;
  }
  .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 4rem;
    background: transparent;     /* ← add this line */
  }
  
  .slideshow-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  .slideshow-container img.active {
    opacity: 1;
  }
body {
    background-color: #e6e4e4;       /* HEX */
    /* fallback options if needed:
    background-color: rgb(230, 228, 228);
    background-color: hsl(0, 3%, 90%);
    */
    margin: 0;                       /* ensure no white edges */
  }
  
  body {
    background-color: #e6e4e4;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .projects-section {
    background-color: #e6e4e4; /* Light gray background */
    padding: 4rem 2rem;
  }
  
  .projects-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .projects-header h2 {
    font-size: 2.5rem;
    color: #222;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }
  
  .project-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  .project-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
  }
  
  .project-card a {
    text-decoration: none;
  }
  
  /* Keep your gooey button styles here */
  .projects-header h2 {
    position: relative;
    display: inline-block;
  }
  
  .projects-header h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: #007acc;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  

  /* ─── Publications Section ────────────────────────────────────────────────── */
.publications-section {
    background: 
      url('https://www.transparenttextures.com/patterns/asfalt-light.png') repeat,
      #e6e4e4; /* light gray base */
    padding: 4rem 2rem;
  }
  
  .publications-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .publications-header h2 {
    font-size: 2.5rem;
    color: #222;
    position: relative;
    display: inline-block;
  }
  .publications-header h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: #007acc;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  .publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .publication-card {
    background-color: #fff;
    padding: 1.75rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  }
  
  .publication-card h3 {
    font-size: 1.25rem;
    color: #111;
    margin-bottom: 0.5rem;
  }
  
  .pub-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.25rem;
  }
  
  .pub-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1.5rem;
    font-style: italic;
  }
  
  .publication-card a {
    margin-top: auto; /* push button to bottom */
    align-self: start;
  }
  
  /* Ensure gooey buttons appear correctly */
  .c-button--gooey {
    font-size: 0.9rem;
    padding: 0.6em 1.4em;
  }
  /* ─── CONTACT FORM WRAPPER ───────────────────────────────────────────────── */
  .slide-content {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .slide-content h2 {
    font-size: 2.5rem;
    color: #222;
    position: relative;
    display: inline-block;
  }
  .slide-content h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: #007acc;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }


 
  
  /* Keep your icons where they are */
    /* Base reset */
ul { list-style: none; }

.example-2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.example-2 .icon-content {
  margin: 0 10px;
  position: center;
}

.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}

.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
  color: white;
}

.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.example-2 .icon-content a .filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.example-2 .icon-content a:hover .filled {
  height: 100%;
}

/* Social color fills */
.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0274b3;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f);
}

.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}

/* <-- New Telegram styles copied in -->
 */
.example-2 .icon-content a[data-social="telegram"] .filled,
.example-2 .icon-content a[data-social="telegram"] ~ .tooltip {
  background-color: #0088cc;
}
  
  /* MAKE ICONS VISIBLE */
  .example-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
    z-index: 2;
  }
  
  .icon-content {
    position: relative;
    z-index: 2;
  }
   /* Scroll-and-reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.nav-container {
  position: relative;    /* ← add this */
}
.hamburger {
  position: relative;
  z-index: 1000;         /* ↑ highest */
}

.nav-menu {
  z-index: 999;          /* just under the button */
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;               /* hide by default */
    flex-direction: column;
    position: absolute;
    top: 100%; right: 0;
    background: rgba(0,0,0,0.9);
    padding: 1rem;
  }
  .nav-menu.open {
    display: flex;               /* show when “open” */
  }
  .hamburger {
    display: flex;
  }
}
/* ─── Footer Styles ────────────────────────────────────────── */
.site-footer {
  background: #333;
  color: #eee;
  padding: 3rem 1rem 1rem;
  font-size: 0.9rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 200px;
}
.footer-col h4 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
}

/* new: right‑align the social column */
.footer-social-col {
  text-align: right;
}
.footer-social {
  margin-top: 0.5rem;
}
.footer-social a {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 1.25rem;
  color: #ccc;
  transition: color 0.2s;
}
.footer-social a:first-child {
  margin-left: 0;
}
.footer-social a:hover {
  color: #fff;
}

.footer-note {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
  color: #aaa;
}

/* Responsive stack under 600px */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  .footer-col {
    text-align: center;
  }
  .footer-social {
    margin-top: 1rem;
  }
}

  .project-card img {
  width: 100%;
  height: 180px;       /* pick whatever uniform height you like */
  object-fit: cover;   /* crop/scale the image to fill that box */
  border-radius: 12px;
  margin-bottom: 10px;
}
.about-section {
  scroll-margin-top: 100px; /* Keeps the section in view under a sticky header */
  padding: 80px 20px;
  background: #fdfdfd;
  border-top: 1px solid #eee;
}

.about-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-heading h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.about-heading p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #333;
}


.about-content li {
  margin-bottom: 8px;
}

/* Optional Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}
html {
  scroll-behavior: smooth;
}
/* ─── Scroll Progress Indicator ───────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;             /* adjust thickness here */
  background: #00aaff;     /* match your accent color */
  width: 0%;
  z-index: 9999;           /* above everything */
  transition: width 0.1s ease-out;
}
/* Add at the bottom of your style.css */

.project-card {
  perspective: 1000px;             /* establish 3D space */
}

.project-card .card-inner {
  transform-style: preserve-3d;    /* allow children in 3D */
  transition: transform 0.2s ease;  /* smooth return to flat */
  will-change: transform;
}

.project-card:hover .card-inner {
  /* optional: elevate shadow on hover */
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
#typewriter {
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-weight: 600;
}

/* Prevent the “I’m a” + typewriter text from wrapping */
.hero .overlay h2 {
  white-space: nowrap;
  /* optional: center it nicely */
  display: inline-block;
  margin-bottom: 1rem;
}

/* Ensure the span itself is inline */
#typewriter {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
  overflow: hidden;
  vertical-align: bottom; /* align the cursor with the text baseline */
}
/* Reduce the size of the typewriter line */
.hero .overlay h2 {
  font-size: 1.5rem;        /* down from 2rem */
  white-space: nowrap;
  display: inline-block;
  margin-bottom: 0.75rem;   /* tighten spacing */
}

/* Also shrink the cursor a bit */
#typewriter {
  font-size: inherit;       /* matches the h2 size */
  display: inline-block;
  white-space: nowrap;
  border-right: 1px solid var(--accent);  /* thinner cursor */
  overflow: hidden;
  vertical-align: bottom;
}

/* Skills Section */
.skills-section {
  padding: 4rem 1rem;
  background: #f9f9f9;
}
.skills-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Grid for two columns */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

/* Stack to one column under 600px */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Skill */
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.percent {
  color: #00aaff;
}

/* Bar Background */
.skill-bar-bg {
  background: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 12px;
}

/* Fill (starts at 0) */
.skill-bar-fill {
  width: 0;
  height: 100%;
  background-color: #00aaff;
  transition: width 1.8s ease-in-out;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.project-card .card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .c-button {
  margin-top: auto;
  align-self: center;   /* ← center horizontally */
}
/* 1) Make all publication cards equal‐height in a grid */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;  /* stretch cards to equal height */
}

/* 2) Turn each article into a vertical flex container */
.publications-grid article.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;      /* optional: give your cards some padding */
  background: #fff;      /* optional: card background */
  border-radius: 12px;   /* optional: match your style */
}

/* 3) Push the Read button to the bottom and center it */
.publications-grid .c-button {
  margin-top: auto;      /* pushes the button down */
  align-self: center;    /* centers it horizontally */
}
/* Reduce space below “Published in…” */
.publications-grid .pub-meta {
  margin-bottom: 0.25rem;  /* shrink bottom gap */
}

/* Remove any top gap on “Written:” */
.publications-grid .pub-date {
  margin-top: 0;           /* pull it up against the line above */
}
.about {
  padding: 4rem 2rem;
  background: #f9f9f9;
  scroll-snap-align: start;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #222;
  text-align: center;
  position: relative;
}

.about h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #00aaff;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: left;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #444;
}

.about-skills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1rem;
}

.about-skills li {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.about-skills li:hover {
  transform: translateY(-3px);
}
/* Your existing styles ... */

.about-section * {
  color: black !important;
}
:root {
  --section-bg: #e0f4f7; /* Use same background for both */
}

.about-section,
.skills-section {
  background-color: var(--section-bg);
  padding: 60px 20px;
  color: black;
}

.about-section *,
.skills-section * {
  color: black !important;
}

.about-section * {
  color: black !important;
}
/* 1) Make sure the footer is a positioning context */
.site-footer {
  position: relative;
}

/* 2) Pull the UL out of normal flow and center via transform */
ul.social-links {
  position: absolute;
  left: 50%;                /* move left edge to center of parent */
  transform: translateX(-50%); /* shift back by half its own width */
  bottom: 2rem;             /* or whatever vertical offset you want */
  display: flex;            /* keep icons in a row */
  gap: 1rem;                /* spacing between icons */
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.social-links {
  /* …existing rules… */
  bottom: 5rem;   /* was 2rem; now sits 1rem higher */
}
/* ─── CONTACT SECTION WRAPPER ───────────────────────────────────────────── */
#contact {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, rgba(247,247,247,1) 0%, rgba(230,245,252,1) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative floating circles */
#contact::before,
#contact::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 122, 204, 0.1);
  z-index: 0;
}
#contact::before {
  width: 300px; height: 300px;
  top: -100px; left: -100px;
}
#contact::after {
  width: 200px; height: 200px;
  bottom: -50px; right: -50px;
}

/* ─── SLIDE CONTENT ───────────────────────────────────────────────────────── */
#contact .slide-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  z-index: 1;
}

/* ─── FORM CARD (Glassmorphism) ───────────────────────────────────────────── */
#contact form {
  width: 100%;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── FLOATING LABELS ─────────────────────────────────────────────────────── */
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 0.5rem;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-group label {
  position: absolute;
  left: 1rem; top: 1rem;
  font-size: 1rem;
  color: #888;
  pointer-events: none;
  transition: transform 0.2s, font-size 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #007acc;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.25rem);
  font-size: 0.85rem;
  color: #007acc;
}
/* ─── CONTACT SECTION WRAPPER ───────────────────────────────────────────── */
#contact {
  padding: 4rem 1rem;
  background-color: #fafafa;
  overflow: hidden;
  position: relative;
}

/* Skewed banner behind heading */
.contact-header {
  position: relative;
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  z-index: 2;
}
.contact-header::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 300%;
  height: 120px;
  background: #00aaff;
  transform: translate(-50%, -50%) skewX(-15deg);
  z-index: 1;
  border-radius: 8px;
}

/* ─── SLIDE CONTENT & ANIMATION ─────────────────────────────────────────── */
#contact .slide-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 0.8s ease-out forwards;
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── FORM CARD ───────────────────────────────────────────────────────────── */
#contact form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s;
}
#contact form:hover {
  box-shadow: 0 20px 50px rgba(0, 162, 255, 0.2);
}

/* ─── INPUTS ─────────────────────────────────────────────────────────────── */
#contact form input,
#contact form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, transform 0.2s;
}
#contact form input:hover,
#contact form textarea:hover {
  transform: translateY(-2px);
}
#contact form input:focus,
#contact form textarea:focus {
  border-color: #00aaff;
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
}
/* ——————— CSS ——————— */

/* 1. Make sure your nav links are positioned for the underline */
nav a {
  position: relative;
  padding-bottom: 0.25em; /* give room for the line */
  text-decoration: none;
  color: inherit;
}

/* 2. The default (hidden) underline */
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 3px;           /* thickness of your blue line */
  background: #007bff;   /* your blue color */
  transition: width 0.3s ease;
}

/* 3. When “active”, expand it full-width */
nav a.active::after {
  width: 100%;
}
/* ——————— CSS ——————— */
/* smooth scrolling + account for fixed header height */
:root {
  --header-height: 80px;  /* ← set to your actual header height */
}

html {
  scroll-behavior: smooth;
  /* this makes all “jump to anchor” honor the header */
  scroll-padding-top: var(--header-height);
}

/* if you ever target-scroll directly to a section via CSS :target */
section {
  scroll-margin-top: var(--header-height);
}
/* ——— Projects Section Styles ——— */

.projects-section {
  background: repeating-linear-gradient(
      to right,
      #f0f8ff 0px,
      #f0f8ff 39px,
      #dbe9f4 40px
    ),
    repeating-linear-gradient(
      to bottom,
      #f0f8ff 0px,
      #f0f8ff 39px,
      #dbe9f4 40px
    );
  padding: 100px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ——— Publications Section Styles ——— */

.publications-section {
  background: repeating-linear-gradient(
    45deg,
    #ffffff,
    #ffffff 8px,
    #f3f7fb 8px,
    #f3f7fb 16px
  );
  padding: 100px 20px;
  position: relative;
  text-align: center;
  color: #002b5c;
  overflow: hidden;
}

/* Base: hidden state */
.reveal-fade,
.reveal-slide,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* If sliding from side, you could tweak transform */
.reveal-slide {
  /* starts slightly down; same as above */
}

/* When visible: */
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* For stagger: each child with inline style or CSS variable for delay */
.reveal-stagger > * {
  /* we’ll set a delay via inline style or via JS */
}

/* Example: you can set via CSS custom property index:
   In JS, for each child: el.style.setProperty('--delay', `${i*0.1}s`);
   And in CSS: transition-delay: var(--delay);
*/
.reveal-stagger > * {
  transition-delay: var(--delay, 0s);
}
.about-header h2 {
  display: block;            /* ensure block-level for margin auto */
  text-align: center;        /* center the line beneath */
  padding-bottom: 0.5rem;    /* space between text and line */
  margin-bottom: 1rem;       /* space after the underline */
  position: relative;
}

.about-header h2::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0;     /* top margin to separate from text, auto left/right to center */
  width: 13%;               /* adjust this to desired line length */
  height: 4px;               /* thickness of the line */
  background-color: #007acc; /* your blue color */
}

