@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Nunito:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
  /* Removed global text-transform and transitions for performance */
}

/* Transitions only for interactive elements */
a, button, .btn, .interactive-card, .magnetic, input, textarea, select,
.theme-toggle, .navbar a, .social-icons a, .box:hover {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apply text-transform only where needed */
.heading, .tag, .btn span, h1, h2, h3, h4, h5, h6 {
  text-transform: capitalize;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  /* Removed scroll-behavior to prevent conflicts with JS smooth scroll */
  /* scroll-behavior: smooth; */
}
body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-family: "Poppins", sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease;
}

*::selection {
  background: var(--theme-accent-strong);
  color: #ffffff;
}

/* Fix Calendly overlay blocking pointer events when inactive */
.calendly-overlay {
  pointer-events: none;
}
.calendly-overlay.calendly-popup-open,
.calendly-popup,
.calendly-popup-close {
  pointer-events: auto;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}
html::-webkit-scrollbar {
  width: 0.8rem;
}
html::-webkit-scrollbar-track {
  background: rgba(246, 248, 250, 0.85);
}
html::-webkit-scrollbar-thumb {
  background: var(--theme-accent-strong);
}
html::-webkit-scrollbar-corner {
  background: rgba(246, 248, 250, 0.85);
}

/* Performance optimizations for smooth scrolling */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize sections for smooth scrolling */
section {
  contain: layout style paint;
}

/* Optimize animated elements */
.home .image,
.about .image,
.contact .image-box {
  will-change: transform, opacity;
}

/* Optimize scroll-triggered animations */
.animate-on-scroll {
  will-change: transform, opacity;
}

/* Reduce motion for accessibility */
/* Dark Forest Theme - Earthy, grounded, professional */
:root {
  /* Earthy dark green palette */
  --forest-darkest: #0a0a0a;
  --forest-dark: #121212;
  --forest-surface: #1a1a1a;
  --forest-green: #3d5a45;
  --forest-green-muted: #2d4a35;
  --forest-green-light: #4a6b52;
  --forest-moss: #5a6b55;
  --forest-stone: #6b6b65;

  /* Legacy variable mappings */
  --earth-ember: var(--forest-green);
  --earth-ember-strong: var(--forest-green-muted);
  --earth-ember-soft: var(--forest-green-light);
  --earth-ink: #0a0a0a;
  --earth-clay: var(--forest-stone);
  --earth-sand: #f5f5f0;
  --earth-cream: #fafaf8;
  --earth-smoke: rgba(10, 10, 10, 0.12);
  --earth-shadow: rgba(0, 0, 0, 0.25);
  --earth-glow: rgba(61, 90, 69, 0.2);

  --improved-blue: var(--forest-green);
  --improved-light-blue: var(--forest-green-light);
  --improved-purple: var(--forest-green-muted);
  --improved-light-purple: var(--forest-moss);
  --improved-text-light: #e8e8e5;
  --improved-text-medium: #a0a098;
  --improved-text-dark: var(--earth-ink);
  --text-shadow-light: 0 1px 2px rgba(0, 0, 0, 0.3);
  --text-shadow-medium: 0 2px 4px rgba(0, 0, 0, 0.4);
  --text-shadow-strong: 0 2px 4px rgba(0, 0, 0, 0.6);

  /* Light theme - warm off-white with forest accents */
  --theme-bg: #f5f5f0;
  --theme-surface: rgba(250, 250, 248, 0.94);
  --theme-surface-alt: rgba(245, 245, 240, 0.85);
  --theme-card: rgba(255, 255, 252, 0.9);
  --theme-text: #1a1a18;
  --theme-text-muted: #5a5a55;
  --theme-accent: var(--forest-green);
  --theme-accent-strong: var(--forest-green-muted);
  --theme-accent-hover: #1d3a25;
  --theme-chip-bg: rgba(61, 90, 69, 0.1);
  --theme-border: rgba(90, 107, 85, 0.2);
  --theme-glow: rgba(61, 90, 69, 0.15);
  --theme-surface-strong: rgba(26, 26, 26, 0.92);

  --gradient-accent: linear-gradient(
    135deg,
    rgba(45, 74, 53, 0.9),
    rgba(61, 90, 69, 0.85)
  );
  --gradient-mesh: radial-gradient(at 18% 25%, rgba(61, 90, 69, 0.06) 0, transparent 52%),
                   radial-gradient(at 72% 22%, rgba(90, 107, 85, 0.05) 0, transparent 58%),
                   radial-gradient(at 50% 76%, rgba(45, 74, 53, 0.06) 0, transparent 65%);
  --gradient-glow: radial-gradient(circle at center, rgba(61, 90, 69, 0.1) 0, transparent 70%);

  --section-radius: clamp(24px, 5vw, 44px);
  --section-padding-y: clamp(1.8rem, 4vw, 3.6rem);
  --section-padding-x: clamp(1.6rem, 5vw, 4.4rem);
  --section-gap: clamp(1.6rem, 4vw, 3.2rem);
  --section-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

/* Apply improved contrast to existing classes */
.text-blue {
  color: var(--improved-blue) !important;
  text-shadow: var(--text-shadow-light);
}

.text-purple {
  color: var(--improved-purple) !important;
  text-shadow: var(--text-shadow-medium);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .home .image,
  .about .image,
  .contact .image-box {
    will-change: auto;
  }

  /* .home::before removed - no longer has animation */
  .home .hero-ambient__glow,
  .home .hero-ambient__piece {
    animation: none !important;
    transform: none !important;
  }
}

/* pre loader start */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  background: #f5f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.loader-container.fade-out {
  top: -120%;
}
.fixed-size {
  width: 150px; /* Set your desired width */
  height: 150px; /* Set your desired height */
  object-fit: cover; /* Ensures the image covers the area without distortion */
}
/* Add this CSS rule to set a fixed size for the icons in the skills section */
.skills .bar .info img {
  width: 48px; /* Set the desired width */
  height: 48px; /* Set the desired height */
  object-fit: cover; /* Ensure the image fits within the specified dimensions */
}
/* pre loader end */

/* Body scroll lock when mobile nav is open */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* navbar starts */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 1.7rem 10%;
  height: 6.5rem;
  background-color: var(--theme-surface);
  box-shadow: 0 1px 4px var(--earth-smoke);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(115, 91, 70, 0.12);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
header .navbar {
  margin-left: auto;
}
header .header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Schedule Call CTA */
.schedule-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  background: var(--theme-accent);
  color: white;
  border: none;
  border-radius: 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.schedule-cta:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 74, 53, 0.3);
}

.schedule-cta:focus {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}

.schedule-cta .cta-text {
  display: inline-block;
}

