/* GLOBAL STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00ffcc;
  --secondary: #00b8d4;
  --accent: #ff00ff;
  --dark: #080808;
  --dark-card: rgba(22, 22, 24, 0.8);
  --text: #ffffff;
  --text-muted: #d0d0d0;
  --gradient-1: linear-gradient(135deg, #00ffcc, #00b8d4);
  --gradient-2: linear-gradient(135deg, #00ffcc, #00b8d4, #ff00ff);
  --shadow-sm: 0 5px 15px rgba(0, 255, 204, 0.3);
  --shadow-lg: 0 15px 40px rgba(0, 255, 204, 0.4);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  position: relative;
  padding-top: 80px;
  width: 100%;
  max-width: 100vw;
}

/* CUSTOM CURSOR - DISABLED */
.custom-cursor {
  display: none;
}

main,
section {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==========================================
   PARTICLE CANVAS - NEW FEATURE
   ========================================== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ==========================================
   BACK TO TOP BUTTON - NEW FEATURE
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.4);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 255, 204, 0.6);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* ANIMATED BACKGROUND */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: float 25s infinite ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--gradient-1);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #ff00ff, #00ffcc);
  bottom: -200px;
  right: -200px;
  animation-delay: 8s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #00ffcc, #4400ff);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 16s;
}

.orb-4 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #00b8d4, #00ffcc);
  top: 20%;
  right: 10%;
  animation-delay: 12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(120px, -120px) scale(1.15);
  }
  50% {
    transform: translate(-100px, 80px) scale(0.95);
  }
  75% {
    transform: translate(80px, 100px) scale(1.05);
  }
}

/* NAVBAR - ENHANCED WITH GLASSMORPHISM */
header {
  background: rgba(22, 22, 24, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 204, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header.scrolled {
  background: rgba(22, 22, 24, 0.95);
  border-bottom-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 8px 32px rgba(0, 255, 204, 0.15);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

nav ul.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
}

nav ul.nav-links li {
  position: relative;
}

nav ul.nav-links li .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  display: inline-block;
}

nav ul.nav-links li .nav-link::before {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav ul.nav-links li .nav-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 255, 204, 0.1);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: -1;
}

nav ul.nav-links li .nav-link:hover::after {
  width: 100%;
  height: 100%;
}

nav ul.nav-links li .nav-link:hover,
nav ul.nav-links li .nav-link.active {
  color: var(--primary);
}

nav ul.nav-links li .nav-link:hover::before,
nav ul.nav-links li .nav-link.active::before {
  width: calc(100% - 32px);
}

.left {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInDown 0.8s ease;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: "googleapis", sans-serif;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.left:hover .logo-text::after {
  transform: scaleX(1);
}

.image-4 {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.3));
  transition: all 0.3s ease;
  align-items: center
}

.image-4:hover {
  filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.6));
  transform: rotate(360deg);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* HERO SECTION - ENHANCED */
.firstSection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
  overflow: visible;
}

.leftSection {
  flex: 1;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 20px;
  animation: fadeInLeft 1s ease 0.2s backwards, floatBadge 3s ease-in-out infinite;
  width: fit-content;
  backdrop-filter: blur(10px);
}

@keyframes floatBadge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px var(--primary);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--primary);
  }
}

.hero-text {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  animation: fadeInLeft 1s ease;
  font-family: "Space Grotesk", sans-serif;
}

.typed-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientFlow 3s linear infinite;
  position: relative;
  display: inline-block;
}

.typed-text::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-1);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.wave-hand {
  display: inline-block;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(14deg);
  }
  20%,
  40% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(14deg);
  }
  60% {
    transform: rotate(0deg);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
  animation: fadeInLeft 1s ease 0.3s backwards;
}

.gradient-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  background-size: 200% auto;
  animation: gradientFlow 3s linear infinite;
  position: relative;
}

@keyframes gradientFlow {
  to {
    background-position: 200% center;
  }
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin: 50px 0;
  animation: fadeInLeft 1s ease 0.4s backwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding: 15px;
  border-radius: 12px;
  background: rgba(0, 255, 204, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 204, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInLeft 1s ease 0.5s backwards;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-1);
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.cta-primary:hover::after {
  width: 300px;
  height: 300px;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.5);
}

.cta-primary svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.cta-primary:hover svg {
  transform: translateX(5px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(0, 255, 204, 0.1);
  transition: width 0.4s ease;
  z-index: -1;
}

.cta-secondary:hover::before {
  width: 100%;
}

.cta-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.3);
}

.rightSection {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease;
  overflow: visible;
}

