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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Fluid base: 13px mobile → 16px desktop, everything scales together */
    font-size: clamp(13px, 1.2vw + 9px, 16px);
}

/* ===================== SCROLL REVEAL ANIMATIONS ===================== */
/* Sections start slightly lowered + transparent, then settle into place
   once they enter the viewport. Subtle by design — no bounce, no scale. */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Child elements inside a revealed section can stagger in slightly after
   the section itself, for a touch more polish without extra motion. */
.reveal-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

.reveal.is-visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal.is-visible .reveal-child:nth-child(3) { transition-delay: 0.25s; }
.reveal.is-visible .reveal-child:nth-child(4) { transition-delay: 0.35s; }

/* Respect users who've asked for reduced motion — show content immediately */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===================== THEME VARIABLES ===================== */
:root {
    --blue: #3b82f6;

    /* ── Type scale (all relative to html font-size) ── */
    --text-xs:   0.75rem;   /* 12px */
    --text-sm:   0.825rem;  /* 13px */
    --text-base: 1rem;      /* 16px */
    --text-md:   1.1rem;    /* ~18px */
    --text-lg:   1.25rem;   /* 20px */
    --text-xl:   1.75rem;   /* 28px */
    --text-2xl:  2.5rem;    /* 40px */
    --text-3xl:  3.5rem;    /* 56px */

    /* Dark mode defaults */
    --bg:              #0a0a0a;
    --bg-card:         rgba(255, 255, 255, 0.03);
    --bg-card-hover:   rgba(255, 255, 255, 0.06);
    --border:          rgba(255, 255, 255, 0.05);
    --border-hover:    rgba(59, 130, 246, 0.3);
    --text-primary:    #f1f5f9;
    --text-secondary:  #94a3b8;
    --text-muted:      #64748b;
    --nav-bg:          rgba(10, 10, 10, 0.85);
    --overlay-bg:      rgba(10, 10, 10, 0.98);
    --scrollbar-track: #242424;
    --scrollbar-thumb: grey;
    --skeleton-1:      rgba(255,255,255,0.1);
    --skeleton-2:      rgba(255,255,255,0.2);
    --loading-bar-bg:  #1a1a1a;
    --btn-bg:          rgb(53, 53, 53);
    --btn-border:      rgb(53, 53, 53);
    --btn-shine:       rgb(55, 55, 55);
    --timeline-line:   rgba(59, 130, 246, 0.2);
    --modal-icon-info: rgba(255, 255, 255, 0.06);
    --modal-title:     #e6eefc;
    --modal-msg:       #cbd5e1;
    --tech-stack-border: rgba(255, 255, 255, 0.1);
    --form-input-bg:   rgba(255, 255, 255, 0.02);
    --form-border:     rgba(255, 255, 255, 0.1);
    --form-label-color: #666;
    --background:      #0a0a0a; /* keep legacy var for form label */
}

