@import url("https://fonts.googleapis.com/css?family=Nova%20Mono:700|Nova%20Mono:400");

:root[data-theme="light"] {
  --text: #040316;
  --background: #fffbe0;
  --primary: #096d69;
  --secondary: #90d0ca;
  --accent: #129b92;
}

:root[data-theme="dark"] {
  --text: #fffbe0;
  --background: #040316;
  --primary: #129b92;
  --secondary: #90d0ca;
  --accent: #096d69;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* 16px */
}

body {
  font-family: "Nova Mono";
  font-weight: 400;
  background: var(--background);
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Nova Mono";
  font-weight: 700;
}

h1 {
  font-size: 4.21rem;
} /* 67.36px */
h2 {
  font-size: 3.158rem;
} /* 50.56px */
h3 {
  font-size: 2.369rem;
} /* 37.92px */
h4 {
  font-size: 1.777rem;
} /* 28.48px */
h5 {
  font-size: 1.333rem;
} /* 21.28px */
small {
  font-size: 0.75rem;
} /* 12px */

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(4, 3, 22, 0.1);
}

.top-bar {
  background: var(--background-100);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info a {
  margin-right: 20px;
  color: var(--text-600);
  text-decoration: none;
}

.social-links a {
  margin-left: 15px;
  color: var(--text-600);
}

.navbar {
  background: var(--background);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  border-bottom: 1px solid rgba(4, 3, 22, 0.1);
}

[data-theme="dark"] .navbar {
  border-bottom: 1px solid rgba(255, 251, 224, 0.1);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 4px;
  background: transparent;
}

.navbar .logo object,
.navbar .logo img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .navbar .logo object,
[data-theme="dark"] .navbar .logo img {
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--background);
}

.nav-menu li {
  position: relative;
  margin: 0 15px;
}

.nav-menu a {
  font-family: "Nova Mono";
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a:hover::after {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--background-50);
  box-shadow: 0 2px 5px rgba(var(--text-900), 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  padding: 10px 0;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 20px;
  display: block;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(var(--background), 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem 0;
    transition: 0.3s ease;
    display: none;
  }

  .nav-menu.active {
    left: 0;
    display: flex;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .hero {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.theme-toggle button {
  background: var(--primary-500);
  color: var(--background-50);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.theme-toggle button:hover {
  transform: scale(1.1);
  background: var(--primary-600);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
  background: var(--background);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(9, 109, 105, 0.05),
    rgba(18, 155, 146, 0.05)
  );
  z-index: 1;
}

.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.4rem;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--background);
  border: none;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(9, 109, 105, 0.2);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--background);
  transform: translateY(-3px);
}

/* Animation classes */
.animate-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Next Section */
.next-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    var(--background),
    rgba(144, 208, 202, 0.1)
  );
  overflow: hidden;
}

.tech-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(var(--primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  opacity: 0.05;
  animation: gridMove 20s linear infinite;
}

.next-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.next-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(144, 208, 202, 0.2);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.next-card:hover {
  transform: translateY(-10px);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--background);
  position: relative;
  overflow: hidden;
}

.card-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.next-card:hover .card-icon::after {
  transform: translateX(100%);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.card-description {
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--background);
  border-radius: 20px;
  font-size: 0.8rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.section-heading h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.next-card.ai-ml .card-icon,
.next-card.security .card-icon,
.next-card.consulting .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}

/* About Section */
.about-section {
  position: relative;
  padding: 120px 0;
  background: var(--background);
  overflow: hidden;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(9, 109, 105, 0.05),
    rgba(18, 155, 146, 0.05)
  );
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: "Nova Mono";
}

.stat-label {
  color: var(--text);
  font-size: 1rem;
  opacity: 0.9;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
}

.image-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-item:hover img {
  transform: scale(1.1);
}

.image-item:nth-child(even) {
  margin-top: 2rem;
}

.tech-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--primary) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: 1;
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-grid {
    order: -1;
  }
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Testimonials Section */
.testimonials {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(
    135deg,
    var(--background),
    rgba(144, 208, 202, 0.1)
  );
  overflow: hidden;
}

.testimonial-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(144, 208, 202, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  transition: transform 0.5s ease;
}

.testimonial-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.quote-icon {
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: -1rem;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2rem;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  background: var(--background);
}

.client-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Remove or comment out the old .client-image styles */
/* .client-image {
  ...
} */

.client-details h4 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.client-details p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  opacity: 1;
  width: 30px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .testimonial-card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

/* Contact Section */
.contact-section {
  position: relative;
  padding: 120px 0;
  background: var(--background);
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.contact-info {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--background);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(144, 208, 202, 0.2);
  border-radius: 20px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(144, 208, 202, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: "Nova Mono";
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(9, 109, 105, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: var(--background);
  font-family: "Nova Mono";
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.contact-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: linear-gradient(45deg, var(--primary) 25%, transparent 25%),
    linear-gradient(-45deg, var(--primary) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--primary) 75%),
    linear-gradient(-45deg, transparent 75%, var(--primary) 75%);
  background-size: 20px 20px;
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-form,
  .contact-info {
    padding: 1.5rem;
  }
}

/* Footer Section */
.footer {
  position: relative;
  padding: 80px 0 30px;
  background: var(--primary);
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.footer-wave path {
  fill: var(--background);
}

.footer-content {
  position: relative;
  z-index: 2;
  color: var(--background);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--background);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-3px) rotate(8deg);
}

.footer-links h5 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links h5::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--background);
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--background);
  opacity: 0.8;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
