/* MT SOFTWORKS - ULTIMATE ANIMATED STYLESHEET - MOBILE OPTIMIZED */

:root {
  --primary: #1f6f6a;
  --secondary: #5fd1c5;
  --dark: #1a1a2e;
  --light: #ffffff;
  --gray: #64748b;
  --text-dark: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #f1f5f9;
  overflow-x: hidden;
  cursor: default;
}

html {
  scroll-behavior: smooth;
  /* MOBILE FIX: Prevent 100vh issues on mobile */
  height: -webkit-fill-available;
}

/* ========== STAR GLITTER ANIMATION ========== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, #5fd1c5, transparent);
  border-radius: 50%;
  box-shadow: 0 0 10px #5fd1c5, 0 0 20px #5fd1c5;
  animation: twinkle 3s ease-in-out infinite;
  /* MOBILE FIX: GPU acceleration */
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(0);
  }
  70% {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
}

.glow-effect {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(95,209,197,0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-glow 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes float-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -20px, 0) scale(1.2); }
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 10000;
  box-shadow: 0 0 15px rgba(95,209,197,0.6);
  will-change: width;
}

/* ========== PARTICLE CANVAS ========== */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8%;
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.4s ease;
  overflow: hidden;
}

.navbar.scrolled {
  padding: 5px 8%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
}

.navbar-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.navbar-star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: navbarGlitter linear infinite;
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
}

@keyframes navbarGlitter {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(0.5);
  }
  50% {
    opacity: 0.8;
    transform: translate3d(0,0,0) scale(1);
  }
}

.logo-container {
  transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
}

.logo {
  height: 100px;
  transition: height 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(31,111,106,0.2));
}

.navbar.scrolled .logo {
  height: 70px;
}

nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #f1f5f9;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
}

nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

/* MOBILE FIX: Only enable hover on devices that support it */
@media (hover: hover) {
  nav a:hover::before {
    opacity: 1;
  }

  nav a:hover {
    color: var(--primary);
    transform: translateY(-3px);
  }
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  box-shadow: 0 6px 20px rgba(95,209,197,0.4);
  border-radius: 50px;
}

.nav-btn .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

@media (hover: hover) {
  .nav-btn:hover .btn-shine {
    left: 100%;
  }

  .nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(95,209,197,0.6);
  }
}

.theme-toggle {
  background: none;
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  margin-left: 10px;
}

@media (hover: hover) {
  .theme-toggle:hover {
    background: var(--primary);
    transform: scale(1.1);
  }

  .theme-toggle:hover .theme-icon {
    transform: rotate(180deg);
  }
}

.theme-icon {
  transition: transform 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  /* MOBILE FIX: Prevent viewport height issues on mobile browsers */
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 8% 210px;
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
  animation: heroGlitter linear infinite;
  will-change: transform, opacity;
  transform: translate3d(0,0,0);
}

@keyframes heroGlitter {
  0%, 100% {
    opacity: 0;
    transform: translate3d(0,0,0) scale(0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(0,0,0) scale(1.5);
  }
}

.hero-bg-animation {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(95,209,197,0.2), transparent 70%);
  top: -300px;
  right: -300px;
  animation: float 15s ease-in-out infinite;
  border-radius: 50%;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33% { transform: translate3d(30px, -50px, 0) rotate(120deg); }
  66% { transform: translate3d(-20px, -30px, 0) rotate(240deg); }
}