header .theme-toggle {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  background-color: var(--theme-card);
  color: var(--theme-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
header .theme-toggle .icon {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
header .theme-toggle[data-theme-mode="light"] .icon-sun,
header .theme-toggle[data-theme-mode="dark"] .icon-moon {
  opacity: 1;
  transform: scale(1);
}
header .theme-toggle:hover {
  box-shadow: 0 0 0 2px var(--theme-glow), 0 12px 22px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}
header .theme-toggle:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}
section {
  min-height: auto;
  padding: var(--section-padding-y) var(--section-padding-x);
  max-width: 1180px;
  margin: var(--section-gap) auto;
  border-radius: var(--section-radius);
  position: relative;
  box-shadow: var(--section-shadow);
  background-clip: padding-box;
}

@media (max-width: 480px) {
  section {
    padding: clamp(1.6rem, 8vw, 2.4rem) 1.8rem;
  }
}

/* Hero section keeps full height */
.home {
  min-height: 100vh;
  max-width: 100%;
  padding: clamp(3.2rem, 7vw, 6.2rem) 5%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.heading {
  font-size: 3.2rem;
  color: var(--earth-cream);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 2px rgba(13, 17, 23, 0.55);
  margin-bottom: 1.6rem;
  letter-spacing: 0.02em;
}
.heading span {
  color: var(--theme-accent);
  text-shadow: 0 1px 2px rgba(13, 17, 23, 0.4);
}

.glitch-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.18em;
  overflow: visible;
}
.glitch-text::before,
.glitch-text::after {
  content: none;
}

/* Light section headings - high contrast */
.about .heading,
.education .heading,
.experience .heading,
.contact .heading {
  color: var(--theme-text);
  text-shadow: none;
}

.about .heading span,
.education .heading span,
.experience .heading span,
.contact .heading span {
  color: var(--theme-accent);
  text-shadow: none;
}

/* Dark section headings - enhanced contrast */
.skills .heading,
.work .heading {
  color: var(--earth-cream);
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.6);
}

.skills .heading span,
.work .heading span {
  color: var(--theme-accent);
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.6);
}
header .logo {
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--theme-text);
  transition: color 0.3s ease;
}
header .logo i {
  font-size: 2.2rem;
}
header .logo:hover {
  color: var(--theme-accent);
}
header .navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .navbar li {
  margin-left: 2.5rem;
}
header .navbar ul li a {
  font-size: 1.57rem;
  color: var(--theme-text-muted);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04rem;
  transition: 0.2s;
}
header .navbar ul li a.active,
header .navbar ul li a:hover {
  color: var(--theme-accent);
  border-bottom: 0.2rem solid var(--theme-accent);
  padding: 0.5rem 0;
}
/* navbar ends */

/* Press Badges (inside hero-featured) */
.press-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.press-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.25), rgba(45, 74, 53, 0.15));
  border: 1px solid rgba(61, 90, 69, 0.35);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.press-badge:hover {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.35), rgba(45, 74, 53, 0.25));
  border-color: rgba(61, 90, 69, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 74, 53, 0.25);
}

.press-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
}

.press-badge__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.press-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.press-badge__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--earth-cream, #e8dcc8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.press-badge__source {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--earth-cream, #e8dcc8);
}

.press-badge__arrow {
  font-size: 1rem;
  color: var(--earth-cream, #e8dcc8);
  transition: transform 0.3s ease;
}

.press-badge:hover .press-badge__arrow {
  transform: translateX(2px);
}

/* Press Badge - Mobile: stack & icon-only */
@media (max-width: 480px) {
  .press-badge__text {
    display: none;
  }
  .press-badge__arrow {
    display: none;
  }
  .press-badge {
    padding: 0.7rem;
  }
}
/* Press Badges ends */

/* hamburger icon starts*/
#menu {
  font-size: 3rem;
  cursor: pointer;
  color: var(--theme-text);
  display: none;
  background: transparent;
  border: none;
  line-height: 1;
  padding: 0.4rem;
  border-radius: 0.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
#menu:hover {
  color: var(--theme-accent);
  transform: translateY(-1px);
}
#menu:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  #menu {
    display: block;
  }
  header .header-actions {
    margin-left: auto;
  }
  /* Hide text on mobile, show only icon */
  .schedule-cta .cta-text {
    display: none;
  }
  .schedule-cta {
    padding: 0.9rem;
    width: 3.8rem;
    height: 3.8rem;
    justify-content: center;
  }
  header .navbar {
    position: fixed;
    top: 6.5rem;
    right: -120%;
    width: 75%;
    height: 100%;
    text-align: left;
    align-items: flex-start;
    background-color: var(--theme-surface-strong);
    border-left: none;
  }
  header .navbar ul {
    flex-flow: column;
    padding: 1rem;
  }
  header .navbar ul li {
    text-align: center;
    width: 100%;
    margin: 1rem 0;
    border-radius: 0.5rem;
    width: 26rem;
  }
  header .navbar ul li a {
    display: block;
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-size: 2rem;
  }
  header .navbar ul li a.active,
  header .navbar ul li a:hover {
    padding: 1rem;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid var(--theme-accent-strong);
  }
  .fa-times {
    transform: rotate(180deg);
  }
  header .navbar.nav-toggle {
    right: 0;
  }
  :root[data-theme="dark"] header .navbar {
    background-color: rgba(27, 16, 10, 0.97);
    border-left: 1px solid var(--theme-border);
  }
  :root[data-theme="dark"] header .navbar ul li a {
    color: var(--theme-text);
  }
  :root[data-theme="dark"] header .navbar ul li a.active,
  :root[data-theme="dark"] header .navbar ul li a:hover {
    border-bottom-color: var(--theme-accent);
  }
}
/* hamburger icon ends */

