/* Center Lottie player in Experience section */
.experience-section lottie-player {
  display: block;
  margin: 0 auto;
}
/* Experience layout reverted to single-column; using inline lottie size */
/* Hide Skills logo panel on mobile */
@media (max-width: 768px) {
  .skills-left,
  .skills-logo-grid { display: none !important; }
  .skills-right { width: 100%; }
}
/* Crypto Scanner (Mobile Only) */
.crypto-scanner {
  display: none;
  position: relative;
  width: 100%;
  height: 68px;
  margin: 14px 0 30px; /* clearer gap before skill filters */
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
  .crypto-scanner { display: block; }
}

.crypto-scanner .scanner-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, #ff8a3d 0%, #ff6b00 60%, #ff9a40 100%);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.9), 0 0 24px rgba(255, 107, 0, 0.5);
}

.crypto-scanner .scanner-belt {
  position: relative;
  width: 100%;
  height: 100%;
}

.crypto-scanner .belt-track {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
  animation: beltScroll 200s linear infinite;
}

@keyframes beltScroll {
  0% { transform: translate3d(0, -50%, 0); }
  100% { transform: translate3d(-50%, -50%, 0); }
}

.crypto-item {
  font-size: 24px;
  line-height: 1;
  transition: color 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              text-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: color, filter, text-shadow;
}
.crypto-item i { font-size: 26px; }

.crypto-item.left-bright {
  color: var(--accent, #ff6b00);
  text-shadow: 0 0 8px var(--glow1, rgba(255, 107, 0, 0.6)), 0 0 18px var(--glow2, rgba(255, 200, 70, 0.4));
  filter: none;
}

.crypto-item.right-muted {
  color: rgba(255, 255, 255, 0.35);
  filter: grayscale(100%) brightness(0.7);
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .crypto-scanner .belt-track { animation: none; }
}
.skills-two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
  width: auto;
  height: auto;
  border-radius: 0;
  min-height: 300px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Mobile: stack circles above logos */
@media (max-width: 780px) {
  .skills-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Reorder: circles first, logos second */
  .skills-right { grid-row: 1; }
  .skills-left { grid-row: 2; }
  /* Tighter spacing when stacked */
  .skills-grid { margin-top: 0.5rem; }
  .skills-logo-grid { margin-top: 1.2rem; }
}

/* Hex profile - sample-based */
.profile-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hex-shape {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.profile-image {
  width: 280px;
  height: 320px;
  background-color: #333;
  z-index: 10;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hex-border-main {
  width: 300px;
  height: 345px;
  background: linear-gradient(135deg, var(--light-orange, #ff5e00), var(--primary-orange, #FF8C00));
  z-index: 5;
}
.hex-decoration-1 {
  width: 340px;
  height: 390px;
  background: rgb(188, 116, 56);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -20px;
  left: -30px;
}
.hex-decoration-1::after {
  content: "";
  width: 98%;
  height: 98%;
  background-color: var(--color-bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.accent-line {
  position: absolute;
  background-color: rgb(253, 185, 117);
  z-index: 0;
}
  .line-top-left {
    width: 4px;
    height: 100px;
    top: 0;
    left: 20px;
    transform: rotate(30deg);
  }
  .line-bottom-right {
    width: 4px;
    height: 150px;
    bottom: -20px;
    right: 40px;
    transform: rotate(30deg);
  }

/* Mobile responsiveness and performance tweaks for hero profile */
@media (max-width: 860px) {
  .hero-right { flex: 1 1 auto; max-width: 520px; }
  .profile-wrapper { width: min(80vw, 340px); height: auto; aspect-ratio: 1 / 1; }
  .profile-image { width: 70%; height: 72%; }
  .hex-border-main { width: 78%; height: 82%; }
  /* Hide decorative extras on mobile to reduce visual noise and lag */
  .hex-decoration-1, .accent-line { display: none; }
}
@media (max-width: 480px) {
  .profile-wrapper { width: min(88vw, 320px); }
  .profile-image { width: 74%; height: 74%; }
  .hex-border-main { width: 82%; height: 86%; }
}
.logo-panel::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: conic-gradient(
    transparent 0deg,
    transparent 270deg,
    #e47f36 360deg
  );
  animation: rotate 4s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 16px rgba(255, 106, 0, 0.55));
  z-index: 0;
}
.logo-panel::after {
  content: '';
  position: absolute;
  inset: 3px; /* border thickness */
  background: #0c0c0c; /* match panel background */
  border-radius: 24px; /* slightly less than parent */
  z-index: 1; /* above laser, below content */
}
.logo-panel:hover::before { box-shadow: 0 0 20px #ff6a00; }

/* Staggered float delays for subtle variety */
.skills-logo-grid .logo-card:nth-child(3n+1) .logo-panel img { animation-delay: 0.1s; }
.skills-logo-grid .logo-card:nth-child(3n+2) .logo-panel img { animation-delay: 0.35s; }
.skills-logo-grid .logo-card:nth-child(3n)   .logo-panel img { animation-delay: 0.6s; }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.skills-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly three per row */
  gap: 60px 25px; /* increase vertical gap */
  justify-items: center; /* center cards within cells */
  margin-top: 5rem; /* match circle skills grid spacing */
}
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.logo-panel {
  position: relative;            /* create stacking context for ::before/::after */
  width: 100px;                  /* reduce tile size */
  aspect-ratio: 1 / 1;           /* square panel */
  border-radius: 26px;
  background: #0c0c0c;
  overflow: hidden;               /* keep pseudo elements inside */
}
.logo-panel img {
  position: relative;
  z-index: 2;                     /* above ::after inner fill */
  width: 60%;                     /* smaller logo inside panel */
  height: 60%;
  object-fit: contain;
  margin: 20%;
  animation: logoFloat 3.8s ease-in-out infinite; /* subtle up/down motion */
  will-change: transform;
}

/* Responsive fallback: tighter screens use 2 per row, then 1 */
@media (max-width: 700px) {
  /* Keep desktop look but smaller footprint on mobile */
  .skills-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    margin-top: 2.2rem;
  }
  .logo-panel { width: 72px; border-radius: 18px; }
  .logo-panel img { width: 64%; height: 64%; margin: 18%; animation: none; }
  /* Disable rotating laser/frame on mobile to prevent lag */
  .logo-panel::before,
  .logo-panel::after { display: none; }
}
@media (max-width: 420px) {
  .skills-logo-grid { grid-template-columns: 1fr; }
}
.logo-card span {
  display: none; /* hide fixed names; show via tooltip instead */
}
.logo-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #081b29;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 0 18px rgba(255, 138, 61, 0.25);
  pointer-events: none;
  z-index: 100;
}
.ts-card .ts-square {
  width: 48px;
  height: 48px;
  background: #007acc; /* vivid blue */
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-card .ts-square span {
  color: #ffffff;
  font-weight: 800;
  font-family: var(--font-sans);
}
@media (max-width: 900px) {
  .skills-logo-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
@media (max-width: 600px) {
  .skills-logo-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* Tech cloud list item (ensure selector is present; previously malformed) */
.tech-cloud-list li {
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  animation: tagCloudFadeIn 0.7s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.tech-cloud-list li:nth-child(n) {
  animation-delay: calc(0.04s * var(--i, 1));
}
.tech-cloud-list li:hover {
  background: var(--color-accent);
  color: #081b29;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 8px var(--color-accent), 0 0 32px var(--color-accent);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
@keyframes tagCloudFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 700px) {
  .tech-cloud-title {
    font-size: 1.3rem;
  }
  .tech-cloud-list li {
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
  }
}
/* =============================
   Global Styles & Variables
============================= */
:root {
  --font-sans: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fira Code", Consolas, "Courier New", monospace;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb;
  --color-text: #1d1f21;
  --color-text-light: #4a4f55;
  --color-accent: #ff6a00;
  --color-accent-hover: #ff8a3d;
  --color-border: #e2e8f0;
  --color-danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-round: 50%;
  --max-width: 1080px;
  --transition: 0.25s ease;
  /* Consistent horizontal padding for page content */
  --page-x-pad: clamp(16px, 5vw, 72px);
  /* Offset for sticky header when scrolling to anchors */
  --header-offset: 84px;
  /* Theme variables for About Skills card */
  --theme-orange: #ff6b00;
  --theme-dark: #0f0f0f;
  --card-surface: #141414;
  --border-color: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
}
.dark-theme {
  --color-bg: #0f1114;
  --color-bg-alt: #1a1f24;
  --color-text: #f1f5f9;
  --color-text-light: #cbd5e1;
  --color-border: #334155;
  --color-accent: #ff6a00;
  --color-accent-hover: #ff8a3d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Reset / Normalize */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
input,
button,
textarea,
select {
  font-family: inherit;
}

/* Accessibility Helpers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: var(--transition);
}
.skip-link:focus {
  top: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 4.5rem 0;
}
.section[id] {
  scroll-margin-top: var(--header-offset);
}
.section h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* =============================
   About Section
============================= */
.about-section {
  padding-top: 4.5rem;
}
.about-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 3.5rem;
  padding: 0 var(--page-x-pad);
}
.about-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 1rem;
  font-weight: 700;
}
.about-header .accent {
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-accent);
}
.about-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-text-light);
  font-weight: 500;
}

.about-grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-x-pad);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.about-identity .about-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 600;
}
.about-identity .about-role {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: var(--color-text-light);
}

.about-description p {
  margin: 0 0 1.1rem;
  line-height: 1.65;
  font-size: 1.02rem;
  color: var(--color-text-light);
}
.about-description p:last-child {
  margin-bottom: 0.5rem;
}

/* Modern Read More: line-clamp with fade */
.about-description {
  position: relative;
}
.about-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 6; /* show first 6 lines */
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.about-description.collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-bg));
  pointer-events: none;
}

