
/* Utility Classes for 2026 Design */

/* Icon sizing utilities */
.icon-sm {
  width: 50px;
  height: auto;
}

/* Hero subtitle tertiary style */
.hero__content--subtitle3 {
  font-size: 1.6rem;
  opacity: 0.85;
}

/* CTA highlight text */
.cta-highlight {
  display: block;
  margin-top: 1rem;
  color: #38bdf8;
}

/* Responsive image utility */
.img-fluid-full {
  width: 100%;
  height: auto;
}

/* Invert filter for dark icons */
.filter-invert {
  filter: invert(1);
}

/* Iframe border reset */
.iframe-borderless {
  border: 0;
}

/* Modal hidden state */
.modal-hidden {
  display: none;
}

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-hover:hover {
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

/* Glassmorphism Card Styles */
.services__card.glass {
  background: rgba(255, 255, 255, 0.03); /* Extremely subtle bg for dark mode feel */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05); /* Very thin border */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* 2026 Hero: Perfect viewport fit */
.hero__section {
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.services__section {
  position: relative;
  z-index: 2;
  margin-top: 0;
  /* Override the massive section--padding (10rem top+bottom at 1200px+) */
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  background: var(--bg-dark);
}

/* Alignment and Life injection for Services */
.services__card {
  height: 100%;
  min-height: 380px; /* Force uniform height across different content lengths */
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  /* Remove the 380px floor — let cards be as short as content needs */
  min-height: unset !important;
  /* Override the 5rem 4rem 4rem padding at 1366px+ */
  padding: 1.6rem 1.8rem !important;
}

.services__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(56, 189, 248, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services__card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.1);
}

.services__card:hover::after {
  opacity: 1;
}

/* ── Services section: compact to fit ONE viewport ── */

/* Heading area: cut mb-50 (50px) to something reasonable */
.services__section .section__heading--topbar.mb-50 {
  margin-bottom: 2rem !important;
}

/* Section heading title smaller */
.services__section .section__heading--title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 0 !important;
}

/* Card icon: tighter */
.services__card .services__card--icon {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  margin-bottom: 1rem !important;
}
.services__card .services__card--icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Card title */
.services__card .services__card--title {
  font-size: clamp(1.4rem, 1.4vw, 1.7rem) !important;
  margin-bottom: 0.6rem !important;
  line-height: 1.3 !important;
}

/* Card description */
.services__card .services__card--desc {
  font-size: clamp(1.25rem, 1.1vw, 1.45rem) !important;
  line-height: 1.55 !important;
  margin-bottom: 0 !important;
  opacity: 0.85 !important;
}

/* Grid row gap: reduce from Bootstrap g-4 (1.5rem) */
.services__section .row.g-4 {
  --bs-gutter-y: 1.2rem !important;
  --bs-gutter-x: 1.4rem !important;
}


/* =========================================
   ABOUT SECTION LAYOUT FIX (SQUISH/OVERFLOW)
   ========================================= */
.about__section--inner {
  max-width: 100%;
}

.about__content, .about__thumbnail {
  min-width: 0; /* allows flex items to shrink below minimum content size */
}

.about__section--inner .section__heading--title {
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  line-height: 1.2 !important;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .about__content { width: calc(55% - 2rem) !important; }
  .about__thumbnail { width: calc(45% - 2rem) !important; }
}

@media only screen and (min-width: 992px) {
  .about__content { width: calc(50% - 2.5rem) !important; }
  .about__thumbnail { width: calc(50% - 2.5rem) !important; }
}

@media only screen and (min-width: 1200px) {
  .about__content { width: calc(50% - 5rem) !important; }
  .about__thumbnail { width: calc(50% - 5rem) !important; }
}

@media (max-width: 767px) {
  .about__section--inner {
    flex-direction: column !important;
    text-align: center;
  }
  .about__content, .about__thumbnail {
    width: 100% !important;
  }
  .about__thumbnail {
    order: -1;
    margin-bottom: 3.5rem;
  }
  .about__info--wrapper {
    justify-content: center;
  }
  .about__info--items {
    width: 100% !important;
    margin-bottom: 0.5rem;
  }
  .about__btn--group {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  .about__btn.mr-20 {
    margin-right: 0 !important;
  }
}

.section__heading--title {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.services__card--content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.services__card--desc {
  flex-grow: 1;
}

.services__card--icon {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services__card:hover .services__card--icon {
  transform: scale(1.2) rotate(5deg);
}

/* Gradient Stroke on Hover */
.services__card.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.services__card.glass:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15); /* Electric blue glow */
  border-color: rgba(56, 189, 248, 0.3);
}

.services__card.glass .services__card--title {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.services__card.glass .services__card--icon {
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 0 15px rgba(56, 189, 248, 0.1);
  animation: floating-icon 4s ease-in-out infinite alternate;
}

.services__card.glass .services__card--icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
  transition: transform 0.4s ease;
}

.services__card.glass:hover .services__card--icon {
  transform: translateY(-5px) rotate(5deg);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.services__card.glass:hover .services__card--icon img {
  transform: scale(1.15);
}

.glow-blue {
  filter: drop-shadow(0 0 12px #38bdf8) !important;
}

.hue-rotate-180 {
  filter: hue-rotate(180deg) drop-shadow(0 0 8px rgba(56, 189, 248, 0.4)) !important;
}

@keyframes floating-icon {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* Portfolio Interactions */
.portfolio__grid {
  display: block;
  width: 100%;
}

.element-item {
  width: 33.333%;
  padding: 15px;
  float: left;
}

@media (max-width: 991px) {
  .element-item {
    width: 50%;
  }
}

@media (max-width: 575px) {
  .element-item {
    width: 100%;
    padding: 10px 0;
  }
}

.portfolio-container-hover:hover .element-item {
  opacity: 0.4;
  filter: grayscale(1) blur(2px);
  transition: all 0.4s ease;
}

.portfolio-container-hover .element-item:hover {
  opacity: 1;
  filter: grayscale(0) blur(0);
  transform: scale(1.03);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

/* Feature AI Item (Span 2 columns) */
@media (min-width: 992px) {
  .element-item.featured-ai-item {
    width: 66.666% !important;
  }
}

/* AI Badge */
.ai-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--heading-font);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.8); }
}

/* AI Featured Image */
.featured-ai-img {
  height: 400px;
  object-fit: cover !important;
}

/* Futuristic HUD Modal */
.modal-content.glass-hud {
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.15);
  color: #fff;
}

