/*
 * Mercedes AMG F1 themed portfolio styling
 *
 * Colour palette is inspired by the Mercedes AMG Formula One team. All colours
 * are defined on the root element to support a light/dark toggle. Parallax
 * effects and floating elements create a futuristic feel while maintaining
 * readability and responsiveness.
 */

/* Dark theme variables */
:root {
  --color-bg: #000000; /* pure black background for deeper contrast */
  --color-primary: #00e6d0; /* brighter teal for highlights */
  --color-secondary: #03bfb5; /* secondary teal */
  --color-accent: #00a19b; /* original accent preserved */
  --color-grey: #7f8c8d; /* neutral grey for muted UI elements */
  --color-light: #dff7f5; /* light tint for less prominent text */
  --color-white: #ffffff;
  --color-text: #e6fbfa; /* high-contrast, slightly teal-tinted text */
  --color-heading: #ffffff;
  --color-panel: rgba(255, 255, 255, 0.04); /* subtle translucent panel on black */
  --border-radius: 8px;
}

/* Light mode override */
.light-mode {
  --color-bg: #ffffff;
  --color-text: #1f2a30;
  --color-heading: #0c161a;
  --color-panel: rgba(8, 24, 28, 0.05);
  --color-primary: #00a19b;
  --color-secondary: #03bfb5;
  --color-accent: #007a74;
  --color-grey: #5c6a72;
  --color-light: #46545c;
  --color-white: #ffffff;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  mix-blend-mode: screen;
}
.cursor-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 208, 0.9), rgba(0, 230, 208, 0));
  filter: drop-shadow(0 0 12px rgba(0, 230, 208, 0.35));
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.8);
  transition: opacity 0.2s ease;
  will-change: transform, opacity;
}
.light-mode .cursor-trail { mix-blend-mode: multiply; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  z-index: 1000;
  margin-top: 10px;
  transform: translateY(0);
  transition: transform 0.3s ease, background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.site-header.header-hidden { transform: translateY(-120%); }
.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0 0.4rem;
  position: relative;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.logo { display: none; }
.logo::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,230,208,0.9), rgba(0,230,208,0.1));
  box-shadow: 0 0 16px rgba(0,230,208,0.55), 0 0 30px rgba(0,230,208,0.35);
}
.logo span {
  color: var(--color-white);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  justify-content: center;
}
.site-nav li { position: relative; }
.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 0.45rem 0.35rem;
  transition: color 220ms ease, text-shadow 220ms ease, transform 160ms ease, box-shadow 200ms ease, letter-spacing 200ms ease;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 1px;
  isolation: isolate;
}
.site-nav a::after,
.site-nav a::before {
  display: none;
}
.site-nav a::after { bottom: -6px; }
.site-nav a::before { top: -6px; }
.site-nav a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(0,230,208,0.4), 0 0 18px rgba(0,230,208,0.24);
  transform: none;
  letter-spacing: 1px;
  box-shadow: none;
}
.site-nav a:hover::after,
.site-nav a:hover::before {
  transform: scaleX(0);
  opacity: 0;
}

/* Theme toggle pill */
#theme-toggle {
  margin-left: 1rem;
  width: 68px;
  height: 34px;
  background: linear-gradient(120deg, rgba(0,230,208,0.28), rgba(0,161,155,0.38));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  transition: background 220ms ease, border 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 2px rgba(0,230,208,0.15);
  color: var(--color-bg);
  font-size: 0;
}

#theme-toggle::before {
  content: '☾';
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  transition: transform 240ms cubic-bezier(.2,.9,.2,1), background 220ms ease, color 220ms ease;
  font-size: 0.9rem;
}

/* Light mode: move knob to right and adjust background */
.light-mode #theme-toggle {
  background: linear-gradient(120deg, rgba(0,161,155,0.2), rgba(3,191,181,0.32));
  justify-content: flex-end;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.16), 0 0 0 2px rgba(0,161,155,0.14);
}
.light-mode #theme-toggle::before {
  transform: translateX(0);
  background: var(--color-white);
  color: #0a3a37;
  content: '☀';
}

/* Smooth transitions for header elements */
.site-header, .site-header * { transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease; }

/* Light-mode readability tweaks */
.light-mode body { background: var(--color-bg); color: var(--color-text); }
.light-mode .site-nav a { color: var(--color-text); }
.light-mode .site-nav a:hover { color: var(--color-primary); text-shadow: none; }
.light-mode .logo { color: var(--color-primary); }

/* Active navigation link */
.site-nav a.active {
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(0,230,208,0.5), 0 0 24px rgba(0,230,208,0.3);
}
.site-nav a.launching {
  animation: navLaunch 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 1px rgba(0,230,208,0.22), 0 0 20px rgba(0,230,208,0.18), 0 18px 40px rgba(0,0,0,0.32);
}

@keyframes navLaunch {
  0%   { transform: translateY(-1px) scale(1.02); opacity: 1; }
  45%  { transform: translateY(-3px) scale(1.14); box-shadow: 0 0 0 10px rgba(0,230,208,0.18); opacity: 1; }
  80%  { transform: translateY(-1px) scale(1.06); box-shadow: 0 0 0 18px rgba(0,230,208,0.08); opacity: 0.9; }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 26px rgba(0,230,208,0); opacity: 1; }
}