.read-more-toggle {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.read-more-toggle:hover {
  background: var(--color-accent);
  color: #081b29;
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.45),
    0 0 24px rgba(255, 138, 61, 0.25);
  transform: translateY(-2px);
}

.about-skills {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.about-skills li {
  background: var(--color-bg-alt);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.about-skills li:hover {
  background: var(--color-accent);
  color: #081b29;
  border-color: var(--color-accent);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
/* About: Key Skills card */
.about-skills-card {
  background: var(--card-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.about-skills-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--theme-orange), transparent);
  opacity: 0.7;
}
.about-skills-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}
.header-icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-orange);
  font-size: 20px;
}
.about-skills-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .about-skills-grid {
    grid-template-columns: 1fr;
  }
}
.ask-col-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-weight: 600;
}
.ask-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ask-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  cursor: default;
}
.ask-item:hover {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateX(5px);
}
.ask-icon {
  font-size: 24px;
  margin-right: 15px;
  display: flex;
  align-items: center;
}
.ask-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}
.ask-icon i {
  transition: transform 0.3s ease;
}
.ask-item:hover .ask-icon i {
  transform: scale(1.1);
}
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* About: CV Action Buttons */
.about-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 1.75rem auto 0;
  padding: 0 var(--page-x-pad);
  flex-wrap: wrap;
}

.about-cta-buttons .btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

.about-cta-buttons .btn-label {
  white-space: nowrap;
}

