:root {
    /* Refined Color Palette - Professional HSL */
    --primary: 224 89% 55%;
    /* Indigo-ish Blue */
    --primary-foreground: 0 0% 100%;

    --secondary: 215 25% 27%;
    /* Slate Dark */
    --secondary-foreground: 210 40% 98%;

    --accent: 199 89% 48%;
    /* Sky Blue */
    --accent-foreground: 0 0% 100%;

    --background: 210 40% 98%;
    /* Light Slate Gray */
    --foreground: 222 47% 11%;

    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;

    --muted: 214 32% 91%;
    --muted-foreground: 215 16% 47%;

    --border: 214 32% 91%;
    --input: 214 32% 91%;

    --radius: 0.75rem;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --section-padding: 8rem 1.5rem;
    --container-width: 1200px;
    /* Increased for modern feel */

    /* Typography */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    --fs-h2: clamp(2rem, 5vw, 2.5rem);
    --fs-role: clamp(1.25rem, 4vw, 1.75rem);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   My Journey Timeline (Image-Accurate)
   ================================================ */
/* Animated Title Flow Arrow (My Story --> Where I've Built) */
.title-flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 0.65rem;
  position: relative;
  top: -2px;
}

.title-flow-arrow svg {
  display: block;
  overflow: visible;
}

/* Light flow stroke pulse */
.arrow-light-beam {
  stroke-dasharray: 14 36;
  stroke-dashoffset: 50;
  animation: titleArrowStream 1.8s linear infinite;
  filter: drop-shadow(0 0 6px #38bdf8) drop-shadow(0 0 12px rgba(56, 189, 248, 0.8));
}

@keyframes titleArrowStream {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: -50;
  }
}

.arrow-light-particle {
  filter: drop-shadow(0 0 4px #ffffff) drop-shadow(0 0 8px #38bdf8);
}

@media (max-width: 640px) {
  .title-flow-arrow {
    margin: 0 0.35rem;
  }
  .title-flow-arrow svg {
    width: 32px;
    height: 14px;
  }
}

.journey-timeline-wrap {
  position: relative;
  max-width: 960px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 0 2rem 0;
}

/* Continuous vertical dashed line */
.journey-timeline-wrap::before {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -25px;
  left: 23px; /* centered with 48px badge */
  width: 2px;
  border-left: 2px dashed rgba(255, 255, 255, 0.28);
  z-index: 1;
}

/* Animated vertical light pulse streaming down the timeline */
.journey-timeline-wrap::after {
  content: '';
  position: absolute;
  top: -15px;
  bottom: -25px;
  left: 22px;
  width: 4px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 189, 248, 0) 10%,
    rgba(56, 189, 248, 0.8) 50%,
    #ffffff 55%,
    rgba(129, 140, 248, 0.8) 60%,
    transparent 100%
  );
  background-size: 100% 250px;
  background-repeat: no-repeat;
  animation: timelineLightStream 4s linear infinite;
  filter: drop-shadow(0 0 6px #38bdf8);
  pointer-events: none;
  z-index: 1;
}

@keyframes timelineLightStream {
  0% {
    background-position: 0 -250px;
  }
  100% {
    background-position: 0 calc(100% + 250px);
  }
}

.journey-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.journey-item:last-child {
  margin-bottom: 0;
}

/* Year Badge */
.journey-badge-col {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 48px;
}

.journey-year-badge {
  position: relative;
  width: 48px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

/* Light flow rotating border beam around the year badge */
.journey-year-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.05) 0deg,
    rgba(56, 189, 248, 0.2) 90deg,
    rgba(56, 189, 248, 0.9) 180deg,
    rgba(129, 140, 248, 0.95) 240deg,
    #ffffff 270deg,
    rgba(56, 189, 248, 0.2) 320deg,
    rgba(255, 255, 255, 0.05) 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: badgeLightFlow 3.5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.75));
  transition: filter 0.3s ease;
  z-index: 1;
}

/* Ambient glowing light aura behind the year badge */
.journey-year-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 8px;
  background: conic-gradient(
    from 0deg,
    transparent 150deg,
    rgba(56, 189, 248, 0.4) 220deg,
    rgba(129, 140, 248, 0.65) 260deg,
    #38bdf8 270deg,
    transparent 315deg
  );
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  animation: badgeLightFlow 3.5s linear infinite;
  opacity: 0.6;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

