/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #0a0a0a;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: #b0b0b0;
}

a {
  color: #4ade80;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #4ade80;
  border: 2px solid #4ade80;
}

.btn-secondary:hover {
  background: #4ade80;
  color: white;
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  color: #4ade80;
  font-weight: 700;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #4ade80;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ade80;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #e0e0e0;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.highlight {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
}

.infinite-source-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* 3D Grid Layers */
.grid-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.grid-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 50%;
  animation: rotate3d 20s linear infinite;
}

.layer-1 {
  transform: rotateX(60deg) rotateY(0deg) translateZ(0px);
  animation-delay: 0s;
}

.layer-2 {
  transform: rotateX(60deg) rotateY(120deg) translateZ(50px);
  animation-delay: -6s;
}

.layer-3 {
  transform: rotateX(60deg) rotateY(240deg) translateZ(100px);
  animation-delay: -12s;
}

@keyframes rotate3d {
  0% {
    transform: rotateX(60deg) rotateY(0deg) translateZ(0px);
  }
  100% {
    transform: rotateX(60deg) rotateY(360deg) translateZ(0px);
  }
}

/* Floating Nodes */
.floating-nodes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
  animation: nodeFloat 8s ease-in-out infinite;
}

.node-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}
.node-2 {
  top: 25%;
  right: 25%;
  animation-delay: 1s;
}
.node-3 {
  top: 60%;
  left: 15%;
  animation-delay: 2s;
}
.node-4 {
  top: 70%;
  right: 20%;
  animation-delay: 3s;
}
.node-5 {
  bottom: 20%;
  left: 30%;
  animation-delay: 4s;
}
.node-6 {
  bottom: 30%;
  right: 35%;
  animation-delay: 5s;
}
.node-7 {
  top: 40%;
  left: 50%;
  animation-delay: 6s;
}
.node-8 {
  top: 50%;
  right: 50%;
  animation-delay: 7s;
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0px) translateZ(0px) scale(1);
  }
  25% {
    transform: translateY(-15px) translateZ(20px) scale(1.2);
  }
  50% {
    transform: translateY(0px) translateZ(40px) scale(1);
  }
  75% {
    transform: translateY(15px) translateZ(20px) scale(0.8);
  }
}