.about-cta-buttons .btn-icon {
  width: 18px;
  height: 18px;
}

/* Primary (Download CV) */
.about-cta-buttons .btn-cv-primary {
  background: linear-gradient(135deg, var(--primary-orange), #ff9a3d);
  color: #081b29;
  box-shadow:
    0 6px 14px -4px rgba(255, 107, 0, 0.55),
    0 0 24px rgba(255, 138, 61, 0.35);
}

.about-cta-buttons .btn-cv-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 20px -6px rgba(255, 107, 0, 0.7),
    0 0 30px rgba(255, 138, 61, 0.45);
}

.about-cta-buttons .btn-cv-primary:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px -4px rgba(255, 107, 0, 0.6),
    0 0 18px rgba(255, 138, 61, 0.35);
}

/* Secondary / Outline (View Online) */
.about-cta-buttons .btn-cv-outline {
  background: rgba(6, 19, 26, 0.85);
  border-color: rgba(255, 107, 0, 0.7);
  color: var(--primary-orange);
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.7);
}

.about-cta-buttons .btn-cv-outline:hover {
  background: rgba(255, 107, 0, 0.08);
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px -6px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(255, 138, 61, 0.4);
}

.about-cta-buttons .btn-cv-outline:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px -4px rgba(0, 0, 0, 0.8),
    0 0 14px rgba(255, 138, 61, 0.3);
}

@media (max-width: 600px) {
  .about-cta-buttons {
    flex-direction: column;
  }

  .about-cta-buttons .btn-cv {
    width: 100%;
    justify-content: center;
  }
}
.water-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 14px;
  border: 2px solid var(--color-accent);
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, color 0.2s ease, background 0.2s ease;
  /* wave control variables (overridable by speed classes) */
  --wave-speed1: 6s;
  --wave-speed2: 8s;
  --wave-horiz1: 9s;
  --wave-horiz2: 11s;
}
.water-btn .label { position: relative; z-index: 2; }
.water-btn i { position: relative; z-index: 2; font-size: 1.1rem; }
.water-btn .wave {
  position: absolute;
  left: -10%;
  bottom: -42%;
  width: 160%;
  height: 160%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 138, 61, 0.42), rgba(255, 138, 61, 0.18) 60%, transparent 72%);
  background-size: 200% 100%;
  transform: translateY(0);
  animation: waveFloat var(--wave-speed1) ease-in-out infinite, waveSlide var(--wave-horiz1) linear infinite;
  filter: blur(2px);
  z-index: 1;
}
.water-btn .wave2 {
  opacity: 0.75;
  bottom: -44%;
  animation: waveFloat var(--wave-speed2) ease-in-out infinite reverse, waveSlide var(--wave-horiz2) linear infinite reverse;
}
.water-btn:hover { transform: translateY(-2px); }
.water-btn:active { transform: translateY(0); }
.water-primary {
  background: var(--color-accent);
  color: #081b29;
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.45), 0 0 30px rgba(255, 138, 61, 0.25);
}
.water-primary .wave { background: radial-gradient(60% 60% at 50% 50%, rgba(8, 27, 41, 0.28), rgba(8, 27, 41, 0.18) 60%, transparent 72%); }
.water-outline:hover {
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.3), 0 0 26px rgba(255, 138, 61, 0.18);
  background: rgba(255, 138, 61, 0.06);
}
/* subtle “fill rise” on hover */
.water-btn:hover .wave { bottom: -36%; }
.water-btn:hover .wave2 { bottom: -34%; }

/* size variants */
.water-btn.sm { padding: 10px 20px; font-size: 0.9rem; border-radius: 12px; }
.water-btn.lg { padding: 14px 34px; font-size: 1.05rem; border-radius: 16px; }

/* speed variants via CSS variables */
.water-slow { --wave-speed1: 9s; --wave-speed2: 12s; --wave-horiz1: 12s; --wave-horiz2: 14s; }
.water-fast { --wave-speed1: 4.5s; --wave-speed2: 6s; --wave-horiz1: 6s; --wave-horiz2: 7.5s; }

@keyframes waveFloat {
  0% { transform: translateY(10%); }
  50% { transform: translateY(-6%); }
  100% { transform: translateY(10%); }
}
@keyframes waveSlide {
  0% { background-position-x: 0%; }
  100% { background-position-x: 100%; }
}
.timeline-card {
  display: flex;
  gap: 1.2rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.4rem 1.3rem;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% 10%,
    rgba(255, 138, 61, 0.12),
    transparent 60%
  );
  opacity: 0.65;
  pointer-events: none;
}
.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  transition: var(--transition);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 138, 61, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.year-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #081b29;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 0.6rem;
}
.card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.card-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-light);
}