/* hero section starts*/
.home {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  min-height: 100vh;
  align-items: center;
  background:
    radial-gradient(120% 140% at 12% 15%, rgba(255, 238, 214, 0.82), transparent 60%),
    radial-gradient(95% 140% at 85% 0%, rgba(45, 74, 53, 0.3), transparent 72%),
    linear-gradient(140deg, #161b22 0%, #0d1117 36%, #21262d 100%);
  background-attachment: fixed;
  overflow: hidden;
}
.home #particles-js {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      45deg,
      rgba(255, 244, 230, 0.12) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 244, 230, 0.12) 50%,
      rgba(255, 244, 230, 0.12) 75%,
      transparent 75%,
      transparent
    );
  background-size: 140px 140px;
  /* mix-blend-mode: soft-light; -- Removed to neutralize pattern */
  opacity: 0; /* Changed from 0.2 to 0 to hide the pattern completely */
  /* animation: checkeredParallax 22s linear infinite; -- Removed animation */
}
.home .content {
  flex: 1 1 40rem;
  padding-top: 1rem;
  z-index: 1;
}
.home .hero-subtitle {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(224, 224, 220, 0.85);
  max-width: 44rem;
}
.home .hero-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.8rem 0 0;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.8);
  color: #e0e0dc;
  border: 1px solid rgba(90, 107, 85, 0.25);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.home .hero-code-badge i {
  color: var(--theme-accent);
  font-size: 1.8rem;
}
.home .hero-code-badge span {
  font-family: var(--font-heading, "Poppins", sans-serif);
}
.home .hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.home .hero-ambient__glow {
  position: absolute;
  inset: 10% 18% auto;
  height: 60%;
  background: var(--gradient-accent);
  filter: blur(140px);
  opacity: 0.65;
  animation: emberPulse 16s ease-in-out infinite;
}
.home .hero-ambient__pieces {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.home .hero-ambient__piece {
  position: absolute;
  font-size: clamp(3.2rem, 4vw, 4.8rem);
  color: rgba(90, 107, 85, 0.25);
  text-shadow: 0 0 30px rgba(61, 90, 69, 0.1);
  animation: chessFloat 14s ease-in-out infinite;
}
.home .hero-ambient__piece i {
  color: inherit;
  opacity: 0.5;
}
/* Floating code symbols - subtle forest theme */
.home .hero-ambient__piece--bracket,
.home .hero-ambient__piece--bracket-close,
.home .hero-ambient__piece--semicolon,
.home .hero-ambient__piece--slash,
.home .hero-ambient__piece--lambda,
.home .hero-ambient__piece--arrow {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Fira Code", monospace;
  font-weight: 600;
  color: rgba(90, 107, 85, 0.22);
  text-shadow: 0 0 25px rgba(61, 90, 69, 0.08);
}
.home .hero-ambient__piece--bracket {
  top: 5%;
  left: 2%;
  animation-duration: 18s;
}
.home .hero-ambient__piece--bracket-close {
  bottom: 5%;
  right: 3%;
  animation-duration: 20s;
  animation-delay: -3s;
}
.home .hero-ambient__piece--semicolon {
  top: 15%;
  right: 5%;
  animation-duration: 16s;
  animation-delay: -6s;
}
.home .hero-ambient__piece--slash {
  top: 45%;
  left: 1%;
  font-size: clamp(2.8rem, 3.4vw, 4.2rem);
  animation: cyberDrift 22s ease-in-out infinite;
  opacity: 0.75;
}
.home .hero-ambient__piece--lambda {
  bottom: 15%;
  right: 8%;
  font-size: clamp(3.6rem, 4.5vw, 5.4rem);
  animation: neonOrbit 18s ease-in-out infinite;
  opacity: 0.8;
}
.home .hero-ambient__piece--arrow {
  top: 30%;
  right: 2%;
  font-size: clamp(2.6rem, 3vw, 3.6rem);
  animation: neonOrbit 24s ease-in-out infinite reverse;
  opacity: 0.7;
}
.home .hero-ambient__piece--chip {
  top: 3%;
  right: 15%;
  font-size: clamp(2.8rem, 3.4vw, 4.2rem);
  animation: cyberDrift 22s ease-in-out infinite;
  opacity: 0.75;
}
.home .hero-ambient__piece--code {
  bottom: 8%;
  left: 2%;
  font-size: clamp(2.6rem, 3vw, 3.6rem);
  animation: neonOrbit 18s ease-in-out infinite;
  opacity: 0.7;
}
.home .hero-ambient__piece--terminal {
  bottom: 25%;
  left: 1%;
  font-size: clamp(3rem, 3.6vw, 4.6rem);
  animation: neonOrbit 24s ease-in-out infinite reverse;
  opacity: 0.68;
}
.home .image {
  flex: 1 1 40rem;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.home .image img {
  display: block;
  width: 70%;
  max-width: 350px;
  height: auto;
  margin-left: 6rem;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 10;
  opacity: 1;
  visibility: visible;
}
.home .image img:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

/* Hero Featured Section */
.hero-featured {
  flex: 1 1 50rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 800px;
}

.hero-featured__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-featured__title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: rgba(255, 235, 214, 0.96);
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.65);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-featured__title i {
  color: var(--earth-ember-soft);
  font-size: 0.85em;
}

.hero-featured__title span {
  color: var(--earth-ember-soft);
}

.hero-featured__subtitle {
  font-size: 1.4rem;
  color: rgba(255, 235, 214, 0.7);
  margin-top: 0.5rem;
  font-family: "Nunito", sans-serif;
}

.hero-featured .press-carousel__track {
  max-width: 100%;
}

.hero-featured .press-card {
  background: rgba(30, 20, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 90, 69, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-featured .press-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(61, 90, 69, 0.4);
}

.hero-featured .press-card.featured {
  flex-direction: column;
}

.hero-featured .press-card.featured.has-image {
  flex-direction: column;
}

.hero-featured .press-card__image {
  overflow: hidden;
  border-radius: 1rem;
}

.hero-featured .press-card__date {
  color: rgba(255, 235, 214, 0.6);
}

.hero-featured .press-card__title {
  color: rgba(255, 235, 214, 0.95);
  font-size: clamp(1.5rem, 2vw, 1.8rem);
}

.hero-featured .press-card__title a:hover {
  color: var(--earth-ember-soft);
}

.hero-featured .press-card__quote {
  background: linear-gradient(135deg, rgba(45, 74, 53, 0.15), rgba(61, 90, 69, 0.08));
  border-left-color: var(--earth-ember-soft);
}

.hero-featured .press-card__quote p {
  color: rgba(255, 235, 214, 0.75);
  font-size: 1.35rem;
}

@media (max-width: 991px) {
  .hero-featured {
    max-width: 100%;
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-featured {
    flex: 1 1 100%;
  }

}

/* GitHub Section Standalone */
.github-section {
  background: var(--theme-surface);
  padding: var(--section-padding);
}

.github-section .github-activity {
  max-width: 1100px;
  margin: 0 auto;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.home .content h1,
.home .content h2 {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 235, 214, 0.96);
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.65);
}
.home .content h1 span,
.home .content h2 span {
  font-size: 5rem;
  font-weight: 800;
  color: var(--theme-accent);
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.6);
}
.home .content p {
  font-size: 2.5rem;
  color: rgba(255, 235, 214, 0.92);
  font-weight: 600;
  padding: 1rem 0;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.55);
}
.home .content p span {
  font-size: 2.5rem;
  color: var(--theme-accent);
  font-weight: 600;
  padding: 1rem 0;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.55);
}

/* Enhanced contrast for hero section text */
.home .content .subtitle-blue {
  color: var(--theme-accent) !important;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.45);
}