/* ===================== LIGHT MODE OVERRIDES ===================== */
html.light {
    --bg:              #f8fafc;
    --bg-card:         rgba(0, 0, 0, 0.03);
    --bg-card-hover:   rgba(0, 0, 0, 0.05);
    --border:          rgba(0, 0, 0, 0.08);
    --border-hover:    rgba(59, 130, 246, 0.4);
    --text-primary:    #0f172a;
    --text-secondary:  #475569;
    --text-muted:      #64748b;
    --nav-bg:          rgba(248, 250, 252, 0.88);
    --overlay-bg:      rgba(248, 250, 252, 0.98);
    --scrollbar-track: #e2e8f0;
    --scrollbar-thumb: #94a3b8;
    --skeleton-1:      rgba(0,0,0,0.06);
    --skeleton-2:      rgba(0,0,0,0.1);
    --loading-bar-bg:  #e2e8f0;
    --btn-bg:          #e2e8f0;
    --btn-border:      #cbd5e1;
    --btn-shine:       #f1f5f9;
    --timeline-line:   rgba(59, 130, 246, 0.3);
    --modal-icon-info: rgba(0, 0, 0, 0.05);
    --modal-title:     #0f172a;
    --modal-msg:       #475569;
    --tech-stack-border: rgba(0, 0, 0, 0.1);
    --form-input-bg:   rgba(0, 0, 0, 0.03);
    --form-border:     rgba(0, 0, 0, 0.15);
    --form-label-color: #94a3b8;
    --background:      #f8fafc;
}

  
  body {
    font-family: "Space Grotesk", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  /* ===================== SMOOTH DARK/LIGHT MODE TRANSITION =====================
     Fallback transition so every element (even ones without their own
     transition rule) fades its color/background smoothly when the theme
     class toggles. Elements that already declare their own `transition`
     (buttons, cards, links, etc.) keep using that instead, since a class
     selector is more specific than this universal one. */
  html {
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  *, *::before, *::after {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  }
  
  /* Loading Screen */
  .code-animation {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    
  }
  
  .typing-text::after {
    content: "|";
    animation: blink 0.8s step-end infinite;
  }
  
  .loading-bar {
    width: 200px;
    height: 2px;
    background: var(--loading-bar-bg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }
  
  .loading-bar::after {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    background: var(--blue);
    animation: loading 0.8s ease infinite;
    box-shadow: 0 0 15px var(--blue);
  }
  
  @keyframes loading {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(250%);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Enhanced Navbar */

  .logo {
    font-weight: bold;
    font-size: var(--text-2xl);
  }

  .nav-glass {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease;
  }
  
  .nav-link {
    position: relative;
    font-size: var(--text-base);
    transition: color 0.2s ease;
    color: var(--text-secondary);
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--blue);
    transition: width 0.2s ease;
  }
  
  .nav-link:hover {
    color: var(--text-primary);
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .menu-overlay {
    position: fixed;
    top: 4rem; /* keep the navbar visible (nav has h-16 / 4rem) */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 4rem);
    background: var(--overlay-bg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s ease;
    z-index: 50;
    pointer-events: none;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Closing state: used to animate out before fully hiding */
  .menu-overlay.closing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  /* Enhanced Navbar mobile*/
  .hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 40;
  }

  .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
      opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }
  .hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }
  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  .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);
  }

  .mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: var(--text-xl);
    text-align: center;
    margin: 1.1rem 0;
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
  }

  .menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-overlay.active a.mobile-nav-link:nth-of-type(1) { transition-delay: 0.2s; }
  .menu-overlay.active a.mobile-nav-link:nth-of-type(2) { transition-delay: 0.3s; }
  .menu-overlay.active a.mobile-nav-link:nth-of-type(3) { transition-delay: 0.4s; }
  .menu-overlay.active a.mobile-nav-link:nth-of-type(4) { transition-delay: 0.5s; }
  .menu-overlay.active a.mobile-nav-link:nth-of-type(5) { transition-delay: 0.6s; }
  .menu-overlay.active a.mobile-nav-link:nth-of-type(6) { transition-delay: 0.7s; }
  .menu-overlay.active a.mobile-nav-link:nth-of-type(7) { transition-delay: 0.8s; }
  

  .mobile-nav-link:hover {
    color: #3b82f6;
    transform: scale(1.1);
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  /* Buttons */
  .glow-button {
    background: var(--btn-bg);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--btn-border);
  }
  
  .glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  .glow-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent,
      var(--btn-shine),
      transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
  }
  
  @keyframes shine {
    0% {
      transform: translateX(-100%) rotate(45deg);
    }
    100% {
      transform: translateX(100%) rotate(45deg);
    }
  }
  
  .outline-button {
    border: 1px solid var(--btn-border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .outline-button:hover {
    background: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  /* Cards */
  .glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
  }
  
  .glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
  }
  
  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  @media (hover: hover) and (pointer: fine) {
    .project-card:hover {
      transform: translateY(-4px);
      border-color: var(--border-hover);
      box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    }
  }
  
  .tech-pill {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: var(--text-sm);
    display: inline-block;
    cursor: default;
  }
  
  /* Form Styles */
  .form-group {
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .form-input {
    width: 100%;
    background: var(--form-input-bg);
    border: 1px solid var(--form-border);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
  }

  .field-error {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #f87171;
    min-height: 1.15rem;
    text-align: left;
  }
  
  .form-input:focus {
    outline: none;
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
  }
  
  .form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--form-label-color);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--background);
    padding: 0 0.25rem;
  }
  
  .form-input:focus ~ label,
  .form-input:not(:placeholder-shown) ~ label {
    transform: translateY(-1.4rem) scale(0.85);
    color: var(--blue);
  }
  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }

  /* Site modal styles */
  .site-modal.hidden {
    display: none;
  }
  .site-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .site-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
  }
  .site-modal__content {
    position: relative;
    min-width: 320px;
    max-width: 520px;
    margin: 1rem;
    z-index: 61;
    pointer-events: auto;
    text-align: center;
  }
  .site-modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .site-modal__close:hover {
    color: white;
    transform: scale(1.05);
  }
  .site-modal.info .site-modal__icon {
    background: var(--modal-icon-info);
    color: rgba(59, 130, 246, 0.95);
  }
  .site-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
  }
  .site-modal__title {
    margin: 0.25rem 0 0.5rem;
    color: var(--modal-title);
  }
  .site-modal__message {
    color: var(--modal-msg);
    margin-bottom: 1rem;
  }
  .site-modal.success .site-modal__icon {
    background: rgba(59,130,246,0.15);
    color: var(--blue);
  }
  .site-modal.error .site-modal__icon {
    background: rgba(239,68,68,0.12);
    color: #f87171;
  }
  .site-modal .site-modal__actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
  }
  
  /* Dark Mode Specific */
  .dark .glass-card,
  .dark .project-card {
    background: rgba(255, 255, 255, 0.02);
  }
  
  /* Section Padding */
  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  /* Typography Enhancements */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  p {
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
   /* HOME SECTION */
   #home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
  }
  
  .section__pic-container {
    display: flex;
    position: relative;
    height: 300px;
    width: 300px;
    margin-bottom: 1rem;
  }
  
  .profilepic {
    border-radius: 50%;
  }
  
  .section__text {
    align-self: center;
    text-align: center;
  }
  
  .section__text__p1 {
    font-weight: 600;
    color: gray;
  }
  
  .section__text__p2 {
    font-weight: 600;
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: gray;
  }
  
  #cursor {
    animation: blink 1s linear infinite;
    color: var(--text-primary);
    font-weight: 400;
    font-size: var(--text-xl);
    margin-bottom: 1rem;
  }
  
  @keyframes blink {
    0% { opacity: 100%; }
    50% { opacity: 0%; }
  }
  
  .title {
    font-size: var(--text-3xl);
    color: var(--text-primary);
    font-weight: bold;
    margin: 5px 0;
  }
  
  #socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
    margin-left: 10px;
  }
  
  .fa-brands {
    cursor: pointer;
    width: 40px;
    font-size: 40px;
    color: grey;
    transition: all 0.4s ease-in-out;
  }
  