.about-stats {
  margin: 3.75rem auto 0;
  max-width: 1400px;
  padding: 0 var(--page-x-pad);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stat-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: 18px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 138, 61, 0.12),
    transparent 70%
  );
  pointer-events: none;
}
.stat-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.45),
    0 10px 26px -6px rgba(255, 138, 61, 0.35);
  transform: translateY(-4px);
}
.stat-value {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .about-header h2,
  .about-subtitle {
    opacity: 0;
    animation: fade 0.8s ease forwards;
  }
  .about-grid > * {
    opacity: 0;
    animation: fade 0.8s ease forwards;
    animation-delay: 0.25s;
  }
  .timeline-card {
    opacity: 0;
    animation: fade 0.7s ease forwards;
  }
  .timeline-card:nth-child(1) {
    animation-delay: 0.35s;
  }
  .timeline-card:nth-child(2) {
    animation-delay: 0.5s;
  }
  .timeline-card:nth-child(3) {
    animation-delay: 0.65s;
  }
  .stat-card {
    opacity: 0;
    animation: fade 0.75s ease forwards;
  }
  .stat-card:nth-child(1) {
    animation-delay: 0.4s;
  }
  .stat-card:nth-child(2) {
    animation-delay: 0.55s;
  }
  .stat-card:nth-child(3) {
    animation-delay: 0.7s;
  }
  .stat-card:nth-child(4) {
    animation-delay: 0.85s;
  }
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(140%) blur(6px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0; /* vertical spacing only */
  padding: 0 var(--page-x-pad); /* horizontal page padding */
}
.logo a {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px; /* modern squircle */
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #ff6a00; /* orange initials */
  background: #0c0f14; /* flat dark tile */
  border: 2px solid #ff6a00; /* accent border */
  box-shadow: 0 4px 14px rgba(255,106,0,0.25);
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, color 0.2s ease;
  opacity: 1;
}
/* Brand image not used for text logo */
.logo a img { display: none; }
/* Remove previous overlays */
.logo a::before { content: none; }
.logo a::after { content: none; }
.logo a:hover { box-shadow: 0 6px 22px rgba(255,106,0,0.4); transform: translateY(-2px); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-menu a,
.nav-menu button.theme-toggle {
  position: relative;
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.98rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--color-text);
  background: var(--color-bg-alt);
}
.nav-menu a.active {
  background: var(--color-accent);
  color: #081b29;
  box-shadow: 0 4px 14px rgba(255, 138, 61, 0.35);
}
.nav-menu a.active::after {
  background: #081b29;
  transform: scaleX(1);
}
.nav-menu a.talk-link {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 100%
  );
  color: #081b29;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 138, 61, 0.35);
}
.nav-menu a.talk-link:hover {
  filter: brightness(1.15);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.35rem;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
  transform: scaleX(0);
}
.nav-menu a:hover::after,
.nav-menu a:focus::after {
  background: var(--color-accent);
  transform: scaleX(1);
}
/* Modern theme toggle button */
.theme-toggle {
  width: 60px;
  height: 36px;
  border-radius: 12px;
  border: 2px solid #f85f00;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(241, 114, 4, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.dark-theme .theme-toggle {
  background: #0f1624;
  border-color: #202637;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.theme-toggle:hover {
  transform: translateY(-1px);
}
.toggle-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #eea110 0%,
    #ef7021 45%,
    #d45e04da 100%
  );
  position: relative;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.25);
}
.toggle-glyph::after {
  /* crescent cut to imply moon */
  content: "";
  position: absolute;
  right: -3px;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
}
.dark-theme .toggle-glyph::after {
  background: #030303;
  opacity: 0.85;
}
.nav-toggle {
  display: none;
}

/* Mobile Nav */
@media (max-width: 780px) {
  .nav-toggle {
    display: block;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.55rem;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: var(--page-x-pad);
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    min-width: 220px;
    border-radius: 12px;
    display: none; /* hidden until hamburger click */
    backdrop-filter: blur(8px) saturate(140%);
  }
  .nav-menu.open {
    display: flex;
    animation: menuReveal 0.28s ease;
  }
  .nav-menu li {
    padding: 0.15rem 0.25rem;
  }
  .nav-menu a,
  .nav-menu button.theme-toggle {
    display: block;
    width: 100%;
  }
  /* Make theme toggle clearly visible on mobile */
  .nav-menu button.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    border-radius: 14px;
    border: 2px solid var(--color-accent);
    background: linear-gradient(180deg, #0d1320 0%, #141b2b 100%);
    box-shadow: 0 0 12px rgba(255, 138, 61, 0.25);
  }
  .nav-menu button.theme-toggle::after {
    content: "Theme";
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.04em;
  }
  .nav-menu .theme-toggle .toggle-glyph {
    width: 20px;
    height: 20px;
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.25),
      0 2px 6px rgba(0, 0, 0, 0.25);
  }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 0 var(--page-x-pad);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .hero-layout {
    flex-direction: column;
    text-align: left;
    gap: 2rem;
  }
}