.home .content .subtitle-light {
  color: rgba(255, 235, 214, 0.88) !important;
  text-shadow: 0 1px 3px rgba(13, 17, 23, 0.45);
}
.home .btn {
  margin-top: 1rem;
  position: absolute;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 4em;
  transition: 0.5s;
  color: var(--earth-cream);
  background: linear-gradient(135deg, rgba(45, 74, 53, 0.92), rgba(61, 90, 69, 0.88));
  border: 1px solid rgba(61, 90, 69, 0.65);
  box-shadow: 0px 12px 28px rgba(13, 17, 23, 0.45);
  font-family: "Nunito", sans-serif;
}
.home .btn span {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.1rem;
}
.home .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.home .btn:hover {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.95), rgba(45, 74, 53, 0.95));
  transform: translateY(-3px);
  box-shadow: 0px 16px 32px rgba(13, 17, 23, 0.6);
}
.home .btn:hover i {
  transform: translateX(5px);
}
.home .btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0px 6px 16px rgba(13, 17, 23, 0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
/* social icons start */
.socials {
  position: relative;
  margin-top: 9rem;
}
.socials .social-icons {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.socials .social-icons li {
  display: inline-block;
  margin-bottom: 14px;
}
.social-icons a {
  font-size: 2rem;
  display: inline-block;
  line-height: 44px;
  color: rgba(255, 235, 214, 0.9);
  background-color: rgba(13, 17, 23, 0.55);
  width: 44px;
  height: 44px;
  text-align: center;
  margin-right: 8px;
  border-radius: 100%;
  border: 1px solid rgba(61, 90, 69, 0.4);
  -webkit-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
.social-icons a:active,
.social-icons a:focus,
.social-icons a:hover {
  color: #111;
  background-color: rgba(255, 235, 214, 0.88);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(13, 17, 23, 0.45);
}
.social-icons a.github:hover,
.social-icons a.twitter:hover,
.social-icons a.linkedin:hover {
  background-color: rgba(61, 90, 69, 0.85);
  color: #111;
}
.social-icons a.linkedin:hover,
.social-icons a.dev:hover,
.social-icons a.instagram:hover {
  background-color: rgba(61, 90, 69, 0.85);
  color: #111;
}
/* social icons end */

/* hero media queries starts*/
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    padding-top: 8rem;
    text-align: center;
  }
  .home .content {
    order: 2;
  }
  .home .image {
    order: 1;
    margin-bottom: 2rem;
  }
  .home .image img {
    width: 50%;
    max-width: 250px;
    margin-left: 0;
  }
  .hero-featured {
    order: 1;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .hero-featured__header {
    margin-bottom: 1rem;
  }
  .hero-featured__title {
    font-size: 2rem;
  }
}

@media (max-width: 450px) {
  .home .btn {
    margin: 4rem 0;
  }
  .socials {
    margin-top: 12rem;
  }
  .home .image {
    display: flex;
    justify-content: center;
  }
  .home .image img {
    margin-top: 0;
    width: 60%;
    max-width: 200px;
    margin-left: 0;
  }
  .hero-featured {
    display: flex;
    justify-content: center;
  }
  .hero-featured__title {
    font-size: 1.8rem;
  }
  .hero-featured .press-card {
    padding: 1.5rem;
  }
  .hero-featured .press-card__title {
    font-size: 1.4rem;
  }
  .hero-featured .press-card__quote p {
    font-size: 1.2rem;
  }
  .home .content h1,
  .home .content h2 {
    font-size: 3.5rem;
  }
  .home .content h1 span,
  .home .content h2 span {
    font-size: 3.5rem;
  }
  .home .content p {
    font-size: 2.2rem;
  }
  .home .content p span {
    font-size: 2.2rem;
  }
}
/* hero media queries ends*/
/* hero section end */

/* about section starts */
.about {
  background: var(--theme-surface);
}
.about .row {
  display: flex;
  flex-direction: row;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  flex-wrap: wrap;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  max-width: min(1100px, 94vw);
  margin: 0 auto;
}
.about .row .image {
  text-align: center;
  flex: 0 1 clamp(24rem, 32vw, 28rem);
  position: relative;
}
.about .row .image img {
  margin: clamp(0.8rem, 2.5vw, 1.6rem) auto;
  width: clamp(18rem, 26vw, 22rem);
  height: auto;
  border-radius: 2.4rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
  mix-blend-mode: luminosity;
  transition: 0.3s;
  cursor: pointer;
}
.about .row .image::after {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 1.8rem);
  border-radius: 2.4rem;
  background: linear-gradient(180deg, rgba(61, 90, 69, 0) 0%, rgba(61, 90, 69, 0.2) 45%, rgba(13, 17, 23, 0) 100%);
  mix-blend-mode: screen;
  opacity: 0.0;
  animation: scanSweep 8s linear infinite;
  pointer-events: none;
}
.about .row .image img:hover {
  mix-blend-mode: normal;
}
.about .row .content {
  flex: 1 1 clamp(32rem, 46vw, 48rem);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.about .row .content h3 {
  color: var(--theme-text);
  font-size: 2.5rem;
}

/* Earthy contrast variant for About section */
.about-dark-section {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%) !important;
}

.about-purple-heading {
  color: var(--theme-accent) !important;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.5);
  font-weight: 700;
}