.glass-hud .portfolio__modal--title {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .header__sticky {
    width: 95%;
    top: 1rem;
    padding: 0.5rem 0.8rem !important;
    height: auto !important;
  }

  .logo-text {
    font-size: 1.2rem !important;
  }
  
  .logo-monogram {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 0.8rem !important;
  }

  .offcanvas__header--menu__open--btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  /* Disable hover hover effects on touch devices to prevent sticky hover states */
  .services__card.glass:hover {
    transform: none;
    box-shadow: none;
  }
  
  .hero-ai-glass {
    width: 240px !important;
    height: 240px !important;
  }
}

/* Premium Typography & Readability */
.services__card.glass h3 {
  letter-spacing: -0.5px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.services__card.glass p {
  color: #e2e8f0; /* Lighter gray for better contrast on dark glass */
  font-weight: 400;
  line-height: 1.6;
}

.section__heading--subtitle {
  letter-spacing: 2px;
  font-weight: 600;
  opacity: 0.9;
}

/* Dark Mode Glass Polish */
.dark .services__card.glass {
  background: rgba(15, 23, 42, 0.6); /* Slightly more opaque */
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Floating Logos Positioning */
.logo__positioning {
  position: absolute;
  z-index: 2;
  animation: float-logo 6s ease-in-out infinite;
}
.logo__positioning.three {
  top: 10%;
  right: 0%;
  animation-delay: 1s;
}
.logo__positioning.four {
  bottom: 10%;
  left: 0%;
  animation-delay: 2s;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Social Share Icons Glow */
.social__share--link svg {
  transition: all 0.3s ease;
}
.social__share--link:hover svg {
  color: #38bdf8; /* Electric Blue */
  filter: drop-shadow(0 0 5px #38bdf8);
  transform: translateY(-3px);
}
.social__share--link[aria-label="Facebook"]:hover svg { color: #1877F2; filter: drop-shadow(0 0 5px #1877F2); }
.social__share--link[aria-label="LinkedIn"]:hover svg { color: #0077b5; filter: drop-shadow(0 0 5px #0077b5); }
.social__share--link[aria-label="Twitter/X"]:hover svg { color: #fff; filter: drop-shadow(0 0 5px #fff); }
.social__share--link[aria-label="Instagram"]:hover svg { color: #E1306C; filter: drop-shadow(0 0 5px #E1306C); }
.social__share--link[aria-label="GitHub"]:hover svg { color: #6e5494; filter: drop-shadow(0 0 5px #6e5494); }
.social__share--link[aria-label="Figma"]:hover svg { color: #F24E1E; filter: drop-shadow(0 0 5px #F24E1E); }

.hero__content--subtitle2 {
    font-weight: 500;
}

/* =========================================
   SPRINT 4 EXTRA: PREMIUM HEADER UPGRADE
   ========================================= */

/* 1. floating Command Center State (Always Floating) */
.header__sticky.sticky, 
.header__sticky {
    top: 1rem !important; /* Always floating from top */
    width: 95% !important;
    max-width: 1200px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.7) !important; /* Deep Premium Dark */
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    will-change: transform, backdrop-filter;
    transform: translateZ(0); /* Hardware accelerate blur */
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important; /* Top Light Edge */
    margin: 0 auto;
    left: 0; 
    right: 0;
}

/* 2. Premium Nav Links */
.header__menu--link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header__menu--link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: linear-gradient(90deg, #38bdf8, #f472b6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.header__menu--link:hover::after {
    width: 80%;
}

.header__menu--link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* 3. Button Polish: Neon Gradient */
.primary__btn, .download__btn {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

.primary__btn::before, .download__btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #f472b6 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.primary__btn:hover::before, .download__btn:hover::before {
    opacity: 1;
}

.primary__btn:hover, .download__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.glass-hud .portfolio__modal--info--text {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.glass-hud .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.glass-hud .portfolio__modal--info__icon {
  color: #38bdf8;
}

/* Hero Section Styles */
.neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

.hero-ai-glass {
  border-radius: 50%;
  width: 450px;
  height: 450px;
  object-fit: cover;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.4);
  animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 50px rgba(56, 189, 248, 0.4); }
  100% { box-shadow: 0 0 70px rgba(238, 95, 56, 0.4); filter: brightness(1.1); }
}

/* Technical Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-tech {
  font-size: 0.8rem;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-family: var(--heading-font);
}

/* Holographic Skills Bar */
.skills__field.holographic {
  background: linear-gradient(90deg, 
    var(--primary-color) 0%, 
    var(--secondary-color2) 50%, 
    var(--primary-color) 100%
  );
  background-size: 200% 100%;
  animation: hologram-flow 3s linear infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  position: relative;
  height: 6px;
  border-radius: 3px;
  margin-top: 5px;
}

.skills__field.holographic::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: skewX(-20deg) translateX(-150%);
  animation: shimmer 2s infinite;
}

@keyframes hologram-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes shimmer {
  0% { transform: skewX(-20deg) translateX(-150%); }
  100% { transform: skewX(-20deg) translateX(150%); }
}
.services__card.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* 4. Experience Cards: Premium Glass */
.resume__content {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.resume__content:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.resume__content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(to bottom, #38bdf8, #f472b6);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.resume__content:hover::before {
    opacity: 1;
}

/* 5. Tech Pills: Expensive Look */
.badge-tech {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    margin: 0.3rem;
    border-radius: 50px;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif !important;
}

.badge-tech:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Healthcare Highlight Badges */
.payer-provider-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  vertical-align: middle;
}

.badge-highlight {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Ensure title handles the badge well */
.resume__content--title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.5rem;
}

/* 6. Typography Refinement */
.hero__content--title {
    letter-spacing: -1px;
    line-height: 1.2 !important;
}

.section__heading--title {
    letter-spacing: -0.5px;
}

/* Mobile Header Fix for Small Screens */
@media (max-width: 480px) {
    .header__sticky.sticky, 
    .header__sticky {
        width: 92% !important;
        padding: 0 1rem !important;
    }
}

/* =========================================
   SPRINT 4.5: FUTURISTIC CYBERPUNK UPGRADE
   ========================================= */

/* 1. Services: The Hologram Cards */
.services__card.glass {
  background: rgba(10, 10, 18, 0.6) !important; /* Deep Void Dark */
  border: 1px solid rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services__card.glass:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 
    0 0 30px rgba(56, 189, 248, 0.2),
    inset 0 0 20px rgba(56, 189, 248, 0.05); /* Internal Glow */
}

/* The "Scanning" Border Effect */
.services__card.glass::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  animation: scan-line 3s linear infinite;
  opacity: 0;
}
.services__card.glass:hover::after {
  opacity: 1;
}

@keyframes scan-line {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Futuristic Titles */
.services__card--title {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
  background: -webkit-linear-gradient(45deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services__card:hover .services__card--title {
  background: -webkit-linear-gradient(45deg, #fff, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

/* Icon Containers: Glowing Orbs */
.services__card--icon {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.services__card:hover .services__card--icon {
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transform: rotateY(180deg);
  transition: transform 0.6s ease;
}

/* 2. "Hire Me" Button: The Cyber Switch */
.about__btn.primary__btn {
  background: transparent !important;
  border: 1px solid #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2), inset 0 0 0 rgba(56, 189, 248, 0);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.about__btn.primary__btn:hover {
  color: #0f172a !important;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6), inset 0 0 20px rgba(56, 189, 248, 0.4);
  text-shadow: none;
  border-color: #38bdf8 !important;
}

.about__btn.primary__btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background: #38bdf8;
  z-index: -1;
  transition: width 0.3s ease;
}
.about__btn.primary__btn:hover::before {
  width: 100%;
}

/* 3. Global Section Titles */
.section__heading--subtitle {
  color: #38bdf8 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.section__heading--title {
   font-family: 'Space Grotesk', sans-serif;
   font-weight: 700;
}

/* =========================================
   SPRINT 6: THE CYBER PORTAL (ABOUT IMAGE)
   ========================================= */

/* 1. The Image Container (Holographic Frame) */
.about__thumbnail--media {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3); /* Thin cyber border */
  overflow: hidden;
  transition: all 0.5s ease;
}

/* Neon Glow behind the image */
.about__thumbnail--media::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: linear-gradient(45deg, #38bdf8, #f472b6, #38bdf8);
  z-index: -1;
  filter: blur(20px);
  opacity: 0.5;
  animation: portal-spin 8s linear infinite;
}

@keyframes portal-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.about__thumbnail--media img {
  border-radius: 20px;
  position: relative;
  z-index: 2;
  filter: contrast(1.1) brightness(1.1);
  transition: transform 0.5s ease;
}

.about__thumbnail--media:hover img {
  transform: scale(1.05);
}

/* 2. The Experience Badge (Futuristic Seal) */
.about__experience {
  position: absolute;
  bottom: -3rem;
  right: -2rem;
  background: rgba(15, 23, 42, 0.85); /* Dark Glass */
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(56, 189, 248, 0.2),
    inset 0 0 10px rgba(56, 189, 248, 0.1);
  z-index: 3;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: float-badge 6s ease-in-out infinite;
}

/* Rotating Ring around badge */
.about__experience::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.3);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.about__experience--title {
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(to bottom, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.about__experience--subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  font-weight: 600;
}

/* =========================================
   SPRINT 5: THE FLOW & INFINITE STREAM
   ========================================= */

/* 1. Infinite Tech Stream */
.tech-stream-wrapper {
  background: #0f172a; /* Match body bg */
  overflow: hidden;
  padding: 4rem 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: -2rem; /* Pull up to reduce gap */
}

/* Vignette Mask for fade out edges */
.tech-stream-wrapper::before,
.tech-stream-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15rem;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.tech-stream-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0f172a, transparent);
}
.tech-stream-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0f172a, transparent);
}

.tech-stream-track {
  display: flex;
  width: calc(30rem * 12); /* Approximate width calculation */
  animation: scroll-stream 40s linear infinite;
  gap: 6rem;
}

.tech-stream-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.tech-stream-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tech-stream-item img {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.tech-stream-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  .tech-stream-track {
    gap: 3rem !important;
  }
  .tech-stream-item img {
    height: 2.2rem !important;
  }
  .tech-stream-item span {
    font-size: 1.1rem !important;
  }
}


@keyframes scroll-stream {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-30rem * 6)); } /* Adjust based on set count */
}

/* 2. ZigZag Fix (Vertical Rhythm) */
.about__section.section--padding {
  padding-bottom: 2rem !important; /* Reduce bottom padding */
}

.resume__section {
  padding-top: 4rem !important;
}

/* 3. Smooth Entrance (Auto-reveal with Staggered Delay) */
.section__heading {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

.about__content {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.services__card {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.portfolio__card {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.resume__items {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.skills__items {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

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

/* =========================================
   TEXT LOGO STYLES
   ========================================= */

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.logo-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a; /* Default: dark text for light mode */
  letter-spacing: -0.5px;
}

.logo-accent {
  color: #38bdf8;
  margin-left: 0.25rem;
}

/* Dark Mode Override - html element gets .dark class */
.dark .logo-text {
  color: #fff;
}

/* =========================================
   DESIGN CLEANUP - PERFORMANCE & READABILITY
   ========================================= */

/* Fix Skills Section - Percentage badges overlapping text */
.skills__section {
  overflow: hidden; /* Contain all child elements */
}

.skills__step {
  overflow: hidden;
}

.skills__items {
  overflow: hidden;
  position: relative;
}

.skills__items > div:first-child {
  position: relative;
  padding-right: 70px; /* Make room for the badge */
}

.skills__items > div:first-child > span:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading-color);
  white-space: nowrap;
  overflow: visible; /* Prevent text cutoff */
}

.skills__field {
  position: relative !important;
  overflow: hidden;
}

.skills__count {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Better Typography - Bolder & More Readable */
.hero__content--title {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -1px;
  line-height: 1.1 !important;
}

.hero__content--text {
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  max-width: 600px;
}

.section__title {
  font-weight: 800 !important;
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
  letter-spacing: -0.5px;
}

/* Clean Service Cards - Remove heavy glass effects */
.services__card {
  background: rgba(30, 41, 59, 0.8) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.services__card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* Light Mode Service Cards */
:root:not(.dark) .services__card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

:root:not(.dark) .services__card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Remove Heavy Animations - Keep it Simple */
.services__card::before,
.services__card::after {
  display: none !important;
}

/* Portfolio Cards - Simpler hover */
.portfolio__card {
  transition: transform 0.3s ease !important;
}

.portfolio__card:hover {
  transform: translateY(-3px) !important;
}

/* Disable blur filters on portfolio hover */
.portfolio-container-hover:hover .element-item {
  filter: none !important;
  opacity: 1 !important;
}

/* Remove marquee animation (tech stream) - static is faster */
.tech-stream-track {
  animation: none !important;
}

/* Clean sticky header - simpler blur */
.header__sticky {
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  background: rgba(15, 23, 42, 0.85) !important;
}

:root:not(.dark) .header__sticky {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* Remove neural particles canvas leftover */
#neural-bg,
#neural-canvas,
.neural-container,
.neural-canvas,
canvas[id*="neural"] {
  display: none !important;
  visibility: hidden !important;
}

/* =========================================
   PREMIUM 2026 AI DEVELOPER PORTFOLIO
   ========================================= */

/* Animated Mesh Gradient Background */
.hero__section--bg,
.dark .hero__section--bg {
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  background-color: var(--body-background-color);
  /* background-position animations cause severe scroll lag, use static or opacity fade instead */
}

/* Hero AI Glass - Restored Premium Glow */
.hero-ai-glass {
  animation: 
    celestialRotation 60s linear infinite !important;
  box-shadow: 
    0 0 60px rgba(56, 189, 248, 0.3),
    0 0 120px rgba(129, 140, 248, 0.15) !important;
  will-change: transform;
  transform: translateZ(0); /* Hardware accelerate component */
}

@keyframes celestialRotation {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(-360deg) translateZ(0); }
}

@keyframes subtleGlow {
  0% { 
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.3), 0 0 120px rgba(129, 140, 248, 0.15);
    filter: brightness(1);
  }
  100% { 
    box-shadow: 0 0 80px rgba(56, 189, 248, 0.4), 0 0 150px rgba(129, 140, 248, 0.2);
    filter: brightness(1.05);
  }
}

/* Floating Tech Icons Animation */
.logo__positioning {
  animation: floatIcon 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

.logo__positioning.one { animation-delay: 0s; }
.logo__positioning.two { animation-delay: 1.5s; }
.logo__positioning.three { animation-delay: 3s; }
.logo__positioning.four { animation-delay: 4.5s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) translateZ(0); }
  50% { transform: translateY(-10px) translateZ(0); }
}

/* 3D Card Tilt on Hover */
.services__card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.1) !important;
}

.services__card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

/* AI Accent - Top Border Glow on Cards */
.services__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services__card:hover::after {
  opacity: 1;
}

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

/* Holographic Skill Bars */
.skills__field.holographic::after {
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8) !important;
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* AI Badge Styling */
.ai-highlight {
  position: relative;
}

.ai-highlight::before {
  content: '🤖';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

/* Light Mode Adaptations */
:root:not(.dark) .hero__section--bg {
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(129, 140, 248, 0.08) 0%, transparent 50%);
  background-color: #f8fafc;
}

:root:not(.dark) .services__card {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

:root:not(.dark) .services__card:hover {
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 30px rgba(56, 189, 248, 0.1) !important;
}

/* About Section - Subtle Gradient */
.about__section--bg {
  background: 
    radial-gradient(ellipse at 80% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%) !important;
}

/* Contact Section */
.contact__section--bg {
  background: var(--body-background-color) !important;
}

/* Footer */
.footer__bg {
  background: var(--body-background-color) !important;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

/* Hide neural canvas (keep disabled) */
#neural-canvas,
.neural-canvas {
  display: none !important;
}

/* Premium Typography for Hero */
.hero__content--title {
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

/* Stats/Metrics Styling (if added) */
.stats-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* =========================================
   About Section Description
   ========================================= */
.about__description {
  font-size: 1.1rem;
  color: var(--text-paragraph);
  line-height: 1.7;
  margin-top: 1rem;
}

.about__description.mt-15 {
  margin-top: 0.9375rem;
}

/* =========================================
   LAYER 1: COSMIC BACKGROUND
   ========================================= */
.hero__section--bg {
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 58, 138, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(15, 23, 42, 1) 0%, #0a0a1a 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle nebula glow points */
.hero__section--bg::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero__section--bg::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* =========================================
   LAYER 4: ORBITING TECH RING
   ========================================= */
.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}

/* Visible orbit ring track */
.tech-orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(56, 189, 248, 0.2);
  border-radius: 50%;
  animation: orbit-pulse 4s ease-in-out infinite;
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.orbit-ring {
  position: relative;
  width: 100%;
  height: 100%;
  animation: orbit-spin 40s linear infinite;
}

.orbit-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 
    0 0 20px rgba(56, 189, 248, 0.15),
    inset 0 0 10px rgba(56, 189, 248, 0.05);
  transition: all 0.3s ease;
  pointer-events: auto;
  will-change: transform;
  overflow: hidden;
}

/* Position each icon around the 360° orbit */
.orbit-icon:nth-child(1) { top: 0; left: 50%; margin-left: -32px; }
.orbit-icon:nth-child(2) { top: 25%; right: 0; margin-right: -32px; }
.orbit-icon:nth-child(3) { bottom: 25%; right: 0; margin-right: -32px; }
.orbit-icon:nth-child(4) { bottom: 0; left: 50%; margin-left: -32px; }
.orbit-icon:nth-child(5) { bottom: 25%; left: 0; margin-left: -32px; }
.orbit-icon:nth-child(6) { top: 25%; left: 0; margin-left: -32px; }

.orbit-icon img {
  width: 48px;
  height: 48px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}


.orbit-icon:hover {
  transform: scale(1.2);
  border-color: #38bdf8;
  box-shadow: 
    0 0 30px rgba(56, 189, 248, 0.5),
    inset 0 0 15px rgba(56, 189, 248, 0.2);
  z-index: 10;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }  /* clockwise */
}

/* Counter-rotate icons to keep them upright */
.orbit-ring .orbit-icon {
  animation: counter-spin 40s linear infinite;
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); } /* counter-rotate to keep icons upright */
}

/* Mobile: Smaller orbit */
@media (max-width: 768px) {
  .tech-orbit {
    width: 380px;
    height: 380px;
    margin-left: -190px;
    margin-top: -190px;
  }
  
  .orbit-icon {
    width: 38px;
    height: 38px;
    padding: 6px;
  }
  
  .orbit-icon:nth-child(1) { margin-left: -19px; }
  .orbit-icon:nth-child(2) { margin-right: -19px; }
  .orbit-icon:nth-child(3) { margin-right: -19px; }
  .orbit-icon:nth-child(4) { margin-left: -19px; }
  .orbit-icon:nth-child(5) { margin-left: -19px; }
  .orbit-icon:nth-child(6) { margin-left: -19px; }
}

/* Visible orbit ring on small screens — scaled down */
@media (max-width: 480px) {
  .tech-orbit {
    width: 280px !important;
    height: 280px !important;
    margin-left: -140px !important;
    margin-top: -140px !important;
    display: flex !important;
  }
  .orbit-icon {
    width: 30px !important;
    height: 30px !important;
    padding: 4px !important;
  }
  .orbit-icon img {
    width: 18px !important;
    height: 18px !important;
  }
  .orbit-icon:nth-child(1) { margin-left: -15px !important; }
  .orbit-icon:nth-child(2) { margin-right: -15px !important; }
  .orbit-icon:nth-child(3) { margin-right: -15px !important; }
  .orbit-icon:nth-child(4) { margin-left: -15px !important; }
  .orbit-icon:nth-child(5) { margin-left: -15px !important; }
  .orbit-icon:nth-child(6) { margin-left: -15px !important; }
}


/* =========================================
   Cyberpunk / Futuristic Command Center
   ========================================= */

/* Work Life & Style Research Auto-Scroll */
.work-life__section {
  background: var(--body-background-color);
  overflow: hidden;
  padding: 6rem 0;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 100vw;
}

.work-life-container {
  width: 100vw;
  max-width: 100%;
  overflow-x: hidden;
}

.work-life-stream-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

.work-life-stream-wrapper::before,
.work-life-stream-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15rem;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.work-life-stream-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--body-background-color), transparent);
}