.image-wrapper {
  position: relative;
  animation: floatImage 6s ease-in-out infinite;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.image-1 {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 600px;
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(0, 255, 204, 0.4));
  transition: filter 0.3s ease;
  object-fit: contain;
}

.image-1:hover {
  filter: drop-shadow(0 0 60px rgba(0, 255, 204, 0.6)) brightness(1.1);
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.25), transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.1;
  }
}

.floating-card {
  display: none;
}

.image-3 {
  position: absolute;
  width: 25%;
  top: -120px;
  left: 0;
  filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.4));
  animation: rotateGlow 4s ease-in-out infinite;
}

@keyframes rotateGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(0, 255, 204, 0.7));
  }
}

/* SECTION STYLES - ENHANCED */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  position: relative;
  display: inline-block;
  margin-bottom: 60px;
  text-align: center;
  width: 100%;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientFlow 3s linear infinite;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ABOUT SECTION - ENHANCED */
.aboutSection {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-content {
  display: grid;
  gap: 30px;
  animation: fadeInUp 0.8s ease;
}

.about-card {
  background: var(--dark-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 204, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 204, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.about-card:hover::before {
  left: 100%;
}

.about-card::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-1);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.about-card:hover::after {
  opacity: 0.3;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 204, 0.4);
  box-shadow: var(--shadow-sm);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: bounceIcon 2s ease-in-out infinite;
}

@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.about-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.skills-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.skill-tag {
  padding: 10px 20px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.skill-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 204, 0.2);
  transition: left 0.4s ease;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag:hover {
  background: rgba(0, 255, 204, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

/* SERVICES SECTION - ENHANCED */
.servicesSection {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.servicesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.serviceCard {
  background: var(--dark-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 40px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
  animation: fadeInUp 0.8s ease backwards;
}

.serviceCard:nth-child(1) {
  animation-delay: 0.1s;
}
.serviceCard:nth-child(2) {
  animation-delay: 0.2s;
}
.serviceCard:nth-child(3) {
  animation-delay: 0.3s;
}

.serviceCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 204, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.serviceCard:hover::before {
  left: 100%;
}

.serviceCard::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.serviceCard:hover::after {
  opacity: 1;
}

.serviceCard:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* SERVICES SECTION CONTINUED */
.card-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 255, 204, 0.1);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  transition: all 0.3s ease;
}

.serviceCard:hover .card-number {
  color: rgba(0, 255, 204, 0.2);
  transform: scale(1.1);
}

.card-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: bounce 2s ease infinite;
  filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.3));
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.serviceCard h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
}

.clickHint {
  font-size: 0.85rem;
  color: rgba(0, 255, 204, 0.7);
  margin-bottom: 12px;
  font-style: italic;
}

.serviceDetail {
  display: none;
  margin-top: 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-features {
  display: none;
  list-style: none;
  margin-top: 16px;
  padding-left: 0;
  animation: slideDown 0.4s ease 0.1s backwards;
}

.service-features li {
  padding: 8px 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.serviceCard.active .serviceDetail,
.serviceCard.active .service-features {
  display: block;
}

.serviceCard.active {
  background: rgba(26, 26, 29, 0.95);
  border-color: var(--primary);
}

.serviceCard.active .arrow {
  transform: rotate(90deg);
}

/* PORTFOLIO SECTION - ENHANCED */
.portfolioSection {
  padding: 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.portfolioGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  animation: fadeInUp 0.8s ease backwards;
  aspect-ratio: 1;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.portfolio-item:nth-child(1) {
  animation-delay: 0.1s;
}
.portfolio-item:nth-child(2) {
  animation-delay: 0.2s;
}
.portfolio-item:nth-child(3) {
  animation-delay: 0.3s;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.portfolio-item:hover::before {
  opacity: 0.5;
}

.portfolio-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolioGrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 204, 0.95),
    rgba(0, 184, 212, 0.95)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-info {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.portfolio-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.portfolio-info p {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.8);
}

.view-icon {
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.4s ease;
  animation: zoomPulse 2s ease-in-out infinite;
}

@keyframes zoomPulse {
  0%, 100% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1);
  }
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .view-icon {
  transform: scale(1.2);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

/* MODAL - ENHANCED */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 60px 20px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.97);
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  animation: zoomIn 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(0, 255, 204, 0.2);
  border: 2px solid rgba(0, 255, 204, 0.3);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 50px;
  color: var(--primary);
  font-size: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 204, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 255, 204, 0.3);
}

.close-modal:hover {
  color: #fff;
  transform: rotate(90deg) scale(1.1);
  background: rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
}

/* PORTFOLIO BUTTONS - ENHANCED */
.portfolioButton {
  text-align: center;
}

