/* =========================
   Base / Tokens
========================= */
:root {
  --bg: #0b0c10;
  --bg-elev: #111218;
  --text: #e6e6e6;
  --muted: #a8a8a8;
  --brand: #f9b234;
  --brand-2: #ff6a00;
  --accent: #7c5cff;
  --card: #141620;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;

  /* light */
  --bg-l: #fafafa;
  --bg-elev-l: #ffffff;
  --text-l: #1a1a1a;
  --muted-l: #5a5a5a;
  --card-l: #ffffff;
  --border-l: rgba(0, 0, 0, 0.08);
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="light"] {
  --bg: var(--bg-l);
  --bg-elev: var(--bg-elev-l);
  --text: var(--text-l);
  --muted: var(--muted-l);
  --card: var(--card-l);
  --border: var(--border-l);
}

/* Layout helpers */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.grid {
  display: grid;
  gap: 24px;
}

/* =========================
   Header / Nav (Always Visible)
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

/* Add padding to body so content doesn’t hide behind nav */
body {
  padding-top: 70px;
  /* adjust based on header height */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #0a0a0a;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-text {
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  opacity: .9;
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 5px 0;
  border-radius: 1px;
}


/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  cursor: pointer;
  padding: 0.5rem 1rem;
  display: inline-block;
  transition: color 0.3s;
  color: var(--text);
  text-decoration: none;
}

.dropbtn:hover {
  color: var(--accent);
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Dropdown links */
.dropdown-content a {
  padding: 0.75rem 1rem;
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--accent);
  color: var(--btn-text);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Optional: for click toggle (mobile-friendly) */
.dropdown.active .dropdown-content {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}



/* =========================
   Hero
========================= */
.hero-inner {
  text-align: center;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: .9rem;
}

.headline {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.5px;
  max-width: 18ch;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  color: var(--muted);
  max-width: 62ch;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #0a0a0a;
  box-shadow: 0 12px 30px rgba(249, 178, 52, .25);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-elev);
}

.btn-ghost:hover {
  background: color-mix(in oklab, var(--bg-elev) 70%, var(--text) 5%);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 14px;
  width: 100%;
  max-width: 720px;
}

.metric {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
}

.metric-num {
  font-weight: 800;
  font-size: 32px;
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: .9rem;
}

/* =========================
   Section Headings
========================= */
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  text-align: center;
}

.section-title {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 800;
}

.section-desc {
  color: var(--muted);
  max-width: 62ch;
  margin-inline: auto;
}