/* Phone: reduce top spacing before profile image section */
@media (max-width: 700px) {
  .hero { padding: 2.8rem 0 3rem; }
  .hero-layout { gap: 0.6rem; }
  .hero-right { margin-top: 0; }
}
.hero-left {
  flex: 1 1 560px;
  min-width: 320px;
}
.hero-greeting {
  font-size: clamp(3rem, 2vw, 1.05rem);
  letter-spacing: 0.5px;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
  opacity: 0;
  animation: slideBottom 0.8s ease forwards;
  animation-delay: 0.2s;
}
.hero-name {
  font-size: clamp(4rem, 6.4vw, 4.25rem);
  margin: 0 0 0.65rem;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: heroSlideIn 1s ease-out forwards;
  animation-delay: 0.35s;
}
.hero-name .accent {
  background: linear-gradient(90deg, var(--color-accent) 0%, #ff9a40 25%, var(--color-accent-hover) 50%, #ff9a40 75%, var(--color-accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.12);
  text-shadow: 0 0 14px rgba(255, 106, 0, 0.22);
  animation: nameGradientSlide 4.5s linear infinite;
}
.dark-theme .hero-name .accent {
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.05);
}
@keyframes nameGradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.dark-theme .hero-name .accent {
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.05);
}
.hero-name::after {
  content: "";
  display: block;
  width: clamp(120px, 28vw, 260px);
  height: 4px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(255, 106, 0, 0));
}
.hero-role {
  font-size: clamp(3rem, 3vw, 1.85rem);
  margin: 0 0 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  min-height: 2.2rem;
  opacity: 0;
  animation: slideRight 0.9s ease forwards;
  animation-delay: 0.55s;
}
.hero-description {
  max-width: 640px;
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  color: var(--color-text-light);
  opacity: 0;
  animation: fade 0.9s ease forwards;
  animation-delay: 0.75s;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: slideTop 0.9s ease forwards;
  animation-delay: 0.95s;
}
.hero-actions .btn {
  min-width: 200px;
  justify-content: center;
  text-align: center;
}
.hero-social {
  margin: 0.25rem 0 0;
}
.hero-social a {
  margin: 0;
}
.hero-right {
  flex: 0 0 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-hex {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hex-frame {
  width: 330px;
  height: 330px;
  background: var(--color-accent);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.28));
  z-index: 2;
  position: relative;
}
.hex-inner {
  width: 96%;
  height: 96%;
  background: #0c0f14;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.hex-frame::before,
.hex-frame::after {
  content: "";
  position: absolute;
  inset: -12px; /* first outer ring */
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: 10px solid rgba(255, 106, 0, 0.35);
  background: transparent;
  pointer-events: none;
  z-index: 0;
}
.hex-frame::after {
  inset: -22px; /* second outer ring */
  border-width: 1.5px;
  border-color: rgba(184, 41, 41, 0.18);
}
.hex-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hex-accent {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -60px;
  bottom: -70px;
  background: rgba(255, 106, 0, 0.18);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  filter: drop-shadow(0 20px 40px rgba(255,106,0,0.15));
  z-index: 1;
}
.hex-line {
  position: absolute;
  height: 2px;
  background: rgba(20, 24, 30, 0.85);
  box-shadow: 0 0 1px rgba(255,255,255,0.05);
  pointer-events: none;
}
.hex-line.hl-1 {
  width: 230px;
  left: -90px;
  bottom: 24px;
  transform: rotate(-12deg);
}
.hex-line.hl-2 {
  width: 180px;
  right: -70px;
  top: 54px;
  transform: rotate(18deg);
}
.hex-line.hl-3 {
  width: 260px;
  right: -100px;
  bottom: 130px;
  transform: rotate(-28deg);
}

/* Gentle continuous vertical drift for profile image */
@keyframes floatProfile {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
  100% {
    transform: translateY(0);
  }
}

.text {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 32px;
}

/* Hero Social */
.hero-social {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.hero-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-size: 20px; /* Boxicon size */
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 12px 0 0; /* tighter row spacing */
  transition: 0.3s ease; /* smooth hover */
  opacity: 0;
  animation: slideRight 1s ease forwards;
  will-change: transform, opacity;
}
.hero-social li:nth-child(1) a {
  animation-delay: 1.1s;
}
.hero-social li:nth-child(2) a {
  animation-delay: 1.25s;
}
.hero-social li:nth-child(3) a {
  animation-delay: 1.4s;
}
.hero-social li:nth-child(4) a {
  animation-delay: 1.55s;
}
.hero-social li:nth-child(5) a {
  animation-delay: 1.7s;
}
.hero-social a:hover {
  background: var(--color-accent);
  color: #081b29; /* dark background color from screenshot */
  box-shadow: 0 0 20px var(--color-accent);
}
/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 12px 28px; /* like screenshot */
  border-radius: 40px; /* pill shape */
  font-size: 16px;
  letter-spacing: 1px;
  transition: 0.3s ease;
}
.btn.primary {
  background: var(--color-accent);
  color: #081b29;
}
.btn.outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.hero-actions .btn.outline:hover {
  background-color: var(--color-accent);
  color: #081b29;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
}
.btn.secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Download button (gradient outline, pill, glow) */
.btn.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 100%
  );
  color: #081b29; /* default text/icon color */
  text-transform: uppercase;
  overflow: hidden;
  z-index: 0;
}
.btn.btn-download::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    #ffe6cc 0%,
    #ffd3a1 100%
  ); /* light orange inner fill */
  z-index: 0;
}
.dark-theme .btn.btn-download::before {
  background: linear-gradient(180deg, #ffe3c4 0%, #ffcfa0 100%);
}
.btn.btn-download .btn-text,
.btn.btn-download i {
  position: relative;
  z-index: 1;
}
.btn.btn-download .btn-text {
  color: #081b29;
  letter-spacing: 0.06em;
}
.btn.btn-download i {
  margin-left: 10px;
  font-size: 1.1rem;
  vertical-align: -2px;
  color: #081b29;
}
.btn.btn-download:hover {
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.45),
    0 0 28px rgba(255, 138, 61, 0.35);
  transform: translateY(-2px);
}
.btn.btn-download:active {
  transform: translateY(0);
}
/* Generic disabled state for buttons/links */
.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
/* Mobile: stack hero buttons full-width */
@media (max-width: 768px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
.hero-cta .btn:hover {
  box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent),
    0 0 20px var(--color-accent);
  transform: translateY(-5px);
}

/* Skills */
.skills-orbit-section {
  position: relative;
  overflow: hidden;
}

/* Modern Skills Section */
.skills-modern-heading {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}
.skills-highlight {
  color: var(--color-accent);
}
.skills-modern-desc {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}
.skills-modern-flex {
  display: flex;
  justify-content: space-between; /* Spreads content to both sides */
  align-items: center; /* Centers items vertically */
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var;
}
.skills-modern-card {
  background: var(--color-bg-alt);
  border-radius: 1.5rem;
  box-shadow: 0 6px 32px 0 rgba(80, 0, 120, 0.1);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  min-width: 340px;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--color-border);
}
.skills-modern-title {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.skills-modern-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.skills-modern-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 1.08rem;
  font-weight: 600;
}
.skills-modern-name {
  flex: 0 0 120px;
  color: var(--color-text);
}
.skills-modern-bar {
  flex: 1 1 auto;
  height: 8px;
  background: #23263a;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 0.7rem;
  position: relative;
}
.skills-modern-progress {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, #60a5fa 100%);
  border-radius: 8px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}