#theme-toggle:hover { transform: translateY(-1px) scale(1.01); }

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-section canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.3;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
}
.hero-content {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero-section h1 {
  margin: 0;
  font-size: 3rem;
  color: var(--color-heading);
  /* blurred 3D effect on heading only */
  text-shadow:
    2px 2px 4px rgba(0, 230, 208, 0.3),
    4px 4px 8px rgba(0, 230, 208, 0.2),
    8px 8px 16px rgba(0, 0, 0, 0.6),
    12px 12px 24px rgba(0, 0, 0, 0.8);
}
.hero-section h2 {
  margin: 0.5rem 0 1.5rem;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-primary);
  text-shadow:
    1px 1px 3px rgba(0, 230, 208, 0.25),
    2px 2px 6px rgba(0, 230, 208, 0.15),
    6px 6px 12px rgba(0, 0, 0, 0.6);
  min-height: 2.4rem; /* reserve space to prevent vertical jump during typing */
}
.hero-section p {
  margin-bottom: 2rem;
  color: var(--color-light);
  /* no shadow on small text */
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(0, 230, 208, 0.9), rgba(0, 230, 208, 0.55));
  color: var(--color-bg);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  /* blurred 3D shadow on button itself with metallic gleam */
  box-shadow:
    0 4px 8px rgba(0, 230, 208, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.5);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.25));
  opacity: 0;
  transform: translateX(-30%) skewX(-10deg);
  transition: opacity 0.25s ease, transform 0.4s ease;
  pointer-events: none;
}
.btn:hover {
  background: linear-gradient(135deg, rgba(0, 230, 208, 1), rgba(0, 161, 155, 0.7));
  transform: translateY(-3px);
  box-shadow:
    0 10px 26px rgba(0, 230, 208, 0.32),
    0 12px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn:hover::before {
  opacity: 1;
  transform: translateX(30%) skewX(-10deg);
}
.btn.secondary {
  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(0, 230, 208, 0.8);
  color: var(--color-heading);
  box-shadow:
    0 6px 14px rgba(0, 230, 208, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn.secondary:hover {
  background: linear-gradient(135deg, rgba(0, 230, 208, 0.32), rgba(0, 230, 208, 0.12));
  color: var(--color-bg);
  box-shadow:
    0 10px 26px rgba(0, 230, 208, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Floating shapes */
.float-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Mascot styling */
.mascot-container {
  position: absolute;
  /* place mascot higher on the page (above the headline) and keep it behind text */
  top: 6%;
  left: 50%;
  transform: translate(-50%, 0);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}

/*
 * The mascot image sits inside the mascot container and has a gentle
 * radial mask applied so the edges fade away. This helps hide any
 * residual background after extracting the subject. We also constrain
 * its dimensions to keep it consistent across viewports.
 */
.mascot-container .mascot-image {
  /* larger rectangular mascot */
  width: 320px;
  height: 320px;
  object-fit: contain;
  pointer-events: none;
  /* remove circular clipping so image is rectangular */
  /* clip-path removed intentionally */
  /* Add a blurred glowing drop shadow for depth */
  filter: drop-shadow(0 8px 16px rgba(0, 230, 208, 0.3)) drop-shadow(0 16px 32px rgba(0, 0, 0, 0.6));
  transition: transform 150ms ease;
  transform-origin: 50% 50%;
}

/* Ensure hero text sits above the mascot */
.hero-content {
  position: relative;
  z-index: 3;
}

/* Add perspective so 3D rotations look natural */
.hero-section {
  perspective: 1200px;
}

/* Responsive: reduce mascot size and slightly lower it on small screens */
@media (max-width: 700px) {
  .mascot-container {
    top: 8%;
  }
  .mascot-container .mascot-image {
    width: 220px;
    height: 220px;
  }
}
.shape {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.7;
  animation: float 8s infinite ease-in-out;
}
.shape-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.shape-2 {
  top: 30%;
  left: 80%;
  width: 30px;
  height: 30px;
  animation-delay: 1.5s;
}
.shape-3 {
  top: 70%;
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 3s;
}
.shape-4 {
  top: 60%;
  left: 70%;
  width: 25px;
  height: 25px;
  animation-delay: 4.5s;
}
@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* Section headings */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-heading);
}

/* About */
.about-section {
  padding: 4rem 0;
  background: var(--color-panel);
}
.about-section p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-light);
  font-size: 1.1rem;
}

/* About page typography (no 3D effect) */
.about-content p {
  line-height: 1.8;
}

/* Skills */
.skills-section {
  padding: 4rem 0;
}
.skills-overview {
  padding: 2.5rem 0 3rem;
}
.skills-parallax-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 0.6rem;
}
.skills-center-word {
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  color: var(--color-heading);
  margin: 0;
  text-align: center;
}
.skills-cards-wrapper {
  width: 100%;
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
}
.skills-lists {
  display: flex;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 980px;
  width: 100%;
}
.skill-list-card {
  background: var(--color-panel);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  min-width: 180px;
  flex: 1 1 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.03);
}
.skill-list-card h3 {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-size: 1rem;
}
.skill-list {
  list-style: disc;
  margin: 0.2rem 0 0 1.1rem;
  padding: 0;
  color: var(--color-light);
  line-height: 1.45;
  font-size: 0.95rem;
}
.skill-list li {
  margin-bottom: 0.4rem;
}

@media (max-width: 820px) {
  .skills-lists { gap: 0.8rem; }
  .skill-list-card { flex: 1 1 220px; min-width: 220px; }
}

@media (max-width: 520px) {
  .skills-parallax-container { min-height: auto; padding: 1rem 0; }
  .skills-lists { flex-direction: column; align-items: center; }
  .skill-list-card { width: 100%; max-width: 360px; }
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--color-panel);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.skill-card h3 {
  margin-top: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
}
.skill-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
  color: var(--color-light);
}

/* Projects */
.projects-section {
  padding: 4rem 0;
  position: relative;
}