/* ABOUT SECTION */
/* ── BENTO GRID – About Section ── */
.bento-section-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1rem;
  margin-top: 0.5rem;
  text-align: left;
}

/* Card base */
.bento-card {
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
}

/* Photo card — spans 1 col, 2 rows */
.bento-photo {
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 340px;
}
.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bento-photo:hover .bento-img {
  transform: scale(1.05);
}
.bento-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.bento-name-tag {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

/* Intro card — spans 2 cols */
.bento-intro {
  grid-column: 2 / 4;
  grid-row: 1;
}

/* Experience card */
.bento-exp {
  grid-column: 2;
  grid-row: 2;
}

/* Education card */
.bento-edu {
  grid-column: 3;
  grid-row: 2;
}

/* Hobbies card — col 3, row 3 */
.bento-hobbies {
  grid-column: 3;
  grid-row: 3;
}

/* Stack/CTA card — spans cols 1-2, row 3 */
.bento-stack {
  grid-column: 1 / 3;
  grid-row: 3;
}

/* CTA — flex layout */
.bento-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Card content styles */
.bento-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.bento-card-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.bento-card-text {
  font-size: var(--text-base);
  line-height: 1.6;
}

.bento-card-subtext {
  font-size: var(--text-sm);
  opacity: 0.65;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.bento-stat {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  margin: 0.25rem 0;
}

/* Hobby pills */
.bento-hobby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bento-hobby-pill {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-block;
  cursor: default;
}

/* Education card honors (Dean's Lister / President's Lister) */
.bento-edu-honors {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.bento-edu-honor {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--blue);
}
.bento-edu-honor i {
  font-size: 0.85em;
}

/* Quote */
.bento-quote {
  font-size: var(--text-md);
  font-style: italic;
  opacity: 0.8;
  flex: 1;
}
.bento-cta-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.bento-cta-btn:hover {
  background: rgba(128,128,128,0.15);
}


/* ── SKILLS SECTION — Tabbed Pill Tags ── */
.skills-tab-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Tab bar */
.skills-tab-bar {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.skills-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid rgba(128,128,128,0.25);
  background: transparent;
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.skills-tab-btn:hover {
  border-color: rgba(128,128,128,0.5);
  background: rgba(128,128,128,0.08);
}

.skills-tab-btn.active {
  background: var(--accent-color, #4f8ef7);
  border-color: var(--accent-color, #4f8ef7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,142,247,0.35);
}

/* Tab panels */
.skills-tab-panels {
  border-radius: 20px;
  padding: 2.5rem 3rem;
  min-height: 260px;
}

.skills-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}

.skills-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pills grid */
.skills-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: default;
}

.skill-pill i {
  font-size: var(--text-base);
  flex-shrink: 0;
}

.skill-level {
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.15rem;
  padding-left: 0.4rem;
  border-left: 1px solid currentColor;
}

/* Experienced pills — purple tint */
.skill-pill.experienced {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

html.light .skill-pill.experienced {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

/* Intermediate pills — teal tint */
.skill-pill.intermediate {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--text-primary);
}

html.light .skill-pill.intermediate {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.35);
}

/* Mobile */
@media screen and (max-width: 768px) {
  .skills-tab-panels {
    padding: 1.5rem 1.25rem;
  }
  .skills-tab-btn {
    padding: 0.5rem 1rem;
    font-size: var(--text-sm);
  }
  .skills-pills-grid {
    gap: 0.6rem;
  }
  .skill-pill {
    padding: 0.4rem 0.75rem;
    font-size: var(--text-sm);
    flex: 1 1 calc(50% - 0.3rem);
    max-width: calc(50% - 0.3rem);
    justify-content: center;
  }
  .skill-level {
    display: none;
  }
}

/* ── CERTIFICATIONS & AWARDS SECTION ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card.glass-card {
  --accent: var(--blue);
  display: flex;
  align-items: stretch;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-top: none;
  overflow: visible;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Left stub: logo + date, tinted with the accent color */
.cert-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-shrink: 0;
  width: 96px;
  padding: 1.25rem 0.75rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 14px 0 0 14px;
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
  font-size: 1.15rem;
  color: var(--accent);
}

.cert-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.cert-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
  white-space: nowrap;
  text-align: center;
}

/* Perforated divider between stub and body */
.cert-divider {
  position: relative;
  flex-shrink: 0;
  width: 0;
  border-left: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--border));
  margin: 14px 0;
}

