:root {
  --primary-color: #4a90e2;
  --secondary-color: #8e44ad;
  --dark-bg: #1a1c20;
  --light-bg: #f8f9fa;
  --gradient-1: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-2: linear-gradient(135deg, #1a1c20 0%, #2d3436 100%);
  --text-light: #ffffff;
  --text-dark: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 1rem;
  background: linear-gradient(45deg, var(--primary-color), #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeIn 0.5s ease-in-out;
}

.animated-logo {
  transition: transform 0.3s ease;
}

.animated-logo:hover {
  transform: rotate(180deg);
}

.logo-circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawCircle 2s ease forwards;
}

.logo-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawPath 2s ease forwards 0.5s;
}

.logo-text {
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  position: relative;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item.active::after {
  width: 100%;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scrolled Navbar State */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 5%;
}

.navbar.scrolled .company-name {
  font-size: 1.2rem;
  transition: font-size 0.3s ease;
}

/* Updated Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: var(--dark-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(74, 144, 226, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(74, 144, 226, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.shape {
  position: absolute;
  filter: blur(80px);
}

.shape1 {
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(74, 144, 226, 0.3);
  animation: floatAnimation 8s ease-in-out infinite;
}

.shape2 {
  bottom: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: rgba(142, 68, 173, 0.3);
  animation: floatAnimation 12s ease-in-out infinite reverse;
}

.shape3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: rgba(74, 144, 226, 0.2);
  animation: pulseAnimation 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  max-width: 1000px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-title .line {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.hero-title .main-title {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(45deg, #4a90e2, #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards 0.3s;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards 0.6s;
}

.hero-cta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards 0.9s;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.cta-btn.secondary {
  border: 2px solid var(--primary-color);
  color: white;
}

.cta-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.cta-btn:hover {
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 1.2s;
}

@keyframes floatAnimation {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, -40px);
  }
}

@keyframes pulseAnimation {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Section Update */
.services {
  background: var(--light-bg);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    var(--dark-bg) 0%,
    var(--light-bg) 100%
  );
}

/* Updated Services Section */
.services {
  padding: 5rem 5%;
  background: var(--light-bg);
}

.services h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--primary-color), #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .menu-btn {
    display: block;
    cursor: pointer;
  }

  .menu-btn .bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  .menu-btn.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-btn.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-btn.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Contact Section */
.contact {
  padding: 6rem 5%;
  background: var(--light-bg);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    var(--dark-bg) 0%,
    var(--light-bg) 100%
  );
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: #666;
  font-size: 1.2rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 40px;
  height: 40px;
}

.contact-details h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: #666;
  line-height: 1.6;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.8rem;
  padding: 0 0.5rem;
  color: var(--primary-color);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--primary-color), #8e44ad);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.send-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
  }
}

@media (max-width: 576px) {
  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Service Icon Gradients */
.service-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

defs {
  #serviceGradient1 {
    stop-color: #4a90e2;
    stop-color: #8e44ad;
  }
  #serviceGradient2 {
    stop-color: #e74c3c;
    stop-color: #f39c12;
  }
  #serviceGradient3 {
    stop-color: #2ecc71;
    stop-color: #27ae60;
  }
  #serviceGradient4 {
    stop-color: #9b59b6;
    stop-color: #8e44ad;
  }
  #serviceGradient5 {
    stop-color: #3498db;
    stop-color: #2980b9;
  }
  #serviceGradient6 {
    stop-color: #e67e22;
    stop-color: #d35400;
  }
}

/* About Section Styles */
.about {
  padding: 6rem 5%;
  background: var(--gradient-2);
  color: var(--text-light);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about h2,
.about h3 {
  color: var(--text-light);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--primary-color), #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.company-illustration {
  width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    display: none;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

/* Add animation for stats counting */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
.footer {
  position: relative;
  background: var(--gradient-2);
  color: white;
  padding: 80px 5% 30px;
  overflow: hidden;
}

.footer-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.waves {
  width: 100%;
  height: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #4a90e2, #8e44ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.company-info p {
  color: #a0a0a0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 1rem;
}

.footer-section ul a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-section ul a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #a0a0a0;
  margin-bottom: 1rem;
}

.contact-info .icon {
  width: 20px;
  height: 20px;
  fill: var(--primary-color);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.copyright p {
  color: #666;
}

.footer-extra-links {
  display: flex;
  gap: 2rem;
}

.footer-extra-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-extra-links a:hover {
  color: var(--primary-color);
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-extra-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Section Transitions */
section {
  position: relative;
  z-index: 1;
}

.shape {
  filter: blur(70px);
  opacity: 0.5;
}

.shape1 {
  background: var(--primary-color);
}

.shape2 {
  background: var(--secondary-color);
}

.shape3 {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
}