/* Publications */
.publications-section {
  padding: 4rem 0;
}
.publications-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.publications-header h2 {
  margin: 0;
  font-size: 2rem;
  color: var(--color-heading);
}
.publications-header .lead {
  color: var(--color-light);
  max-width: 72ch;
  margin: 0.6rem auto 0;
}
.pub-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.pub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 230, 208, 0.08), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}
.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  border-color: rgba(0, 230, 208, 0.18);
}
.pub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}
.pub-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--color-light);
  font-size: 0.9rem;
}
.pub-label {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 230, 208, 0.12);
  color: var(--color-primary);
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
}
.pub-id {
  color: var(--color-heading);
  font-weight: 700;
}
.pub-date {
  color: var(--color-grey);
  font-size: 0.85rem;
}
.pub-status {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 208, 0.2);
  background: rgba(0, 230, 208, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.82rem;
}
.pub-card h3 {
  margin: 0 0 0.75rem;
  color: var(--color-heading);
  font-size: 1.35rem;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.pub-authors,
.pub-abstract {
  margin: 0 0 0.85rem;
  color: var(--color-light);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.pub-authors strong {
  color: var(--color-heading);
}
.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .pub-card { padding: 1.2rem; }
  .pub-card h3 { font-size: 1.15rem; }
  .pub-top { flex-direction: column; align-items: flex-start; }
}

/* Experience / Timeline */
.experience-section { padding: 4rem 0; }
.experience-header { text-align:center; margin-bottom:1.25rem; }
.experience-header h2 { margin:0; color:var(--color-heading); font-size:2rem; }
.experience-header .lead { color:var(--color-light); max-width:72ch; margin:0.5rem auto 0; }

.timeline { list-style:none; padding:0; margin:1.5rem 0 0; display:grid; gap:1.5rem; }
.exp-item { display:flex; gap:1rem; align-items:flex-start; background:var(--color-panel); padding:1rem; border-radius:12px; border:1px solid rgba(255,255,255,0.03); box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.25s ease, box-shadow 0.25s ease; cursor: pointer; }
.exp-item.alt { flex-direction:row-reverse; }
.exp-badge { display:flex; gap:0.9rem; align-items:center; flex:0 0 260px; }
.company-logo { width:72px; height:72px; object-fit:cover; border-radius:10px; filter: drop-shadow(0 10px 24px rgba(0,230,208,0.06)); }
.exp-meta { display:flex; flex-direction:column; gap:0.15rem; }
.exp-role { font-weight:700; color:var(--color-primary); }
.exp-company { color:var(--color-light); font-size:0.95rem; }
.exp-date { color:var(--color-grey); font-size:0.83rem; }
.exp-body { flex:1; }
.exp-summary { margin:0 0 .6rem; color:var(--color-light); display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.exp-item.expanded .exp-summary { -webkit-line-clamp:unset; line-clamp:unset; }
.exp-highlights { margin:0 0 0.6rem 1.1rem; color:var(--color-light); max-height:0; overflow:hidden; opacity:0; transition:max-height 0.42s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease; }
.exp-item.expanded .exp-highlights { max-height:420px; opacity:1; }
.exp-links { margin-top:0.5rem; }

.exp-item:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,0.55); }
.exp-body:focus { outline: none; box-shadow: 0 0 0 4px rgba(0,230,208,0.06); }

@media (max-width: 900px) {
  .exp-item { flex-direction: column; gap:0.75rem; }
  .exp-item.alt { flex-direction: column; }
  .exp-badge { flex-direction:row; align-items:center; }
  .company-logo { width:56px; height:56px; }
  /* collapsed by default on small screens */
  .exp-item { cursor: pointer; }
  .exp-item:not(.expanded) .exp-highlights { max-height:0; opacity:0; }
}

@media (prefers-reduced-motion: reduce) {
  .exp-item { transition: none; }
}

/* Timeline connector line & pins */
.timeline { position: relative; /* leave space for the vertical line */ padding-left: 72px; padding-right: 1rem; --progress: 0%; }
.timeline::before { content: ''; position: absolute; left: 48px; top: 12px; bottom: 12px; width: 3px; background: linear-gradient(180deg, rgba(0,230,208,0.18) 0%, rgba(0,230,208,0.18) var(--progress), rgba(0,230,208,0.06) var(--progress), rgba(0,230,208,0.04) 100%); border-radius: 3px; z-index: 0; }
.exp-item { position: relative; z-index: 1; }
.exp-pin { position:absolute; left: 48px; top: 20px; width: 14px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: var(--color-bg); border: 3px solid rgba(0,230,208,0.18); box-shadow: 0 6px 18px rgba(0,230,208,0.06); cursor:pointer; z-index:2; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.exp-pin:hover, .exp-pin:focus { transform: translateX(-50%) scale(1.06); box-shadow: 0 12px 36px rgba(0,230,208,0.12); border-color: rgba(0,230,208,0.28); }
.exp-item.active .exp-pin { transform: translateX(-50%) scale(1.12); box-shadow: 0 16px 46px rgba(0,230,208,0.16); border-color: rgba(0,230,208,0.34); }

/* Make timeline discrete on smaller screens (no vertical line) */
@media (max-width: 900px) {
  .timeline { padding-left: 1rem; }
  .timeline::before { display: none; }
  .exp-item::before { display: none; }
  .exp-pin { display:none; }
}

/* Make timeline discrete on smaller screens (no vertical line) */
@media (max-width: 900px) {
  .timeline { padding-left: 1rem; }
  .timeline::before { display: none; }
  .exp-item::before { display: none; }
}

/* Adjust badge width to keep layout compact */
.exp-badge { display:flex; gap:0.9rem; align-items:center; flex:0 0 220px; }

@media (max-width: 900px) {
  .exp-badge { flex: 0 0 auto; }
}

/* Role badge */
.role-badge { display:inline-block; margin-left:0.6rem; font-size:0.7rem; padding:0.18rem 0.45rem; border-radius:999px; color:var(--color-bg); background: linear-gradient(90deg, rgba(0,230,208,0.98) 0%, rgba(3,191,181,0.9) 50%, rgba(0,161,155,0.95) 100%); box-shadow: 0 6px 28px rgba(0,230,208,0.08); transform-origin:center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.exp-item:hover .role-badge { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 40px rgba(0,230,208,0.12); }

/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity 220ms ease; }
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal-backdrop { position:absolute; inset:0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); }
.modal-dialog { position:relative; width: min(920px, 94%); max-height: 86vh; background: linear-gradient(180deg, var(--color-panel), rgba(0,0,0,0.3)); border-radius: 12px; padding: 1rem; box-shadow: 0 30px 80px rgba(0,0,0,0.6); overflow:auto; }
.modal-close { position:absolute; right:8px; top:8px; background:transparent; border:none; color:var(--color-light); font-size:1.1rem; cursor:pointer; }
.modal-inner { padding: 0.6rem 0.6rem 1.2rem; color: var(--color-light); }
.modal-header h3 { margin-top:0; color:var(--color-primary); font-size:1.25rem; }
.modal-header .muted { color: var(--color-light); opacity:0.9; font-size:0.9rem; }
.modal-inner .modal-summary { margin-top:0.4rem; color:var(--color-light); }
.modal-inner .project-gallery, .modal-inner .modal-gallery { display:grid; grid-template-columns: 1fr 1fr; gap:0.6rem; margin-top:0.6rem; }
.modal-inner .project-gallery img, .modal-inner .modal-gallery img { width:100%; height:160px; object-fit:cover; border-radius:8px; }