.about-blue-subtitle {
  color: rgba(255, 235, 214, 0.9) !important;
  text-shadow: 0 1px 3px rgba(13, 17, 23, 0.45);
  font-weight: 500;
}
.about .row .content .tag {
  font-size: 1.4rem;
  color: var(--theme-accent);
  font-weight: 600;
  margin-top: 1rem;
}
.about .row .content p {
  font-size: clamp(1.35rem, 1.9vw, 1.5rem);
  margin-top: 1.2rem;
  font-family: "Nunito";
  font-weight: 600;
  text-transform: none;
  color: var(--theme-text-muted);
  line-height: 1.6;
}
.about .row .content .box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: "Nunito";
  font-weight: 600;
}
.about .row .content .box-container .box p {
  text-transform: none;
}
.about .row .content .box-container .box p span {
  color: var(--theme-accent);
}
.resumebtn {
  margin-top: 3.5rem;
}
.resumebtn .btn {
  padding: 1.7rem 3rem;
  border-radius: 0.5em;
  transition: 0.3s;
  color: #fff;
  background: var(--theme-accent-strong);
  box-shadow: 0px 5px 18px var(--theme-glow);
  font-family: "Nunito", sans-serif;
}
.resumebtn .btn span {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}
.resumebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.2rem;
  transition: 0.3s;
}
.resumebtn .btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0px 8px 24px var(--theme-glow);
}
.resumebtn .btn:hover i {
  transform: translateX(5px);
}
.resumebtn .btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0px 3px 12px var(--theme-glow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
/* about media queries starts*/
@media screen and (max-width: 600px) {
  .about .row .image {
    margin-top: 2rem;
  }
  .about .row .image img {
    margin: 0 auto;
    width: 80%;
    mix-blend-mode: normal;
  }
  .about .row {
    padding: 0.5rem;
    margin-bottom: 7rem;
  }
  .about .row .content {
    padding: 1rem;
  }
  .about .row .content .box-container {
    gap: 0;
  }
}
/* about media queries ends*/
/* about section ends */

/* skills section starts */
.skills {
  min-height: auto;
  background: linear-gradient(160deg, #2b1912 0%, #010409 100%);
  padding-bottom: 2.4rem;
  position: relative;
  overflow: hidden;
}

/* Enhanced text contrast for dark sections */
.enhanced-contrast-text {
  color: rgba(255, 235, 214, 0.9) !important;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.45);
}

.enhanced-contrast-blue {
  color: var(--theme-accent) !important;
  text-shadow: 0 1px 3px rgba(13, 17, 23, 0.45);
}

.enhanced-contrast-purple {
  color: rgba(255, 235, 214, 0.85) !important;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.55);
}
/* Skills heading handled by .heading styles */
.skills .container {
  background: rgba(13, 17, 23, 0.55);
  color: var(--earth-cream);
  border-radius: 1.6rem;
  padding: clamp(1.2rem, 2.6vw, 2.2rem);
  width: min(92%, 980px);
  margin: clamp(0.8rem, 2.4vw, 1.2rem) auto 0;
  position: relative;
  z-index: 1;
}
.skills::before,
.skills::after {
  content: "";
  position: absolute;
  inset: -15% -30%;
  pointer-events: none;
  opacity: 0.25;
  filter: blur(0.2px);
}
.skills::before {
  background-image:
    linear-gradient(120deg, rgba(255, 235, 214, 0.08) 0%, rgba(26, 16, 10, 0) 65%),
    repeating-linear-gradient(90deg, rgba(255, 235, 214, 0.06) 0 2px, transparent 2px 36px);
  animation: codeDrift 26s linear infinite;
}
.skills::after {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(90, 241, 255, 0.05) 0 15px,
    transparent 15px 30px
  );
  mix-blend-mode: screen;
  animation: codeFall 18s linear infinite;
}
.skills .container .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  flex-wrap: wrap;
  gap: 1.4rem;
}
.skills .container .bar {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(13, 17, 23, 0.35);
  background: rgba(13, 17, 23, 0.8);
  transition: 0.2s;
}
.skills .container .bar:hover {
  box-shadow: 0 8px 10px rgba(0, 2, 68, 0.8) !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
}
.skills .container .bar .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.skills .container .bar .info i {
  font-size: 4rem;
}
.skills .container .bar .info span {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Poppins";
  margin-left: 0.5rem;
}
/* skills media queries starts*/
@media screen and (max-width: 1024px) {
  .skills .container .row {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .skills .container .row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 600px) {
  .skills .container {
    padding: 0;
    margin: 0;
  }
  .skills .container .row {
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    padding: 2rem 0.2rem 2rem 0.2rem;
    gap: 1rem;
  }
  .skills .container {
    margin-top: 5px;
    width: 100%;
  }
}
/* skills media queries ends*/
/* skills section ends */

/* education section starts */
.education {
  background: var(--theme-surface-alt);
  min-height: auto;
}
.education .qoute {
  font-size: 1.5rem;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  margin-top: 0.5rem;
}
.education .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  max-width: min(1100px, 95vw);
  margin: clamp(1.2rem, 3vw, 2.4rem) auto;
}
.education .box-container .box {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 1.6rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  background: rgb(252, 252, 252);
  min-height: clamp(20rem, 28vw, 24rem);
}
.education .box-container .box:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}
.education .box-container .box .image {
  flex: 0 0 auto;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2rem) 0;
}
.education .box-container .box img {
  object-fit: contain;
  width: clamp(7.5rem, 12vw, 9.5rem);
  height: clamp(7.5rem, 12vw, 9.5rem);
}
.education .box-container .box .content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2.2rem);
  gap: 0.6rem;
  align-items: flex-start;
}
.education .box-container .box .content h3 {
  font-size: clamp(1.8rem, 2.4vw, 2.1rem);
  color: var(--theme-accent);
  font-weight: 600;
  text-align: left;
}
.education .box-container .box .content p {
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  text-align: left;
  color: var(--theme-text-muted);
}
.education h4 {
  font-size: clamp(1.4rem, 1.9vw, 1.6rem);
  color: var(--theme-text);
  text-align: left;
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}
.education .box-container .box .content h4 {
  margin-top: auto;
  padding-top: 0.4rem;
}

/* education media queries starts*/
@media screen and (max-width: 600px) {
  .education .box-container {
    grid-template-columns: 1fr;
  }
  .education .box-container .box {
    min-height: unset;
  }
  .education .box-container .box .image {
    padding-bottom: 0;
  }
  .education .box-container .box img {
    width: clamp(6.5rem, 24vw, 8.5rem);
    height: clamp(6.5rem, 24vw, 8.5rem);
  }
}
/* education media queries ends*/
/* education section ends */

/* publications section starts */
.publications {
  background: var(--theme-bg);
  min-height: auto;
  padding: 2rem 9%;
}
.publications .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  max-width: min(1000px, 95vw);
  margin: clamp(1.2rem, 3vw, 2.4rem) auto;
}
.publications .box-container .box {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 1.6rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  background: var(--theme-surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.publications .box-container .box:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}
.publications .box-container .box .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.publications .publication-icon {
  font-size: 3rem;
  color: var(--theme-accent);
  margin-bottom: 0.5rem;
}
.publications .box-container .box .content h3 {
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  color: var(--theme-accent);
  font-weight: 600;
  line-height: 1.4;
}
.publications .publication-venue {
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
  color: var(--theme-accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.publications .publication-authors {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  color: var(--theme-text-muted);
  font-style: italic;
}
.publications .box-container .box .btn {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
}
@media screen and (max-width: 600px) {
  .publications .box-container {
    grid-template-columns: 1fr;
  }
}
/* publications section ends */

/* work section starts */
.work {
  /* background: #010124; */
  background: linear-gradient(180deg, #0d1117 0%, #010409 100%);
  position: relative;
  overflow: hidden;
}

/* High contrast mode for portfolio sections */
.high-contrast-card {
  background: rgba(13, 17, 23, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 90, 69, 0.25);
}

.high-contrast-text {
  color: rgba(255, 235, 214, 0.9) !important;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.55);
  font-weight: 500;
}

.high-contrast-accent {
  color: var(--theme-accent) !important;
  text-shadow: 0 2px 4px rgba(13, 17, 23, 0.45);
}
/* Work heading handled by .heading styles */
.work .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
  margin: clamp(0.8rem, 2.4vw, 1.4rem) auto;
  max-width: min(1200px, 94vw);
}
@media screen and (min-width: 1200px) {
  .work .box-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.work .box-container .box {
  border-radius: 1.6rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  min-height: clamp(18rem, 24vw, 24rem);
  display: flex;
  flex-direction: column;
}
@supports (aspect-ratio: 4 / 3) {
  .work .box-container .box {
    aspect-ratio: 4 / 3;
    min-height: auto;
  }
}
.work::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 235, 214, 0.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(90, 241, 255, 0.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(61, 90, 69, 0.05) 0 8px, transparent 8px 16px);
  opacity: 0.5;
  animation: circuitDrift 32s linear infinite;
  pointer-events: none;
}
.work .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.work .box-container .box .content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 78%;
  left: 0;
  background: var(--theme-card);
  border: 1px solid var(--theme-border);
  display: flex;
  flex-direction: column;
  transition: top 0.3s ease;
}
.work .box-container .box .content .tag {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  width: 100%;
  padding-left: 1rem;
  background: var(--theme-chip-bg);
  cursor: pointer;
}
.work .box-container .box .content .tag h3 {
  font-size: 2rem;
  color: var(--theme-text);
}
/* Desktop: hover to reveal */
@media (hover: hover) and (pointer: fine) {
  .work .box-container .box:hover .content {
    top: 32%;
  }
}
/* Touch devices and mobile: show content or use click */
@media (hover: none) or (pointer: coarse) {
  .work .box-container .box .content {
    top: 68%;
  }
  .work .box-container .box.expanded .content {
    top: 32%;
  }
}
/* Mobile screens: always show content */
@media (max-width: 768px) {
  .work .box-container .box .content {
    position: relative;
    top: 0;
  }
}
.work .desc {
  margin: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work .desc p {
  font-size: 1.5rem;
  color: rgba(255, 235, 214, 0.85);
}
.work .desc .btns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 2rem;
}
.work .desc .btns .btn {
  line-height: 0;
  display: inline;
  padding: 1.5rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--earth-cream);
  background: linear-gradient(135deg, rgba(45, 74, 53, 0.9), rgba(61, 90, 69, 0.85));
  margin-right: 2rem;
}
.work .desc .btns .btn:hover {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.95), rgba(45, 74, 53, 0.95));
}
.work .viewall {
  display: flex;
  justify-content: center;
}
.work .viewall .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: var(--earth-cream);
  font-weight: 700;
  border: 1px solid rgba(61, 90, 69, 0.6);
  box-shadow: 0px 8px 20px rgba(13, 17, 23, 0.45);
  text-align: center;
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.85), rgba(22, 27, 34, 0.85));
}
.work .viewall .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.work .viewall .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.work .viewall .btn:hover {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.92), rgba(45, 74, 53, 0.92));
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0px 12px 28px rgba(13, 17, 23, 0.55);
}
.work .viewall .btn:hover i {
  transform: translateX(5px);
}
.work .viewall .btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0px 4px 12px rgba(13, 17, 23, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
/* work section ends */

/* experience section starts */

.experience {
  max-width: 100%;
  margin: clamp(2.4rem, 6vw, 6.4rem) 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.8rem, 4.6vw, 4rem) clamp(1.4rem, 5vw, 4.8rem);
  overflow: visible;
  contain: none;
}