.hero-content {
  max-width: 950px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-logo-bg {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  background: url('assets/logo.png') center/contain no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.hero h1 {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: 800;
  color: #f1f5f9;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  animation: bounceIn 0.8s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
  will-change: transform, opacity;
}

.hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.4s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.5s; }

@keyframes bounceIn {
  0% { opacity: 0; transform: translate3d(0, 50px, 0) scale(0.3); }
  50% { transform: translate3d(0, 0, 0) scale(1.05); }
  70% { transform: translate3d(0, 0, 0) scale(0.9); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.hero-subtitle {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #cbd5e1;
  margin: 30px 0 50px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 50px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
  z-index: 10;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.mouse {
  width: 28px;
  height: 45px;
  border: 3px solid var(--primary);
  border-radius: 20px;
  margin: 0 auto 10px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s ease infinite;
}

@keyframes scroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 25px; }
}

.scroll-indicator p {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ========== BUTTONS ========== */
.btn {
  padding: 18px 45px;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 25px rgba(95,209,197,0.4);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple 0.6s ease;
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(95,209,197,0.6);
  }
}

.btn-outline {
  border: 3px solid var(--primary);
  padding: 15px 42px;
  color: #f1f5f9;
  background: #1e293b;
  position: relative;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: left 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index: -1;
  border-radius: 50px;
}

@media (hover: hover) {
  .btn-outline:hover::before {
    left: 0;
  }

  .btn-outline:hover {
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(95,209,197,0.4);
    transform: translateY(-3px);
  }
}

/* ========== SECTION ========== */
.section {
  /* MOBILE FIX: Responsive padding */
  padding: clamp(60px, 15vw, 120px) 8%;
  position: relative;
  z-index: 1;
  background: #0a0a0a;
}

.section-header {
  text-align: center;
  /* MOBILE FIX: Responsive margin */
  margin-bottom: clamp(40px, 10vw, 80px);
}

.section-header h2 {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 25px;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.section-header h2 span {
  color: #5fd1c5;
  font-weight: 900;
}

.section-header p {
  color: #94a3b8;
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(1rem, 3vw, 1.3rem);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  /* MOBILE FIX: Responsive grid */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 60px;
}

.service-card {
  padding: 40px 32px;
  background: #1e293b;
  border-radius: 20px;
  border: 2px solid #475569;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
  color: #f1f5f9;
  z-index: 10;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(95,209,197,0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.5s;
}

@media (hover: hover) {
  .service-card:hover .card-glow {
    opacity: 1;
  }

  .service-card:hover::after {
    transform: scaleX(1);
  }

  .service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(31,111,106,0.2);
    border-color: var(--secondary);
    z-index: 50;
  }

  .service-card:hover .service-icon {
    transform: scale(1.2) rotateY(360deg);
  }

  .service-card:hover h3 {
    color: var(--primary);
  }
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 25px;
  display: inline-block;
  transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
}

.service-card h3 {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 18px;
  font-weight: 700;
  transition: color 0.3s;
  color: #f1f5f9;
}

.service-card p {
  color: #94a3b8;
  line-height: 1.8;
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

/* ========== TECH SECTION - FIXED VERSION ========== */
/* Replace ONLY this section in your style.css - DO NOT touch team section! */

.tech-section {
  background: linear-gradient(135deg, var(--primary) 0%, #267873 100%);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.wave-top, .wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background-size: cover;
}

.wave-top {
  top: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,0 600,60 T1200,60 L1200,0 L0,0 Z" fill="%230f172a"/></svg>');
}

.wave-bottom {
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,120 600,60 T1200,60 L1200,120 L0,120 Z" fill="%230f172a"/></svg>');
}

.tech-section .section-header h2,
.tech-section .section-header p {
  color: white;
}

.tech-scroll-container {
  overflow: hidden;
  margin-top: 60px;
  -webkit-overflow-scrolling: touch;
}

/* ⭐ FIXED: Changed animation name from 'scrollLeft' to 'infiniteScroll' */
.tech-scroll-wrapper {
  display: flex;
  animation: infiniteScroll 30s linear infinite;
  animation-play-state: running !important;
  will-change: transform;
}

/* Prevent animation pause on hover for touch devices */
@media (hover: hover) {
  .tech-scroll-wrapper:hover {
    animation-play-state: paused;
  }
}

/* ⭐ This animation moves -50% because content is duplicated 2x in JavaScript */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tech-item {
  background: rgba(255,255,255,0.5);
  padding: 28px 40px;
  border-radius: 15px;
  margin: 0 18px;
  border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  flex-shrink: 0;
  z-index: 10;
}

@media (hover: hover) {
  .tech-item:hover {
    background: rgba(255,255,255,0.7);
    transform: translateY(-10px) scale(1.1);
    border-color: rgba(255,255,255,0.9);
    z-index: 50;
  }
}

.tech-item span {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #000000;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}

/* ========== STATS ========== */
.stats {
  display: grid;
  /* MOBILE FIX: Responsive grid */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 5vw, 50px);
  padding: clamp(60px, 15vw, 120px) 8%;
  background: #0a0a0a;
}

.stat-item {
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  background: #1e293b;
  border: 2px solid #475569;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(95,209,197,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  animation: rotate 10s linear infinite;
  will-change: transform;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (hover: hover) {
  .stat-item:hover::before {
    opacity: 1;
  }

  .stat-item:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(95,209,197,0.2);
    z-index: 50;
  }
}

.stat-number {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.stat-item p {
  color: #94a3b8;
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* ========== PORTFOLIO ========== */
.portfolio-grid {
  display: grid;
  /* MOBILE FIX: Responsive grid */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 45px;
  margin-top: 60px;
}

.portfolio-card {
  background: #1e293b;
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid #475569;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
  z-index: 10;
}

@media (hover: hover) {
  .portfolio-card:hover {
    transform: translateY(-18px) scale(1.02);
    box-shadow: 0 30px 60px rgba(31,111,106,0.25);
    border-color: var(--secondary);
    z-index: 50;
  }

  .portfolio-card:hover .portfolio-emoji {
    transform: scale(1.2) rotate(10deg);
  }

  .portfolio-card:hover .image-overlay {
    opacity: 1;
  }

  .portfolio-card:hover .view-btn {
    transform: translateY(0);
  }

  .portfolio-card:hover h3 {
    color: var(--primary);
  }
}

.portfolio-image {
  height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-emoji {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(4rem, 10vw, 6rem);
  transition: transform 0.5s;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.view-btn {
  padding: 12px 30px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(20px);
  transition: all 0.4s;
}

.portfolio-content {
  padding: 35px;
}

.portfolio-content h3 {
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin-bottom: 18px;
  font-weight: 700;
  transition: color 0.3s;
  color: #f1f5f9;
}

.portfolio-content p {
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.8;
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.tech-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(95,209,197,0.15);
  padding: 10px 20px;
  border-radius: 25px;
  /* MOBILE FIX: Responsive font sizing */
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  color: var(--primary);
  border: 2px solid rgba(95,209,197,0.3);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
}

@media (hover: hover) {
  .tech-tag:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-3px) scale(1.1);
  }
}
/* ========== TEAM SECTION (FIXED – ALL MEMBERS VISIBLE) ========== */
.team-section {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 120px 0;
  overflow: hidden;
}

/* 🔴 FIX 1: allow horizontal access */
.team-scroll-container {
  overflow-x: auto;
  margin-top: 70px;
  scrollbar-width: none;
}

.team-scroll-container::-webkit-scrollbar {
  display: none;
}

/* 🔴 FIX 2: remove infinite animation */
.team-scroll-wrapper {
  display: flex;
  gap: 30px;
  width: max-content;                 /* 🔴 CRITICAL */
  animation: teamInfiniteScroll 50s linear infinite;
  will-change: transform;
}


/* 🔴 FIX 3: responsive card width */
.team-member {
  flex-shrink: 0;
  min-width: 220px;            /* 🔴 FIXED */
  max-width: 220px;
  background: #1e293b;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 2px solid #475569;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 10;
}

@media (hover: hover) {
  .team-member:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 45px rgba(31,111,106,0.2);
    border-color: var(--secondary);
    z-index: 50;
  }

  .team-member:hover .team-avatar {
    transform: scale(1.1) rotate(360deg);
  }
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  transition: transform 0.4s;
}

.team-member h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #f1f5f9;
}

.team-member p {
  color: #94a3b8;
  font-size: 1rem;
}
@keyframes teamInfiniteScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  /* MOBILE FIX: Responsive grid */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  background: #0f172a;
  padding: 40px 35px;
  border-radius: 15px;
  border: 2px solid #334155;
  transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(95,209,197,0.15), transparent);
  transition: left 0.8s;
}

@media (hover: hover) {
  .feature-card:hover::before {
    left: 100%;
  }

  .feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
      0 25px 50px rgba(31,111,106,0.2),
      0 0 30px rgba(95,209,197,0.1);
    border-color: var(--secondary);
  }

  .feature-card:hover .feature-icon {
    transform: scale(1.3) rotate(15deg);
    filter: drop-shadow(0 0 20px rgba(95,209,197,0.6));
    animation: bounce 0.8s ease;
  }

  .feature-card:hover h3 {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(95,209,197,0.5);
  }

  .feature-card:hover p {
    color: #e2e8f0;
    transform: translateY(-2px);
  }

  .feature-card:hover .feature-list {
    opacity: 1;
    transform: translateY(0);
  }

  .feature-card:hover .feature-list li {
    color: #475569;
    border-left-color: var(--secondary);
    transform: translateX(5px);
  }
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
  position: relative;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: scale(1.3) rotate(15deg) translateY(0); }
  40% { transform: scale(1.3) rotate(15deg) translateY(-10px); }
  60% { transform: scale(1.3) rotate(15deg) translateY(-5px); }
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #f8fafc;
  transition: color 0.4s ease;
  position: relative;
}

.feature-card p {
  color: #cbd5e1;
  transition: color 0.4s ease, transform 0.4s ease;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.feature-list li {
  color: #64748b;
  padding: 10px 0 10px 30px;
  position: relative;
  transition: all 0.4s ease;
  border-left: 3px solid transparent;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .feature-card:hover .feature-list li:nth-child(1) { transition-delay: 0.1s; }
  .feature-card:hover .feature-list li:nth-child(2) { transition-delay: 0.2s; }
  .feature-card:hover .feature-list li:nth-child(3) { transition-delay: 0.3s; }

  .feature-card:hover .feature-list li:hover::before {
    transform: scale(1.2);
  }
}

/* ========== TESTIMONIALS ========== */
.testimonial-section {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 100px 8%;
}

.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: #1e293b;
  padding: 40px 45px;
  border-radius: 20px;
  border: 2px solid #475569;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  opacity: 0;
  animation: slideInUp 0.8s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) {
  .testimonial-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(31,111,106,0.3);
    border-color: var(--secondary);
  }
  
  .testimonial-card:hover .author-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(95,209,197,0.4);
  }
  
  .testimonial-card:hover .quote-icon {
    opacity: 0.2;
    transform: scale(1.1);
  }
}