/* Inline thumbnail gallery in the timeline */
.exp-thumb-gallery { display:flex; gap:0.5rem; margin:0.75rem 0; }
.exp-thumb-gallery .thumb { padding:0; border-radius:8px; overflow:hidden; background:transparent; border: 1px solid rgba(255,255,255,0.04); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.exp-thumb-gallery img { display:block; width:120px; height:72px; object-fit:cover; }
.exp-thumb-gallery .thumb:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 36px rgba(0,230,208,0.08); }

@media (max-width: 720px) {
  .exp-thumb-gallery { display:block; }
  .exp-thumb-gallery .thumb { display:inline-block; width:100%; }
  .exp-thumb-gallery img { width:100%; height:160px; }
}

/* Filter chips */
/* Filter bar removed */
/* Removed filter bar styles (filters removed) */

@media (max-width: 720px) {
  .modal-dialog { padding: 0.6rem; }
  .modal-inner .project-gallery img { height:120px; }
  .role-badge { display:none; }
}

.swiper-container {
  width: 100%;
  height: auto;
  padding: 2rem 0;
}
.swiper-wrapper {
  padding-bottom: 3rem;
}
.swiper-slide {
  display: flex;
  justify-content: center;
}
/* Grid‑based Projects layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .project-image { height: 200px; }
  .project-info { padding: 1.1rem; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-image { height: 180px; }
  .project-info { padding: 1rem; }
  .project-excerpt { font-size: 0.95rem; }
}

/* Project card interactive enhancements */
.project-card { position: relative; overflow: visible; }
.project-card .project-info { transition: transform 220ms ease, box-shadow 220ms ease; }
.project-card:hover .project-info { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.45); }

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.project-overlay .overlay-inner {
  width: 100%;
  display: flex;
  justify-content: center; /* centre the button */
  gap: 0.6rem;
  padding: 0.6rem 0.8rem 1.0rem; /* push slightly above bottom */
  pointer-events: auto;
}
.quick-view {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-size: 1rem;
}
.quick-view:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,230,208,0.16), 0 10px 26px rgba(0,0,0,0.35);
}

/* Ensure card content has space at bottom so quick-view sits visually below without overlapping */
.projects-grid .project-card .project-info { padding-bottom: 3.2rem; }

/* Nudge overlay button slightly lower so it doesn't overlap card content */
.project-overlay { align-items: flex-end; }
.project-overlay .overlay-inner { transform: translateY(8px); }

/* Card tilt effect container */
.project-card.tilt { perspective: 900px; }
.project-card .project-image, .project-card .project-info { transform-style: preserve-3d; transition: transform 180ms ease; }

/* Modal tweaks for project quick view */
.modal-dialog { width: min(920px, 94%); }
.modal-inner { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.modal-gallery img { width:100%; height:220px; object-fit:cover; border-radius:8px; }
.modal-summary { color: var(--color-light); margin-top: 0.4rem; }

@media (max-width: 900px) {
  .modal-inner { grid-template-columns: 1fr; }
  .modal-gallery img { height:160px; }
}

/* Project filters */
.projects-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0 0.6rem;
}
.filter-chip {
  background: rgba(255,255,255,0.03);
  color: var(--color-light);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}
.filter-chip:hover { transform: translateY(-2px); }
.filter-chip.active {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  border-color: transparent;
}

@media (max-width: 520px) {
  .projects-filters { gap: 0.4rem; }
  .filter-chip { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
}
.projects-grid .project-card {
  background: var(--color-panel);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease;
  display: block;
  border: 1px solid rgba(255,255,255,0.03);
}
.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.project-image {
  height: 220px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}
.project-image img,
.project-image model-viewer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.project-info h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.05rem;
}
.project-excerpt {
  margin: 0;
  color: var(--color-light);
  font-size: 0.95rem;
  line-height: 1.35;
}
.project-tags { display:flex; gap:0.5rem; margin-top: 0.4rem; }
.tag { background: rgba(255,255,255,0.02); padding:0.28rem 0.6rem; border-radius:999px; font-size:0.78rem; color:var(--color-light); border:1px solid rgba(255,255,255,0.02); }
.project-cta { margin-top: 0.6rem; }
.projects-grid .project-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.projects-grid .project-card:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,230,208,0.08); transform: translateY(-8px) scale(1.02); }

/* Project detail page layout */
.project-hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}
.project-hero .star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
}
.project-hero .container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}
.project-hero .hero-inner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-radius: 16px;
  perspective: 900px;
}
.project-hero .hero-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0, 230, 208, 0.15), transparent 45%),
              linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 0;
}
.project-hero .hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.project-hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero .hero-overlay {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  backdrop-filter: none;
  padding: 0;
  width: min(900px, 90%);
  box-shadow: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.project-hero .hero-title-card {
  margin: 0 auto 1.4rem;
  padding: 1.6rem 2rem;
  width: min(1100px, 92%);
  text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(0,0,0,0.7));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}
