/* --- NAVIGATION HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--trans-normal);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: inline-block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  transition: var(--trans-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--trans-normal);
}

/* --- HERO SECTION --- */
.hero-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  color: var(--color-primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background-color: var(--color-secondary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span.typed-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  min-height: 1.2em;
  vertical-align: bottom;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-card {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 20%, transparent), color-mix(in srgb, var(--color-secondary) 20%, transparent));
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-avatar-card img {
  width: 90%;
  height: auto;
  object-fit: cover;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-avatar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 5%, transparent 40%);
  pointer-events: none;
}

.hero-floating-badge {
  position: absolute;
  background: rgba(15, 21, 36, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.badge-1 {
  top: 15%;
  left: -10%;
  animation: float 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 15%;
  right: -5%;
  animation: float-delayed 4s ease-in-out infinite;
}

.hero-floating-badge svg {
  color: var(--color-secondary);
}

.hero-floating-badge h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-floating-badge p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transform: translate3d(-50%, 0, 0);
  animation: scroll-dot 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* --- ABOUT ME SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 4rem;
  align-items: center;
}

.about-image-container {
  position: relative;
  perspective: 1000px;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

@media (hover: hover) {
  .about-image-container:hover .about-image {
    transform: rotateY(-6deg) rotateX(6deg) scale(1.02);
    box-shadow: -10px 25px 50px -10px rgba(0, 0, 0, 0.55);
  }
}

/* --- RESUME PREVIEW WINDOW MOCKUP --- */
.about-resume-mockup {
  width: 100%;
  background: rgba(10, 10, 14, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

@media (hover: hover) {
  .about-image-container:hover .about-resume-mockup {
    transform: rotateY(-6deg) rotateX(6deg) scale(1.02);
    box-shadow: -10px 25px 50px -10px rgba(0, 0, 0, 0.55);
  }
}

.mockup-header {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 38px;
  background: rgba(12, 12, 18, 0.9);
  border-bottom: 1px solid var(--border-light);
}

.mockup-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mockup-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  transition: var(--trans-fast);
}

.dot-dark {
  background-color: #12131c;
}

.dot-light {
  background-color: #ffffff;
}

.mockup-dots .dot.active {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
  transform: scale(1.1);
}

.mockup-title {
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transform: translateX(-16px); /* Center title offsetting dots width */
}

.mockup-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 794 / 1123;
  overflow: hidden;
  background: #0c0c12; /* matching Resume.html background */
}

.resume-iframe {
  width: 142.8%;
  height: 142.8%;
  border: none;
  transform: scale(0.7);
  transform-origin: top left;
  pointer-events: none; /* enable hover states on overlays instead of iframe */
  display: block;
}

.mockup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  z-index: 5;
}

.about-resume-mockup:hover .mockup-overlay {
  opacity: 1;
}

.about-image-glow {
  position: absolute;
  inset: -15px;
  background: var(--grad-primary);
  border-radius: calc(var(--radius-lg) + 15px);
  filter: blur(25px);
  opacity: 0.15;
  z-index: -1;
  transition: var(--trans-normal);
}

.about-image-container:hover .about-image-glow {
  opacity: 0.3;
  filter: blur(35px);
}

.about-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.about-info h3 span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-light);
  padding: 0.5rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-number span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- SERVICES SECTION --- */
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: var(--trans-normal);
}

.service-card:hover .service-icon {
  background: var(--grad-primary);
  color: white;
  transform: rotateY(180deg);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* --- SKILLS SECTION --- */
.skills-container {
  display: grid;
  grid-template-columns: 3.5fr 6.5fr;
  gap: 4rem;
}

.skills-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tab-btn {
  background: rgba(15, 21, 36, 0.35);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.tab-btn:hover {
  background: rgba(15, 21, 36, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: scale(1.03);
}

.tab-btn.active {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border-color: var(--color-primary);
  color: var(--text-primary);
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--color-primary) 20%, transparent);
  transform: scale(1.02);
}

.tab-btn.active:hover {
  transform: scale(1.04);
}

.tab-btn > svg,
.tab-side-wrapper > svg {
  opacity: 0.5;
  transition: var(--trans-normal);
}

.tab-btn.active > svg,
.tab-btn.active .tab-side-wrapper > svg {
  color: var(--color-secondary);
  opacity: 1;
  transform: translateX(4px);
}

.tab-side-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tab-progress-circle {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  display: block;
}

.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.06);
}