@keyframes badgeLightFlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.journey-year-badge:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5), 0 0 40px rgba(129, 140, 248, 0.25);
}

.journey-year-badge:hover::before {
  animation-duration: 1.8s;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 1)) drop-shadow(0 0 14px rgba(129, 140, 248, 0.7));
}

.journey-year-badge:hover::after {
  animation-duration: 1.8s;
  opacity: 1;
  filter: blur(10px);
}

.badge-year-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 4px 0 2px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.2;
}

.badge-year-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  padding: 3px 0 5px;
  width: 100%;
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
}

/* Content */
.journey-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.journey-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.journey-company {
  font-weight: 600;
  color: #f1f5f9;
}

/* Meta: date & location */
.journey-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 1.35rem;
}

.journey-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.journey-meta-item svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.journey-meta-sep {
  color: #64748b;
  font-size: 0.85rem;
}

/* Bullets */
.journey-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.journey-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.journey-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  margin-top: 4px;
}

.journey-bullet-text {
  flex: 1;
}

/* Tech row */
.journey-tech-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.35rem;
}

.journey-tech-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.journey-tech-item:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.journey-tech-item i {
  font-size: 1.15rem;
  line-height: 1;
}

.journey-tech-item svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .journey-timeline-wrap {
    padding-left: 0;
  }

  .journey-timeline-wrap::before {
    left: 21px;
  }

  .journey-item {
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .journey-badge-col {
    width: 44px;
  }

  .journey-year-badge {
    width: 44px;
  }

  .badge-year-lbl {
    font-size: 0.55rem;
    padding: 2px 0;
  }

  .badge-year-num {
    font-size: 0.95rem;
  }

  .journey-title {
    font-size: 1.1rem;
  }

  .journey-meta {
    font-size: 0.82rem;
    gap: 0.4rem;
  }

  .journey-bullet {
    font-size: 0.88rem;
    gap: 0.65rem;
  }

  .journey-tech-row {
    gap: 1rem 1.25rem;
  }

  .journey-tech-item {
    font-size: 0.82rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- New Classes for Refactored Inline Styles --- */
.about-card-glass {
    padding: 2.25rem;
    margin-top: 0;
}

.section-header-sm {
    margin-bottom: 1.25rem;
}

.about-title-sm {
    font-size: 1.75rem;
    margin-top: 0.2rem;
}

.about-p-lead {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: hsl(var(--foreground));
    opacity: 0.95;
}

/* ================================================
   Hero Section Enhancements & Developer Terminal
   ================================================ */




.about-content {
    position: relative;
    z-index: 2;
}



.skills-section-bg {
    background: hsla(var(--muted), 0.2);
}

/* ================================================
   Skills Grid
   ================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem 1.75rem;
    overflow: visible;
    border-radius: 24px;
    background: hsla(var(--card), 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsla(var(--primary), 0.14);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: hsla(var(--primary), 0.4);
    box-shadow: 0 25px 45px -12px hsla(var(--primary), 0.2);
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.01em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(var(--muted), 0.8);
    border: 1px solid hsla(var(--border), 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.skill-card .tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: hsla(var(--muted), 0.6);
    border: 1px solid hsla(var(--border), 0.3);
    border-radius: 12px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.skill-card .tag:hover {
    transform: translateY(-4px) scale(1.1);
    background: hsla(var(--muted), 0.95);
    border-color: hsla(var(--primary), 0.5);
    box-shadow: 0 8px 20px -4px hsla(var(--primary), 0.25);
    z-index: 10;
}

.tag i[class*="devicon"] {
    font-size: 1.1rem;
    line-height: 1;
}

.skill-card .tag i[class*="devicon"] {
    font-size: 1.65rem;
    line-height: 1;
}

.tag .skill-icon {
    flex-shrink: 0;
    display: block;
}

.skill-card .tag .skill-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* Tooltip for Skills Section Icons */
.skill-card .tag::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.9);
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    z-index: 20;
}

.skill-card .tag::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: hsl(var(--foreground)) transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s ease;
    z-index: 20;
}

.skill-card .tag:hover::after,
.skill-card .tag:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dark-mode .tag .skill-icon[src*="vercel"],
.dark-mode .tag .skill-icon[src*="jsonwebtokens"] {
    filter: invert(1);
}

