 :root {
  --primary: #1b2a41;
  --primary-light: #2a3d5f;
  --secondary: #4b9cd3;
  --secondary-light: #6bb7e5;
  --dark: #0f0f0f;
  --dark-light: #333333;
  --light: #f8fafc;
  --white: #ffffff;
  --accent: #c0c0c0;
  --neon: #00f2ff;
  --neon-pink: #ff00f2;
  --neon-purple: #b400ff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Improved Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary), var(--secondary));
  border-radius: 10px;
  border: 2px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--secondary), var(--primary));
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-title h2 {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title p {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: var(--dark-light);
  max-width: 700px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-color: transparent;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

/* Header with Glass Morphism */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled {
  background: rgba(27, 42, 65, 0.98);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
}

header.scrolled .logo-text h1,
header.scrolled nav ul li a,
header.scrolled .mobile-menu-btn {
  color: var(--white);
}

header.scrolled nav ul li a::after {
  background: var(--secondary);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    45deg,
    var(--neon),
    var(--neon-pink),
    var(--neon-purple),
    var(--neon)
  );
  background-size: 400%;
  z-index: -1;
  filter: blur(15px);
  opacity: 0;
  transition: var(--transition);
}

.logo:hover::before {
  opacity: 0.7;
  animation: gradientBG 8s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  transition: var(--transition);
}

.logo:hover img {
  transform: rotate(15deg) scale(1.1);
}

.logo-text h1 {
  font-size: 1.8rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: var(--transition);
}

header.scrolled .logo-text h1 {
  background: linear-gradient(to right, var(--white), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
  position: relative;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu-btn:hover {
  transform: rotate(90deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(75, 156, 211, 0.1) 0%,
    rgba(27, 42, 65, 0) 50%
  );
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero h1 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--neon));
  border-radius: 2px;
}

.hero h1 span {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hero h1 span::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.hero h1:hover span::before {
  transform: scaleX(1);
  transform-origin: left;
}

.hero p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin-bottom: 30px;
  color: var(--dark-light);
  line-height: 1.8;
}

/* Floating Particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

#canvas3d {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
}

/* Services Section */
.services {
  background-color: var(--white);
}

.services::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(75, 156, 211, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(192, 192, 192, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 42, 65, 0.1) 0%,
    rgba(75, 156, 211, 0.05) 100%
  );
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
}

.service-card:hover .service-icon {
  transform: rotateY(180deg) scale(1.1);
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  position: relative;
}

.service-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.service-card:hover h3::after {
  width: 80px;
  background: var(--primary);
}

.service-card p {
  color: var(--dark-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Stats Section */
.stats {
  background-color: var(--light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
  display: inline-block;
}

.stat-card:hover .stat-number {
  color: var(--secondary);
  transform: scale(1.1);
}

.stat-title {
  font-size: 1.1rem;
  color: var(--dark-light);
  font-weight: 500;
}

/* 3D Model Section */
.model-section {
  min-height: 70vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.model-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 242, 255, 0.1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  animation: rotate 20s linear infinite;
  z-index: 1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#modelCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.model-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.model-content h2 {
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

.model-content h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

.model-content p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  max-width: 700px;
  margin-bottom: 30px;
  padding: 0 20px;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Floating Tech Elements */
.tech-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.tech-element {
  position: absolute;
  opacity: 0.1;
  font-family: "Courier New", monospace;
  font-weight: bold;
  color: var(--white);
  animation: float-tech linear infinite;
}

@keyframes float-tech {
  0% {
    transform: translateY(100vh) rotate(0deg);
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
}

.testimonials::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 65, 0.03) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(192, 192, 192, 0.2);
  position: relative;
  transform-style: preserve-3d;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(27, 42, 65, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--dark-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid var(--secondary);
  transition: var(--transition);
}

.testimonial-card:hover .author-avatar {
  transform: scale(1.1);
  border-color: var(--primary);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.testimonial-card:hover .author-avatar img {
  transform: scale(1.05);
}

.author-info h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--accent);
}

/* Contact Form Section */
.contact {
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--secondary);
  transform: rotate(15deg);
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-text a {
  color: var(--secondary);
  font-weight: 500;
  position: relative;
}

.contact-text a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: var(--transition);
}

.contact-text a:hover::after {
  width: 100%;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(192, 192, 192, 0.5);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: transparent;
  position: relative;
  z-index: 1;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(75, 156, 211, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Form label animation */
.form-group label {
  position: absolute;
  left: 15px;
  top: 12px;
  color: var(--dark-light);
  transition: var(--transition);
  pointer-events: none;
  background: var(--white);
  padding: 0 5px;
  z-index: 2;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: var(--secondary);
  z-index: 3;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, #0d1a2e 100%);
  color: var(--white);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.02)" d="M0,0 L100,0 L100,100 L0,100 Z"></path></svg>');
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.footer-col:hover h3::after {
  width: 80px;
}

.footer-col p {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 10px;
  list-style: none;
  transition: var(--transition);
}

.footer-links li:hover {
  transform: translateX(5px);
}

.footer-links a {
  color: var(--accent);
  transition: var(--transition);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.footer-links a i {
  margin-right: 8px;
  font-size: 0.8rem;
  color: var(--secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-links a:hover i {
  transform: rotate(45deg);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: var(--accent);
  list-style: none;
  font-size: 0.95rem;
}

.contact-info i {
  margin-right: 10px;
  color: var(--secondary);
  transition: var(--transition);
}

.contact-info li:hover i {
  transform: scale(1.2);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--secondary), var(--neon));
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.social-links a:hover {
  background: transparent;
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 5px 15px rgba(75, 156, 211, 0.4);
}

.social-links a:hover::before {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

/* Cursor Effects */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(75, 156, 211, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 9999;
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(75, 156, 211, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease,
    background-color 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
}

.preloader-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--secondary);
  transition: width 0.3s ease;
}

/* Animated Background Elements */
.bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  opacity: 0.1;
  filter: blur(60px);
  animation: float-shapes linear infinite;
}

@keyframes float-shapes {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(5vw, 10vh) rotate(90deg);
  }

  50% {
    transform: translate(10vw, 5vh) rotate(180deg);
  }

  75% {
    transform: translate(5vw, -5vh) rotate(270deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Text Animation Classes */
.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 40px;
  }

  #canvas3d {
    position: relative;
    width: 100%;
    height: 50vh;
    margin-top: 0;
  }

  .btn-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .header-container {
    padding: 15px 0;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    padding: 80px 5% 40px;
    z-index: 999;
    transform: translateY(-100%);
    transition: var(--transition);
  }

  nav ul.show {
    display: flex;
    transform: translateY(0);
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul li a {
    color: var(--white);
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active i::before {
    content: "\f00d";
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-form {
    order: -1;
  }

  .form-group label {
    display: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn,
  .btn-outline {
    padding: 10px 20px;
    width: 100%;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .model-content h2 {
    font-size: 1.8rem;
  }

  .model-content p {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}