.project-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.4rem;
  color: var(--color-heading);
  position: relative;
  display: inline-block;
  letter-spacing: 0.4px;
  background: linear-gradient(120deg, #ffffff 0%, #e3fffb 35%, #8ef5ea 65%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-title-sheen 6s ease-in-out infinite;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(0, 230, 208, 0.18),
    0 0 40px rgba(0, 230, 208, 0.12);
}
.project-hero h1::after {
  content: '';
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(0, 230, 208, 0.25), rgba(0, 230, 208, 0) 60%);
  filter: blur(14px);
  opacity: 0.45;
  z-index: -1;
  animation: hero-title-glow 4.8s ease-in-out infinite;
}
.light-mode .project-hero h1 {
  background: linear-gradient(120deg, #0c161a 0%, #0e3a37 40%, #00a19b 70%, #0c161a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes hero-title-sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes hero-title-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}
.project-hero .lead {
  margin: 0.2rem 0 0;
  color: var(--color-light);
  font-size: 1.05rem;
}
.project-body { padding: 3rem 0; max-width: 1100px; margin: 0 auto; display:grid; grid-template-columns: 1fr; gap: 1.5rem; }
.project-overview { color: var(--color-light); font-size: 1rem; line-height: 1.6; }
.project-meta { background: var(--color-panel); padding: 1rem; border-radius: 12px; border:1px solid rgba(255,255,255,0.03); width: 100%; }

/* Quick facts on project pages */
.project-quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.6rem;
}
.quickfact {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--color-light);
}
.quickfact h4 {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.quickfact p { margin: 0; font-size: 0.95rem; line-height: 1.45; }
.project-gallery { display:grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.project-gallery { grid-template-columns: 1fr; }
.project-gallery.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-gallery img { width:100%; height:320px; object-fit:cover; border-radius:8px; }
.project-gallery img:nth-child(n+4) { display: none; }
.project-back { margin-top: 1rem; display:inline-block; }
.project-gallery.contain img {
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.5);
}
.project-gallery img { cursor: zoom-in; }

/* Project image lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4500;
  padding: 1rem;
}
.image-lightbox.open { display: flex; }
.image-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #000;
  border: 1px solid rgba(0,230,208,0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}
.image-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 900px) {
  .project-hero .container { flex-direction: column; }
  .project-hero .hero-image { width:100%; height:220px; }
  .project-body { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery.two-up { grid-template-columns: 1fr; }
}
.swiper-button-prev,
.swiper-button-next {
  color: var(--color-primary);
}
.swiper-pagination-bullet {
  background: var(--color-grey);
  opacity: 0.6;
}
.swiper-pagination-bullet-active {
  background: var(--color-primary);
  opacity: 1;
}

/* Certifications */
.certifications-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.36));
}
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  grid-auto-flow: dense;
}
.cert-card-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  color: var(--color-light);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.cert-card-modern:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 70px rgba(0,0,0,0.45); border-color: rgba(0,230,208,0.18); }
.cert-figure {
  position: relative;
  width: 100%;
  overflow: hidden;
  perspective: 1200px;
}
.cert-figure.landscape { aspect-ratio: 16 / 9; }
.cert-figure.portrait { aspect-ratio: 3 / 4; }
.cert-figure.square { aspect-ratio: 1 / 1; }
.cert-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.cert-card-modern:hover .cert-figure img { transform: rotateY(-8deg) scale(1.04); }
.cert-body {
  padding: 0.9rem 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  flex: 1 1 auto;
}
.cert-body > h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-body > p {
  margin: 0;
  color: var(--color-light);
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cert-meta {
  color: var(--color-grey);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cert-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}
.cert-expand p {
  margin: 0;
  color: var(--color-light);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cert-card-modern.expanded .cert-expand {
  max-height: 200px;
  opacity: 1;
}
.cert-card-modern.expanded .cert-figure img { transform: rotateY(0deg) scale(1.08) translateY(-4px); }
.cert-card-modern.expanded { box-shadow: 0 30px 90px rgba(0,0,0,0.55); border-color: rgba(0,230,208,0.28); }
.cert-toggle-tip { color: var(--color-grey); font-size: 0.82rem; margin-top: 0.2rem; }
.cert-card-modern.expanded .cert-toggle-tip { color: var(--color-primary); }

/* Certification lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  padding: 0;
}
.cert-lightbox.open { display: flex; }
.cert-lightbox-inner {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: #000;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: block;
}
.cert-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  margin: 0;
}
.cert-lightbox .cert-lightbox-body {
  display: none;
}
.cert-lightbox .cert-lightbox-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.cert-lightbox .cert-lightbox-close::before {
  content: "X";
}

/* Contact */
.contact-section {
  padding: 4rem 0;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-grid input {
  flex: 1 1 250px;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid var(--color-grey);
  border-radius: var(--border-radius);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 1rem;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-form button {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Contact info styles */
.contact-info {
  margin-bottom: 2rem;
  color: var(--color-light);
  font-size: 1rem;
  line-height: 1.6;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  flex-wrap: wrap;
}
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}

/* Contact redesign */
.contact-section.contact-redesign {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.contact-section.contact-redesign::before,
.contact-section.contact-redesign::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 208, 0.16), rgba(0, 230, 208, 0));
  filter: blur(10px);
  opacity: 0.6;
  pointer-events: none;
}
.contact-section.contact-redesign::before {
  left: -120px;
  top: 60px;
}
.contact-section.contact-redesign::after {
  right: -140px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(3, 191, 181, 0.18), rgba(0, 0, 0, 0));
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-panel,
.contact-form-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.contact-panel::before,
.contact-form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 230, 208, 0.12), transparent 55%);
  pointer-events: none;
  opacity: 0.8;
}
.contact-panel-header,
.form-header {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 208, 0.25);
  background: rgba(0, 230, 208, 0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}