.progress-ring-fill {
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
  stroke: rgba(var(--color-primary-rgb), 0.45);
  transition: stroke-dashoffset 1s var(--ease-out-expo);
}

.tab-btn:hover .progress-ring-fill,
.tab-btn.active .progress-ring-fill {
  stroke: var(--color-primary);
  filter: drop-shadow(0 0 3px rgba(var(--color-primary-rgb), 0.6));
}

.tab-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--trans-normal);
  pointer-events: none;
}

.tab-icon svg {
  opacity: 0.7 !important;
  transform: none !important;
  color: inherit !important;
  transition: var(--trans-normal) !important;
}

.tab-btn:hover .tab-icon,
.tab-btn.active .tab-icon {
  color: var(--color-primary);
  transform: scale(1.1);
}

.tab-btn:hover .tab-icon svg,
.tab-btn.active .tab-icon svg {
  opacity: 1 !important;
}

.tab-tooltip {
  position: absolute;
  top: -32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--trans-spring), transform 0.3s var(--trans-spring);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
  z-index: 10;
}

.tab-btn:hover .tab-tooltip,
.tab-btn.active .tab-tooltip {
  opacity: 1;
  transform: translateY(0);
}


.skills-content {
  position: relative;
}

.skills-pane {
  display: none;
  flex-direction: column;
  gap: 2rem;
  animation: fade-in 0.5s ease forwards;
}

.skills-pane.active {
  display: flex;
}

.skill-bar-wrapper {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-name {
  color: var(--text-primary);
}

.skill-percentage {
  color: var(--color-secondary);
}

.skill-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  position: relative;
}

.skill-bar-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 24%, rgba(255, 255, 255, 0.05) 25%, 
    transparent 26%, transparent 49%, rgba(255, 255, 255, 0.05) 50%, 
    transparent 51%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, 
    transparent 76%
  );
  pointer-events: none;
}

.skill-bar-fill {
  height: 100%;
  background: var(--grad-primary);
  width: 0;
  border-radius: var(--radius-full);
  transition: width 1.5s var(--ease-out-expo);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
  position: relative;
  overflow: visible;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-secondary), 0 0 3px #fff;
}

.skill-tooltip {
  position: absolute;
  top: -32px;
  right: -18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--trans-spring), transform 0.3s var(--trans-spring);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(var(--color-primary-rgb), 0.3);
  z-index: 10;
}

.skill-bar-wrapper:hover .skill-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* --- EXPERIENCE TIMELINE --- */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  transform: translateX(-50%);
  z-index: 2;
  transition: height 0.1s ease-out;
  will-change: height;
}

.timeline-item {
  width: 100%;
  margin-bottom: 4rem;
  position: relative;
}

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

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--border-light);
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translate(-50%, -20%);
  z-index: 10;
  transition: var(--trans-normal);
}

.timeline-item:hover .timeline-dot, .timeline-dot.active {
  background-color: var(--bg-secondary);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px var(--color-primary);
}

.timeline-content {
  width: 45%;
  position: relative;
  transition: var(--trans-normal);
}

.timeline-item:nth-child(even) .timeline-content {
  float: right;
  padding-left: 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  float: left;
  text-align: right;
  padding-right: 2rem;
}