/* =========================
   Cards / Services
========================= */
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.bullets {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.bullets li {
  list-style: "— ";
  margin-left: 8px;
}

.card-link {
  text-decoration: none;
  /* Removes underline */
}

.card-link:hover {
  text-decoration: none;
  /* Removes underline on hover */
}

.btn-small {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid currentColor; /* uses text color for border */
  color: var(--text); /* text color based on theme */
  background-color: var(--bg-card); /* box color based on theme */
  text-decoration: none;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-small:hover {
  background-color: var(--accent); /* accent color on hover */
  color: var(--btn-text); /* contrast text on hover */
}


  .card {
    background-color: var(--bg-card);
    color: var(--text);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }

  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  .btn-small {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid currentColor;
    color: var(--text);
    background-color: var(--bg-card);
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .btn-small:hover {
    background-color: var(--accent);
    color: var(--btn-text);
  }

/* ==============================
   Explore All Services Button
   Light & Dark Theme Compatible
============================== */

/* Container to center the button */
.explore-services-btn-container {
  text-align: center;
  margin-top: 40px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button styling */
.explore-services-btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--accent);
  color: var(--bg); /* text color matches background for contrast */
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.explore-services-btn:hover {
  background: var(--accent-2, #ff6a00); /* optional secondary accent for hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==============================
   Dark Theme Support
============================== */
[data-theme="dark"] .explore-services-btn {
  background: var(--accent);
  color: var(--bg); /* text contrast on dark theme */
  box-shadow: 0 5px 15px rgba(255,255,255,0.05);
}

[data-theme="dark"] .explore-services-btn:hover {
  background: var(--brand, #f9b234);
  color: var(--bg-elev, #111218);
  box-shadow: 0 8px 20px rgba(255,255,255,0.1);
}


/* Service Card Hover Animation */
.card--service {
  background: var(--bg-elev);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
  cursor: pointer;
}

.card--service:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  color: var(--bg);
}

.card--service:hover h3,
.card--service:hover p {
  color: var(--bg);
}

.card--service .btn-small {
  transition: background 0.3s ease, color 0.3s ease;
}

.card--service:hover .btn-small {
  background: var(--bg);
  color: var(--brand);
}

/* Smooth reveal animation when scrolling */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Reveal animation with cascading effect */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  transition-delay: var(--reveal-delay, 0s); /* default 0s */
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}




/* =========================
   Projects
========================= */
.projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  display: grid;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.gradient-border {
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(120deg, var(--brand), var(--accent), var(--brand-2));
}

.thumb-skeleton {
  border-radius: 14px;
  background:
    radial-gradient(1200px 1200px at 10% 10%, rgba(255, 255, 255, .05), transparent 40%),
    linear-gradient(180deg, var(--bg-elev), var(--card));
  display: grid;
  place-items: center;
  height: 180px;
  color: var(--muted);
  transition: transform .25s ease;
}

.project-card:hover .thumb-skeleton {
  transform: scale(1.02);
}

.project-meta h3 {
  font-size: 20px;
  font-weight: 700;
}

.project-meta p {
  color: var(--muted);
  margin-top: 6px;
}

.pill {
  display: inline-block;
  margin-top: 10px;
  margin-right: 6px;
  font-size: .8rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
}

/* =========================
   About / Clients / Testimonials
========================= */
.about {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.clients-logos img {
  max-height: 48px;
  opacity: 0.8;
  transition: opacity .2s ease;
}

.clients-logos img:hover {
  opacity: 1;
}

#clients .card img {
  max-width: 150px;
  /* Adjust as needed */
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

#clients .card:hover img {
  transform: scale(1.1);
  /* Slight zoom on hover */
}

@media (max-width: 768px) {
  .grid.cards-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .grid.cards-3 {
    grid-template-columns: 1fr;
  }
}


.testimonials {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.testimonial p {
  color: var(--muted);
  margin-bottom: 10px;
}

.testimonial strong {
  color: var(--text);
}

/* =========================
   Skills
========================= */
.skills {
  display: grid;
  gap: 16px;
}

.skill {
  display: grid;
  gap: 8px;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-val {
  color: var(--muted);
}

.skill-bar {
  height: 10px;
  background: color-mix(in oklab, var(--bg-elev) 80%, #fff 3%);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.skill-fill {
  display: block;
  height: 100%;
  width: 0;
  /* animated to var(--target) */
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: inherit;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .2);
  transition: width 1.2s cubic-bezier(.2, .8, .2, 1);
}

/* =========================
   Contact
========================= */
.contact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: color-mix(in oklab, var(--brand) 60%, var(--accent) 40%);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent);
}

.span-2 {
  grid-column: span 2;
}

/* =========================
   Footer
========================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.socials a:hover {
  background: var(--bg-elev);
}

.socials {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* =========================
   Reveal Animations
========================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {

  .cards-3,
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 60px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 4%;
    display: grid;
    gap: 8px;
    transform: translateY(-120%);
    transition: transform .25s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cards-3,
  .projects {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.skill-logos {
  display: flex;
  justify-content: center;
  /* centers horizontally */
  align-items: center;
  /* keeps logos aligned */
  flex-wrap: wrap;
  /* allows wrap on small screens */
  gap: 2rem;
  /* spacing between logos */
  margin-top: 1rem;
}

.skill-card img {
  transition: transform 0.3s ease;
}

.skill-card img:hover {
  transform: scale(1.1);
  /* nice hover zoom */
}

/* Grid layout for logos */
.skill-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Logo box styling */
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Logo image */
.logo-box img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* Hover effect */
.logo-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Dark mode */
.dark .logo-box {
  background: var(--bg-dark-elev);
}

/* Intro Greeting */
.intro {
  margin-bottom: 1.5rem;
  text-align: center;
}

.greeting {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}

.greeting .highlight {
  color: var(--brand);
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.tagline .highlight {
  font-weight: 600;
  color: var(--accent);
}

/* Rajinfoworks Branding */
.brand-custom {
  font-weight: 700;
  transition: color 0.3s ease;
}

/* Light mode (default) */
:root .brand-custom {
  color: #1a1a1a;
  /* black */
}

:root .brand-custom .i-red {
  color: #e63946;
  /* red */
}

/* Dark mode */
[data-theme="dark"] .brand-custom {
  color: #f5f5f5;
  /* white */
}

[data-theme="dark"] .brand-custom .i-red {
  color: #e63946;
  /* red stays red */
}

/* =========================
   Greeting Line
========================= */
.greeting {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  color: var(--text);
  margin: 2.5rem 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* Name Highlight with stable gradient */
.greeting .name-highlight {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3rem);
  background: linear-gradient(120deg, var(--brand), var(--accent), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  letter-spacing: 1px;
}

/* Waving hand */
.greeting .wave {
  display: inline-block;
  transform-origin: 70% 70%;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-left: 6px;
  animation: wave-animation 2s infinite;
}

/* Dark mode */
body[data-theme="dark"] .greeting {
  color: #f1f5f9;
}

body[data-theme="dark"] .greeting .name-highlight {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9, #3b82f6);
}

/* Wave animation */
@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-10deg);
  }

  45% {
    transform: rotate(15deg);
  }

  60% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(12deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.resume-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  opacity: 0.85;
}


.skills-section {
  margin: 3rem auto;
  max-width: 1100px;
  padding: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.skills-subsection {
  margin-bottom: 2.5rem;
}

.skills-subsection h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.skill-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
  justify-items: center;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  width: 120px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.skill-card span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}




.skills-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
  background: var(--bg);
  color: var(--text-main);
}

.skills-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  object-fit: contain;
}

.skill-card:hover {
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* move half (because duplicated) */
}

.skills-marquee:hover .skills-track {
  animation-play-state: paused;
}


/* ===================================================================
   ✅ NEWLY ADDED STYLES & ANIMATIONS (Your original code is untouched)
   =================================================================== */

/* --- 1. Pulsing animation for the hero badge --- */
.badge {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 40%, transparent);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(124, 92, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(124, 92, 255, 0);
  }
}

/* --- 2. Enhanced button with animated gradient on hover --- */
.btn-primary {
  background-size: 250% auto;
  transition: transform .3s ease, box-shadow .3s ease, background-position .4s ease;
}

.btn-primary:hover {
  background-position: right center;
  /* change the direction of the change here */
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(249, 178, 52, .3);
}

/* --- 3. Interactive card spotlight effect --- */
/* Usage: Add the "card-spotlight" class to any card-like element */
.card-spotlight {
  position: relative;
  overflow: hidden;
}

.card-spotlight::before {
  content: '';
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle closest-side, var(--accent), transparent);
  transition: width 0.3s ease, height 0.3s ease;
}