.work-life-stream-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--body-background-color), transparent);
}

.work-life-stream-track {
  display: flex;
  width: max-content;
  /* Duration depends on number of images */
  animation: scroll-work-life 90s linear infinite; /* Increased duration for smoother scroll */
  gap: 2rem;
  padding: 1rem 0;
  will-change: transform; /* Promote to own layer for GPU acceleration */
}

/* Pause on hover so users can see the images */
.work-life-stream-track:hover {
  animation-play-state: paused;
}

.work-life-item {
  width: 320px;
  height: 240px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  will-change: transform; /* Added for smoother hover effects */
  backface-visibility: hidden; /* Prevent flickering */
}

.work-life-item:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
  z-index: 10;
}

.work-life-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease, transform 0.5s ease;
  filter: grayscale(60%) brightness(0.8);
}

.work-life-item:hover img {
  filter: grayscale(0%) brightness(1.1);
  transform: scale(1.1);
}

@keyframes scroll-work-life {
  0% { transform: translateX(0); }
  /* -50% shifts halfway which exactly matches the start of the duplicated set */
  100% { transform: translateX(calc(-50% - 1rem)); }
}


/* 1. Card Container — Fixed Aspect Ratio + Cyberpunk Border */
.portfolio__card {
  position: relative;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(56, 189, 248, 0.08);
  background: rgba(8, 12, 24, 0.7);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio__card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0) 0%,
    rgba(56, 189, 248, 0.08) 50%,
    rgba(139, 92, 246, 0) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  transition: all 0.45s ease;
}