.timeline-content-inner {
  background: rgba(15, 21, 36, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Clearfix for timeline */
.timeline-item::after {
  content: '';
  display: block;
  clear: both;
}

/* --- PROJECTS SECTION --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(15, 21, 36, 0.45);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--trans-normal);
}

.filter-btn:hover {
  background: rgba(15, 21, 36, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  height: 400px;
  cursor: pointer;
  padding: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(18, 19, 28, 0.45);
  border: 1px solid var(--border-light);
  animation: card-fade-in 0.6s var(--ease-out-expo) forwards;
}

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-browser-header {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 32px;
  background: rgba(15, 15, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 4px;
}

.browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  opacity: 0.5;
}

.project-browser-header:hover .browser-dot:nth-child(1) { background-color: #E63946; opacity: 1; }
.project-browser-header:hover .browser-dot:nth-child(2) { background-color: #F5A623; opacity: 1; }
.project-browser-header:hover .browser-dot:nth-child(3) { background-color: #10B981; opacity: 1; }

.browser-title {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  margin: 0 auto;
  transform: translateX(-11px); /* offset the dots width */
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-img-container {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0a0a0f;
  flex-shrink: 0;
}

.project-img-container img {
  width: 100%;
  height: auto;
  min-height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 4s ease-in-out;
}

.project-card:hover .project-img-container img {
  transform: translateY(calc(-100% + 220px));
}

.project-card-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.project-tag {
  background: color-mix(in srgb, var(--color-secondary) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-secondary) 30%, transparent);
  color: var(--color-secondary);
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
}

.project-card:nth-child(even) .project-tag {
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  color: var(--color-primary);
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  transition: var(--trans-fast);
}

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

.project-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.25rem;
}

/* --- CASE STUDY MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s var(--ease-out-expo);
  padding: 2rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
}

.modal-overlay.active .modal-wrapper {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--trans-normal);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  transform: rotate(90deg);
}

.modal-close-btn:focus-visible, .modal-actions .btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.modal-cover-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-light);
}

.modal-content-inner {
  padding: 3rem 3.5rem;
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.modal-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 2.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(var(--color-primary-rgb), 0.08); /* 8% primary tint */
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary);
  border-radius: 8px;
  flex-shrink: 0;
}

.meta-text {
  display: flex;
  flex-direction: column;
}

.meta-item h5 {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin: 0 0 2px 0;
}

.meta-item p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-body {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.modal-body h4 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  position: relative;
  padding-left: 1rem;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.modal-body h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

.modal-body p {
  margin-bottom: 1.5rem;
}

.modal-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding-left: 0.25rem;
}

.modal-body li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.modal-body li svg {
  color: var(--color-primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.achievements-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  animation: marquee-infinite 30s linear infinite;
}

@keyframes marquee-infinite {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-50% - 1rem), 0, 0);
  }
}

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

.achievement-card {
  width: 340px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.achievement-icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.achievement-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.achievement-issuer {
  font-size: 0.85rem;
  color: var(--color-secondary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-controls .carousel-dots {
  margin-top: 0;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--trans-normal);
}

.carousel-dot.active {
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
  width: 24px;
  border-radius: 5px;
}

.carousel-track.dragging {
  cursor: grabbing;
  transition: none !important;
}

.carousel-track.dragging .achievement-card {
  user-select: none;
  pointer-events: none;
}

.carousel-btn {
  background: rgba(15, 21, 36, 0.45);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans-normal);
}

.carousel-btn:hover {
  background: var(--grad-primary);
  border-color: transparent;
  transform: scale(1.05);
}

/* --- CONTACT SECTION --- */
.contact-grid {
  display: grid;
  grid-template-columns: 4.5fr 5.5fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-header h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-header p {
  color: var(--text-secondary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(15, 21, 36, 0.35);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--trans-normal);
}

.contact-detail-card:hover {
  border-color: color-mix(in srgb, var(--color-secondary) 25%, transparent);
  background: rgba(15, 21, 36, 0.5);
  transform: translateX(5px);
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--color-secondary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-secondary) 20%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.contact-detail-card:nth-child(2) .contact-detail-icon {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
  color: var(--color-primary);
}

.contact-detail-card:nth-child(3) .contact-detail-icon {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
  color: var(--color-accent);
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.detail-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--trans-fast);
  text-decoration: none;
}

a.detail-value:hover {
  color: var(--color-primary);
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-circle {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--trans-normal);
}

.social-circle:hover {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

.contact-form-container {
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: rgba(8, 8, 10, 0.45);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--trans-normal);
}

.form-control:focus {
  outline: none;
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(18, 19, 28, 0.95), rgba(18, 19, 28, 0.95)), var(--grad-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.15);
}