.skills-modern-percent {
  min-width: 38px;
  text-align: right;
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 700px) {
  .skills-modern-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .skills-modern-card {
    min-width: 0;
    padding: 1.5rem 1rem 1.2rem 1rem;
  }
}

.skills-subtitle {
  margin-top: 0.4rem;
  color: var(--color-muted, #94a3b8);
  font-size: 0.95rem;
}

/* floating grid area */
.skills-orbit {
  position: relative;
  flex: 1; /* Takes up the left half */
  height: 500px; /* Give it height so pills don't collapse */
  margin-top: 0; /* Reset this */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* outer transparent pill */
.skill-pill {
  position: absolute;
  width: 230px;
  height: 90px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  animation: pillDrift 18s ease-in-out infinite alternate;
}

/* inner solid card that holds logo / text */
.skill-pill-inner {
  width: 120px;
  height: 70px;
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.9); /* same dark family */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  color: var(--color-accent, #00eeff);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* fake “logo” circle – replace with img if you have icons */
.skill-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--color-accent, #00eeff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 0.85rem;
}

/* hover */
.skill-pill:hover {
  animation-play-state: paused;
}

.skill-pill:hover .skill-pill-inner {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 8px var(--color-accent, #00eeff),
    0 0 32px var(--color-accent, #00eeff);
}

/* main animation */
@keyframes pillDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
  50% {
    transform: translate3d(10px, -16px, 0) rotate(4deg);
  }
  100% {
    transform: translate3d(-14px, 10px, 0) rotate(14deg);
  }
}

/* skills list chips */
.skills-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  font-size: 0.9rem;
}

.skills-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* responsive */
@media (max-width: 640px) {
  .skills-orbit {
    height: 220px;
  }
  .skill-pill {
    width: 190px;
    height: 80px;
  }
  .skill-pill-inner {
    width: 110px;
    height: 64px;
  }
}

/* Projects */
.projects-header {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 2rem;
}
.projects-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 0.5rem;
}
.projects-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin: 0 auto;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 2rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.featured-media {
  border-radius: 14px;
  background: radial-gradient(
      1200px 600px at -20% -40%,
      rgba(255, 138, 61, 0.15),
      transparent 40%
    ),
    linear-gradient(180deg, #101520 0%, #1a2130 100%);
  border: 1px solid var(--color-border);
  min-height: 300px;
}
.featured-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 138, 61, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(255, 138, 61, 0.35);
  width: fit-content;
}
.featured-title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}
.featured-desc {
  margin: 0 0 0.5rem;
  color: var(--color-text-light);
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-tags span {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.project-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .featured-project {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 220px;
  }
}
.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1.2rem;
  border-radius: 22px;
  /* default (light mode): keep readable surface */
  background: radial-gradient(
      1200px 600px at -20% -40%,
      rgba(255, 138, 61, 0.06),
      transparent 40%
    ),
    linear-gradient(180deg, #eff6fb 0%, #e7eef6 100%);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08),
    0 0 20px rgba(255, 138, 61, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    70% 110% at 50% 0%,
    rgba(255, 138, 61, 0.22),
    transparent 60%
  );
  filter: blur(14px);
  opacity: 0.65;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1.5px rgba(255, 138, 61, 0.45),
    0 16px 34px -10px rgba(0, 0, 0, 0.55), 0 0 48px rgba(255, 138, 61, 0.28);
}
.project-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #0f172a;
}
.project-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #334155;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tags span {
  background: rgba(255, 138, 61, 0.18);
  color: var(--color-accent);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}
.project-links {
  margin-top: auto;
  display: flex;
  gap: 0.75rem;
}
.project-links a {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.68rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
/* Orange filled primary */
.project-links .btn-demo {
  background: linear-gradient(180deg, #ff8a3d 0%, #ff6a00 100%);
  color: #06131a;
  border-color: rgba(255, 138, 61, 0.65);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.65), 0 0 28px rgba(255, 138, 61, 0.35);
}
.project-links .btn-demo:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.75), 0 0 40px rgba(255, 138, 61, 0.45);
}
/* Dark outlined secondary */
.project-links .btn-code {
  background: transparent;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
}
.project-links .btn-code:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}
.project-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #081b29, 0 0 0 5px rgba(255, 138, 61, 0.85);
}
.project-links .btn-icon svg { display:block }
.project-links .btn-text { line-height: 1 }