.cert-divider::before,
.cert-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--bg);
  border-radius: 50%;
}

.cert-divider::before { top: -9px; }
.cert-divider::after { bottom: -9px; }

/* Body */
.cert-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem;
  min-width: 0;
}

.cert-content { flex: 1; }

.cert-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.82rem;
  opacity: 0.6;
  margin-bottom: 0.65rem;
}

.cert-credential-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s ease, filter 0.25s ease;
}

.cert-credential-btn:hover {
  color: color-mix(in srgb, var(--accent) 70%, white 30%);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}

.cert-credential-btn svg {
  transition: transform 0.3s ease;
}

.cert-card:hover .cert-credential-btn svg {
  transform: translate(3px, -3px);
}

@media screen and (max-width: 768px) {
  .certs-grid { grid-template-columns: 1fr; }

  .cert-card.glass-card {
    padding: 0;
  }

  .cert-card-top {
    width: 76px;
    padding: 0.9rem 0.5rem;
  }

  .cert-icon {
    width: 36px;
    height: 36px;
  }

  .cert-date {
    font-size: 0.62rem;
  }

  .cert-body {
    padding: 1rem 1rem;
    min-width: 0;
  }

  .cert-title {
    font-size: 0.95rem;
  }

  .cert-issuer {
    font-size: 0.78rem;
  }
}

/* Certifications "Show More" (mobile only — first 3 cards show by default) */
.certs-more {
  display: contents;
}

.certs-toggle-wrapper {
  display: none;
}

@media screen and (max-width: 768px) {
  .certs-more {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
  }

  .certs-more.expanded {
    max-height: 3000px;
    opacity: 1;
    overflow: visible;
  }

  .certs-more .cert-card {
    margin-top: 1.5rem;
  }

  .certs-toggle-wrapper {
    display: block;
  }
}

/* EXPERIENCE SECTION */
.experience-toggle-btn {
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.experience-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: translateY(-1px);
}

/* PROJECT SECTION */
.carousel {
  position: relative;
  overflow-x: hidden;
  padding-top: 5px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: stretch;
}

.carousel-item {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.carousel-item p {
  margin-bottom: 1rem;
  color: gray;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
  margin: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  text-decoration: none;
  color: inherit;
}

.project-card:visited,
.project-card:link,
.project-card:active {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }

  .project-card:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    pointer-events: none;
  }
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.project-card h2 {
  flex-shrink: 0;
}

