/* =====================================================================
   Daniel Yousefi Portfolio — exact match of ayaan-nadamal.com style
   ===================================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; margin: 0; overflow-y: auto; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
  background-size: cover;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #fff;
  min-height: 100vh;
  text-align: center;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; padding: 0; }
p { font-size: 2vw; }

/* ── Starfield Background ── */
#background-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}
.stars {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: #000 url('https://www.ayaan-nadamal.com/static/media/stars.90c266f7d69f1ffb6137.png') repeat top;
  z-index: 0;
}
.twinkling {
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='50' cy='100' r='1' fill='white' opacity='0.8'/%3E%3Ccircle cx='150' cy='60' r='0.8' fill='white' opacity='0.6'/%3E%3Ccircle cx='250' cy='200' r='1.2' fill='white' opacity='0.9'/%3E%3Ccircle cx='350' cy='80' r='0.7' fill='white' opacity='0.5'/%3E%3Ccircle cx='80' cy='300' r='1' fill='white' opacity='0.7'/%3E%3Ccircle cx='320' cy='350' r='0.9' fill='white' opacity='0.8'/%3E%3Ccircle cx='180' cy='340' r='1.1' fill='white' opacity='0.6'/%3E%3Ccircle cx='120' cy='180' r='0.8' fill='white' opacity='0.9'/%3E%3Ccircle cx='380' cy='240' r='1' fill='white' opacity='0.5'/%3E%3Ccircle cx='30' cy='380' r='0.7' fill='white' opacity='0.7'/%3E%3C/svg%3E") repeat top;
  z-index: 1;
  animation: move-twink-back 200s linear infinite;
}
@keyframes move-twink-back {
  from { background-position: 0 0; }
  to   { background-position: -10000px 5000px; }
}

/* ── Navbar ── */
.navbar-container {
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #9f9daa26;
  box-shadow: 0 4px 6px #2a0e6180;
  display: flex;
  height: 80px;
  justify-content: space-between;
  padding: 0 2.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}
