/* CSS Variables - Modern Dark Theme */
:root {
  --bg-primary: #050814;
  --bg-secondary: #0a0f25;
  --bg-card: rgba(16, 23, 42, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;

  --gradient-1: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --gradient-2: linear-gradient(to right, var(--accent-secondary), var(--accent-tertiary));

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-tech: 'Orbitron', sans-serif;

  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius: 16px;

  --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Global Reset & Basic Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  /* Changed to var(--bg-primary) as var(--bg-color) is not defined */
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

.mt-4 {
  margin-top: 2rem;
}

.text-center {
  text-align: center;
}

/* Colors & Gradients */
.highlight {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--accent-tertiary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 25px;
}

/* Background Animated Shapes */
.bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  bottom: -200px;
  right: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-tertiary);
  top: 30%;
  left: 30%;
  animation-duration: 25s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, -50px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 30px) scale(0.9);
  }
}

/* Starfield Animation */
#stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Ensures it sits above shapes but below content */
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle linear infinite, drift linear infinite;
}

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  }

  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
  }

  100% {
    transform: translateY(-100px) translateX(20px);
  }
}

/* Hub Container layout */
.hub-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hub-title {
  text-align: center;
  position: absolute;
  top: 5vh;
  z-index: 2;
}

.hub-title h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 10px;
}

.hub-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.footer-links {
  position: absolute;
  bottom: 5vh;
  display: flex;
  gap: 20px;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
  text-shadow: var(--glow-shadow);
}

/* Hub Architecture */
.hub-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
}

.orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: spin 60s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.orbit-ring::before,
.orbit-ring::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--accent-tertiary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-tertiary);
}