.contact-panel h2,
.contact-form-card h2 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  color: var(--color-heading);
}
.contact-panel p,
.contact-form-card p {
  margin: 0;
  color: var(--color-light);
}
.contact-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.highlight-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.highlight-card h3 {
  margin: 0 0 0.4rem;
  color: var(--color-primary);
  font-size: 1rem;
}
.highlight-card p {
  margin: 0;
  color: var(--color-light);
  font-size: 0.95rem;
}
.contact-info-list {
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 230, 208, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.contact-info-card .contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(0, 230, 208, 0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}
.contact-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-grey);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.contact-value {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.98rem;
  word-break: break-word;
}
.contact-form-card .contact-form {
  max-width: none;
  position: relative;
  z-index: 1;
}
.contact-form-card .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-field label {
  font-size: 0.85rem;
  color: var(--color-light);
  letter-spacing: 0.6px;
}
.contact-form-card .contact-form input,
.contact-form-card .contact-form textarea {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 230, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.contact-form-card .contact-form input:focus,
.contact-form-card .contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 230, 208, 0.15);
}
.contact-form-card .contact-form button {
  margin-top: 0.6rem;
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-light);
}
.form-note a {
  color: var(--color-primary);
  text-decoration: none;
}
.form-note a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-highlights {
    grid-template-columns: 1fr;
  }
  .contact-form-card .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 2rem 0 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  color: var(--color-light);
}
.site-footer > .container:not(.footer-grid):not(.site-footer-bottom) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}
.footer-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}
.footer-about h3 {
  margin: 0 0 0.5rem;
  color: var(--color-heading);
  font-size: 1.4rem;
}
.footer-about p { margin: 0 0 1rem; color: var(--color-light); }
.footer-ctas { display:flex; gap: 0.75rem; margin-top:0.5rem; }
.footer-links h4, .footer-connect h4 { margin: 0 0 0.5rem; color: var(--color-heading); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--color-light); text-decoration: none; opacity: 0.9; }
.social-icons { display:flex; gap: 0.5rem; align-items:center; }
.social-link { display:inline-flex; width:40px; height:40px; border-radius:50%; align-items:center; justify-content:center; background: rgba(255,255,255,0.02); color: var(--color-primary); border: 1px solid rgba(255,255,255,0.04); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.social-link:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,230,208,0.08); }
.site-footer-bottom { display:flex; gap:1rem; align-items:center; justify-content:space-between; max-width:1200px; margin: 0 auto; padding: 1rem 1rem 0; border-top: 1px solid rgba(255,255,255,0.03); }
.site-footer-bottom p { margin: 0; font-size: 0.9rem; color: var(--color-light); }
#back-to-top { background: transparent; border: 1px solid rgba(255,255,255,0.04); color: var(--color-light); width:40px; height:40px; border-radius:50%; cursor:pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, transform 0.2s ease; opacity: 0; transform: translateY(8px); }
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,230,208,0.06); }

/* Responsive footer */
@media (max-width: 800px) {
  .footer-grid { flex-direction: column; gap: 1rem; align-items: stretch; }
  .site-footer-bottom { flex-direction: column; gap: 0.5rem; align-items: center; text-align: center; }
}


/* Responsive typography */
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
  .hero-section h2 {
    font-size: 2rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  .shape {
    display: none;
  }
}

/* Page hero sections for secondary pages */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  text-align: center;
  padding: 3rem 0;
  overflow: hidden;
}
.page-hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.3;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 4vw, 4.1rem);
  font-weight: 800;
  color: transparent;
  letter-spacing: 1px;
  background-image:
    linear-gradient(110deg, #ffffff 0%, #dadada 12%, #f9f9f9 24%, #9f9f9f 38%, #f4f4f4 52%, #8f8f8f 68%, #fdfdfd 82%, #b9b9b9 100%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0.35) 0, rgba(255,255,255,0.35) 2px, rgba(0,0,0,0.28) 3px, rgba(0,0,0,0.28) 4px);
  background-size: 240% 100%, 18px 100%;
  background-blend-mode: screen;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.6px rgba(255,255,255,0.18);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.45),
    0 -1px 0 rgba(0,0,0,0.7),
    0 6px 20px rgba(0, 0, 0, 0.7),
    0 0 26px rgba(255, 255, 255, 0.22),
    0 0 44px rgba(255, 255, 255, 0.1);
}
.page-hero p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Contextual sidebar-esque 3D hints */
.page-hero::after {
  content: '';
  position: absolute;
  right: 6%;
  top: 50%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(0,230,208,0.18), rgba(0,230,208,0));
  filter: blur(12px);
  transform: translateY(-50%) rotate3d(1,1,0,18deg);
  pointer-events: none;
}
.projects-hero::after { background: radial-gradient(circle at 30% 30%, rgba(0,230,208,0.26), rgba(0,230,208,0)); }
.experience-hero::after { background: radial-gradient(circle at 30% 30%, rgba(0,161,155,0.26), rgba(0,161,155,0)); }
.certifications-hero::after { background: radial-gradient(circle at 30% 30%, rgba(3,191,181,0.28), rgba(3,191,181,0)); }

/* About page improvements */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.25rem; align-items: start; }
.about-bio h2 { font-size: 1.6rem; margin-top: 0; color: var(--color-heading); }
.about-bio .lead { font-size: 1.05rem; line-height: 1.75; color: var(--color-light); margin-bottom: 0.75rem; }
.about-bio p { line-height: 1.7; color: var(--color-light); margin-bottom: 0.75rem; max-width: 70ch; }
.about-cta { margin-top: 1rem; display:flex; gap:0.75rem; }

.about-side { padding: 0.5rem; }
.about-facts { display:flex; gap:0.75rem; margin-bottom: 1rem; flex-wrap:wrap; }
.fact { background: rgba(0,230,208,0.03); border: 1px solid rgba(0,230,208,0.06); padding: 0.6rem 0.75rem; border-radius: 12px; min-width: 120px; text-align:center; }
.fact strong { display:block; font-size:1.25rem; color:var(--color-primary); }
.fact span { font-size:0.85rem; color:var(--color-light); }

.about-skills h4 { margin: 0 0 0.5rem; color: var(--color-heading); }
.skill-chips { display:flex; flex-wrap:wrap; gap:0.5rem; }
.skill-chip { background: rgba(255,255,255,0.03); border-radius: 999px; padding: 0.4rem 0.75rem; font-size:0.85rem; color:var(--color-light); border:1px solid rgba(255,255,255,0.02); }

/* Education section styling */
.about-education { margin-top: 2rem; }
.about-education h3 { margin: 0 0 0.75rem; color: var(--color-heading); }
.education-list { display:flex; flex-direction:column; gap: 1rem; }
.education-item { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); padding: 0.9rem; border-radius:12px; border:1px solid rgba(255,255,255,0.03); box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.education-item h4 { margin:0 0 0.25rem; color:var(--color-primary); }
.education-item p { margin: 0; color:var(--color-light); font-size:0.95rem; line-height:1.4; }

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


/* Skills Section - Organic Floating Layout */