.form-control.is-valid {
  border: 1px solid #10b981 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

.form-control.is-invalid {
  border: 1px solid var(--color-primary) !important;
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.15) !important;
}

.error-message {
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  font-weight: 500;
  display: none;
  text-align: left;
  padding-left: 0.5rem;
}

.form-control.is-invalid ~ .error-message {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-label {
  position: absolute;
  left: 1.5rem;
  top: 1.15rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--trans-normal);
  font-size: 0.95rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -1.15rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  padding: 0;
  font-weight: 600;
}

.form-control:focus ~ .form-label {
  color: var(--color-primary) !important;
}

/* --- TOAST SYSTEM --- */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  background: rgba(18, 19, 28, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
  color: var(--text-primary);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--color-primary-rgb), 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s var(--trans-spring), opacity 0.5s ease;
  min-width: 320px;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.toast-message {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-light);
  background: #05070c;
  padding: 4rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.80rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 21, 36, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.425rem 1rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), transform var(--trans-fast);
}

.visitor-counter:hover {
  border-color: rgba(var(--color-primary-rgb), 0.35);
  box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.15);
  transform: translateY(-1px);
}

.visitor-icon {
  color: var(--color-primary);
  display: flex;
  align-items: center;
}

.visitor-count {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scroll-top-btn {
  background: rgba(15, 21, 36, 0.45);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--trans-normal);
}

.scroll-top-btn:hover {
  background: var(--grad-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes float-delayed {
  0% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(var(--color-secondary-rgb), 0.4); }
  70% { opacity: 1; box-shadow: 0 0 0 8px rgba(var(--color-secondary-rgb), 0); }
  100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(var(--color-secondary-rgb), 0); }
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translate3d(-50%, 0, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-50%, 14px, 0); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SECTIONS MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-container {
    max-width: 450px;
    margin: 0 auto;
  }
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .skills-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tab-btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
  }
  .tab-btn svg {
    display: none;
  }
  .achievement-card {
    width: 300px;
  }
}

/* --- HIDE MOBILE-ONLY COMPONENTS ON DESKTOP --- */
.drawer-extra-info,
.nav-overlay,
.mockup-code-preview,
.modal-drag-handle {
  display: none;
}