/* Scanline overlay for cyberpunk feel */
.portfolio__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(56, 189, 248, 0.015) 2px,
    rgba(56, 189, 248, 0.015) 4px
  );
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio__image--card {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.portfolio__image--card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

/* 2. Always-Visible Glass Title Bar */
.portfolio__content {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  opacity: 1 !important;
  text-align: left !important;
  padding: 1.4rem 1.6rem !important;
  background: linear-gradient(
    to top,
    rgba(6, 8, 18, 0.97) 0%,
    rgba(6, 8, 18, 0.8) 50%,
    rgba(6, 8, 18, 0.3) 80%,
    transparent 100%
  );
  z-index: 5 !important;
  transition: all 0.4s ease !important;
}

.portfolio__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem !important;
  line-height: 1.3 !important;
  font-weight: 700;
  margin-bottom: 0 !important;
  letter-spacing: -0.3px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.portfolio__subtitle {
  font-size: 1.15rem;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 400;
  margin-top: 0.3rem;
  display: block;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 3. Category Badge — Neon Pill */
.portfolio__category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  background: rgba(6, 8, 18, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  color: rgba(148, 163, 184, 0.8);
  transition: all 0.35s ease;
}

/* 4. Hover: Electric Cyberpunk Glow */
.portfolio__card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.15),
    0 0 60px rgba(56, 189, 248, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(56, 189, 248, 0.03);
  transform: translateY(-6px);
}

.portfolio__card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.3) 0%,
    rgba(139, 92, 246, 0.2) 50%,
    rgba(56, 189, 248, 0.3) 100%
  ) !important;
}