/* Enhanced Skills page styles */
.skills-section { padding: 4rem 0; }
.skills-header { text-align: center; margin-bottom: 1.5rem; }
.skills-header h2 { margin: 0; font-size: 2rem; color: var(--color-heading); }
.skills-header .lead { color: var(--color-light); margin-top: .5rem; max-width: 72ch; margin-left:auto; margin-right:auto; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.skill-card { background: rgba(0, 0, 0, 0.35); border-radius: 14px; padding: 1.25rem; border: 1px solid rgba(255,255,255,0.03); box-shadow: 0 8px 40px rgba(0,0,0,0.45); transform-origin: center center; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s ease; will-change: transform, box-shadow; overflow: hidden; }
.skill-header { display:flex; align-items:center; gap:0.8rem; margin-bottom:0.5rem; }
.skill-icon { width:34px; height:34px; color: var(--color-primary); flex: 0 0 34px; opacity: 0.95; }
.skill-card h3 { margin: 0; font-size:1.05rem; color: var(--color-primary); }
.skill-tags { display:flex; gap:0.4rem; flex-wrap:wrap; margin-bottom:0.6rem; }
.skill-tag { background: rgba(255,255,255,0.02); padding:0.25rem 0.6rem; border-radius:999px; font-size:0.8rem; color:var(--color-light); border:1px solid rgba(255,255,255,0.02); }
.skill-desc { margin:0 0 0.8rem; color:var(--color-light); font-size:0.95rem; line-height:1.5; }
.skill-meter { height: 10px; background: rgba(255,255,255,0.03); border-radius:999px; overflow:hidden; }
.skill-meter-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); border-radius:999px; transition: width 1.4s cubic-bezier(0.22,1,0.36,1); }
.skill-meter-fill.filled { box-shadow: 0 6px 20px rgba(0,230,208,0.12); }

/* Demo styles */
.skill-actions { margin-bottom: 0.6rem; }
.demo-toggle { background: rgba(0,230,208,0.06); border:1px solid rgba(0,230,208,0.12); color:var(--color-primary); padding:0.35rem 0.6rem; border-radius:8px; cursor:pointer; font-weight:600; }
.micro-demo { margin-top:0.6rem; background:linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.55)); border-radius:10px; padding:0.6rem; display:none; align-items:center; gap:0.6rem; }
.micro-demo.active { display:flex; }
.micro-svg { width:100%; height:70px; display:block; }
.micro-caption { color:var(--color-light); font-size:0.85rem; opacity:0.9; margin-left:0.6rem; }
.wave { stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: wave-anim 2.2s linear infinite; }
@keyframes wave-anim { to { stroke-dashoffset: 0; } }

/* gentler hover/tilt */
.skill-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 60px rgba(0,0,0,0.52); }

/* focus-visible for keyboard users */
.skill-card:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,230,208,0.08), 0 22px 60px rgba(0,0,0,0.6); transform: translateY(-6px) scale(1.01); }

/* subtle staggered entry using CSS vars tied to data-index (JS will set) */
.skill-card { opacity: 0; transform: translateY(12px); }
.skill-card.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .skill-meter { height: 8px; }
}

.skills-overview {
  padding: 7.5rem 0;
  background:
    radial-gradient(120% 140% at 20% 30%, rgba(0, 230, 208, 0.12), transparent 52%),
    radial-gradient(110% 120% at 80% 10%, rgba(0, 140, 255, 0.12), transparent 55%),
    linear-gradient(180deg, var(--color-panel) 0%, rgba(0, 0, 0, 0.25) 100%);
  position: relative;
  overflow: hidden;
  min-height: 820px;
  isolation: isolate;
}

.skills-overview::before,
.skills-overview::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 230, 208, 0.06), transparent 60%);
  filter: blur(30px);
  opacity: 0.7;
  transform: rotate(8deg);
  animation: skills-grid-drift 18s ease-in-out infinite alternate;
  z-index: 0;
}
.skills-overview::after {
  inset: -18%;
  background:
    radial-gradient(120% 120% at 25% 35%, rgba(0, 230, 208, 0.14), transparent 60%),
    radial-gradient(100% 100% at 80% 60%, rgba(0, 115, 255, 0.12), transparent 60%);
  filter: blur(22px);
  opacity: 0.55;
  transform: rotate(-4deg);
  animation: aurora-pulse 16s ease-in-out infinite alternate;
}

.skills-parallax-container {
  position: relative;
  width: min(1200px, 100%);
  margin: 0 auto;
  height: clamp(760px, 90vh, 980px);
  perspective: 2000px;
  transform-style: preserve-3d;
}

/* Central Skills Word - appears last */
.skills-center-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--color-heading);
  margin: 0;
  text-align: center;
  z-index: 2;
  opacity: 0;
  text-shadow: 0 12px 48px rgba(0, 230, 208, 0.18);
  letter-spacing: 2px;
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform, opacity;
}

/* Skill Cards Container */
.skills-cards-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual floating skill cards */
.skill-card-floating {
  position: absolute;
  width: clamp(240px, 30vw, 340px);
  height: clamp(180px, 22vw, 220px);
  left: 50%;
  top: 50%;
  opacity: 0;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  transition: filter 0.35s ease, box-shadow 0.35s ease;
}

/* Soft blurred card styling */
.skill-card-blur {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(0, 230, 208, 0.08), rgba(0, 230, 208, 0.02));
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0, 230, 208, 0.16);
  box-shadow: 0 12px 70px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Soft glow gradient overlay */
.skill-card-blur::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 230, 208, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.skill-card-blur::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 120%;
  top: -10%;
  left: 10%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 230, 208, 0.04));
  opacity: 0.6;
  filter: blur(10px);
  transform: rotate(8deg);
  mix-blend-mode: screen;
  z-index: 1;
}

.skill-card-blur h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  will-change: opacity;
}

.skill-card-blur p {
  margin: 0;
  color: var(--color-light);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  will-change: opacity;
}
.skill-bullets {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-light);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  will-change: opacity;
}
.skill-bullets li { margin-bottom: 0.25rem; }

/* Hover effect */
.skill-card-floating:hover .skill-card-blur {
  background: rgba(0, 230, 208, 0.12);
  border-color: rgba(0, 230, 208, 0.24);
  box-shadow: 0 16px 70px rgba(0, 230, 208, 0.18);
}