/* Connection Lines */
.connection-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.connections-svg {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.connection-path {
  fill: none;
  stroke: url(#connectionGradient);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawPath 4s ease-in-out infinite;
}

.connection-path:nth-child(2) {
  animation-delay: 1s;
}

.connection-path:nth-child(3) {
  animation-delay: 2s;
}

@keyframes drawPath {
  0% {
    stroke-dashoffset: 100;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -100;
  }
}

/* Data Particles */
.data-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  animation: particleFlow 6s linear infinite;
}

.particle-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.particle-2 {
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}
.particle-3 {
  top: 50%;
  left: 20%;
  animation-delay: 2s;
}
.particle-4 {
  bottom: 30%;
  right: 25%;
  animation-delay: 3s;
}
.particle-5 {
  bottom: 15%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes particleFlow {
  0% {
    transform: translateX(0) translateY(0) translateZ(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(100px) translateY(-50px) translateZ(100px);
    opacity: 0;
  }
}

/* Enhanced hover effects */
.node:hover {
  transform: scale(1.5) translateZ(30px);
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.9);
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-image {
    height: 300px;
  }

  .node {
    width: 8px;
    height: 8px;
  }

  .particle {
    width: 3px;
    height: 3px;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: #0a0a0a;
  perspective: 1000px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  transform-style: preserve-3d;
}

.service-card {
  background: #1a1a1a;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #2a2a2a;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.1) 0%,
    rgba(34, 197, 94, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-15px) rotateX(10deg) rotateY(5deg) translateZ(20px);
  box-shadow: 0 25px 50px rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
  transform: translateZ(30px);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: translateZ(50px) scale(1.1);
  box-shadow: 0 15px 30px rgba(74, 222, 128, 0.4);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  color: #e0e0e0;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.service-card p {
  position: relative;
  z-index: 2;
  transform: translateZ(15px);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: #1a1a1a;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #b0b0b0;
  margin: 0;
}

.about-image {
  display: flex;
  justify-content: center;
}

.team-photo {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-placeholder {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder i {
  font-size: 4rem;
  color: white;
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 0;
  background: #0a0a0a;
  perspective: 1000px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  transform-style: preserve-3d;
}

.portfolio-item {
  position: relative;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover {
  transform: translateY(-20px) rotateX(15deg) rotateY(10deg) translateZ(30px);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  position: relative;
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1) translateZ(20px);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 2rem;
  transform: translateY(100%) translateZ(40px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0) translateZ(40px);
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  transform: translateZ(10px);
}

.portfolio-overlay p {
  color: #ccc;
  margin: 0;
  transform: translateZ(5px);
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: #1a1a1a;
  perspective: 1000px;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto 3rem;
  height: 300px;
  transform-style: preserve-3d;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(50px) translateZ(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0) translateZ(20px);
}

.testimonial-content {
  background: #2a2a2a;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform-style: preserve-3d;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial.active .testimonial-content {
  transform: translateZ(20px);
  box-shadow: 0 20px 40px rgba(74, 222, 128, 0.1);
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) translateZ(30px);
  font-size: 4rem;
  color: #4ade80;
  opacity: 0.3;
  font-family: serif;
}

.testimonial-content p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: #e0e0e0;
  transform: translateZ(10px);
}

.testimonial-author h4 {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  transform: translateZ(15px);
}

.testimonial-author span {
  color: #4ade80;
  font-size: 0.9rem;
  transform: translateZ(10px);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  transform-style: preserve-3d;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.dot:hover {
  transform: translateZ(10px) scale(1.2);
}

.dot.active {
  background: #4ade80;
  transform: translateZ(15px) scale(1.3);
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: #0a0a0a;
  perspective: 1000px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  transform-style: preserve-3d;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform-style: preserve-3d;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px) translateZ(20px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: translateZ(30px);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.3);
}

.contact-item:hover .contact-icon {
  transform: translateZ(50px) scale(1.1);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.5);
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  transform: translateZ(15px);
}

.contact-item p {
  margin: 0;
  color: #b0b0b0;
  transform: translateZ(10px);
}

.contact-form {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form:hover {
  transform: translateZ(20px);
  box-shadow: 0 20px 40px rgba(74, 222, 128, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  transform-style: preserve-3d;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #2a2a2a;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
  background: #2a2a2a;
  color: #e0e0e0;
  transform: translateZ(0);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4ade80;
  transform: translateZ(10px);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #0a0a0a;
  color: white;
  padding: 4rem 0 2rem;
  perspective: 1000px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  transform-style: preserve-3d;
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
  transform: translateZ(20px);
}

.footer-section p {
  color: #cbd5e0;
  margin-bottom: 1rem;
  transform: translateZ(15px);
}

.footer-section ul {
  list-style: none;
  transform-style: preserve-3d;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  transform: translateZ(10px);
  transition: all 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(5px) translateZ(20px);
}

.footer-section ul li a {
  color: #cbd5e0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #4ade80;
}

.social-links {
  display: flex;
  gap: 1rem;
  transform-style: preserve-3d;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateZ(0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-links a:hover {
  background: #4ade80;
  transform: translateY(-5px) translateZ(20px) scale(1.1);
  box-shadow: 0 15px 30px rgba(74, 222, 128, 0.4);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  transform-style: preserve-3d;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  background: #2a2a2a;
  color: #e0e0e0;
  transform: translateZ(0);
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  transform: translateZ(10px);
  box-shadow: 0 10px 25px rgba(74, 222, 128, 0.2);
}

.newsletter-form button {
  padding: 0.75rem 1rem;
  background: #4ade80;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.newsletter-form button:hover {
  background: #22c55e;
  transform: translateZ(15px) scale(1.05);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2a2a2a;
  color: #b0b0b0;
  transform: translateZ(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #0a0a0a;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-image {
    height: 300px;
  }

  .team-photo {
    width: 300px;
    height: 300px;
  }

  .photo-placeholder {
    width: 150px;
    height: 150px;
  }

  .photo-placeholder i {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .service-card {
    padding: 1.5rem;
  }

  .testimonial-content {
    padding: 2rem 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Animation Classes */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Floating 3D Background Elements */
.services::before,
.portfolio::before,
.testimonials::before,
.contact::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(74, 222, 128, 0.1);
  border-radius: 50%;
  top: 10%;
  right: 5%;
  animation: float3d 8s ease-in-out infinite;
  pointer-events: none;
}

.services::after,
.portfolio::after,
.testimonials::after,
.contact::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(74, 222, 128, 0.08);
  border-radius: 50%;
  bottom: 15%;
  left: 3%;
  animation: float3d 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float3d {
  0%,
  100% {
    transform: translateY(0px) translateZ(0px) rotateY(0deg);
  }
  25% {
    transform: translateY(-20px) translateZ(50px) rotateY(90deg);
  }
  50% {
    transform: translateY(0px) translateZ(100px) rotateY(180deg);
  }
  75% {
    transform: translateY(20px) translateZ(50px) rotateY(270deg);
  }
}

/* Enhanced section headers with 3D effects */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.section-title {
  font-size: 2.5rem;
  color: #e0e0e0;
  margin-bottom: 1rem;
  transform: translateZ(30px);
  transition: all 0.3s ease;
}

.section-header:hover .section-title {
  transform: translateZ(50px) scale(1.05);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  transform: translateZ(20px);
}

/* 3D Stats in About Section */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  transform-style: preserve-3d;
}

.stat {
  text-align: center;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateZ(30px) scale(1.05);
}

.stat h3 {
  font-size: 2.5rem;
  color: #4ade80;
  margin-bottom: 0.5rem;
  transform: translateZ(20px);
}

.stat p {
  color: #b0b0b0;
  margin: 0;
  transform: translateZ(15px);
}

/* Floating Particles Animation */
.floating-particle {
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) translateZ(0px) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-15px) translateZ(20px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translateY(0px) translateZ(40px) scale(1);
    opacity: 0.6;
  }
  75% {
    transform: translateY(15px) translateZ(20px) scale(0.8);
    opacity: 0.4;
  }
}

/* Enhanced button 3D effects */
.btn {
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
  transform: translateY(-3px) translateZ(20px) scale(1.05);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(74, 222, 128, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 15px 35px rgba(74, 222, 128, 0.3);
}

/* Project Timeline Section */
.project-timeline {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.project-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(74, 222, 128, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(34, 197, 94, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.timeline-container {
  position: relative;
  z-index: 2;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #b0b0b0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-step.active .step-number {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: white;
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.step-label {
  color: #b0b0b0;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.timeline-step.active .step-label {
  color: #e0e0e0;
}

.step-progress {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.timeline-step.active .step-progress {
  width: 100px;
}

.timeline-details {
  position: relative;
  min-height: 300px;
  margin-bottom: 3rem;
}

.detail-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.time-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-info i {
  font-size: 1.5rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

.time-label {
  display: block;
  font-size: 0.8rem;
  color: #b0b0b0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.time-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e0e0e0;
}

.detail-content p {
  color: #b0b0b0;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

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

.timeline-cta .btn {
  font-size: 1.1rem;
  padding: 15px 40px;
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
  .timeline-steps {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }

  .timeline-steps::before {
    display: none;
  }

  .timeline-step {
    width: 100%;
    flex-direction: row;
    gap: 1rem;
  }

  .step-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-progress {
    display: none;
  }

  .detail-card {
    padding: 1.5rem;
  }

  .time-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .project-timeline {
    padding: 4rem 0;
  }

  .timeline-steps {
    padding: 1rem;
  }

  .detail-card {
    padding: 1rem;
  }
}