/* Improved contrast for experience cards */
.experience-card-blue-text {
  color: var(--theme-accent) !important;
  text-shadow: 0 1px 2px rgba(13, 17, 23, 0.35);
}

.experience-card-date {
  color: rgba(255, 235, 214, 0.75) !important;
  font-weight: 500;
}

.experience-card-title {
  color: rgba(255, 235, 214, 0.9) !important;
  text-shadow: 0 1px 3px rgba(13, 17, 23, 0.45);
}

.experience-card-dark {
  background: rgba(13, 17, 23, 0.85) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(61, 90, 69, 0.25);
}

/* Timeline Carousel */
.timeline-carousel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 74, 53, 0.9), rgba(61, 90, 69, 0.85));
  border: 2px solid rgba(61, 90, 69, 0.5);
  color: var(--earth-cream);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.95), rgba(45, 74, 53, 0.95));
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-nav--prev {
  left: 10px;
}

.carousel-nav--next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(61, 90, 69, 0.3);
  border: 2px solid rgba(61, 90, 69, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(61, 90, 69, 0.5);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  transform: scale(1.2);
}

.experience .timeline {
  --timeline-node-size: 0;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: max-content;
  margin: 1rem 0;
  padding: 1rem 60px;
  overflow: visible;
  transition: transform 0.5s ease;
}
.experience .timeline::-webkit-scrollbar {
  height: 8px;
}
.experience .timeline::-webkit-scrollbar-thumb {
  background: var(--theme-accent);
  border-radius: 999px;
}
.experience .timeline::-webkit-scrollbar-track {
  background: rgba(61, 90, 69, 0.15);
}
.experience .timeline::-webkit-scrollbar-corner {
  background: rgba(61, 90, 69, 0.15);
}
.experience .timeline::before {
  display: none;
}
.experience .timeline .timeline-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
}
.experience .timeline .timeline-item::before,
.experience .timeline .timeline-item::after {
  display: none;
}
.experience .timeline .timeline-card {
  position: relative;
  width: min(280px, 92%);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border-radius: 1.4rem;
  border: 1px solid rgba(61, 90, 69, 0.18);
  background: rgba(13, 17, 23, 0.9);
  box-shadow: 0 12px 28px rgba(13, 17, 23, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease;
}
.experience .timeline .timeline-card::after {
  display: none;
}
.experience .timeline .timeline-item--top .timeline-card,
.experience .timeline .timeline-item--bottom .timeline-card {
  transform: none;
}
.experience .timeline .timeline-card .tag {
  font-size: 1.4rem;
  padding-bottom: 1.2rem;
  color: rgba(255, 235, 214, 0.85);
}
.experience .timeline .timeline-card .desc h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(255, 235, 214, 0.92);
}
.experience .timeline .timeline-card .desc p {
  font-size: 1.35rem;
  color: rgba(255, 235, 214, 0.78);
  margin-top: 0.6rem;
}
/* view all button */
.morebtn {
  display: flex;
  justify-content: center;
}
.morebtn .btn {
  position: relative;
  line-height: 0;
  padding: 1.6rem 3rem;
  border-radius: 0.5em;
  transition: 0.5s;
  color: #fff;
  background: var(--theme-accent-strong);
  box-shadow: 0px 5px 18px var(--theme-glow);
  text-align: center;
}
.morebtn .btn span {
  font-weight: 600;
  font-size: 1.7rem;
  font-family: "Nunito", sans-serif;
}
.morebtn .btn i {
  margin-left: 0.3rem;
  font-size: 1.5rem;
  transition: 0.3s;
}
.morebtn .btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0px 8px 24px var(--theme-glow);
}
.morebtn .btn:hover i {
  transform: translateX(5px);
}
.morebtn .btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0px 3px 12px var(--theme-glow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Media queries - Responsive timeline carousel */
@media screen and (max-width: 900px) {
  .experience .timeline {
    grid-auto-columns: minmax(240px, 280px);
    gap: 1.5rem;
    padding: 1rem 50px;
  }
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .carousel-nav--prev {
    left: 5px;
  }
  .carousel-nav--next {
    right: 5px;
  }
}

@media screen and (max-width: 600px) {
  .experience .timeline {
    grid-auto-columns: minmax(260px, 90vw);
    padding: 1rem 45px;
  }
  .experience .timeline .timeline-card {
    width: min(300px, 100%);
  }
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .carousel-nav--prev {
    left: 2px;
  }
  .carousel-nav--next {
    right: 2px;
  }
  .carousel-dots {
    gap: 8px;
  }
  .carousel-dot {
    width: 10px;
    height: 10px;
  }
  .morebtn {
    margin-top: 2rem;
  }
}
/* experience media queries ends */
/* experience section ends */

/* contact section starts */
.contact {
  background: var(--theme-surface-alt);
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}
.contact .container {
  max-width: 1050px;
  width: 100%;
  background: var(--theme-surface);
  border-radius: 2.2rem;
  margin: clamp(1rem, 3.2vw, 2rem) auto;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}
.contact::before,
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact::before {
  background: linear-gradient(180deg, rgba(255, 201, 134, 0) 0%, rgba(255, 201, 134, 0.18) 45%, rgba(255, 201, 134, 0) 90%);
  mix-blend-mode: screen;
  transform: translateY(-100%);
  animation: scanSweep 10s linear infinite;
}
.contact::after {
  background: repeating-linear-gradient(
      90deg,
      rgba(61, 90, 69, 0.05) 0 1px,
      transparent 1px 32px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(61, 90, 69, 0.04) 0 1px,
      transparent 1px 24px
    );
  opacity: 0.18;
  animation: gridPulse 16s ease-in-out infinite;
}
.contact .container .content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 2.6rem);
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 2.4rem);
}
.contact .content .image-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact .content .image-box img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  position: relative;
}
.contact .content form {
  width: 100%;
  max-width: 500px;
  justify-self: center;
}
form .form-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group .field {
  height: 50px;
  display: flex;
  position: relative;
  margin: 1rem;
  width: 100%;
}
form i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: rgb(51, 51, 51);
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}
form .field input,
form .message textarea {
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  border-radius: 5px;
  border: 1px solid rgba(115, 91, 70, 0.4);
  background: rgba(255, 248, 238, 0.92);
}
.field input::placeholder,
.message textarea::placeholder {
  color: rgb(51, 51, 51);
}
.field input:focus,
.message textarea:focus {
  padding-left: 47px;
  border: 2px solid var(--theme-accent);
}
.field input:focus ~ i,
.message textarea:focus ~ i {
  color: var(--theme-accent);
}
form .message {
  position: relative;
  margin: 1rem;
  width: 100%;
}
form .message i {
  top: 25px;
  font-size: 20px;
  left: 15px;
}
form .message textarea {
  min-height: 130px;
  max-height: 230px;
  max-width: 100%;
  min-width: 100%;
  padding: 12px 20px 0 48px;
}
form .message textarea::-webkit-scrollbar {
  width: 0px;
}
form .button-area {
  display: flex;
  float: right;
  flex-direction: row-reverse;
}
.button-area button {
  color: #fff;
  border: none;
  outline: none;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 13px 25px;
  background: linear-gradient(135deg, rgba(45, 74, 53, 0.95), rgba(61, 90, 69, 0.9));
  box-shadow: 0px 8px 18px rgba(13, 17, 23, 0.45);
  transition: 0.3s ease;
  font-family: "Nunito", sans-serif;
}
.button-area button:hover {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.95), rgba(45, 74, 53, 0.95));
}
.button-area span {
  font-size: 17px;
  padding: 1rem;
  display: none;
}
.button-area button i {
  position: relative;
  top: 6px;
  left: 2px;
  font-size: 1.5rem;
  transition: 0.3s;
  color: #fff;
}
.button-area button:hover i {
  left: 8px;
}
/* contact section media queries starts */
@media (max-width: 900px) {
  .contact {
    min-height: 70vh;
  }
  .contact .container {
    margin: 3rem 1rem 2rem 1rem;
  }
  .contact .container .content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .contact .content .image-box {
    display: block;
    max-width: 400px;
    margin: 0 auto;
  }
  .contact .content .image-box img {
    max-height: 300px;
  }
  .contact .content form {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .contact .container {
    margin: 2rem 0.5rem;
  }
  .contact .container .content {
    padding: 1.5rem 1rem;
  }
  .contact .content .image-box {
    display: none;
  }
  .contact .content form {
    width: 100%;
  }
}
/* contact section media queries ends */
/* contact section ends */

/* footer section starts */
.footer {
  min-height: auto;
  padding-top: 0;
  background: linear-gradient(180deg, #0d1117 0%, #010409 100%);
}
.footer .box-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.footer .box-container .box {
  flex: 1 1 25rem;
  margin: 2.5rem;
}
.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: var(--earth-cream);
  padding-bottom: 1rem;
  font-weight: normal;
}
.footer .box-container .box p {
  font-size: 1.5rem;
  color: rgba(255, 235, 214, 0.78);
  padding: 0.7rem 0;
  text-transform: none;
}
.footer .box-container .box p i {
  padding-right: 1rem;
  color: var(--theme-accent);
}
.footer .box-container .box a {
  font-size: 1.5rem;
  color: rgba(255, 235, 214, 0.82);
  padding: 0.3rem 0;
  display: block;
  transition: color 0.3s ease;
}
.footer .box-container .box a:hover {
  color: var(--theme-accent);
}
.footer .box-container .box .share {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem 0;
}
.footer .box-container .box .share a {
  height: 4rem;
  width: 4rem;
  padding: 1rem;
  text-align: center;
  border-radius: 5rem;
  font-size: 1.7rem;
  margin-right: 1rem;
  transition: 0.2s;
  background: rgba(255, 248, 238, 0.1);
  color: var(--earth-cream);
  border: 1px solid rgba(61, 90, 69, 0.25);
}
.footer .box-container .box .share a:hover {
  background: rgba(61, 90, 69, 0.2);
  transform: scale(0.98);
  border: 1px solid rgba(61, 90, 69, 0.4);
  color: var(--theme-accent-strong);
}
.footer .box-container .box .sponsor-cta {
  margin-top: 1.6rem;
}
.footer .box-container .box .sponsor-cta iframe {
  display: block;
  max-width: 100%;
}
.footer .credit {
  padding: 1rem 0 0 0;
  text-align: center;
  font-size: 1.5rem;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  color: rgba(255, 235, 214, 0.85);
  border-top: 0.1rem solid rgba(255, 235, 214, 0.15);
}
.footer .credit a {
  color: var(--theme-accent);
}
.footer .fa {
  color: var(--theme-accent);
  margin: 0 0.3rem;
  font-size: 1.5rem;
  animation: pound 0.35s infinite alternate;
}
@-webkit-keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@keyframes pound {
  to {
    transform: scale(1.1);
  }
}
@media (max-width: 450px) {
  .footer .box-container .box {
    margin: 1.5rem;
  }
  .footer .box-container .box p {
    padding: 0.7rem;
  }
  .footer .box-container .box .share a {
    padding: 1.2rem;
  }
}
/* footer section ends */

/* dark theme overrides - Dark Forest aesthetic */
:root[data-theme="dark"] {
  color-scheme: dark;
  --theme-bg: #0a0a0a;
  --theme-surface: rgba(18, 18, 18, 0.96);
  --theme-surface-alt: rgba(26, 26, 26, 0.92);
  --theme-card: rgba(20, 20, 20, 0.95);
  --theme-text: #e0e0dc;
  --theme-text-muted: #8a8a85;
  --theme-accent: #4a6b52;
  --theme-accent-strong: #3d5a45;
  --theme-accent-hover: #2d4a35;
  --theme-chip-bg: rgba(61, 90, 69, 0.12);
  --theme-border: rgba(90, 107, 85, 0.2);
  --theme-glow: rgba(61, 90, 69, 0.15);
}

:root[data-theme="dark"] body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(61, 90, 69, 0.03), transparent 55%),
    radial-gradient(circle at 82% 12%, rgba(45, 74, 53, 0.02), transparent 60%),
    radial-gradient(circle at 55% 78%, rgba(26, 26, 26, 0.5), transparent 65%);
  background-attachment: fixed;
  background-size: cover;
}