.project-desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  flex-shrink: 0;
}

.project-card .flex.justify-center.items-center.mt-6 {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover img {
    transform: scale(1.05);
  }
}

.project-title {
  color: var(--text-primary);
}

/* ── Project card links: plain text with arrow that lifts on card hover ── */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.project-link:hover {
  color: var(--blue);
}

.project-link-arrow {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-link-arrow {
    transform: translate(3px, -3px);
  }
}

/* Carousel Buttons */
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 18px;
  border: none;
  cursor: pointer;
  z-index: 10; 
  transition: 0.2s ease;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.125);
}

/* Dot pagination — hidden by default, shown on mobile only (see media query) */
.carousel-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.carousel-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--blue);
}


/* RESPONSIVE */
@media screen and (min-width: 768px) {
  /* home section */
  #home {
    flex-direction: row;
    gap: 3rem;
  }

  .section__pic-container {
    width: 350px;
    height: 350px;
    margin-bottom: 0;
  }

  /* about section – bento */
  .bento-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* project section */
  .carousel-item {
    width: calc(100% / 3); /* Show 3 items per slide */
  }

}

/* MOBILE */
@media screen and (max-width: 768px) {
  /* home section */
  #home {
    flex-direction: column;
    padding: 10% 0;
  }

  .section__pic-container {
    width: 250px;
    height: 250px;
  }

  .title {
    font-size: var(--text-2xl);
  }

  .section__text__p2 {
    font-size: var(--text-lg);
  }

  #cursor {
    font-size: var(--text-lg);
  }

  /* about section – bento mobile */
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-photo {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 220px;
  }
  .bento-intro {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .bento-exp { grid-column: 1; grid-row: auto; }
  .bento-edu { grid-column: 2; grid-row: auto; }
  .bento-hobbies { grid-column: 1 / 3; grid-row: auto; }
  .bento-stack {
    grid-column: 1 / 3;
    grid-row: auto;
  }
  .bento-cta {
    flex-direction: column;
    text-align: center;
  }

  /* project section */
  .project-card {
    max-width: 340px;
    min-height: unset;
    height: auto;
  }

  /* Mobile: swipe replaces arrows, dots replace pagination buttons */
  .carousel-btn {
    display: none;
  }

  .carousel-dots {
    display: flex;
  }

  /* Responsive Adjustments */
  .nav-link {
    padding: 0.5rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .glow-button,
  .outline-button {
    padding: 0.625rem 1.25rem;
  }

}

/* EXPERIENCE SECTION */
.experience-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}

.experience-more.expanded {
  max-height: 2000px;
  opacity: 1;
  overflow: visible;
}

.experience-more .timeline-entry {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.experience-more.expanded .timeline-entry {
  opacity: 1;
  transform: translateY(0);
}

.modern-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Center line */
.modern-timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent,
    var(--timeline-line) 10%,
    var(--timeline-line) 90%,
    transparent
  );
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.timeline-entry {
  width: 100%;
  margin-bottom: 70px;
  position: relative;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

/* Position entries on alternating sides */
.timeline-entry.left {
  padding-right: 50%;
}

.timeline-entry.right {
  padding-left: 50%;
}

/* Content positioning and styling */
.timeline-entry-content {
  position: relative;
  width: calc(100% - 40px);
  margin: 0 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlide 0.6s ease forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

/* Logo badge node on the timeline */
.timeline-node {
  position: absolute;
  width: 52px;
  height: 52px;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue), 0 6px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-node img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.timeline-entry:hover .timeline-node {
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 0 0 2px var(--blue), 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Current role gets a pulsing ring */
.timeline-entry.current .timeline-node {
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(59, 130, 246, 0.15), 0 6px 16px rgba(0, 0, 0, 0.25);
  animation: pulseRing 2.4s ease-in-out infinite;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(59, 130, 246, 0.15), 0 6px 16px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 0 2px var(--blue), 0 0 0 10px rgba(59, 130, 246, 0.25), 0 6px 16px rgba(0, 0, 0, 0.25); }
}

/* Connecting lines from nodes to cards */
.timeline-entry::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.2),
    rgba(59, 130, 246, 0.1)
  );
  top: 31px;
}

.timeline-entry.left::after {
  right: 50%;
}

.timeline-entry.right::after {
  left: 50%;
}

