* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00f0ff;
  --secondary: #7c3aed;
  --accent: #f59e0b;
  --dark: #0f0f23;
  --darker: #050510;
  --light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Advanced Particle Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
    ellipse at top,
    #1e1e3f 0%,
    var(--darker) 50%,
    var(--dark) 100%
  );
}

/* Navigation with glass effect */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(15, 15, 35, 0.8);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 3px;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.8));
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section with 3D effect */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  perspective: 1000px;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float-shape 20s infinite ease-in-out;
}

.shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), transparent);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--secondary), transparent);
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  bottom: 15%;
  right: 10%;
  animation-delay: -5s;
}

.shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent), transparent);
  border-radius: 50%;
  top: 50%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float-shape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
}

.hero-content h1 {
  font-size: 7rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite,
    float-text 3s ease-in-out infinite;
  line-height: 1.1;
  letter-spacing: -2px;
}

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

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

.hero-subtitle {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  line-height: 1.8;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  position: relative;
  padding: 1.2rem 3.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta-button::before {
  content: "";
  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.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.6);
}

.cta-button-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.cta-button-secondary:hover {
  background: var(--primary);
  color: var(--dark);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

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

.scroll-indicator span {
  font-size: 0.9rem;
  opacity: 0.7;
}

.scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  position: relative;
}

.scroll-icon::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 30px;
    opacity: 0;
  }
}

/* Statistics Section */
.stats-section {
  padding: 4rem 5%;
  background: rgba(0, 240, 255, 0.03);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 600;
}

/* Section Styles */
section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.3rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Services with Interactive Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 30px;
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 240, 255, 0.15),
    transparent 70%
  );
  opacity: 0;
  transition: all 0.6s;
  transform: scale(0);
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotateY(360deg);
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.service-card p {
  opacity: 0.85;
  position: relative;
  z-index: 1;
  line-height: 1.7;
  font-size: 1.05rem;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  opacity: 0.9;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Interactive Timeline/Process */
.process-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(124, 58, 237, 0.05) 50%,
    transparent 100%
  );
  padding: 8rem 5%;
}

.process-timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  transform: translateX(-50%);
}

.process-step {
  display: flex;
  gap: 3rem;
  margin-bottom: 5rem;
  position: relative;
  align-items: center;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 25px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: all 0.4s;
}

.step-content:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark);
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
  position: relative;
  z-index: 10;
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Projects Showcase */
.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.project-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.5s;
  cursor: pointer;
  position: relative;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.3);
  border-color: var(--primary);
}

.project-image {
  height: 280px;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.2),
    rgba(124, 58, 237, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.project-card:hover .project-image::before {
  left: 100%;
}

.project-content {
  padding: 2.5rem;
}

.project-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.project-content p {
  margin-bottom: 1.5rem;
  opacity: 0.85;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  padding: 0.5rem 1.2rem;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid var(--secondary);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tag:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.project-link:hover {
  transform: translateX(10px);
}

/* Contact Section with Glass Effect */
.contact-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 240, 255, 0.05) 100%
  );
  padding: 8rem 5%;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s;
}

.contact-method:hover {
  border-color: var(--primary);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.contact-method-icon {
  font-size: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.3rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 15px;
  color: var(--light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  padding: 1.3rem 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  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, height 0.6s;
}

.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 240, 255, 0.5);
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 5%;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  background: var(--darker);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.4s;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  transform: translateY(-10px) rotate(360deg);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

.footer-text {
  opacity: 0.7;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 5rem;
  }

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

  .timeline-line {
    display: none;
  }

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
  }

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

  .services-grid,
  .projects-showcase {
    grid-template-columns: 1fr;
  }
}

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

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}