.orbit-ring::before {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-ring::after {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-ring-reverse {
  position: absolute;
  top: 40px;
  left: 40px;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  animation: spin-reverse 40s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.orbit-ring-reverse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  background: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
  transform: translateY(-50%);
}

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

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

/* Center Logo */
.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: rgba(10, 15, 37, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.2);
  border: 2px solid rgba(59, 130, 246, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10;
  cursor: pointer;
  transition: all 0.4s ease;
}

.center-logo:hover {
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.6), inset 0 0 30px rgba(59, 130, 246, 0.4);
  transform: translate(-50%, -50%) scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.center-img-logo {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.pulse-anim {
  animation: pulseHub 3s infinite;
}

@keyframes pulseHub {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }

  70% {
    box-shadow: 0 0 0 50px rgba(59, 130, 246, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Menu Circles */
.menu-circle {
  position: absolute;
  width: 115px;
  height: 115px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  /* Enhanced glass depth */
  border-right-color: rgba(255, 255, 255, 0.05);
  /* Enhanced glass depth */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-secondary);
  overflow: hidden;
  /* For reflection effect to stay inside */
}

/* Compensate the transform inside not needed anymore, keep simple flex */
.menu-circle .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The Reflection Element */
.menu-circle::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
}

.menu-circle i {
  font-size: 2rem;
  color: var(--accent-tertiary);
  margin-bottom: 8px;
  transition: 0.3s;
}

.menu-circle span {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.menu-circle:hover {
  scale: 1.15;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  box-shadow: 15px 15px 35px rgba(59, 130, 246, 0.5), inset 2px 10px 15px rgba(255, 255, 255, 0.3);
}

.menu-circle:hover::after {
  left: 150%;
  transition: left 0.6s ease-in-out;
}

.menu-circle:hover i {
  color: white;
}

/* Positions */
.item-top {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.item-right {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}

.item-bottom {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.item-left {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
}

/* Float Animations for Items */
.float-anim.item-top {
  animation: floatY1 4s ease-in-out infinite;
}

.float-anim.item-bottom {
  animation: floatY2 5s ease-in-out infinite;
}

.float-anim.item-right {
  animation: floatX1 6s ease-in-out infinite;
}

.float-anim.item-left {
  animation: floatX2 4.5s ease-in-out infinite;
}

@keyframes floatY1 {

  0%,
  100% {
    transform: translate(-50%, -50%);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 0px rgba(59, 130, 246, 0.4);
  }

  25% {
    border-radius: 53% 47% 43% 57% / 51% 54% 46% 49%;
  }

  50% {
    transform: translate(-50%, calc(-50% - 15px));
    border-radius: 45% 55% 52% 48% / 55% 42% 58% 45%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 20px rgba(59, 130, 246, 0);
  }

  75% {
    border-radius: 48% 52% 55% 45% / 46% 56% 44% 54%;
  }
}

@keyframes floatY2 {

  0%,
  100% {
    transform: translate(-50%, 50%);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 0px rgba(59, 130, 246, 0.4);
  }

  25% {
    border-radius: 45% 55% 52% 48% / 55% 42% 58% 45%;
  }

  50% {
    transform: translate(-50%, calc(50% + 15px));
    border-radius: 53% 47% 43% 57% / 51% 54% 46% 49%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 20px rgba(59, 130, 246, 0);
  }

  75% {
    border-radius: 50% 50% 45% 55% / 45% 55% 50% 50%;
  }
}

@keyframes floatX1 {

  0%,
  100% {
    transform: translate(50%, -50%);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 0px rgba(59, 130, 246, 0.4);
  }

  25% {
    border-radius: 55% 45% 50% 50% / 50% 50% 45% 55%;
  }

  50% {
    transform: translate(calc(50% + 15px), -50%);
    border-radius: 45% 55% 42% 58% / 54% 43% 57% 46%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 20px rgba(59, 130, 246, 0);
  }

  75% {
    border-radius: 53% 47% 48% 52% / 48% 55% 45% 52%;
  }
}

@keyframes floatX2 {

  0%,
  100% {
    transform: translate(-50%, -50%);
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 0px rgba(59, 130, 246, 0.4);
  }

  25% {
    border-radius: 45% 55% 52% 48% / 55% 42% 58% 45%;
  }

  50% {
    transform: translate(calc(-50% - 15px), -50%);
    border-radius: 53% 47% 43% 57% / 51% 54% 46% 49%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.2), 0 0 0 20px rgba(59, 130, 246, 0);
  }

  75% {
    border-radius: 55% 45% 50% 50% / 50% 50% 45% 55%;
  }
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

/* Modal Content Card */
.modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: rgba(16, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.2);
  overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.1s ease-out;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.modal-overlay.active .modal-content {
  animation: modalBlueFireBurst 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes modalBlueFireBurst {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
    box-shadow:
      0 0 20px 10px rgba(14, 165, 233, 0),
      inset 0 0 20px 10px rgba(2, 132, 199, 0),
      0 -20px 30px 10px rgba(56, 189, 248, 0);
    filter: brightness(2) contrast(1.5);
  }

  40% {
    opacity: 0.9;
    transform: scale(1.02) translateY(-5px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow:
      0 -10px 30px 10px rgba(14, 165, 233, 0.6),
      inset 0 -5px 20px 5px rgba(2, 132, 199, 0.6),
      0 -30px 40px 15px rgba(56, 189, 248, 0.4),
      0 0 10px 2px rgba(255, 255, 255, 0.3);
    filter: brightness(1.5) contrast(1.2);
  }

  70% {
    opacity: 1;
    transform: scale(0.99) translateY(2px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow:
      0 -5px 20px 5px rgba(14, 165, 233, 0.3),
      inset 0 -2px 10px 5px rgba(2, 132, 199, 0.3),
      0 -15px 20px 5px rgba(56, 189, 248, 0.2);
    filter: brightness(1.1) contrast(1.05);
  }

  100% {
    opacity: 1;
    transform: perspective(1200px) scale(1) translateY(0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: calc(var(--tilt-y) * -2 * 1px) calc(var(--tilt-x) * 2 * 1px + 30px) 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.2);
    filter: brightness(1) contrast(1);
  }
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 40px;
}

/* Common Inner Layouts */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.service-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-5px);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About Specifics */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.tab-btn {
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  padding: 5px 10px;
  transition: 0.3s;
}

.tab-btn.active {
  color: var(--accent-tertiary);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-tertiary);
  transition: 0.3s;
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
  color: var(--text-secondary);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.tech-icons {
  display: flex;
  gap: 15px;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 15px;
}

.glow-hover:hover {
  color: var(--accent-tertiary);
  filter: drop-shadow(0 0 8px currentColor);
  transform: translateY(-5px);
}

.rounded-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Projects Specifics */
.coming-soon-banner {
  background: linear-gradient(135deg, rgba(16, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-radius: 20px;
  padding: 60px 30px;
  text-align: center;
  margin-bottom: 30px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-tertiary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.project-img-wrapper img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-tertiary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
}

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

.project-link {
  color: var(--accent-primary);
  font-size: 1.1rem;
  transition: 0.3s;
}

.project-link:hover {
  color: var(--accent-tertiary);
  transform: translateX(5px);
}

/* Premium Micro-Interactions: Staggered Fade Up */
.modal-overlay.active .modal-header,
.modal-overlay.active .services-grid,
.modal-overlay.active .about-container,
.modal-overlay.active .contact-grid,
.modal-overlay.active .projects-grid {
  animation: fadeUpStagger 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.modal-overlay.active .modal-header {
  animation-delay: 0.4s;
}

.modal-overlay.active .services-grid {
  animation-delay: 0.5s;
}

.modal-overlay.active .about-container {
  animation-delay: 0.5s;
}

.modal-overlay.active .contact-grid {
  animation-delay: 0.5s;
}

.modal-overlay.active .projects-grid {
  animation-delay: 0.5s;
}

@keyframes fadeUpStagger {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.gears-anim {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
  opacity: 0.5;
  display: flex;
  justify-content: center;
  position: relative;
}

.gear-left {
  animation: spin 8s linear infinite;
}

.gear-right {
  position: absolute;
  font-size: 1.8rem;
  margin-left: 40px;
  margin-top: -20px;
  animation: spin-reverse 5s linear infinite;
}

/* Contact Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card .icon-box {
  width: 45px;
  height: 45px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.info-details h4 {
  margin-bottom: 5px;
}

.info-details p,
.info-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  background: rgba(10, 15, 37, 0.5);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  color: white;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  resize: none;
}

.input-group label {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--text-secondary);
  pointer-events: none;
  transition: 0.3s;
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
  top: -15px;
  font-size: 0.8rem;
  color: var(--accent-tertiary);
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-2);
  transition: 0.4s;
}

.input-group input:focus~.focus-border,
.input-group textarea:focus~.focus-border {
  width: 100%;
}

.btn {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 900px) {

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

@media (max-width: 600px) {
  .hub-title h1 {
    font-size: 2.2rem;
  }

  .hub-title {
    top: 3vh;
  }

  .hub-wrapper {
    width: 320px;
    height: 320px;
  }

  .center-logo {
    width: 120px;
    height: 120px;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .menu-circle {
    width: 85px;
    height: 85px;
  }

  .menu-circle i {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .menu-circle span {
    font-size: 0.7rem;
  }

  .orbit-ring-reverse {
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
  }

  .modal-content {
    padding: 30px 20px;
    max-height: 90vh;
  }

  .section-title {
    font-size: 1.8rem;
  }
}