/* ================================================
   Professional Timeline Cards
   ================================================ */
.experience-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.experience-header {
    text-align: center;
    margin-bottom: 0;
    position: static;
}

.experience-layout .tl-accordion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.25rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.tl-accordion {
    position: relative;
}

/* ---- Card ---- */
.tl-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: hsla(var(--card), 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid hsla(var(--primary), 0.14);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.tl-item.glass-card {
    padding: 1.75rem;
}

.tl-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tl-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px hsla(var(--primary), 0.22), 0 0 20px hsla(var(--primary), 0.1);
    border-color: hsla(var(--primary), 0.4);
}

.tl-item:hover::before {
    opacity: 1;
}

.tl-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid hsla(var(--border), 0.15);
}

.tl-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tl-card-body p {
    flex: 1;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    margin-bottom: 1.15rem;
}

.tl-card-body p strong {
    color: hsl(var(--foreground));
    font-weight: 700;
}

/* ---- Date badge ---- */
.tl-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--foreground));
    background: hsla(var(--primary), 0.08);
    border: 1px solid hsla(var(--primary), 0.25);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 10px hsla(var(--primary), 0.1);
}

/* ---- Heading ---- */
.tl-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tl-role {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0;
}

.tl-role-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.tl-role-link:hover {
    color: hsl(var(--foreground));
}

.tl-org {
    font-size: 0.8rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    line-height: 1.45;
    margin: 0;
}

/* ---- Highlight tags ---- */
.tl-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
}

.tl-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 50px;
    background: hsla(var(--muted), 0.8);
    border: 1px solid hsla(var(--border), 0.25);
    color: hsl(var(--foreground));
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 1100px) {
    .experience-layout {
        grid-template-columns: 1fr;
    }

    .experience-header {
        text-align: center;
        position: static;
        max-width: 560px;
        margin: 0 auto;
    }

    .experience-layout .tl-accordion {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    }
}

@media (max-width: 900px) {
    .experience-layout .tl-accordion {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .tl-item {
        padding: 1.25rem;
    }

    .tl-role {
        font-size: 0.95rem;
    }
}





.project-tags-spacing {
    margin-bottom: 1.5rem;
}

.project-btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.contact-desc {
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.contact-icon-box.primary {
    background: hsla(var(--primary), 0.1);
    color: hsl(var(--primary));
}

.contact-icon-box.accent {
    background: hsla(var(--accent), 0.1);
    color: hsl(var(--accent));
}

.contact-info-label {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: hsl(var(--foreground));
}

.contact-submit-btn {
    width: 100%;
    margin-top: 1rem;
}



@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1rem;
    }
}

