/*=============== PREMIUM ENHANCEMENTS - EXTRAORDINARY DESIGN ===============*/

/*=============== PREMIUM GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/*=============== PREMIUM CSS VARIABLES ===============*/
:root {
  /* Enhanced color system with premium gradients */
  --gradient-primary: linear-gradient(135deg,
    hsl(var(--first-hue), var(--sat), var(--lig)) 0%,
    hsl(calc(var(--first-hue) + 30), var(--sat), calc(var(--lig) + 10%)) 100%);

  --gradient-secondary: linear-gradient(135deg,
    hsl(calc(var(--first-hue) + 60), 85%, 60%) 0%,
    hsl(calc(var(--first-hue) + 90), 80%, 65%) 100%);

  --gradient-mesh: radial-gradient(at 40% 20%, hsla(calc(var(--first-hue) + 60), 100%, 70%, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(var(--first-hue), 100%, 60%, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(calc(var(--first-hue) - 30), 100%, 60%, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(calc(var(--first-hue) + 30), 100%, 60%, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(var(--first-hue), 100%, 50%, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(calc(var(--first-hue) + 60), 100%, 60%, 0.3) 0px, transparent 50%);

  /* Glass morphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Glow effects */
  --glow-primary: 0 0 20px hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
                  0 0 40px hsla(var(--first-hue), var(--sat), var(--lig), 0.3),
                  0 0 60px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);

  --glow-secondary: 0 0 30px hsla(calc(var(--first-hue) + 60), 85%, 60%, 0.6);

  /* Premium shadows */
  --shadow-elevation-low: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-elevation-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-elevation-high: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-elevation-extreme: 0 24px 64px rgba(0, 0, 0, 0.3);

  /* Enhanced typography */
  --font-display: 'Space Grotesk', sans-serif;
}

/*=============== PREMIUM LOADING ANIMATION ===============*/
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--body-color);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: var(--container-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  animation: loading-progress 2s ease-in-out forwards;
  box-shadow: var(--glow-primary);
}

@keyframes loading-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 20px currentColor);
  }
  50% {
    filter: brightness(1.3) drop-shadow(0 0 40px currentColor);
  }
}

/*=============== CUSTOM CURSOR ===============*/
.custom-cursor {
  width: 20px;
  height: 20px;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: difference;
}

.custom-cursor::before {
  content: '⭐';
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate-star 3s linear infinite;
}

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

.custom-cursor.hover {
  transform: scale(1.5);
  opacity: 1;
}

.custom-cursor.hover::before {
  animation: rotate-star 0.5s linear infinite, pulse-star 0.5s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.cursor-trail {
  width: 12px;
  height: 12px;
  position: fixed;
  pointer-events: none;
  opacity: 0.6;
  z-index: 9998;
  transition: transform 0.3s ease;
}

.cursor-trail::before {
  content: '✨';
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*=============== ENHANCED BODY & BACKGROUND ===============*/
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-mesh);
  opacity: 0.4;
  z-index: -1;
  animation: mesh-flow 20s ease-in-out infinite;
  pointer-events: none;
}

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

/*=============== GLASSMORPHISM NAVIGATION ===============*/
.nav__menu {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-elevation-high) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__menu:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation-extreme) !important;
}

.nav__link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: left 0.3s ease;
  border-radius: 5rem;
}

.nav__link:hover::before {
  left: 0;
}

.active-link {
  background: var(--gradient-primary) !important;
  box-shadow: var(--glow-primary) !important;
}

/*=============== HERO SECTION ENHANCEMENTS ===============*/
.home__container {
  position: relative;
  z-index: 1;
}

.home__name {
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 3s ease-in-out infinite;
  letter-spacing: -0.02em;
  text-shadow: var(--glow-primary);
}

@keyframes text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/*=============== PREMIUM TYPEWRITER EFFECT ===============*/
.home__education {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
  min-height: 2rem;
  font-family: var(--font-display);
  position: relative;
}

/* Ensure no pseudo-elements interfere */
.home__education::before,
.home__education::after {
  display: none !important;
  content: none !important;
}

.typewriter-text {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  font-size: var(--h3-font-size);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.3;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 1.3em;
  background: var(--first-color);
  margin-left: 3px;
  vertical-align: text-bottom;
  border-radius: 1px;
  box-shadow: 0 0 15px var(--first-color),
              0 0 30px rgba(var(--first-hue), var(--sat), var(--lig), 0.6);
  opacity: 1;
  animation: premium-blink 0.9s ease-in-out infinite;
}

@keyframes premium-blink {
  0%, 45% {
    opacity: 1;
    transform: scaleY(1);
  }
  50%, 95% {
    opacity: 0;
    transform: scaleY(0.95);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Smooth typing animation */
@keyframes type-char {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home__handle {
  position: relative;
  background: var(--gradient-primary);
  box-shadow: var(--glow-primary), var(--shadow-elevation-high);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float-animation 6s ease-in-out infinite;
}

.home__handle:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--glow-primary), var(--shadow-elevation-extreme);
}

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

.home__img {
  transition: transform 0.4s ease;
}

.home__handle:hover .home__img {
  transform: scale(1.1);
}

/*=============== PREMIUM BUTTONS ===============*/
.button {
  position: relative;
  background: var(--gradient-primary);
  border: none;
  overflow: hidden;
  box-shadow: var(--shadow-elevation-medium);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-primary), var(--shadow-elevation-high);
}