@media (max-width: 1024px) {
  header {
    padding: 1rem 0;
  }
  
  /* Hide text watermarks to avoid layout overflow and boost readability */
  .bg-text-watermark {
    display: none !important;
  }
  
  /* Immersive glass drawer menu overlay backdrop */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.75rem;
    padding: 5rem 2rem 2.5rem;
    overflow-y: auto;
    z-index: 1000;
    transition: right 0.45s var(--ease-out-expo);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Staggered slide-in links animation for mobile menu */
  .nav-menu li {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
    width: 100%;
    text-align: center;
  }
  
  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-menu.active li:nth-child(1) { transition-delay: 0.05s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(5) { transition-delay: 0.25s; }
  .nav-menu.active li:nth-child(6) { transition-delay: 0.3s; }
  .nav-menu.active li:nth-child(7) { transition-delay: 0.35s; }
  .nav-menu.active li:nth-child(8) { transition-delay: 0.4s; }
  .nav-menu.active li:nth-child(9) { transition-delay: 0.45s; }
  
  /* Extra mobile drawer footer information */
  .drawer-extra-info {
    margin-top: auto !important;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
  }
  
  .drawer-divider {
    width: 40px;
    height: 2px;
    background: var(--color-primary);
    opacity: 0.4;
    border-radius: var(--radius-full);
  }
  
  .drawer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }
  
  .drawer-email {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
  }
  
  .drawer-phone {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .drawer-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .drawer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--trans-fast);
  }
  
  .drawer-social-link:active {
    background: color-mix(in srgb, var(--color-primary) 15%, transparent);
    border-color: var(--color-primary);
    color: var(--text-primary);
  }
  
  .hamburger {
    display: block;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }
  
  /* hamburger cross animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .hero-wrapper {
    justify-content: center;
    gap: 2rem;
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
  
  .hero-wrapper .grid-2 {
    display: flex;
    flex-direction: column-reverse;
    gap: 2.5rem;
  }
  
  .hero-content {
    text-align: center;
    align-items: center;
  }
  
  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    min-height: 48px; /* Touch target compliance */
  }
  
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
  }
  
  /* Stabilize typing text layout container to prevent bounce and jitter */
  .hero-title span.typed-text {
    display: block !important;
    margin: 0.5rem auto 0 !important;
    min-height: 1.3em !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Position avatar and floating badges into a symmetric grid */
  .hero-visual {
    display: grid;
    grid-template-areas: 
      "avatar avatar"
      "badge1 badge2";
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
  
  .hero-avatar-card {
    grid-area: avatar;
    width: 260px;
    height: 260px;
    margin-bottom: 0.5rem;
  }
  
  /* Ensure inline SVG conforms to responsive card boundaries */
  .hero-avatar-card svg {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
  }
  
  .badge-1, .badge-2 {
    position: static;
    display: flex;
    animation: none;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  
  .badge-1 {
    grid-area: badge1;
    justify-self: stretch;
  }
  
  .badge-2 {
    grid-area: badge2;
    justify-self: stretch;
  }
  
  .hero-floating-badge h4 {
    font-size: 1rem;
  }
  
  .hero-floating-badge p {
    font-size: 0.7rem;
  }
  
  .hero-floating-badge svg {
    width: 20px;
    height: 20px;
  }
  
  /* Disable active hover elements of wireframe rulers on mobile scroll */
  .hero-crosshair-h, .hero-crosshair-v, .hero-coordinate-label {
    display: none !important;
  }
  .blueprint-ruler-h, .blueprint-ruler-v {
    display: none !important;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Pause achievements infinite marquee on touch drag/press */
  .carousel-track:active {
    animation-play-state: paused;
  }
  
  /* Actual Resume Iframe Preview on mobile */
  .resume-iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    transform-origin: top left !important;
    pointer-events: auto !important;
  }
  .mockup-code-preview.show {
    display: block !important;
  }
  
  .mockup-overlay {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    padding: 1.25rem 0 0;
    display: flex;
    justify-content: center;
  }
  
  .about-resume-mockup {
    padding-bottom: 1.25rem;
  }
  
  .about-resume-mockup:hover .mockup-overlay {
    background: none;
  }

  .achievement-card {
    width: 280px;
  }
  
  .carousel-controls {
    display: none; /* Hide arrows on touch screens */
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Form legibility zoom blocker */
  .form-control {
    font-size: 16px !important;
    min-height: 48px;
  }

  /* Mobile Bottom-sheet Modal styling */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  
  .modal-wrapper {
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
    border-bottom: none;
    display: flex;
    flex-direction: column;
  }
  
  .modal-overlay.active .modal-wrapper {
    transform: translateY(0);
  }
  
  .modal-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    margin: 0.75rem auto 0;
    flex-shrink: 0;
  }
  
  .modal-cover-img {
    border-radius: 0;
    margin-top: 0.5rem;
  }
  
  .modal-content-inner {
    padding: 1.75rem 1.25rem;
  }
  
  .modal-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
  }

  .modal-close-btn {
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(8, 8, 10, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 44px;
    height: 44px;
  }

  /* Fluid Hero Title Scaling */
  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3.25rem) !important;
  }

  /* Compact padding for timeline cards */
  .timeline-content-inner {
    padding: 1.25rem !important;
  }

  /* Hide skill bar and tab average tooltips on mobile to prevent layout overlaps and clutter */
  .skill-tooltip,
  .tab-tooltip {
    display: none !important;
  }

  /* Compact and overflow-safe contact details card */
  .contact-detail-card {
    padding: 1.25rem 1rem !important;
    gap: 1rem !important;
  }

  .contact-detail-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .detail-value {
    font-size: 0.95rem !important;
    word-break: break-word !important;
  }

  /* Full-width touch-friendly submit button */
  .contact-form button[type="submit"] {
    width: 100% !important;
    justify-content: center !important;
  }

  /* More compact form spacing when software keyboards open */
  .form-control {
    padding: 0.85rem 1.25rem !important;
  }

  /* Tighter fade masking for marquee cards near borders */
  .achievements-carousel {
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent) !important;
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent) !important;
  }

  /* Align empty input placeholder label with mobile padding and float properly on focus/value */
  .form-label {
    top: 0.85rem !important;
    left: 1.25rem !important;
    font-size: 0.9rem !important;
  }

  .form-control:focus ~ .form-label,
  .form-control:not(:placeholder-shown) ~ .form-label,
  .form-control:-webkit-autofill ~ .form-label {
    top: -1.15rem !important;
    left: 0.5rem !important;
    font-size: 0.75rem !important;
  }

  /* Stack modal buttons vertically on mobile touch bounds */
  .modal-actions {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    padding-top: 1.5rem !important;
  }
  
  .modal-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

}