@keyframes skills-grid-drift {
  from { transform: rotate(8deg) translate3d(0, 0, 0); opacity: 0.65; }
  to { transform: rotate(2deg) translate3d(0, 12px, 0); opacity: 0.85; }
}
@keyframes aurora-pulse {
  from { opacity: 0.55; transform: rotate(-4deg) scale(1); }
  to { opacity: 0.9; transform: rotate(-8deg) scale(1.05); }
}

@media (max-width: 900px) {
  .skills-parallax-container { height: 780px; perspective: 1600px; }
}
@media (max-width: 720px) {
  .skills-overview { padding: 5.5rem 0; min-height: 720px; }
  .skills-parallax-container { height: 720px; }
  .skills-center-word { font-size: 2.4rem; }
  .skill-card-floating { width: clamp(240px, 80vw, 320px); height: auto; min-height: 190px; }
}
@media (max-width: 520px) {
  .skills-overview { min-height: 640px; }
  .skills-parallax-container { height: 640px; }
}

/* 3D Project Carousel Section */
.projects-carousel-section {
  padding: 4rem 0;
  perspective: 1200px;
}
.projects-carousel-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-heading);
}
.carousel-3d-container {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  perspective: 1600px;
  overflow: visible;
}
.carousel-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.carousel-item {
  position: absolute;
  width: 360px;
  max-width: 40%;
  height: 320px;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform-style: preserve-3d;
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  will-change: transform, opacity;
  pointer-events: auto;
}
.carousel-item .project-card-3d {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.carousel-item.center {
  z-index: 6;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,230,208,0.06);
}
.carousel-item.side {
  z-index: 4;
  filter: saturate(0.9) brightness(0.95);
}
.carousel-item.offscreen {
  opacity: 0;
  pointer-events: none;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.carousel-dots button.active {
  background: var(--color-primary);
  transform: scale(1.2);
  box-shadow: 0 6px 18px rgba(0,230,208,0.22);
}

/* Responsive carousel sizing */
@media (max-width: 900px) {
  .carousel-3d-container { height: 360px; }
  .carousel-item { width: 300px; height: 260px; }
}
@media (max-width: 520px) {
  .carousel-3d-container { height: 320px; }
  .carousel-item { width: 240px; height: 200px; }
  .carousel-dots { bottom: -40px; }
}
.project-card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.project-card-3d::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
  pointer-events: none;
}
.project-card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}
.carousel-item.center .project-card-3d img {
  transform: scale(1.06);
}
.project-card-3d .project-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 0;
}
.project-card-3d .project-tile h3 {
  margin: 0;
  color: var(--color-heading);
  font-size: 1.2rem;
  letter-spacing: 0.6px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}
.carousel-controls {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}
/* arrows and dots removed by user request */
.carousel-controls { display: none !important; }
.carousel-btn { display: none !important; }
.carousel-dots { display: none !important; }
.view-more {
  text-align: center;
  margin-top: 80px;
}

/* Timeline styles for professional experience */
.experience-section {
  padding: 4rem 0;
}
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--color-primary);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
}
.timeline-date {
  font-size: 0.9rem;
  color: var(--color-grey);
  margin-bottom: 0.25rem;
}
.timeline-content h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}
.timeline-content p {
  margin: 0;
  color: var(--color-light);
  font-size: 0.95rem;
}

/* Modern timeline redesign */
.timeline-modern { position: relative; padding: 3rem 0; }
.timeline-modern-list { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-modern-list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,230,208,0.25), rgba(0,230,208,0.08));
}
.exp-item.modern {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  position: relative;
  margin-bottom: 1.6rem;
}
.timeline-node {
  position: relative;
  width: 64px;
}
.timeline-node .node-dot {
  position: absolute;
  left: 22px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0,230,208,0.25);
}
.timeline-node .node-line {
  position: absolute;
  left: 28px;
  top: 22px;
  bottom: -60px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,230,208,0.18), rgba(0,230,208,0.04));
}
.exp-card {
  background: var(--color-panel);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(0,0,0,0.42); border-color: rgba(0,230,208,0.16); }
.exp-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap: 1rem; }
.exp-card-header .exp-role { font-weight: 700; color: var(--color-heading); }
.exp-card-header .exp-company { color: var(--color-light); font-size: 0.95rem; }
.exp-card-header .exp-date { color: var(--color-grey); font-size: 0.9rem; white-space: nowrap; }
.exp-summary { margin: 0.6rem 0; color: var(--color-light); line-height: 1.55; display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.exp-meta-row { display:flex; gap:0.8rem; align-items:center; flex-wrap:wrap; margin-bottom: 0.4rem; }
.chip { display:inline-flex; align-items:center; gap:0.4rem; padding: 0.25rem 0.65rem; border-radius:999px; background: rgba(0,230,208,0.08); border:1px solid rgba(0,230,208,0.18); color: var(--color-primary); font-weight:600; font-size:0.82rem; }
.text-link { color: var(--color-primary); text-decoration:none; font-weight:600; }
.text-link:hover { text-decoration: underline; }
.exp-full { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s ease, opacity 0.35s ease; }
.exp-item.expanded .exp-full { max-height: 1000px; opacity: 1; margin-top: 0.4rem; }
.exp-full-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.8rem; align-items: start; }
.exp-full-grid .exp-detail p { margin:0; color: var(--color-light); line-height:1.55; }
.exp-actions { margin-top: 0.4rem; display:flex; justify-content:flex-end; }
.exp-toggle { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: var(--color-light); padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer; font-weight: 600; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.exp-toggle:hover { background: rgba(0,230,208,0.1); color: var(--color-primary); transform: translateY(-2px); }
.exp-item.expanded .exp-summary { -webkit-line-clamp: unset; line-clamp: unset; }
.exp-item.expanded .exp-toggle { background: rgba(0,230,208,0.1); color: var(--color-primary); border-color: rgba(0,230,208,0.24); }

@media (max-width: 900px) {
  .timeline-modern-list::before { left: 18px; }
  .exp-item.modern { grid-template-columns: 44px 1fr; }
  .timeline-node .node-dot { left: 12px; }
  .timeline-node .node-line { left: 18px; }
  .exp-card-header { flex-direction: column; align-items: flex-start; }
  .exp-full-grid { grid-template-columns: 1fr; }
}