.card-spotlight:hover::before {
  width: 300px;
  height: 300px;
}

/* --- 4. Animated hamburger menu icon --- */
/* Usage: Add the "is-open" class to the nav-toggle when the menu is open */
.nav-toggle-bar {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 5. Text shine effect --- */
/* Usage: Add the "text-shine" class to a headline */
.text-shine {
  position: relative;
  overflow: hidden;
  --shine-color: rgba(255, 255, 255, 0.8);
}

.text-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 70%;
  height: 200%;
  opacity: 0;
  transform: rotate(30deg);
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.13) 0%,
      var(--shine-color) 77%,
      rgba(255, 255, 255, 0.13) 92%);
  animation: shine 4s infinite;
  animation-delay: 1s;
}

@keyframes shine {
  0% {
    left: -150%;
    opacity: 0.3;
  }

  50% {
    left: 150%;
    opacity: 0.3;
  }

  100% {
    left: 150%;
    opacity: 0;
  }
}

/* --- 6. Animated rotating gradient border --- */
/* Usage: Add "animated-gradient-border" to a project card or other element */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.animated-gradient-border {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 16px;
  /* Match your project card border radius */
}

.animated-gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--brand), var(--accent), var(--brand-2), var(--brand));
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}


/* =========================
   Animated Back Button (No Background)
========================= */
.back-btn-wrapper {
  margin: 2rem 0;
  text-align: left;       /* keep it left-aligned */
  padding-left: 20px;     /* shift slightly right */
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--highlight2);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, color 0.4s ease;
}

/* Arrow icon animation */
.back-icon {
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.4s ease;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

/* Hover effect */
.back-to-home:hover {
  color: var(--highlight);
  transform: translateX(-6px);
}

.back-to-home:hover .back-icon {
  transform: translateX(-6px) rotate(-10deg);
}


/* ============================================================
   Back-to-Top Button (Light & Dark Mode Friendly)
=============================================================== */
#scrollTopBtn {
  display: none; /* hidden until triggered */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;

  /* Base Style */
  background: var(--highlight);
  color: var(--text-on-accent, #ff0000);
  font-size: 1.4rem;
  border: none;
  border-radius: 50%;
  padding: 14px 18px;
  cursor: pointer;

  /* Effects */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  animation: pulseBtn 2s infinite ease-in-out;
}

/* Pulse Animation */
@keyframes pulseBtn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.7);
  }
}

/* Hover State */
#scrollTopBtn:hover {
  background: var(--accent);
  color: var(--text-on-accent-hover, #fff);
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Tablet */
@media (max-width: 768px) {
  #scrollTopBtn {
    bottom: 22px;
    right: 22px;
    padding: 12px 16px;
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
    padding: 10px 14px;
    font-size: 1rem;
  }
}