.dark-mode {
    --background: 222 47% 11%;
    --foreground: 210 40% 98%;

    --card: 217 33% 17%;
    --card-foreground: 210 40% 98%;

    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;

    --border: 217 33% 17%;
    --input: 217 33% 17%;

    --secondary: 217 33% 17%;
    --secondary-foreground: 210 40% 98%;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a,
button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

button {
    font-family: inherit;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism */
.glass {
    background: hsla(var(--background), 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(var(--border), 0.1);
}

.glass-card {
    background: hsla(var(--card), 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid hsla(var(--border), 0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Gradient Text */
.gradient-text {
    color: hsl(var(--foreground));
    display: inline-block;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-base);
    background: hsl(var(--background));
    box-shadow: 0 2px 15px hsla(0, 0%, 0%, 0.08);
    border-bottom: 1px solid hsla(var(--border), 0.5);
}

.header.scrolled {
    background: hsl(var(--background));
    padding: 0.5rem 0;
    box-shadow: 0 4px 25px hsla(0, 0%, 0%, 0.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}



.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.nav-right-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsla(var(--muted), 0.5);
    border: 1px solid hsla(var(--border), 0.3);
    color: hsl(var(--foreground));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-social-link:hover {
    color: hsl(var(--foreground));
    background: hsla(var(--primary), 0.12);
    border-color: hsla(var(--primary), 0.5);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 12px hsla(var(--primary), 0.25);
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: hsl(var(--foreground));
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--foreground));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(var(--foreground));
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: hsl(var(--foreground));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: hsl(var(--foreground));
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Resume Nav Button --- */
@property --orbit-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.nav-resume-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.35rem 1rem !important;
    border-radius: 50px !important;
    border: 2px solid hsl(var(--primary)) !important;
    background: hsla(var(--primary), 0.05);
    color: hsl(var(--primary)) !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-resume-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--orbit-angle),
        transparent 0deg,
        hsl(var(--primary)) 30deg,
        transparent 60deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: orbit-rotate 4s linear infinite;
}

@keyframes orbit-rotate {
    to {
        --orbit-angle: 360deg;
    }
}

.nav-resume-btn::after {
    display: none !important;
}

.nav-resume-btn:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: hsl(var(--primary)) !important;
    background: hsla(var(--primary), 0.15) !important;
    box-shadow: 0 0 20px hsla(var(--primary), 0.5) !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(230 85% 60%));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 10px 25px -5px hsla(var(--primary), 0.4), 0 0 0 1px hsla(var(--primary), 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 35px -5px hsla(var(--primary), 0.55), 0 0 25px hsla(var(--primary), 0.3);
}

.btn-outline {
    background: hsla(var(--card), 0.4);
    backdrop-filter: blur(8px);
    border: 1.5px solid hsla(var(--primary), 0.4);
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsla(var(--primary), 0.12);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px -5px hsla(var(--primary), 0.25);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: radial-gradient(circle at top right, hsla(var(--primary), 0.1), transparent 40%),
        radial-gradient(circle at bottom left, hsla(var(--accent), 0.05), transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.hero-text h1 {
    font-size: var(--fs-h1);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-text .description {
    font-size: 1.15rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.75rem;
    max-width: 550px;
}

/* Skills Grid */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground));
}

/* Project Cards - Ultra-Premium Luxury Aesthetic */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 2.75rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    background: hsla(var(--card), 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsla(var(--primary), 0.15);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px hsla(var(--border), 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}



.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: hsla(var(--primary), 0.45);
    box-shadow: 0 30px 60px -15px hsla(var(--primary), 0.25), 0 0 25px hsla(var(--primary), 0.15), 0 0 0 1px hsla(var(--primary), 0.4);
}

.project-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.project-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 2;
}

.project-img,
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .slider-image,
.project-card:hover .project-img {
    transform: scale(1.06);
}

/* Project Slider */
.project-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-slider::-webkit-scrollbar {
    display: none;
}

.slider-image {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.slider-nav {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    z-index: 10;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.slider-dot.active {
    width: 22px;
    border-radius: 10px;
    background: hsl(var(--primary));
    box-shadow: 0 0 12px hsla(var(--primary), 0.8);
}

.project-body {
    padding: 2.25rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-body h3 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-body h3 {
    color: hsl(var(--foreground));
}

.project-body p {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Glass Pill Skill Tags inside Projects */
.project-tags-spacing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.project-tags-spacing .tag {
    background: hsla(var(--primary), 0.08);
    border: 1px solid hsla(var(--primary), 0.2);
    color: hsl(var(--foreground));
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-tags-spacing .tag:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(var(--primary), 0.4);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid hsla(var(--border), 0.08);
}

.project-btn-sm {
    padding: 0.6rem 1.35rem !important;
    font-size: 0.88rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

/* --- Project Engineering Metrics --- */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem 0.5rem;
    background: rgba(15, 38, 73, 0.4);
    border: 1px solid rgba(26, 111, 191, 0.25);
    border-radius: 10px;
}

.metric-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.25rem;
}

.metric-badge:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    font-family: 'Fira Code', monospace;
    letter-spacing: -0.02em;
}

.metric-lbl {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Contact Page */
.contact-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.projects-toggle-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-explore-all {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: hsla(var(--muted), 0.3);
    border: 1px solid hsla(var(--border), 0.1);
    border-radius: 8px;
    color: hsl(var(--foreground));
    font-family: inherit;
    transition: var(--transition-base);
}

.form-input:focus {
    outline: none;
    background: hsla(var(--muted), 0.5);
    border-color: hsl(var(--primary));
}

/* Footer */
.footer {
    padding: 4rem 1.5rem;
    background: hsla(var(--muted), 0.2);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: hsl(var(--muted-foreground));
    transition: var(--transition-base);
}

.social-link:hover {
    color: hsl(var(--foreground));
    transform: translateY(-2px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: hsl(var(--primary));
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 99;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text .description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .about-card-glass {
        padding: 2rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* --- Phase 2: Unique & Premium Enhancements --- */

/* Mesh Gradient Background */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.4;
    pointer-events: none;
}

.mesh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floating 20s infinite alternate;
}

.mesh-1 {
    width: 500px;
    height: 500px;
    background: hsla(var(--primary), 0.3);
    top: -10%;
    right: -10%;
}

.mesh-2 {
    width: 400px;
    height: 400px;
    background: hsla(var(--accent), 0.2);
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

.mesh-3 {
    width: 300px;
    height: 300px;
    background: hsla(var(--primary), 0.15);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    z-index: 2000;
    transition: width 0.1s;
}
/* --- Phase 3: Ultra-Unique Enhancements --- */

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
}



/* Spotlight Effect */
.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--x) var(--y), hsla(var(--primary), 0.1), transparent 40%);
    pointer-events: none;
    z-index: 1;
}



/* --- Phase 4: UX, Accessibility & Comfort --- */

/* High-Contrast Focus Visible for Keyboard Users */
:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 4px;
    border-radius: 4px;
}

/* Reduced Motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }

    .mesh-bg,
    .grain-overlay {
        display: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .spotlight {
        display: none !important;
    }

    .glass-card:hover {
        transform: none !important;
    }

    .btn:hover {
        transform: none !important;
    }
}

/* Accessibility: Text Contrast Refinement on Glass Cards */
.glass-card p {
    color: hsl(var(--foreground));
    opacity: 0.95;
}

.dark-mode .glass-card p {
    color: hsl(var(--foreground));
    opacity: 0.95;
}

/* Skip to Content for Screen Readers */
.skip-link {
    position: absolute;
    top: -60px;
    left: 1.5rem;
    background: hsl(var(--primary));
    color: white;
    padding: 1rem 2rem;
    z-index: 10000;
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* CV Section Styles */



/* --- Comprehensive Responsive Breakpoints --- */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
        --section-padding: 6rem 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text .title {
        font-size: 2.5rem;
    }



    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --section-padding: 4rem 1rem;
        --fs-h1: clamp(2rem, 6vw, 3rem);
        --fs-h2: clamp(1.5rem, 4vw, 2rem);
        --fs-role: clamp(1rem, 3vw, 1.5rem);
    }

    .section {
        padding: var(--section-padding);
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, rgba(26, 111, 191, 0.3) 0%, rgba(199, 89, 48, 0.3) 100%);
        border: 2px solid rgba(26, 111, 191, 0.5);
        border-radius: 12px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        position: relative;
        box-shadow: 0 4px 15px rgba(26, 111, 191, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger:hover {
        background: linear-gradient(135deg, rgba(26, 111, 191, 0.4) 0%, rgba(199, 89, 48, 0.4) 100%);
        border-color: rgba(26, 111, 191, 0.7);
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(26, 111, 191, 0.4);
    }

    .hamburger:active {
        transform: scale(0.95);
    }

    .hamburger span {
        width: 24px;
        height: 3px;
        background: linear-gradient(90deg, hsl(var(--foreground)) 0%, hsl(var(--primary)) 100%);
        border-radius: 3px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 3px 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
        background: hsl(var(--primary));
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
        background: hsl(var(--primary));
    }

    .navbar {
        justify-content: flex-end;
        height: 70px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 300px;
        height: calc(100vh - 70px);
        background: rgba(8, 8, 8, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.75rem;
        padding: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: none;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav-right-group {
        margin-left: 0;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .tl-item {
        padding: 1.5rem;
    }

    .tl-role {
        font-size: 1.1rem;
    }

    .tl-org {
        font-size: 0.9rem;
    }

    .tl-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .project-slider {
        height: 250px;
    }

    .slider-image {
        height: 250px;
    }


}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0.75rem;
        --radius: 0.5rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-text .title {
        font-size: 2rem;
    }

    .hero-text .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .skill-card {
        padding: 1.25rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .tl-item {
        padding: 1.25rem;
    }

    .tl-role {
        font-size: 1rem;
    }

    .tl-org {
        font-size: 0.85rem;
    }

    .company-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .project-slider {
        height: 200px;
    }

    .slider-image {
        height: 200px;
    }

    .slider-nav {
        bottom: 0.5rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .tl-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }
}

@media (max-width: 360px) {
    :root {
        --section-padding: 2.5rem 0.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .hero-text .title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .project-body h3 {
        font-size: 1.1rem;
    }

    .project-body p {
        font-size: 0.85rem;
    }

    .company-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ================================================
   Featured Project Showcase (Image-Accurate)
   ================================================ */
.featured-projects-section {
    position: relative;
    padding: 6rem 0;
}

.featured-projects-list {
    display: flex;
    flex-direction: column;
    gap: 6.5rem;
    max-width: 1200px;
    margin: 3.5rem auto 0;
}

.featured-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

/* Info Column */
.featured-info-col {
    flex: 1 1 45%;
    max-width: 500px;
}

.featured-tagline {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.featured-title {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.featured-description {
    font-size: 1.02rem;
    line-height: 1.68;
    color: #cbd5e1;
    margin-bottom: 1.75rem;
}

.featured-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 2rem;
}

.featured-tech-list span {
    transition: color 0.2s ease;
}

.featured-tech-list span:hover {
    color: #38bdf8;
}

.featured-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.featured-icon-link {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

.featured-icon-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Media Column & Arrow Navigation Buttons */
.featured-media-col {
    flex: 1 1 55%;
    max-width: 680px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
}

.featured-nav-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    z-index: 2;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.15);
}

/* Light flow rotating beam around the circular border */
.featured-nav-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.05) 0deg,
        rgba(56, 189, 248, 0.15) 90deg,
        rgba(56, 189, 248, 0.85) 180deg,
        rgba(129, 140, 248, 0.95) 240deg,
        #ffffff 270deg,
        rgba(56, 189, 248, 0.2) 320deg,
        rgba(255, 255, 255, 0.05) 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: arrowLightFlow 3s linear infinite;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
    transition: filter 0.3s ease;
}

/* Ambient glowing light trail behind button */
.featured-nav-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 150deg,
        rgba(56, 189, 248, 0.4) 220deg,
        rgba(129, 140, 248, 0.7) 260deg,
        #38bdf8 270deg,
        transparent 315deg
    );
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
    animation: arrowLightFlow 3s linear infinite;
    opacity: 0.65;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

@keyframes arrowLightFlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Glowing light flow through the arrow icon itself */
.featured-nav-btn svg {
    position: relative;
    z-index: 3;
    transition: transform 0.25s ease, filter 0.25s ease, stroke 0.25s ease;
    animation: arrowGlowPulse 2.8s ease-in-out infinite;
}

@keyframes arrowGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
        stroke: #ffffff;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 14px rgba(129, 140, 248, 0.6));
        stroke: #38bdf8;
    }
}

.featured-nav-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5), 0 0 60px rgba(56, 189, 248, 0.25);
}