.portfolio__card:hover::after {
  opacity: 1;
}

.portfolio__card:hover .portfolio__image--card img {
  transform: scale(1.1) !important;
  filter: brightness(1.15) saturate(1.1);
}

.portfolio__card:hover .portfolio__content {
  background: linear-gradient(
    to top,
    rgba(6, 8, 18, 1) 0%,
    rgba(6, 8, 18, 0.9) 50%,
    rgba(6, 8, 18, 0.4) 80%,
    transparent 100%
  ) !important;
}

.portfolio__card:hover .portfolio__title {
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.portfolio__card:hover .portfolio__subtitle {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.portfolio__card:hover .portfolio__category-badge {
  border-color: rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2), inset 0 0 10px rgba(56, 189, 248, 0.05);
  background: rgba(6, 8, 18, 0.9);
}

/* 5. Hide the old zoom icon */
.portfolio__zoom {
  display: none !important;
}

/* 6. Override the dim-all-other-cards effect */
.portfolio-container-hover:hover .element-item {
  opacity: 1 !important;
  filter: none !important;
}

.portfolio-container-hover .element-item:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* 7. Grid Sizing Override */
.portfolio__grid {
  display: grid !important;
  gap: 24px !important;
}

.element-item {
  width: 100% !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 8. Responsive */
@media (max-width: 768px) {
  .portfolio__grid {
    width: 100% !important;
  }

  .portfolio__title {
    font-size: 1.3rem !important;
  }

  .portfolio__subtitle {
    font-size: 1rem;
  }
  
  .portfolio__image--card img {
    height: 250px !important;
    object-fit: cover !important;
  }
}

@media (max-width: 575px) {
  .filters-button-group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.6rem !important;
  }
  .filters__button--items {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .element-item {
    width: 50% !important;
  }
}

@media (min-width: 1200px) {
  .element-item {
    width: 33.333% !important;
  }
}

/* 9. Filter Buttons — Cyberpunk Pill Style */
.filters__button--items {
  border-radius: 20px !important;
  padding: 0.5rem 1.6rem !important;
  border: 1px solid rgba(56, 189, 248, 0.08) !important;
  background: rgba(6, 8, 18, 0.5) !important;
  color: rgba(148, 163, 184, 0.8) !important;
  transition: all 0.35s ease;
  font-size: 1.25rem !important;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.filters__button--items.is-checked {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12), inset 0 0 15px rgba(56, 189, 248, 0.05);
}

.filters__button--items:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.08);
}