.button--ghost {
  background: transparent;
  border: 2px solid var(--first-color);
  position: relative;
  overflow: hidden;
}

.button--ghost::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.button--ghost:hover::after {
  left: 0;
}

.button--ghost:hover {
  color: var(--body-color) !important;
  border-color: transparent;
}

/*=============== SOCIAL LINKS ENHANCEMENT ===============*/
.home__social-link {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.home__social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.home__social-link:hover::before {
  width: 100px;
  height: 100px;
}

.home__social-link:hover {
  transform: translateX(10px) scale(1.1);
  box-shadow: var(--glow-primary);
  border-color: transparent;
}

/*=============== ABOUT SECTION ENHANCEMENT ===============*/
.about__box {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about__box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    var(--first-color),
    transparent 30%
  );
  animation: rotate-border 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about__box::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--container-color);
  border-radius: 0.7rem;
  z-index: 0;
}

.about__box > * {
  position: relative;
  z-index: 1;
}

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

.about__box:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow-primary), var(--shadow-elevation-high);
}

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

.about__icon {
  filter: drop-shadow(0 0 10px var(--first-color));
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/*=============== MODERN SERVICES DESIGN - ACCORDION STYLE ===============*/
.services__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media screen and (max-width: 992px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 630px) {
  .services__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.services__card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.services__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--first-color), transparent, var(--first-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(var(--first-hue), var(--sat), var(--lig), 0.3);
}

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

.services__card.active {
  transform: scale(1.02);
  border-color: var(--first-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              0 0 50px rgba(var(--first-hue), var(--sat), var(--lig), 0.5);
}

.serv {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.services__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
  margin: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.services__title::before {
  content: '◆';
  color: var(--first-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.services__card:hover .services__title {
  color: var(--first-color);
  transform: translateX(10px);
}

.services__card:hover .services__title::before {
  transform: rotate(180deg) scale(1.3);
  filter: drop-shadow(0 0 10px var(--first-color));
}

.services__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--first-color);
  border-radius: 50px;
  color: var(--first-color);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.services__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--first-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.services__button:hover::before {
  left: 0;
}

.services__button:hover {
  color: var(--body-color);
  border-color: var(--first-color);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(var(--first-hue), var(--sat), var(--lig), 0.5);
}

.services__icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.services__button:hover .services__icon {
  transform: translateX(5px);
}

.services__card.active .services__button .services__icon {
  transform: rotate(90deg);
}

/* Accordion Content */
.services__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.services__card.active .services__content {
  max-height: 1000px;
  opacity: 1;
  margin-top: 2rem;
}

.services__content-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.services__content-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--first-color);
}

.services__content-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin: 0;
}

.services__details-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.services__details-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.6rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.services__details-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--first-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.services__details-item:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  transform: translateX(5px);
  border-color: rgba(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.services__details-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.services__details-item i {
  color: var(--first-color);
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(var(--first-hue), var(--sat), var(--lig), 0.15) 0%,
    rgba(var(--first-hue), var(--sat), var(--lig), 0.08) 100%);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.services__details-item:hover i {
  background: var(--first-color);
  color: var(--body-color);
  transform: scale(1.05);
}

.services__details-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* Hide all modal styles */
.services__modal {
  display: none !important;
}

/*=============== SKILLS ENHANCEMENT ===============*/
.skill__icon-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill__icon-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: top 0.4s ease;
}

.skill__icon-card:hover::before {
  top: 0;
}

.skill__icon-card:hover {
  transform: translateY(-15px) scale(1.1) rotateZ(5deg);
  box-shadow: var(--glow-primary), var(--shadow-elevation-high);
  border-color: var(--first-color);
}

.skill__icon-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 0px var(--first-color));
}

.skill__icon-card:hover img {
  transform: scale(1.2) rotateZ(-5deg);
  filter: drop-shadow(0 0 20px var(--first-color));
}

.skill__icon-card span {
  transition: all 0.3s ease;
}

.skill__icon-card:hover span {
  color: var(--first-color);
  font-weight: 600;
}

/*=============== AI TOOLS SCRATCH CARD ENHANCEMENT ===============*/
.scratch-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scratch-card:hover {
  transform: translateY(-10px);
}

.scratch-card .skill__icon-card {
  box-shadow: var(--glow-primary), var(--shadow-elevation-medium);
}

.scratch-instruction {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/*=============== CONTACT SECTION ENHANCEMENT ===============*/
.contact__card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left 0.4s ease;
}

.contact__card:hover::before {
  left: 0;
}

.contact__card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--glow-primary), var(--shadow-elevation-high);
  border-color: var(--first-color);
}

.contact__card-icon {
  filter: drop-shadow(0 0 10px var(--first-color));
  transition: all 0.3s ease;
}