.featured-nav-btn:hover::before {
    animation-duration: 1.5s;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 1)) drop-shadow(0 0 16px rgba(129, 140, 248, 0.8));
}

.featured-nav-btn:hover::after {
    animation-duration: 1.5s;
    opacity: 1;
    filter: blur(10px);
}

.featured-nav-btn:hover svg {
    animation: none;
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 1)) drop-shadow(0 0 14px #ffffff);
}

.prev-img-btn:hover svg {
    transform: translateX(-3px);
}

.next-img-btn:hover svg {
    transform: translateX(3px);
}

.featured-nav-btn:active {
    transform: scale(0.94);
}

.featured-img-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 255, 255, 0.03);
    background: #111827;
    aspect-ratio: 16/10;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-img-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.15);
}

.featured-img-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    display: block;
}

.project-slide-img.active {
    opacity: 1;
    pointer-events: auto;
}

/* Dots Indicator on the Card */
.project-img-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.img-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
    display: inline-block;
}

.img-dot.active {
    background: #38bdf8;
    width: 18px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .featured-projects-list {
        gap: 4.5rem;
    }

    .featured-project-item {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: left;
    }

    .featured-info-col {
        max-width: 100%;
        width: 100%;
    }

    .featured-media-col {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .featured-media-col {
        position: relative;
        gap: 0.5rem;
    }

    .featured-nav-btn {
        width: 38px;
        height: 38px;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    .featured-description {
        font-size: 0.95rem;
    }

    .featured-tech-list {
        gap: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media print {

    .header,
    .footer,
    .back-to-top {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}