/* 10. AI Badge Enhancement */
.ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  animation: ai-pulse 2.5s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.15); }
  50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.3), 0 0 8px rgba(56, 189, 248, 0.15); }
}


/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Fallback for blocked JS: Show content by default if no script adds classes */
.no-js .reveal-on-scroll {
  opacity: 1;
  transform: none;
}

/* Premium Scrollbar (AI Engineering Aesthetic) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  border: 2px solid var(--bg-dark);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Global Color Correction (Orange -> AI Blue) */
.text__secondary, 
.section__heading--subtitle, 
.color-secondary,
.social__share--link:hover,
.scroll__top--btn,
.services__card--icon {
  color: var(--primary-color) !important;
}

.primary__btn,
.scroll__top--btn {
  background: var(--primary-color) !important;
  color: #0f172a !important; /* Deep contrast text for AI Blue buttons */
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2) !important;
}

.primary__btn:hover {
  background: #fff !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4) !important;
}

/* Glowing Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* Phase 2: Cosmic Background (Deep Space) */
body {
  background: #050b18 !important; /* Near black foundation */
  position: relative;
}

.cosmic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(15, 23, 42, 0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 41, 59, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #050b18 0%, #0f172a 100%);
  z-index: -3;
  pointer-events: none;
}

.nebula-point {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -2;
  animation: nebula-drift 30s infinite alternate ease-in-out;
}

.nebula-point--1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.nebula-point--2 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  bottom: 0%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes nebula-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Phase 3: Star Field 🌟 */
.star-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkling 5s infinite ease-in-out;
}

@keyframes twinkling {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* Phase 4: Profile Enhancement (Cosmic Halo) 🛸 */
.hero__thumbnail {
  position: relative;
  z-index: 1;
}

.hero__thumbnail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: halo-pulse 4s infinite alternate ease-in-out;
}

.cosmic-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.cosmic-orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-color);
}

.orbit-1 { animation: rotate 20s linear infinite; }
.orbit-2 { 
  width: 160%; 
  height: 160%; 
  animation: rotate 35s linear infinite reverse;
  border-color: rgba(139, 92, 246, 0.05);
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes halo-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Premium Cursor Glow */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: screen;
}

.cursor-hover {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
}

/* Section Transitions */
.section-divider {
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.05));
  margin-top: -100px;
  pointer-events: none;
}

/* Background Animated Blobs (Injection of Life) */
.bg-blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: blob-float 20s infinite alternate ease-in-out;
}

.bg-blob-1 { top: -10%; left: -10%; animation-delay: 0s; }
.bg-blob-2 { bottom: 10%; right: -5%; animation-delay: -5s; background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%); }
.bg-blob-3 { top: 40%; left: 30%; animation-delay: -10s; width: 300px; height: 300px; opacity: 0.5; }

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(100px, 50px) scale(1.1); }
  66% { transform: translate(-50px, 150px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Impact Metrics Grid */
.impact-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  border-left: 2px solid var(--text-secondary);
  padding-left: 20px;
}

@media (max-width: 767px) {
  .impact-metrics-grid {
    border-left: none;
    padding-left: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 2rem;
  }
}

.impact-item {
  display: flex;
  flex-direction: column;
}

.impact-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1;
}