/* --- MOBILE-ONLY STYLING (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Correct mobile stacked timeline layout */
  .timeline::before, .timeline-progress-line {
    left: 20px !important;
  }
  
  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 3.5rem !important;
    padding-right: 0 !important;
  }
  
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    width: 100% !important;
    text-align: left !important;
    float: none !important;
  }
  
  .timeline-item:nth-child(even) .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot {
    left: 20px !important;
    right: auto !important;
    top: 2.25rem !important;
    transform: translate(-50%, -50%) !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  /* Horizontal swipe tabs for skill tags to preserve compact space */
  .skills-tabs {
    display: flex;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 0.5rem;
    gap: 0.75rem;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }
  .skills-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .tab-btn {
    flex: 0 0 auto !important;
    min-width: auto;
    padding: 0.75rem 1.25rem;
  }
  
  /* Horizontal swipe filters for projects portfolio */
  .portfolio-filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    width: 100%;
    margin-bottom: 2.25rem;
    gap: 0.75rem;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex: 0 0 auto;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
  }

  /* Mobile footer scrolling marquee */
  .footer-links-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  }
  
  .footer-links-marquee-wrapper .footer-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important; /* using margin-right on items instead for seamless looping */
    width: max-content !important;
    will-change: transform;
    animation: footer-links-marquee 20s linear infinite;
  }
  
  .footer-links-marquee-wrapper .footer-links:hover {
    animation-play-state: paused;
  }
  
  .footer-links-marquee-wrapper .footer-links li {
    margin-right: 3rem !important;
    flex-shrink: 0 !important;
  }
  
  @keyframes footer-links-marquee {
    0% {
      transform: translate3d(0, 0, 0);
    }
    100% {
      transform: translate3d(-50%, 0, 0);
    }
  }
}

/* --- PHONE TOAST POSITIONING --- */
@media (max-width: 480px) {
  .toast-container {
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
  }
  .toast {
    min-width: auto !important;
    width: 100% !important;
    transform: translateY(-50px) !important;
  }
  .toast.show {
    transform: translateY(0) !important;
  }
}

/* --- HERO DESIGNER COORDINATE GRID --- */
.hero-designer-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Axis lines representing wireframe blueprints */
.designer-axis-x, .designer-axis-y {
  position: absolute;
  background-color: rgba(var(--color-primary-rgb), 0.08);
  pointer-events: none;
}

.designer-axis-x {
  height: 1px;
  width: 100%;
  left: 0;
}