.desktop-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--gradient-1);
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}

.desktop-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.desktop-btn:hover::before {
  left: 100%;
}

.desktop-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient-1);
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(10px);
}

.desktop-btn:hover::after {
  opacity: 0.7;
}

.desktop-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 255, 204, 0.6);
}

.mobile-btn {
  display: none;
  padding: 14px 28px;
  background: var(--primary);
  color: #000;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* CONTACT SECTION - ENHANCED */
.contactSection {
  padding: 120px 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.input-group {
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.input-group:focus-within label {
  color: #fff;
  transform: translateX(5px);
}

.contactForm input,
.contactForm textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid rgba(0, 255, 204, 0.2);
  background: var(--dark-card);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.contactForm input::placeholder,
.contactForm textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contactForm input:focus,
.contactForm textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.3), inset 0 0 15px rgba(0, 255, 204, 0.1);
  transform: translateY(-2px);
  background: rgba(22, 22, 24, 0.95);
}

.contactForm textarea {
  min-height: 160px;
  resize: vertical;
}

.submit-btn {
  padding: 18px;
  border-radius: 50px;
  border: none;
  background: var(--gradient-1);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.submit-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gradient-1);
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(15px);
}

.submit-btn:hover::after {
  opacity: 0.8;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 255, 204, 0.6);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  display: flex;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px) rotate(45deg);
}

/* LOADING ANIMATION - ENHANCED */
.loading-container {
  display: none;
  margin-top: 24px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.loading-container.active {
  display: block;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 255, 204, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--primary);
  font-size: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

#formMessage {
  margin-top: 20px;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: 16px;
  animation: fadeIn 0.3s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

#formMessage.success {
  background: rgba(0, 255, 204, 0.15);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

#formMessage.error {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 2px solid #ff4444;
  box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
}

/* CONTACT INFO - ENHANCED */
.contactInfo {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--dark-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  transition: all 0.3s ease;
  min-width: 0;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
  transition: left 0.6s ease;
}

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-item > div {
  min-width: 0;
  overflow: hidden;
}

.contact-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  word-break: break-all;
  overflow-wrap: break-word;
  display: block;
}

.contact-item a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

/* FOOTER - ENHANCED */
footer {
  background: rgba(22, 22, 24, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 255, 204, 0.15);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.3));
  transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
  filter: drop-shadow(0 0 15px rgba(0, 255, 204, 0.6));
  transform: rotate(360deg);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 12px;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 0.2;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 255, 204, 0.2);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.3);
}

.social-link:hover svg {
  transform: scale(1.1) rotate(5deg);
}

/* CURSOR TRAIL EFFECT */
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.trail-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.trail-dot.blur {
  filter: blur(2px);
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  nav {
    height: 70px;
  }

  .hamburger {
    display: flex;
  }

  nav ul.nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(22, 22, 24, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  nav ul.nav-links.active {
    display: flex;
  }

  nav ul.nav-links li {
    width: 100%;
    text-align: center;
  }

  nav ul.nav-links li .nav-link {
    display: block;
    padding: 16px;
  }

  .firstSection {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    min-height: auto;
  }

  .leftSection {
    order: 2;
    width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .rightSection {
    order: 1;
    margin-bottom: 40px;
  }

  .hero-text {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 120px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-cta {
    justify-content: center;
    width: 100%;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .image-3 {
    display: none;
  }

  .rightSection {
    display: none !important;
  }

  .image-1 {
    display: none !important;
  }

  .image-wrapper {
    display: none !important;
  }

  nav {
    padding: 0 15px;
  }

  .firstSection,
  .aboutSection,
  .servicesSection,
  .portfolioSection,
  .contactSection {
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .floating-card {
    display: none;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .aboutSection,
  .servicesSection,
  .portfolioSection,
  .contactSection {
    padding: 60px 20px;
  }

  .servicesGrid {
    grid-template-columns: 1fr;
  }

  .portfolioGrid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contactInfo {
    flex-direction: column;
    gap: 16px;
    padding: 0 10px;
  }

  .contact-item {
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    box-sizing: border-box;
  }

  .contact-item a {
    font-size: 0.9rem;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .close-modal {
    right: 20px;
    top: 20px;
    font-size: 40px;
  }

  .desktop-btn {
    display: none !important;
  }

  .mobile-btn {
    display: inline-block;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  #particleCanvas {
    display: none;
  }

  .cursor-trail {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .contact-item {
    padding: 14px 16px;
  }

  .contact-item a {
    font-size: 0.85rem;
  }

  .contact-icon {
    font-size: 1.5rem;
  }
}