/* Entry header styling */
.entry-header {
  margin-bottom: 1.5rem;
}

.entry-header .date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.entry-header .company {
  margin-top: 0.25rem;
}

/* Entry body styling */
.entry-body {
  position: relative;
}

.tech-stack {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tech-stack-border);
}

/* Animation */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation delays for entries */
.timeline-entry:nth-child(1) .timeline-entry-content {
  animation-delay: 0.2s;
}
.timeline-entry:nth-child(2) .timeline-entry-content {
  animation-delay: 0.4s;
}
.timeline-entry:nth-child(3) .timeline-entry-content {
  animation-delay: 0.6s;
}
.timeline-entry:nth-child(4) .timeline-entry-content {
  animation-delay: 0.8s;
}

/* Hover effects */
.timeline-entry-content:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .modern-timeline::before {
    left: 20px;
  }

  .timeline-node {
    left: 20px;
    width: 40px;
    height: 40px;
  }

  .timeline-entry.left,
  .timeline-entry.right {
    padding: 0 0 0 60px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .timeline-entry::after {
    width: 20px;
    left: 20px !important;
    top: 25px;
  }

  .timeline-entry-content {
    width: 100%;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .entry-header .date,
  .entry-header h3,
  .entry-header .company,
  .entry-body li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .entry-header {
    flex-direction: column;
  }

  .entry-header .date {
    margin-bottom: 0.5rem;
  }
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-bg);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--btn-border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.github-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, var(--btn-shine), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}
.github-btn i {
  font-size: 1rem;
  line-height: 1;
}
.github-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--btn-bg);
}

/* Image Loading Optimization */
img {
  background: linear-gradient(90deg, var(--skeleton-1) 25%, var(--skeleton-2) 50%, var(--skeleton-1) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

img.loaded {
  opacity: 1;
  animation: none;
  background: none;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Specific placeholder for profile/project images */
.profilepic {
  background: radial-gradient(circle, var(--skeleton-1) 0%, var(--skeleton-2) 100%);
}

.project-card img {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}
/* ===================== THEME TOGGLE BUTTON ===================== */
#theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1rem;
  flex-shrink: 0;
}

#theme-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: scale(1.08);
}

/* ===================== HERO PICTURE SWITCHING ===================== */
/* Both images sit stacked in the same spot and crossfade via opacity,
   using the same 0.4s ease timing as the logo/theme color transition
   so the picture swap feels like part of the same animation. */
.section__pic-container .profilepic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.section__pic-container img.profilepic-dark {
  opacity: 1;
  pointer-events: auto;
}
.section__pic-container img.profilepic-light {
  opacity: 0;
  pointer-events: none;
}

html.light .section__pic-container img.profilepic-dark {
  opacity: 0;
  pointer-events: none;
}
html.light .section__pic-container img.profilepic-light {
  opacity: 1;
  pointer-events: auto;
}

/* ===================== LIGHT MODE SPECIFIC OVERRIDES ===================== */
html.light .section__text__p1,
html.light .section__text__p2 {
  color: var(--text-secondary);
}

html.light .carousel-item p {
  color: var(--text-muted);
}

html.light .form-input::placeholder {
  color: var(--text-muted);
}

html.light .fa-brands {
  color: var(--text-muted);
}

html.light .site-modal__close {
  color: var(--text-secondary);
}

html.light .site-modal__close:hover {
  color: var(--text-primary);
}

html.light .mobile-nav-link:hover {
  color: #3b82f6;
}

html.light .loading-bar::after {
  background: var(--blue);
}

/* ===================== MODAL LIGHT MODE FIX ===================== */
html.light .site-modal__content.glass-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html.light .site-modal__overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* ── OK button in modal also needs shine fix ── */
html.light .glow-button::after {
  background: linear-gradient(45deg, transparent, var(--btn-shine), transparent);
}

/* ── Glass cards in light mode get a proper solid bg ── */
html.light .glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html.light .project-card.glass-card {
  background: rgba(255, 255, 255, 0.85);
}

/* ── Custom Cursor: dot + trailing ring ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cursor-ring.cursor-hover {
  width: 48px;
  height: 48px;
  border-color: rgba(59, 130, 246, 0.9);
}

/* Hide the native cursor on devices that have a fine pointer (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none !important;
  }

  a, button, input, textarea, select, .glass-card, [onclick], * {
    cursor: none !important;
  }
}

/* On touch devices, don't render the custom cursor at all */
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