.impact-label {
  font-size: 0.8rem;
  color: var(--text-paragraph);
  margin-top: 5px;
}

/* Hero Spotlight Overlay */
.hero-spotlight {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 15px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: inline-block;
  max-width: 100%;
}

.spotlight-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 5px;
}

.spotlight-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-white);
  margin: 0;
}

/* Skill Category Layout */
.skills-category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.skills-category-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--text-secondary);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-paragraph);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-secondary);
  transform: translateY(-2px);
}

.skill-tag.holographic {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.2);
  color: var(--text-secondary);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.1);
}

/* Portfolio Layout Fixes */
.element-item {
  width: 100%; /* Mobile */
  padding: 15px;
}

@media only screen and (min-width: 768px) {
  .element-item {
    width: 50%; /* Tablet */
  }
}

@media only screen and (min-width: 992px) {
  .element-item {
    width: 33.333%; /* Desktop */
  }
}

.portfolio__card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.portfolio__grid {
  width: 100% !important;
  max-width: 100% !important;
  display: block; /* Isotope handles position */
}


/* Contact Form HUD-ification */
.contact__input--field {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-white) !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.contact__input--field:focus {
  border-color: var(--primary-color) !important;
  background: rgba(56, 189, 248, 0.05) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.contact__info--icon {
  background: rgba(56, 189, 248, 0.1) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
}

/* Social Link Holographic Lift */
.social__share--link {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.social__share--link:hover {
  transform: translateY(-5px) scale(1.2) !important;
  color: var(--primary-color) !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6)) !important;
}

@media (max-width: 767px) {
  .resume__content {
    padding: 1.8rem !important;
  }
  .resume__content--title {
    font-size: 1.35rem !important;
    line-height: 1.4 !important;
  }
  .resume__content--subtitle {
    font-size: 0.9rem !important;
    padding: 0.3rem 0.8rem !important;
    margin-bottom: 1rem !important;
    display: inline-block !important;
  }
  .tech-tags {
    gap: 0.4rem !important;
  }
  .badge-tech {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.85rem !important;
  }
  
  .skills-category-title {
    font-size: 1.3rem !important;
    text-align: center;
    display: block !important;
    width: 100%;
  }
  .skills-category-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .skills-tags {
    justify-content: center !important;
    gap: 0.6rem !important;
  }
  .skill-tag {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.8rem !important;
  }
}


/* =====================================================
   HERO — PREMIUM MNC-READY LAYOUT (DEFINITIVE)
   Goal: Everything visible in one viewport, no scroll.
   Designed for 1280–1920px desktop, scales down cleanly.
   ===================================================== */

/* SECTION: Full viewport, flex container */
.hero__section {
  min-height: -webkit-fill-available !important; /* iOS Safari fix */
  min-height: 100vh !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  z-index: 1 !important;
  /* No overflow:hidden — it clips orbit ring icons */
}

/* INNER: Row layout, account for fixed header */
.hero__section--inner {
  min-height: 100vh !important;
  padding: 80px 2rem 32px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 2rem !important;          /* breathing room between orbit and text */
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── LEFT COLUMN: Image + Orbit ── */
.hero__thumbnail {
  position: relative !important;
  width: 44% !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 60px !important;          /* safe zone so icons don’t clip at edges */
  z-index: 5 !important;
  overflow: visible !important;
}

/* Hero sphere image */
.hero__thumbnail--media.hero-ai-glass {
  width: clamp(200px, 22vw, 310px) !important;  /* slightly larger for better presence */
  height: auto !important;
  border-radius: 50% !important;
  position: relative !important;
  z-index: 6 !important;
  display: block !important;
}

/* ── ORBIT RING: Contained within thumbnail column ── */
.tech-orbit {
  width: clamp(290px, 32vw, 400px) !important;   /* slightly larger — fills the left column better */
  height: clamp(290px, 32vw, 400px) !important;
  margin-left: calc(-1 * clamp(290px, 32vw, 400px) / 2) !important;
  margin-top: calc(-1 * clamp(290px, 32vw, 400px) / 2) !important;
  z-index: 6 !important;
}

/* Orbit icons: proportional to ring, always on top */
.orbit-icon {
  width: clamp(38px, 3.6vw, 50px) !important;
  height: clamp(38px, 3.6vw, 50px) !important;
  padding: 7px !important;
  z-index: 10 !important;
  position: absolute !important;
}
.orbit-icon img {
  width: 100% !important;
  height: 100% !important;
}
.orbit-icon:nth-child(1) { margin-left: calc(-1 * clamp(38px, 3.6vw, 50px) / 2) !important; }
.orbit-icon:nth-child(2) { margin-right: calc(-1 * clamp(38px, 3.6vw, 50px) / 2) !important; }
.orbit-icon:nth-child(3) { margin-right: calc(-1 * clamp(38px, 3.6vw, 50px) / 2) !important; }
.orbit-icon:nth-child(4) { margin-left: calc(-1 * clamp(38px, 3.6vw, 50px) / 2) !important; }
.orbit-icon:nth-child(5) { margin-left: calc(-1 * clamp(38px, 3.6vw, 50px) / 2) !important; }
.orbit-icon:nth-child(6) { margin-left: calc(-1 * clamp(38px, 3.6vw, 50px) / 2) !important; }

/* ── RIGHT COLUMN: Content ── */
.hero__content {
  width: 56% !important;
  min-width: 0 !important;
  padding: 0 3rem 0 1rem !important;  /* left padding puts gap between orbit & text */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  z-index: 2 !important;              /* below thumbnail z-index:5 */
}

@media (max-width: 1400px) {
  .hero__content { padding: 0 2rem 0 0.5rem !important; }
}
@media (max-width: 1200px) {
  .hero__content { padding: 0 1rem 0 0.5rem !important; }
}

/* ── TYPOGRAPHY: Premium scale ── */

/* "HELLO I'M" */
.hero__content--subtitle {
  font-size: 1.3rem !important;
  line-height: 1.2 !important;
  font-style: italic !important;
  letter-spacing: 0.15em !important;
  margin-bottom: 0.6rem !important;
  display: block !important;
}

/* "Vasni Martin" — the hero name, must be BOLD & large */
.hero__content--title {
  font-size: clamp(4rem, 4.5vw, 5.8rem) !important;
  line-height: 1.0 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}

/* Role title gradient */
.hero__content--subtitle2 {
  font-size: clamp(1.4rem, 1.55vw, 2rem) !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  margin-bottom: 0.6rem !important;
}

/* Specialist line */
.hero__content--subtitle3 {
  font-size: clamp(1.2rem, 1.1vw, 1.5rem) !important;
  line-height: 1.3 !important;
  opacity: 0.7 !important;
  font-weight: 400 !important;
  margin-bottom: 1rem !important;
}

/* Description paragraph */
.hero__content--desc {
  font-size: clamp(1.3rem, 1.15vw, 1.6rem) !important;
  line-height: 1.65 !important;
  margin-bottom: 1rem !important;
  opacity: 0.9 !important;
}

/* Crush the huge mb-* utility margins inside hero only */
.hero__content .mb-10 { margin-bottom: 0.6rem !important; }
.hero__content .mb-15 { margin-bottom: 0.6rem !important; }
.hero__content .mb-20 { margin-bottom: 0.6rem !important; }
.hero__content .mb-30 { margin-bottom: 1rem !important; }
.hero__content .mt-20 { margin-top: 0.6rem !important; }

/* ── SPOTLIGHT CARD: "Currently Building" ── */
.hero-spotlight {
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 10px 16px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 10px !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
  max-width: min(380px, 90%) !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.08) !important;
}