.logo {
  border-radius: 10px;
  cursor: pointer;
  height: 50px;
  transition: transform .3s ease;
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.logo:hover { box-shadow: 0 4px 6px #fffc; transform: scale(1.1); }
.logo span { color: #00ffc5; }

.navbar {
  align-items: center;
  background-color: #00ffc500;
  background-image: linear-gradient(135deg,#00ffc566,#00b4d866,#9d4edd66,#e163f766);
  border-radius: 50px;
  display: flex;
  gap: 4px;
  max-width: 90%;
  padding: 10px 24px;
  transition: background-color .3s ease-in-out;
  width: fit-content;
}
.navbar:hover {
  background-color: #ffffff80;
  background-image: linear-gradient(135deg,#00ffc5b3,#00b4d8b3,#9d4eddb3,#e163f7b3);
}
.navbar a {
  background-color: transparent;
  border: none;
  border-radius: 25px;
  color: #ffffffbf;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  transition: all .3s ease;
  white-space: nowrap;
  display: inline-block;
}
.navbar a:hover {
  background-color: #fff3;
  box-shadow: 0 4px 8px #0003;
  color: #fff;
  transform: translateY(-2px);
}
.navbar a.active {
  background-color: #00a8a8;
  box-shadow: 0 2px 4px #0003;
  color: #fff;
  transform: translateY(0);
}

.launch-button-container { margin-right: 4rem; }
.launch-button {
  background-color: #ff0000e6;
  border: none;
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  transition: all .3s ease;
  display: inline-block;
}
.launch-button:hover {
  background-color: red;
  box-shadow: 0 4px 8px #0003;
  color: #fff;
  transform: translateY(-2px);
}

.navbar-toggler {
  background: linear-gradient(135deg,#00ffc5b3,#00b4d8b3,#9d4eddb3,#e163f7b3);
  border: none;
  border-radius: 1rem;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 2rem;
  padding: .4rem .7rem;
  position: absolute;
  right: 40px;
  top: 14px;
  z-index: 51;
}

.mobile-menu {
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-image: linear-gradient(135deg,#00ffc566,#00b4d866,#9d4edd66,#e163f766);
  box-shadow: 0 4px 6px #2a0e6180;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh;
  max-width: 300px;
  padding-top: 80px;
  position: fixed;
  right: 0; top: 0;
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
  width: 80%;
  z-index: 1000;
}
.mobile-menu.--open { transform: translateX(0); }
.mobile-menu a {
  background: none;
  background-color: #ffffff1a;
  border: 1px solid #ffffff80;
  border-radius: 25px;
  color: #ffffff80;
  cursor: pointer;
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0;
  padding: 15px 40px;
  text-align: center;
  transition: all .3s ease;
  width: 80%;
}
.mobile-menu a:hover { background-color: #fff3; box-shadow: 0 4px 8px #0003; color: #fff; transform: translateY(-2px); }
.mobile-menu a.active { background-color: #00a8a8; box-shadow: 0 2px 4px #0003; color: #fff; transform: translateY(0); }
.mobile-menu .launch-button { background-color: #ff0000e6; border: none; border-radius: 25px; color: #fff; margin-top: 10px; }

.mobile-menu-overlay {
  background-color: #00000080;
  height: 100vh; left: 0;
  opacity: 0;
  position: fixed;
  top: 0;
  transition: opacity .3s ease-in-out, visibility .3s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 999;
}
.mobile-menu-overlay.--open { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  .launch-button-container, .navbar { display: none; }
  .navbar-toggler { display: block; }
  .navbar-container { padding: 0 1rem; }
}

/* ── Landing / Home Page ── */
.landing-container {
  height: 100%;
  overflow: hidden;
  position: fixed;
  width: 100%;
}
.text-container {
  color: #fff;
  font-family: Arial, sans-serif;
  left: 3%;
  position: absolute;
  text-align: left;
  top: 40%;
  transform: translateY(-50%);
  width: auto;
  z-index: 5;
}
#name {
  -webkit-text-stroke: 1px #fff;
  font-size: 9vw;
  font-style: italic;
  font-weight: 700;
  color: transparent;
  display: block;
}
#lastname {
  animation: fadeInUp 1s ease-in-out forwards;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.5));
  font-size: 10vw;
  margin-left: 1em;
  display: block;
}
h3 {
  display: block;
  font-size: 2.5vw;
  max-width: 90%;
  overflow: visible;
  padding-left: 0;
  text-align: left;
  white-space: normal;
}
.phrase-container {
  align-items: center;
  display: flex;
}
.phrase-container h3, .phrase-container p { display: inline-block; vertical-align: middle; }
#phrase {
  align-self: flex-start;
  color: azure;
  font-size: inherit;
  margin-left: 1vw;
  text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 20px #0f0, 2px 2px 4px #00000080;
}
#phrase::after {
  animation: blink 1s infinite;
  content: "|";
  font-size: 2.5vw;
  margin-left: 2px;
}
h4 {
  display: block;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-weight: lighter;
  margin-bottom: 1rem;
}
#uni, h4 { font-size: 2vw; }
#uni {
  animation: fadeInUp 1s ease-in-out forwards;
  color: #dabb20;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.5));
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.home-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1vw;
  padding: .8vw 1.8vw;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}
.btn-primary { background: #00a8a8; color: #fff; box-shadow: 0 4px 12px rgba(0,168,168,.4); }
.btn-primary:hover { background: #00c2c2; transform: translateY(-2px); }
.btn-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline:hover { background: #ffffff14; transform: translateY(-2px); }

@media (max-width: 768px) {
  .phrase-container { display: flex; flex-direction: row; justify-content: center; margin-left: auto; }
  .phrase-container, .text-container { left: 50%; text-align: center; top: 50%; }
  .text-container { transform: translate(-50%,-50%); width: 90%; }
  p { font-size: 1.5rem; }
  #name { -webkit-text-stroke: 1px #fff; font-size: 4rem; }
  #lastname { font-size: 5rem; margin-left: 0; }
  h3 { max-width: 90%; overflow: visible; padding-left: .5rem; white-space: normal; }
  #phrase, h3 { font-size: 1.5rem; text-align: center; }
  h4 { margin-left: 1rem; }
  #uni, h4 { font-size: 1rem; }
  #phrase::after { font-size: 1.5rem; margin-left: 1px; }
  .btn { font-size: 0.9rem; padding: 0.7rem 1.5rem; }
}

/* ── About Page ── */
.about {
  flex-direction: column;
  margin-top: 8rem;
  min-height: 100vh;
  overflow-y: auto;
  padding: 2vh 2vw;
  align-items: center;
  display: flex;
}
.terminal-section {
  justify-content: center;
  margin-bottom: 5vh;
  max-width: 1200px;
  width: 80vw;
  align-items: center;
  display: flex;
}
.terminal-image {
  border-radius: 1vw;
  display: block;
  height: auto;
  margin: 1vw;
  max-width: 45vw;
  box-shadow: 0 .5vh 1vh #fff3;
  margin-right: 1vw;
}
.related-image {
  border-radius: 1vw;
  display: block;
  height: auto;
  margin: 1vw;
  max-width: 45vw;
  margin-left: 1vw;
}
.about-text-block {
  text-align: left;
  max-width: 600px;
  padding: 2vw;
}
.about-text-block h2 {
  font-size: 2.5vw;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-text-block p {
  font-size: 1.2vw;
  line-height: 1.75;
  color: #e0e0e0;
  margin-bottom: 1rem;
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
  max-width: 1200px;
  justify-content: center;
}
.skill-tag {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  border: 1px solid #00ffc533;
  border-radius: 20px;
  color: #e0e0e0;
  font-size: 0.9vw;
  padding: 6px 16px;
  transition: all .3s ease;
}
.skill-tag:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: 1px solid transparent;
  color: #fff;
}
.section-title-gradient {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2vw;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .terminal-section { align-items: center; flex-direction: column; text-align: center; }
  .related-image, .terminal-image { margin: 2vw auto; max-width: 90vw; }
  .terminal-section { width: 95vw; }
  .about-text-block h2 { font-size: 1.6rem; }
  .about-text-block p { font-size: 1rem; }
  .skill-tag { font-size: 0.85rem; }
  .section-title-gradient { font-size: 1.4rem; }
}

/* ── Projects Page ── */
.projects-page {
  align-items: center;
  box-sizing: border-box;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  min-height: 100vh;
  padding: 20px;
}
.projects-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.projects-content-wrapper h2 {
  font-size: 2em;
  margin-bottom: 3rem;
}
.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  width: 100%;
}
.project-card {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 8px #00000080;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.project-card:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: 4px solid transparent;
  border-radius: 8px;
  box-shadow: 0 6px 12px #ffffffb3;
  transform: translateY(-5px);
}
.project-card a { color: inherit; display: block; text-decoration: none; }
.project-card h3 {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  padding: 15px;
  text-align: center;
}
.project-card p { font-size: 1rem; line-height: 1.4; margin: 0; padding: 0 15px 15px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 15px 15px; }
.tag {
  background-color: #0000004d;
  border-radius: 15px;
  color: #a0a0a0;
  font-size: .8rem;
  padding: 5px 10px;
}

@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* ── Project Detail Page ── */
.project-detail-page {
  box-sizing: border-box;
  color: #e0e0e0;
  margin-top: 5rem;
  min-height: 100vh;
  padding: 2vw 5%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.back-link {
  color: #9f9f9f;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2rem;
  transition: color .2s;
}
.back-link:hover { color: #00ffc5; }
.detail-card {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  background-clip: padding-box;
  border: .06vw solid transparent;
  border-radius: .5vw;
  box-shadow: 0 .2vw .4vw #00000080;
  font-size: 1vw;
  line-height: 1.5;
  overflow: hidden;
  padding: 1.5vw 2vw;
  transition: transform .3s ease, box-shadow .3s ease;
}
.detail-card:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: .25vw solid transparent;
  box-shadow: 0 .4vw .8vw #ffffffb3;
  transform: translateY(-.3vw);
}
.detail-card h3 {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2vw;
  margin-bottom: 1rem;
}
.detail-card p { font-size: 1.1vw; color: #ccc; }

/* ── Education Page ── */
.education-page {
  box-sizing: border-box;
  color: #e0e0e0;
  display: flex;
  margin-top: 4.5rem;
  min-height: 100vh;
  padding: 1vw;
}
.education-sidebar {
  display: flex;
  flex-direction: column;
  padding: 1.5vw;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 18vw;
}
.education-sidebar button {
  background-color: #333;
  border: none;
  border-radius: .4vw;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 1vw;
  margin-bottom: 1vw;
  padding: .8vw 1.5vw;
  text-align: left;
  transition: background-color .5s ease, color .5s ease;
}
.education-sidebar button.active {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}
.education-sidebar button:hover {
  background: linear-gradient(90deg, #8b5cf6cc, #06b6d4cc);
}
.education-content {
  display: grid;
  gap: 1.5vw;
  grid-template-columns: 1fr;
  margin-left: 20vw;
  margin-top: .8vw;
  position: relative;
  width: 78vw;
}
.education-card-container {
  display: flex;
  flex-direction: column;
  opacity: 1;
  position: absolute;
  transition: opacity .5s ease;
  width: 100%;
}
.education-card-container.hidden { opacity: 0; pointer-events: none; }
.education-image {
  border-radius: 50%;
  display: block;
  height: auto;
  margin: 0 auto .8vw;
  object-fit: cover;
  width: 15vw;
}
.education-avatar {
  width: 15vw;
  height: 15vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3vw;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  margin: 0 auto .8vw;
  color: white;
}
.education-card {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  background-clip: padding-box;
  border: .06vw solid transparent;
  border-radius: .5vw;
  box-shadow: 0 .2vw .4vw #00000080;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.4;
  overflow: hidden;
  padding: .8vw 1.2vw;
  transition: transform .3s ease, box-shadow .3s ease;
}
.education-card:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: .25vw solid transparent;
  box-shadow: 0 .4vw .8vw #ffffffb3;
  transform: translateY(-.3vw);
}
.education-card h3 {
  align-self: center;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  font-size: 2.5vw;
  font-weight: 600;
  justify-content: center;
  margin: 1vw 2vw 2vw;
  padding: 0 2rem;
  white-space: nowrap;
  width: fit-content;
}
.education-card-columns {
  display: flex;
  text-align: left;
  width: 100%;
}
.education-card-column {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  padding: 0 .5vw;
}
.education-card h4 {
  align-self: start;
  font-size: 1.5vw;
  font-weight: 700;
  margin: 0 0 1vw;
  padding-right: .5vw;
  text-align: left;
}
.education-card ul {
  align-self: start;
  font-size: 1vw;
  list-style-type: none;
  margin: 0;
  padding: 0 0 0 2vw;
}
.education-card li {
  font-size: .95vw;
  margin-bottom: .3vw;
}
.education-card p { font-size: .95vw; text-align: left; padding: 0 .5vw .5vw; color: #ccc; }

.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li {
  font-size: .9vw;
  padding: .4vw 0;
  border-bottom: 1px solid #333;
  text-align: left;
  padding-left: 2vw;
  color: #ddd;
}
.cert-list li::before { content: "★ "; color: #00ffc5; }

@media (max-width: 768px) {
  .education-page { flex-direction: column; padding: 4vw; }
  .education-sidebar { flex-direction: row; justify-content: center; margin-bottom: 4vw; position: static; transform: none; width: 100%; }
  .education-sidebar button { border-radius: 1vw; font-size: 3vw; margin: 0 2vw; padding: 2vw 4vw; }
  .education-content { grid-template-columns: 1fr; margin-left: 0; margin-top: 4vw; width: 100%; }
  .education-avatar { height: 40vw; width: 40vw; font-size: 8vw; }
  .education-card h3 { border-radius: 2vw; font-size: 5vw; margin-bottom: 2vw; }
  .education-card h4, .education-card li { font-size: 3.5vw; }
  .education-card p { font-size: 3vw; }
  .cert-list li { font-size: 3vw; }
}

/* ── Experience Page ── */
.experience-page {
  box-sizing: border-box;
  color: #e0e0e0;
  margin-top: 5rem;
  min-height: 100vh;
  padding: 1vw;
}
.experience-page, .experience-container {
  align-items: center;
  display: flex;
  justify-content: center;
}
.experience-container {
  gap: 2vw;
  max-width: 1400px;
  width: 95%;
}
.experience-sidebar {
  align-self: center;
  padding: 1.5vw;
  width: 18vw;
  display: flex;
  flex-direction: column;
}
.category-heading {
  color: #fff;
  font-size: 1.4vw;
  font-weight: 700;
  margin-bottom: 1vw;
}
.experience-items { display: flex; flex-direction: column; margin-bottom: 2vw; }
.item-button {
  background-color: #333;
  border: none;
  border-radius: .4vw;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 1vw;
  margin-bottom: .8vw;
  padding: .7vw 1.2vw;
  text-align: left;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
.item-button.active { background: linear-gradient(90deg, #8b5cf6, #06b6d4); }
.item-button:hover { background: linear-gradient(90deg, #8b5cf6cc, #06b6d4cc); }
.experience-content {
  box-sizing: border-box;
  height: calc(100vh - 10rem);
  max-width: 1200px;
  overflow-y: auto;
  padding: 2vw 2vw 20vh;
  width: 80vw;
}
.experience-content::-webkit-scrollbar { width: 6px; }
.experience-content::-webkit-scrollbar-track { background: #111; }
.experience-content::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.experience-cards-container { display: flex; flex-direction: column; transition: opacity .3s ease; }
.experience-cards-container.fade-out { opacity: 0; }
.experience-card {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  background-clip: padding-box;
  border: .06vw solid transparent;
  border-radius: .5vw;
  box-shadow: 0 .2vw .4vw #00000080;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-size: 1vw;
  line-height: 1.4;
  margin: 3vw 0;
  overflow: hidden;
  padding: 1.5vw 2vw;
  transition: transform .3s ease, box-shadow .3s ease;
  width: 100%;
}
.experience-card:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: .25vw solid transparent;
  box-shadow: 0 .4vw .8vw #ffffffb3;
  transform: translateY(-.3vw);
}
.experience-card h3 {
  align-self: center;
  display: flex;
  font-family: Georgia, serif;
  font-size: 2vw;
  font-weight: 600;
  justify-content: center;
  margin: 1vw 0 0;
  padding: 0;
  white-space: nowrap;
  width: fit-content;
  word-break: break-word;
}
.experience-card h3 .company-name {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.experience-date {
  color: #9f9f9f;
  font-family: Arial, sans-serif;
  font-size: 1.2vw;
  margin-bottom: 2vw;
  text-align: center;
}
.experience-card ul {
  font-size: 1.2vw;
  list-style-type: disc;
  margin: 0;
  padding-left: 2vw;
  text-align: left;
}
.experience-card li { font-family: Lato, sans-serif; margin-bottom: .5vw; }

@media (max-width: 768px) {
  .experience-page { padding: 2vw; }
  .experience-container { align-items: center; flex-direction: column; width: 100%; }
  .experience-sidebar { margin-bottom: 2rem; padding: 1vw; position: sticky; top: 0; width: 100%; z-index: 1; }
  .category-heading { font-size: 5vw; text-align: center; }
  .experience-items { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .item-button { border-radius: 1vw; font-size: 3.5vw; margin: 1vw; padding: 2vw 3vw; width: auto; }
  .experience-content { height: 60vh; overflow-y: auto; padding: 2vw 2vw 20vh; width: 100%; }
  .experience-card { border-radius: 2vw; margin: 4vw 0; padding: 3vw; width: 100%; }
  .experience-card h3 { display: flex; flex-direction: column; font-size: 4vw; }
  .experience-card li, .experience-card ul, .experience-date { font-size: 4vw; }
  .experience-card ul { padding-left: 8vw; }
}

/* ── Hobbies / Skills standalone pages ── */
.generic-page {
  box-sizing: border-box;
  color: #e0e0e0;
  margin-top: 5rem;
  min-height: 100vh;
  padding: 2vw 5%;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.generic-page h2 {
  font-size: 2em;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.generic-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  width: 100%;
}
.generic-card {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 4px 8px #00000080;
  padding: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
  text-align: left;
}
.generic-card:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: 2px solid transparent;
  box-shadow: 0 6px 12px #ffffffb3;
  transform: translateY(-5px);
}
.generic-card h3 {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  margin-bottom: .6rem;
}
.generic-card p { font-size: 0.95rem; color: #aaa; line-height: 1.5; }

.skills-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  width: 100%;
}
.skills-card {
  background: linear-gradient(135deg, #32323299, #1e1e1e99);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
  text-align: left;
}
.skills-card:hover {
  background: linear-gradient(#050c35, #050c35) padding-box,
              linear-gradient(90deg, #00ffc5cc, #00b4d8cc, #9d4eddcc, #e163f7cc) border-box;
  border: 2px solid transparent;
  box-shadow: 0 6px 12px #ffffffb3;
  transform: translateY(-5px);
}
.skills-card h3 {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #0000004d;
  border-radius: 15px;
  color: #a0a0a0;
  font-size: .85rem;
  padding: 5px 12px;
  border: 1px solid #333;
}

@media (max-width: 900px) {
  .generic-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .generic-grid { grid-template-columns: 1fr; } }

/* ── Contact Page ── */
.contact-us-page {
  align-items: center;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  margin-top: 5rem;
  padding: 2rem;
}
.contact-us-page h2 {
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 2rem;
  text-align: left;
  width: 70%;
}
.contact-form-container { margin-bottom: 2rem; max-width: 500px; width: 100%; }
.contact-form-container h3 { font-size: 2rem; margin-bottom: 1rem; text-align: left; }
.contact-form-container form { display: flex; flex-direction: column; }
.contact-form-container button,
.contact-form-container input,
.contact-form-container textarea {
  background-color: #333;
  border: 1px solid #ccc;
  border-radius: .3rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
  padding: .8rem;
  font-family: inherit;
}
.contact-form-container textarea { height: 20vh; resize: vertical; }
.contact-form-container button {
  background-color: #007bff;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease;
}
.contact-form-container button:hover { background-color: #33a1ff; }
.contact-buttons { display: flex; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.contact-buttons button {
  background-color: #333;
  border: none;
  border-radius: .4vw;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 1vw;
  padding: .7vw 1.2vw;
  text-align: left;
  transition: background-color .3s ease, color .3s ease;
  white-space: nowrap;
}
.contact-buttons button:hover { background: linear-gradient(90deg, #8b5cf6cc, #06b6d4cc); }
.contact-buttons a { color: #fff; text-decoration: none; }
.social-icons { align-items: center; display: flex; flex-direction: column; }
.social-item { margin-bottom: .5rem; }
.social-item, .social-item a { align-items: center; display: flex; gap: .5rem; }
.social-item a { color: #e0e0e0; text-decoration: none; transition: text-shadow .2s ease; }
.social-item a:hover { text-shadow: 0 0 5px #fff; }
#form-success { display: none; padding: 2rem; }
#form-success h4 { margin-bottom: .5rem; color: #00ffc5; }

@media (max-width: 768px) {
  .contact-us-page h2 { font-size: 1rem; width: 90%; }
  .contact-buttons { align-items: center; flex-direction: row; }
  .contact-buttons button { font-size: .9rem; padding: 3vw 6vw; }
  .contact-form-container textarea { height: 10vh; }
  .social-item a { font-size: .8rem; }
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 5%;
  border-top: 1px solid #222;
  color: rgba(255,255,255,.45);
  font-size: .88rem;
  margin-top: 4rem;
}
footer span { color: #00ffc5; }
.footer-socials { display: flex; gap: .6rem; }
.footer-social {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 0.8rem;
  font-weight: bold;
}
.footer-social:hover { border-color: #00ffc5; color: #00ffc5; }