.designer-axis-y {
  width: 1px;
  height: 100%;
  top: 0;
}

/* Interactive Crosshair Follower */
.hero-crosshair-h, .hero-crosshair-v {
  position: absolute;
  background: rgba(var(--color-primary-rgb), 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
  z-index: 2;
}

.hero-crosshair-h {
  height: 1px;
  width: 100%;
  left: 0;
}

.hero-crosshair-v {
  width: 1px;
  height: 100%;
  top: 0;
}

.hero-coordinate-label {
  position: absolute;
  background: rgba(18, 19, 28, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-primary);
  font-family: monospace;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  will-change: transform;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-wrapper:hover .hero-crosshair-h,
.hero-wrapper:hover .hero-crosshair-v,
.hero-wrapper:hover .hero-coordinate-label {
  opacity: 1;
}

/* Blueprint Ruler markings */
.blueprint-ruler-h {
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.25;
}

.blueprint-ruler-h::before {
  content: '';
  position: absolute;
  left: 50%;
  height: 100%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.blueprint-ruler-h::after {
  content: 'GRID_RESOLUTION: 50px';
  position: absolute;
  left: 12px;
  top: -12px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.5px;
}

.blueprint-ruler-v {
  position: absolute;
  left: 20px;
  top: 15%;
  bottom: 15%;
  width: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.25;
}

/* --- REUSABLE STAGGER REVEAL SYSTEM --- */
.reveal-stagger {
  --stagger-delay: 0.08s;
  --base-delay: 0.1s;
}

.reveal-stagger > * {
  opacity: 0 !important;
  transform: translateY(20px) scale(0.98) !important;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo) !important;
  will-change: transform, opacity;
}

.reveal.active .reveal-stagger > * {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Stagger item delays */
.reveal.active .reveal-stagger > *:nth-child(1) { transition-delay: calc(var(--base-delay) + 1 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(2) { transition-delay: calc(var(--base-delay) + 2 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(3) { transition-delay: calc(var(--base-delay) + 3 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(4) { transition-delay: calc(var(--base-delay) + 4 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(5) { transition-delay: calc(var(--base-delay) + 5 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(6) { transition-delay: calc(var(--base-delay) + 6 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(7) { transition-delay: calc(var(--base-delay) + 7 * var(--stagger-delay)) !important; }
.reveal.active .reveal-stagger > *:nth-child(8) { transition-delay: calc(var(--base-delay) + 8 * var(--stagger-delay)) !important; }

/* Skills pane active stagger animation */
.skills-pane.active .skill-bar-wrapper {
  opacity: 0;
  transform: translateY(15px);
  animation: skill-item-fade 0.6s var(--ease-out-expo) forwards;
}

@keyframes skill-item-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skills-pane.active .skill-bar-wrapper:nth-child(1) { animation-delay: 0.05s; }
.skills-pane.active .skill-bar-wrapper:nth-child(2) { animation-delay: 0.1s; }
.skills-pane.active .skill-bar-wrapper:nth-child(3) { animation-delay: 0.15s; }

/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-secondary);
  transform: scale(1.05);
}

.theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: scale(0.6) rotate(90deg);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  position: absolute;
}

.theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  position: absolute;
}

/* Toggle icon states in light mode */
body.light-mode .theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.light-mode .theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
}

/* --- LIGHT MODE SPECIFIC COMPONENT OVERRIDES --- */
body.light-mode {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body.light-mode header {
  background: transparent;
}

body.light-mode header.scrolled {
  background: rgba(248, 250, 252, 0.8) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03) !important;
}

body.light-mode .nav-menu {
  background: #ffffff;
}

@media (max-width: 1024px) {
  body.light-mode .nav-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
  }
}

body.light-mode .bg-text-watermark {
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.025) !important;
  text-stroke: 1px rgba(15, 23, 42, 0.025) !important;
}

body.light-mode .blueprint-ruler-h {
  border-left-color: rgba(15, 23, 42, 0.12) !important;
  border-right-color: rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .blueprint-ruler-h::before {
  background: rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .blueprint-ruler-h::after {
  color: var(--text-muted) !important;
}

body.light-mode .blueprint-ruler-v {
  border-top-color: rgba(15, 23, 42, 0.12) !important;
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .hero-coordinate-label {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(var(--color-primary-rgb), 0.4) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .form-control {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--text-primary) !important;
}

body.light-mode .form-control:focus {
  background-image: linear-gradient(#ffffff, #ffffff), var(--grad-primary) !important;
  box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.1) !important;
}

body.light-mode .form-label {
  color: var(--text-muted) !important;
}

body.light-mode .form-control:focus ~ .form-label {
  color: var(--color-primary) !important;
}

body.light-mode .btn-secondary {
  background: rgba(15, 23, 42, 0.04) !important;
  color: var(--text-primary) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.2) !important;
}

body.light-mode footer {
  background: #f1f5f9 !important;
}

body.light-mode .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.05) !important;
}

body.light-mode .social-circle {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  color: var(--text-secondary) !important;
}

body.light-mode .social-circle:hover {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  color: white !important;
}

body.light-mode .tab-btn {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: rgba(15, 23, 42, 0.06) !important;
  color: var(--text-secondary) !important;
}

body.light-mode .tab-btn:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--text-primary) !important;
}

body.light-mode .tab-btn.active {
  background: color-mix(in srgb, var(--color-primary) 5%, #ffffff) !important;
  border-color: var(--color-primary) !important;
  color: var(--text-primary) !important;
}

body.light-mode .tab-progress-circle svg .progress-ring-bg {
  stroke: rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .skill-bar-track {
  background: rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .skill-bar-fill::after {
  box-shadow: 0 0 8px rgba(15, 23, 42, 0.15), 0 0 3px #fff !important;
}

body.light-mode .timeline::before,
body.light-mode .timeline-progress-line {
  background: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .timeline-dot {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .timeline-dot.active {
  border-color: var(--color-primary) !important;
}

body.light-mode .timeline-dot::after {
  background: rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .timeline-dot.active::after {
  background: var(--color-primary) !important;
}

body.light-mode .timeline-item.illuminated .timeline-content-inner {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(var(--color-primary-rgb), 0.25) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .toast {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(var(--color-primary-rgb), 0.25) !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 15px rgba(var(--color-primary-rgb), 0.05) !important;
  color: var(--text-primary) !important;
}

body.light-mode .toast-message {
  color: var(--text-secondary) !important;
}

body.light-mode .about-resume-mockup {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.1) !important;
}

body.light-mode .mockup-header {
  background: rgba(241, 245, 249, 0.9) !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .mockup-title {
  color: var(--text-secondary) !important;
}

body.light-mode .project-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05) !important;
}

body.light-mode .project-browser-header {
  background: rgba(241, 245, 249, 0.9) !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .timeline-content-inner {
  background: rgba(255, 255, 255, 0.6) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
}

body.light-mode .modal-wrapper {
  background: var(--bg-secondary) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .modal-close-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-mode .modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

body.light-mode .filter-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-secondary) !important;
}

body.light-mode .filter-btn:hover {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: var(--text-primary) !important;
}

body.light-mode .filter-btn.active {
  background: var(--grad-primary) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.25) !important;
}

body.light-mode .scroll-top-btn {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-mode .scroll-top-btn:hover {
  background: var(--grad-primary) !important;
  border-color: transparent !important;
  color: white !important;
}

.nav-theme-toggle-li {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.light-mode .hero-floating-badge {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .hero-floating-badge svg {
  color: var(--color-primary) !important;
}

body.light-mode .contact-detail-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: var(--border-light) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03) !important;
}

body.light-mode .contact-detail-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent) !important;
}

body.light-mode .visitor-counter {
  background: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
  color: var(--color-secondary) !important;
}

body.light-mode .visitor-count {
  color: var(--text-primary) !important;
}