/* Thumbnail area inside project cards */
.project-thumb {
  height: 160px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: radial-gradient(
      800px 400px at -20% -40%,
      rgba(255, 138, 61, 0.18),
      transparent 40%
    ),
    linear-gradient(180deg, #0f172a 0%, #141b2f 100%);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 138, 61, 0.15);
}

/* Dark theme: switch the card surface to deep neon-friendly panel and invert text color */
.dark-theme .project-card {
  background: radial-gradient(
      1200px 600px at -20% -40%,
      rgba(255, 138, 61, 0.12),
      transparent 40%
    ),
    linear-gradient(180deg, #101520 0%, #1a2130 100%);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.3),
    0 10px 26px -8px rgba(0, 0, 0, 0.35), 0 0 32px rgba(255, 138, 61, 0.15);
}
.dark-theme .project-card h3 {
  color: #e6fbff;
}
.dark-theme .project-card p {
  color: rgba(239, 246, 255, 0.78);
}
/* Dark mode CTA text should be white for contrast */
.dark-theme .project-links .btn-demo { color: #ffffff !important; }
.dark-theme .project-links .btn-code { color: #ffffff !important; }

/* Mobile responsiveness + performance-friendly visuals for projects */
@media (max-width: 780px) {
  .projects-header { margin: 0 auto 1.25rem; }
  .projects-subtitle { font-size: 0.98rem; }
  .featured-project { padding: 1rem; gap: 1rem; }
  .projects-grid { gap: 1.2rem; margin-top: 1.25rem; }
  .project-card {
    padding: 1rem;
    border-radius: 16px;
    /* simpler surface to avoid repaint jank on mobile */
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  }
  .project-card::before { content: none; }
  .project-card:hover { transform: none; box-shadow: 0 2px 10px rgba(15,23,42,0.12); }
  .project-thumb { height: 140px; box-shadow: 0 2px 12px rgba(0,0,0,0.35); }
  .project-links { gap: 0.6rem; flex-wrap: wrap; }
  .project-links a { padding: 0.6rem 0.9rem; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-thumb { height: 130px; }
}

/* Timeline */
/* Experience cards */
.experience-section .exp-title {
  text-align: center;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.2px;
}
.experience-section .exp-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 980px;
  margin-bottom: 0.1;
}
.exp-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.exp-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 1.6rem 1.6rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    1000px 520px at -20% -40%,
    rgba(255, 138, 61, 0.12),
    transparent 42%
  );
  pointer-events: none;
}
.exp-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35),
    0 12px 28px -8px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
  transition: var(--transition);
}
.exp-badge {
  display: inline-block;
  background: rgba(255, 138, 61, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(255, 138, 61, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.exp-role {
  margin: 0.35rem 0 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--color-text);
}
.exp-meta {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}
.exp-meta i {
  color: var(--color-accent);
  margin-right: 0.35rem;
}
.exp-desc {
  margin: 0 0 0.9rem;
  color: var(--color-text-light);
}
.exp-subhead {
  margin: 0.4rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}
.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.exp-bullets li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--color-text-light);
}
.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.45);
}
.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.exp-tech span {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* Contact Form */
/* Contact Section — neon orange on dark */
.contact-title {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
.accent-grad {
  background: linear-gradient(90deg, #ffffff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-accent);
}
.contact-grid {
  margin-top: 1rem;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-left,
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-weight: 600;
  color: var(--color-text-light);
}
.form-control {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #0e1217;
  color: #e6fbff;
  border: 1px solid rgba(255, 138, 61, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35) inset,
    0 0 18px rgba(255, 138, 61, 0.12);
}
.form-control::placeholder {
  color: #9aa3ad;
}
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.85),
    0 0 26px rgba(255, 138, 61, 0.35);
}
.contact-submit {
  /* Modern Send Button */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px; /* Space between text and icon */

  background-color: #ff6b00; /* Brand Orange */
  color: #ffffff;

  padding: 14px 32px;
  border: none;
  border-radius: 50px; /* Modern Pill Shape */

  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;

  /* Smooth Transition for hover effects */
  transition: all 0.3s ease;

  /* Subtle Glow Shadow */
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}
/* Hover Effects */
.contact-submit:hover {
  background-color: #e65c00; /* Slightly darker orange */
  transform: translateY(-3px); /* Lifts up slightly */
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5); /* Shadow grows */
}
/* Icon Animation */
.contact-submit svg {
  transition: transform 0.3s ease;
}
/* When button is hovered, make the plane fly */
.contact-submit:hover svg {
  transform: translateX(5px) rotate(-10deg);
}
/* Active/Click Effect */
.contact-submit:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}
.error {
  color: var(--color-danger);
  font-size: 0.7rem;
  min-height: 0.9rem;
}
.form-status {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Contact success banner (visible when URL hash targets it) */
#contact-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1) inset,
    0 0 18px rgba(16, 185, 129, 0.12);
}
#contact-success:target {
  display: block;
}