.quote-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 3.5rem;
  color: var(--secondary);
  opacity: 0.08;
  line-height: 0;
  margin: 0;
  transition: all 0.3s ease;
}

.testimonial-card p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
  color: #e2e8f0;
  margin: 0;
  font-style: italic;
  flex: 1;
  padding-left: 40px;
  padding-right: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-shrink: 0;
  min-width: 320px;
}

.author-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  box-shadow: 0 4px 15px rgba(95,209,197,0.2);
}

.author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  flex: 1;
  gap: 4px;
}

.author-info h4 {
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  color: #f8fafc;
  font-weight: 700;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.author-info p {
  margin: 0;
  padding: 0;
  color: #94a3b8;
  font-size: 0.95rem;
  font-style: normal;
  line-height: 1.4;
  white-space: normal;
}

@media (hover: hover) {
  .testimonial-card:hover .author-info h4 {
    color: var(--secondary);
  }
}

/* Mobile: Stack vertically */
@media (max-width: 968px) {
  .testimonial-card {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 30px;
    gap: 30px;
  }
  
  .testimonial-card p {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    order: 2;
  }
  
  .testimonial-author {
    justify-content: center;
    min-width: auto;
    order: 1;
    flex-direction: column;
    gap: 15px;
  }
  
  .author-info {
    text-align: center;
    align-items: center;
  }
  
  .quote-icon {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 20px;
    font-size: 4.5rem;
    opacity: 0.12;
    order: 0;
    display: block;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    padding: 30px 20px;
    gap: 25px;
  }
  
  .author-avatar {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }
  
  .author-info h4 {
    font-size: 1.1rem;
  }
  
  .author-info p {
    font-size: 0.85rem;
  }
  
  .testimonial-card p {
    font-size: 1rem;
  }
}

/* ========== CONTACT ========== */
.contact-section {
  padding: clamp(60px, 15vw, 120px) 8%;
  background: #0a0a0a;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #1e293b;
  border-radius: 12px;
  border: 2px solid #475569;
  transition: all 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
}

@media (hover: hover) {
  .contact-item:hover {
    border-color: var(--secondary);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(95,209,197,0.2);
  }
}

.contact-item-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-item span {
  color: #f1f5f9;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 600;
}

.contact-form {
  background: #1e293b;
  padding: 45px;
  border-radius: 20px;
  border: 2px solid #475569;
}

.form-group {
  margin-bottom: 25px;
}

input, textarea {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid #475569;
  background: #334155;
  color: #f1f5f9;
  font-size: 1rem;
  transition: all 0.3s;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(95,209,197,0.1);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 50px 20px;
  background: #0a0a0a;
  color: #f1f5f9;
}

footer p {
  color: #94a3b8;
}

/* ========== ADMIN BUTTON ========== */
.admin-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(95,209,197,0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
  cursor: pointer;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 5px 20px rgba(95,209,197,0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(95,209,197,0.8), 0 0 40px rgba(95,209,197,0.4);
  }
}

@media (hover: hover) {
  .admin-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 35px rgba(95,209,197,0.6);
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.68,-0.55,0.265,1.55);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FLOATING CONTACT BUTTON ========== */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(95,209,197,0.4);
  transition: all 0.3s ease;
  animation: floatIcon 3s ease-in-out infinite;
}