.contact__card:hover .contact__card-icon {
  transform: scale(1.2) rotateZ(10deg);
  color: var(--first-color);
}

.contact__form-input {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
}

.contact__form-input:focus {
  border-color: var(--first-color);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

/*=============== SECTION REVEAL ANIMATIONS ===============*/
.section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
}

/*=============== CENTER SECTION TITLES ===============*/
.section__title,
.section__subtitle {
  text-align: center !important;
  display: block;
  width: 100%;
}

.section__subtitle {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--first-color);
  margin-bottom: 0.5rem;
  font-weight: var(--font-semibold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/*=============== SCROLL PROGRESS BAR ===============*/
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-primary);
  box-shadow: var(--glow-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/*=============== PARALLAX EFFECTS ===============*/
.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/*=============== MODAL ENHANCEMENTS ===============*/
.services__modal {
  backdrop-filter: blur(30px) saturate(180%);
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  z-index: 10000;
  animation: modal-backdrop-fade 0.3s ease;
}

@keyframes modal-backdrop-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.services__modal-content {
  background: linear-gradient(145deg,
    rgba(18, 18, 35, 0.95) 0%,
    rgba(25, 25, 45, 0.98) 100%);
  backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modal-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 700px;
  width: 95%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
}

@keyframes modal-entrance {
  0% {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Modal Header Section */
.services__modal-header {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%);
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.services__modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--first-color),
    transparent);
  opacity: 0.5;
}

.services__modal-title {
  background: linear-gradient(135deg,
    var(--first-color) 0%,
    hsl(calc(var(--first-hue) + 30), var(--sat), calc(var(--lig) + 10%)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  margin: 0 0 0.75rem 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  display: block;
  width: 100%;
  line-height: 1.2;
}

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

.services__modal-description {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.services__modal-description::before,
.services__modal-description::after {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3));
}

.services__modal-description::after {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.3),
    transparent);
}

/* Modal Body Section */
.services__modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.services__modal-close {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  z-index: 10;
}

.services__modal-close:hover {
  transform: scale(1.05);
  background: rgba(255, 69, 69, 0.15);
  color: rgb(255, 100, 100);
  border-color: rgba(255, 69, 69, 0.3);
  box-shadow: 0 5px 20px rgba(255, 69, 69, 0.2);
}

/* Modal body */
.services__modal-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.services__modal-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.services__modal-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--first-color);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
}

.services__modal-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.services__modal-item i {
  color: var(--first-color);
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(var(--first-hue), var(--sat), var(--lig), 0.15) 0%,
    rgba(var(--first-hue), var(--sat), var(--lig), 0.08) 100%);
  border-radius: 10px;
  border: 1px solid rgba(var(--first-hue), var(--sat), var(--lig), 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services__modal-item:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  transform: translateX(8px);
  border-color: rgba(var(--first-hue), var(--sat), var(--lig), 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.services__modal-item:hover i {
  background: var(--first-color);
  color: var(--body-color);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.services__modal-info {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.5;
}

/* Scrollbar for modal body */
.services__modal-body::-webkit-scrollbar {
  width: 6px;
}

.services__modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.services__modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.services__modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* For Firefox */
.services__modal-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.03);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .services__modal-content {
    max-width: 95%;
    border-radius: 1.25rem;
  }

  .services__modal-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .services__modal-title {
    font-size: 1.5rem;
  }

  .services__modal-body {
    padding: 1.5rem;
  }

  .services__modal-item {
    padding: 0.85rem 1rem;
  }

  .services__modal-item i {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .services__modal-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .services__modal-info {
    font-size: 0.9rem;
  }
}

/*=============== FOOTER ENHANCEMENT ===============*/
.footer {
  position: relative;
  background: var(--gradient-primary);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

.footer__social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer__social-link:hover {
  transform: translateY(-5px) scale(1.2) rotate(10deg);
  box-shadow: var(--shadow-elevation-medium);
}

/*=============== RESPONSIVE ENHANCEMENTS ===============*/
@media screen and (max-width: 768px) {
  .home__name {
    font-size: 2rem;
  }

  .custom-cursor,
  .cursor-trail {
    display: none;
  }
}

@media screen and (min-width: 992px) {
  .section {
    padding: 8rem 0 2rem;
  }
}

/*=============== SMOOTH SCROLL BEHAVIOR ===============*/
html {
  scroll-behavior: smooth;
}

/*=============== HIDE DEFAULT SCROLLBAR (we have premium progress bar) ===============*/
body::-webkit-scrollbar {
  display: none;
  width: 0;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
}

/* For Firefox */
html {
  scrollbar-width: none;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/*=============== SELECTION STYLING ===============*/
::selection {
  background: var(--first-color);
  color: var(--body-color);
}

::-moz-selection {
  background: var(--first-color);
  color: var(--body-color);
}

/*=============== ACCESSIBILITY ===============*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*=============== PRINT STYLES ===============*/
@media print {
  .page-loader,
  .custom-cursor,
  .cursor-trail,
  .scroll-progress {
    display: none !important;
  }
}