/* Modal: success message */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 12, 20, 0.65); backdrop-filter: blur(6px); }
.modal-dialog {
  position: relative;
  width: min(92vw, 440px);
  margin: 0 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: radial-gradient(900px 420px at -20% -40%, rgba(255, 138, 61, 0.18), transparent 40%),
              linear-gradient(180deg, #0f131a 0%, #141b2b 100%);
  box-shadow: 0 0 28px rgba(255, 138, 61, 0.35), 0 18px 40px rgba(0,0,0,0.55);
  padding: 2.2rem 1.4rem 1.4rem;
  text-align: center;
}
.modal-icon { position: absolute; left: 50%; transform: translate(-50%, -50%); top: 0; width: 82px; height: 82px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ff9a40 0%, #ff6a00 100%); color: #081b29; border: 4px solid rgba(255,255,255,0.08); box-shadow: 0 0 24px rgba(255, 138, 61, 0.55), 0 0 44px rgba(255, 138, 61, 0.35); }
.modal-icon i { font-size: 40px; line-height: 1; }
.modal-title { margin: 2.5rem 0 0.35rem; font-size: 1.4rem; font-weight: 900; color: #ffffff; }
.modal-subtitle { margin: 0 0 1rem; color: #cbd5e1; font-size: 0.95rem; }
.modal-actions { margin-top: 0.5rem; }
.modal-ok {
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.65);
  background: linear-gradient(180deg, #ff8a3d 0%, #ff6a00 100%);
  color: #0b0f16;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45), 0 0 26px rgba(255, 138, 61, 0.35);
  cursor: pointer;
}
.modal-ok:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.modal-open { overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 2.75rem 0;
  margin-top: 3rem;
}
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-brand { margin-bottom: 0.25rem; }
.footer-name {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}
/* Modern glass-like text effect */
.glass-text {
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.65) 35%, rgba(255,255,255,0.28) 60%, rgba(255,255,255,0.12) 100%),
              linear-gradient(90deg, rgba(255,106,0,0.45), rgba(255,154,64,0.45));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 138, 61, 0.25), 0 0 22px rgba(255, 138, 61, 0.18);
  position: relative;
}
.glass-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 2px;
  margin: 0 auto;
  width: 60%;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  filter: blur(0.4px);
  pointer-events: none;
}
.footer-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.social-icon i {
  font-size: 22px;
}
.social-icon:hover {
  background: var(--color-accent);
  color: #081b29;
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.65),
    0 0 36px rgba(255, 138, 61, 0.35);
  transform: translateY(-2px);
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}
.footer-nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--color-accent);
}
.footer-copy {
  color: var(--color-text-light);
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border: none;
  background: linear-gradient(180deg, #ff8a3d 0%, #ff6a00 100%);
  color: #06131a;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.65), 0 0 22px rgba(255, 138, 61, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.scroll-top i {
  transform: rotate(-90deg);
}
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 0 14px rgba(255, 138, 61, 0.75), 0 0 36px rgba(255, 138, 61, 0.45); }
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Utilities */
.hidden {
  display: none !important;
}
.accent {
  color: var(--color-accent);
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fade 0.6s ease forwards;
  }
  @keyframes fade {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Dark Theme Specific Tweaks */
.dark-theme .project-card,
.dark-theme .timeline-item,
.dark-theme .form-group input,
.dark-theme .form-group textarea {
  background: var(--color-bg);
}
.dark-theme .project-links a {
  background: var(--color-bg-alt);
}

@keyframes slideRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
@keyframes slideBottom {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
@keyframes slideLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

/* Utility: gentle slide-in from the left used for logo and name */
@keyframes heroSlideIn {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
/* Mobile menu reveal */
@keyframes menuReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark theme hamburger color tweak */
.dark-theme .nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #445268;
}
.dark-theme .nav-menu a.active {
  color: #081b29;
}

/* animated background */
:root {
  --primary-orange: #ff6b00;
  --bg-dark: #0a0a0a;
}

/* Place canvas behind all content without affecting layout/scroll */
#canvas-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* stay benhind site content */
  pointer-events: none; /* don't block clicks */
}

/* Scroll progress bar at top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    var(--color-accent-hover)
  );
  box-shadow: 0 0 12px rgba(255, 138, 61, 0.5);
  z-index: 1000;
}

/* =============================
   Skills Filters + Circular Grid
============================= */
.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 2rem;
}
.filter-buttons .btn {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 0.45rem 0.9rem;        /* smaller size */
  font-size: 0.9rem;              /* smaller text */
  line-height: 1;
  border-radius: 9999px;          /* pill */
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.15s ease;
}
.filter-buttons .btn:hover:not(.active) {
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.45);
  box-shadow: 0 2px 10px rgba(255, 138, 61, 0.25);
  transform: translateY(-1px);
}
.filter-buttons .btn:active { transform: translateY(0); }
.filter-buttons .btn.active {
  background: var(--color-accent);
  color: #081b29;
  box-shadow: 0 4px 16px rgba(255, 138, 61, 0.35);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.skill-card {
  text-align: center;
  background: transparent; /* remove card surface */
  border: none; /* no border */
  border-radius: 0; /* no card corners */
  padding: 0.25rem 0 0.6rem; /* minimal spacing */
  box-shadow: none; /* no shadow */
}
.skill-card:hover { transform: none; }

/* The Circular Progress Bar (The Magic Part) */
.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px auto;
  position: relative;
  /* Conic Gradient creates the progress pie chart */
  /* We use CSS variables (--p) set in HTML to determine the percentage */
  /* Visible track + progress arc */
  background:
    conic-gradient(
      var(--c, var(--primary-orange)) calc(var(--p, 0) * 1%),
      rgba(255,255,255,0.09) 0
    );

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

  /* Adds the "Glow" behind the circle */
  box-shadow: 0 0 12px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* The inner hole to make it a ring/doughnut */
.inner-circle {
  width: 110px;
  height: 110px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem; /* Icon size */
  color: #666; /* Icon color */
  /* Refined inset shadow for modern, clear depth */
  box-shadow: inset 0 8px 16px rgba(0,0,0,0.45), inset 0 -6px 12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
}
.skill-icon { font-weight: 500; letter-spacing: 0.02em; color: #3b3f46; opacity: 0.85; }
.skill-card h3 {
  margin: 5px 0;
  color: var(--color-accent);
  font-family: 'Orbitron', var(--font-sans);
  font-weight: 200;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.skill-card p {
  margin: 0;
  font-weight: bold-;
  color: var(--color-text);
}
.dark-theme .skill-card p { color: #ffffff; }
@media (max-width: 700px) {
  /* More compact 3-column circular skills on mobile */
  .skills-grid { grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 0.7rem; }
  .circle { width: 68px; height: 68px; margin-bottom: 10px; }
  .inner-circle { width: 60px; height: 60px; font-size: 0.8rem; }
  .skill-card h3 { font-size: 0.9rem; }
  .skill-card p { font-size: 0.8rem; }
}

/* Respect reduced-motion preferences on all devices */
@media (prefers-reduced-motion: reduce) {
  .logo-panel img { animation: none !important; }
  .logo-panel::before { animation: none !important; }
}

/* --- Creative Contact Lottie Socials --- */
.contact-header-wrapper {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.social-lottie {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-lottie lottie-player {
  width: 100%;
  height: 100%;
  transform: scale(1.2);
}

.social-lottie:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.4);
  border-color: rgba(255, 107, 0, 0.5);
}

body.dark-theme .social-lottie {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