@media (hover: hover) {
  .floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 35px rgba(95,209,197,0.6);
  }
}

/* ========== SECRET ADMIN ICON ========== */
.secret-admin-icon {
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 10px;
  opacity: 0.3;
  transition: all 0.3s ease;
  display: inline-block;
}

@media (hover: hover) {
  .secret-admin-icon:hover {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 2px 8px rgba(95,209,197,0.6));
  }
}

/* ========== Z-INDEX MANAGEMENT ========== */
.service-card { z-index: 10; }
.tech-section { z-index: 5; }
.tech-item { z-index: 10; }
.team-member { z-index: 10; }
.portfolio-card { z-index: 10; }
.stat-item { z-index: 10; }

/* ========== MOBILE RESPONSIVE BREAKPOINTS ========== */

@media (max-width: 1024px) {
  .navbar {
    padding: 3px 5%;
  }
  
  .hero {
    padding: 180px 5% 50px;
    min-height: 100vh;
  }
  
  .hero-logo-bg {
    width: 600px;
    height: 600px;
    opacity: 0.06;
  }
  
  .scroll-indicator {
    bottom: 25px;
  }
  
  .section {
    padding: 80px 5%;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 3px 5%;
  }
  
  .logo {
    height: 100px;
  }
  
  .navbar.scrolled .logo {
    height: 80px;
  }
  
  nav {
    gap: 8px;
  }
  
  nav a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 160px 5% 40px;
    min-height: 100vh;
  }
  
  .hero-logo-bg {
    width: 500px;
    height: 500px;
    opacity: 0.05;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
  
  .section {
    padding: 80px 5%;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 3rem;
  }
  
  .tech-item {
    padding: 20px 30px;
  }
  
  .team-member {
    min-width: 250px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-container {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 2px 3%;
  }
  
  .logo {
    height: 80px;
  }
  
  .navbar.scrolled .logo {
    height: 60px;
  }
  
  nav a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .hero {
    padding: 140px 3% 30px;
    min-height: 100vh;
  }
  
  .hero-logo-bg {
    width: 400px;
    height: 400px;
    opacity: 0.04;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .scroll-indicator {
    bottom: 15px;
  }
  
  .btn {
    padding: 14px 30px;
    font-size: 0.9rem;
  }
  
  .btn-outline {
    padding: 12px 28px;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .floating-contact {
    bottom: 20px;
    right: 20px;
  }
  
  .tech-item {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  
  .team-member {
    min-width: 200px;
    padding: 30px;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 3%;
  }
  
  .service-card,
  .portfolio-card,
  .feature-card {
    padding: 30px 25px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  input, textarea {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* ========== DISABLE HOVER EFFECTS ON TOUCH DEVICES ========== */
@media (hover: none) {
  .service-card:hover,
  .portfolio-card:hover,
  .tech-item:hover,
  .team-member:hover,
  .stat-item:hover,
  .feature-card:hover {
    transform: none;
  }
  
  nav a:hover {
    transform: none;
  }
  
  .btn:hover,
  .btn-outline:hover {
    transform: none;
  }
}