:root[data-theme="dark"] header {
  background-color: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] header .theme-toggle {
  background-color: rgba(18, 18, 18, 0.95);
  border-color: var(--theme-border);
  color: var(--theme-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] header .theme-toggle:hover {
  box-shadow: 0 0 0 2px rgba(61, 90, 69, 0.25), 0 16px 30px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] header .logo {
  color: var(--theme-text);
}

:root[data-theme="dark"] header .logo i {
  color: var(--theme-accent);
}

:root[data-theme="dark"] header .navbar ul li a {
  color: var(--theme-text-muted);
}

:root[data-theme="dark"] header .navbar ul li a.active,
:root[data-theme="dark"] header .navbar ul li a:hover {
  text-shadow: 0 0 12px rgba(74, 107, 82, 0.4);
}

:root[data-theme="dark"] #menu {
  color: var(--theme-text);
}

:root[data-theme="dark"] .heading {
  color: var(--theme-text);
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .heading span {
  color: var(--theme-accent);
  text-shadow: 0 0 18px rgba(61, 90, 69, 0.3);
}

:root[data-theme="dark"] .home {
  background:
    radial-gradient(circle at 15% 20%, rgba(61, 90, 69, 0.04), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(45, 74, 53, 0.03), transparent 55%),
    linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
}

:root[data-theme="dark"] .home::before {
  background: linear-gradient(135deg, rgba(61, 90, 69, 0.03), rgba(26, 26, 26, 0.5));
}

:root[data-theme="dark"] .home .btn {
  background: rgba(61, 90, 69, 0.15);
  border: 1px solid var(--theme-border);
  color: var(--theme-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .home .btn:hover {
  background: rgba(61, 90, 69, 0.25);
}

:root[data-theme="dark"] .home .content h1,
:root[data-theme="dark"] .home .content h2,
:root[data-theme="dark"] .home .content p {
  color: var(--theme-text);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .home .content h1 span,
:root[data-theme="dark"] .home .content h2 span,
:root[data-theme="dark"] .home .content p span {
  color: var(--theme-accent);
  text-shadow: 0 0 24px rgba(61, 90, 69, 0.35);
}

:root[data-theme="dark"] .social-icons a {
  background-color: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--theme-border);
  color: var(--theme-accent);
}

:root[data-theme="dark"] .social-icons a:hover {
  background-color: rgba(61, 90, 69, 0.2);
  color: var(--theme-accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .about {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(3, 17, 32, 0.6);
}

:root[data-theme="dark"] .about .row .image img {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(51, 255, 153, 0.25);
}

:root[data-theme="dark"] .skills {
  background: linear-gradient(160deg, rgba(10, 10, 10, 0.98), rgba(5, 5, 5, 0.98));
}

:root[data-theme="dark"] .skills .container {
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid var(--theme-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .skills .container .bar {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .skills .container .bar:hover {
  background-color: rgba(26, 26, 26, 0.98) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

:root[data-theme="dark"] .education .box-container .box {
  background: rgba(18, 18, 18, 0.95);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .work {
  background: linear-gradient(160deg, #0a0a0a 0%, #050505 100%);
}

:root[data-theme="dark"] .work .box-container .box {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .work .box-container .box .content {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .work .desc p {
  color: var(--theme-text-muted);
}

:root[data-theme="dark"] .work .desc .btns .btn {
  background: var(--theme-accent-strong);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .work .desc .btns .btn:hover {
  background: var(--theme-accent-hover);
}

:root[data-theme="dark"] .work .viewall .btn {
  border: 2px solid var(--theme-accent);
  color: var(--theme-accent);
  background: rgba(18, 18, 18, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .work .viewall .btn:hover {
  background: var(--theme-accent);
  color: #0a0a0a;
}

:root[data-theme="dark"] .experience .timeline .timeline-card {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .experience .timeline .timeline-card .desc p {
  color: var(--theme-text-muted);
}

:root[data-theme="dark"] .morebtn .btn {
  color: #0d1117;
  background: var(--theme-accent-strong);
}

:root[data-theme="dark"] .morebtn .btn:hover {
  background: var(--theme-accent-hover);
}

:root[data-theme="dark"] .contact .container {
  border: 1px solid var(--theme-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .contact .button-area button {
  background: var(--theme-accent-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .contact .button-area button:hover {
  background: var(--theme-accent-hover);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] .footer {
  background: radial-gradient(circle at 20% 20%, rgba(61, 90, 69, 0.1), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(140, 78, 34, 0.12), transparent 65%),
    #0d0603;
  border-top: 1px solid var(--theme-border);
}

:root[data-theme="dark"] .footer .box-container .box p i,
:root[data-theme="dark"] .footer .box-container .box a:hover,
:root[data-theme="dark"] .footer .credit a {
  color: var(--theme-accent);
}

:root[data-theme="dark"] .footer .box-container .box .share a {
  background: rgba(24, 14, 9, 0.9);
  color: var(--theme-accent);
  border: 1px solid var(--theme-border);
}

:root[data-theme="dark"] .footer .box-container .box .share a:hover {
  background: rgba(61, 90, 69, 0.18);
  border-color: var(--theme-border);
  color: var(--theme-accent);
}

/* common media queries starts*/
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
  body {
    padding-right: 0;
  }
  section {
    padding: 1.2rem;
    margin: 1.2rem auto;
  }
}
/* common media queries ends*/

/* scroll top starts */
#scroll-top {
  position: fixed;
  top: -140%;
  right: 2rem;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  background: var(--theme-accent-strong);
  color: #0d1117;
  border-radius: 50%;
  transition: 1s linear;
  z-index: 1000;
}
#scroll-top.active {
  top: calc(100% - 12rem);
}
/* scroll top ends */

.company-icon {
  width: 75px;  /* Adjust size as needed */
  height: 75px;
  object-fit: contain;  /* Maintains aspect ratio */
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
}

/* Optional: Add hover effect */
.company-icon:hover {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}
/* scroll top ends */

/* Contact image display fix */
.contact .image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.contact .image-box {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact .content .image-box img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