.spotlight-badge {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  color: #38bdf8 !important;
  text-transform: uppercase !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.spotlight-text {
  font-size: 1.25rem !important;
  line-height: 1.45 !important;
  color: rgba(226, 232, 240, 0.92) !important;
  margin: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
}

/* ── CTA HIGHLIGHT TEXT ── */
.cta-highlight {
  display: block !important;
  font-size: clamp(1.2rem, 1.1vw, 1.5rem) !important;
  color: #38bdf8 !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  margin-top: 0.2rem !important;
  margin-bottom: 1.4rem !important;
}

/* ── FOOTER ROW: Button + Social ── */
.hero__content--footer {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2rem !important;
  margin-top: 0 !important;
}

.social__share {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 1rem !important;
}

.social__share--wrapper {
  display: flex !important;
  gap: 0.7rem !important;
  flex-wrap: nowrap !important;
}

.social__share--title {
  font-size: 1.5rem !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
}

/* ── HIDE SR-ONLY ── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── TABLET ≤ 991px ── */
@media (max-width: 991px) {
  .hero__section--inner {
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 9rem !important;
    padding-bottom: 4rem !important;
    min-height: unset !important;
    gap: 3rem !important;
  }
  .hero__thumbnail {
    width: 100% !important;
    padding: 55px !important;
  }
  .hero__content {
    width: 100% !important;
    padding: 0 2rem 0 !important;
    text-align: center !important;
  }
  .hero-spotlight,
  .hero__content--footer {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }
  .social__share--wrapper {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

/* ── MOBILE ≤ 575px ── */
@media (max-width: 575px) {
  .hero__section--inner {
    padding-top: 7rem !important; /* closer to top on mobile */
    gap: 2rem !important;
  }
  .hero__thumbnail {
    padding: 40px !important;
  }
  .tech-orbit {
    width: 300px !important;
    height: 300px !important;
    margin-left: -150px !important;
    margin-top: -150px !important;
  }
  .hero__thumbnail--media.hero-ai-glass {
    width: 180px !important;
  }
  .orbit-icon {
    width: 36px !important;
    height: 36px !important;
    padding: 6px !important;
  }
  .orbit-icon:nth-child(1) { margin-left: -18px !important; }
  .orbit-icon:nth-child(2) { margin-right: -18px !important; }
  .orbit-icon:nth-child(3) { margin-right: -18px !important; }
  .orbit-icon:nth-child(4) { margin-left: -18px !important; }
  .orbit-icon:nth-child(5) { margin-left: -18px !important; }
  .orbit-icon:nth-child(6) { margin-left: -18px !important; }

  .hero__content--title {
    font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    margin-bottom: 0.8rem !important;
  }
  .hero__content--subtitle2 {
    font-size: 1.1rem !important;
  }
  .hero__content--desc {
    font-size: 1rem !important;
    padding: 0 0.5rem;
  }
  .hero-spotlight {
    padding: 10px !important;
    width: 100% !important;
  }
  .spotlight-text {
    font-size: 1rem !important;
  }
  
  .hero__content--footer {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .social__share {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .social__share--title {
    font-size: 1.2rem !important;
  }
}

/* ── SCREEN-READER ONLY: visually hidden but accessible ── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* ── FINAL POLISH: CONTACT & FOOTER ── */
@media (max-width: 767px) {
  .contact__section .section__heading {
    text-align: center;
    margin-bottom: 3rem !important;
  }
  .contact__info--wrapper {
    margin-bottom: 3rem !important;
  }
  .footer__section {
    text-align: center !important;
    padding: 3rem 0 !important;
  }
  .footer__logo {
    margin: 0 auto 2rem !important;
  }
  .footer__social--wrapper {
    justify-content: center !important;
    margin-top: 1.5rem !important;
  }
  .footer__copyright--text {
    text-align: center !important;
    margin-top: 1rem !important;
  }
}

/* Global Overflow Protection */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative !important;
  -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
}

/* iPhone Safe Area support */
body {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.header__sticky {
  padding-top: calc(1rem + env(safe-area-inset-top, 0px)) !important;
}

.offcanvas__header {
  padding-top: env(safe-area-inset-top, 20px) !important;
  padding-bottom: env(safe-area-inset-bottom, 20px) !important;
}


