/*-------------------------------------
 * Base Styles & Variables
 *------------------------------------*/
:root {
  /* Colors */
  --color-primary: #6c63ff;
  --color-secondary: #00c7b1;
  --color-accent: #ff6b6b;
  --color-dark: #111827;
  --color-darkblue: #161c2d;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-white: #ffffff;

  /* Soft background colors */
  --color-primary-soft: rgba(108, 99, 255, 0.1);
  --color-secondary-soft: rgba(0, 199, 177, 0.1);
  --color-accent-soft: rgba(255, 107, 107, 0.1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);

  /* Sizes */
  --header-height: 80px;
  --container-width: 1280px;
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  background-color: var(--color-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--color-white);
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/*-------------------------------------
   * Utilities
   *------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 2rem;
}

.full-width {
  width: 100%;
}

.gradient-text {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-accent {
  color: var(--color-accent);
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-gray-300);
}

.bg-primary-soft {
  background-color: var(--color-primary-soft);
}

.bg-secondary-soft {
  background-color: var(--color-secondary-soft);
}

.bg-accent-soft {
  background-color: var(--color-accent-soft);
}

/*-------------------------------------
   * Buttons
   *------------------------------------*/
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: rgba(108, 99, 255, 0.9);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-full);
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 600;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.glow-button {
  position: relative;
  overflow: hidden;
}

.glow-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  animation: glowEffect 3s infinite;
}

@keyframes glowEffect {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: rgba(108, 99, 255, 0.9);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

/*-------------------------------------
   * Header & Navigation
   *------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(22, 28, 45, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 70px;
  background-color: rgba(22, 28, 45, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.contact-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 2rem;
}

.contact-btn:hover {
  background-color: rgba(108, 99, 255, 0.9);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 10px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 20px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: var(--color-darkblue);
    padding: 2rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-menu-btn {
    display: block;
  }

  .contact-btn {
    margin-left: 1rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  .contact-btn {
    display: none;
  }
}

/*-------------------------------------
   * Hero Section
   *------------------------------------*/
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-gray-300);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-2xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-shape-1 {
  position: absolute;
  top: 10%;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.1;
  filter: blur(100px);
}

.hero-shape-2 {
  position: absolute;
  bottom: 10%;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.1;
  filter: blur(100px);
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-text,
  .hero-image {
    width: 100%;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 1.5rem);
  }

  .hero-title {
    font-size: 2rem;
  }
}

/*-------------------------------------
   * Section Common Styles
   *------------------------------------*/
section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-gray-400);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.shape-blob-1,
.shape-blob-2,
.shape-blob-3,
.shape-blob-4,
.shape-blob-5,
.shape-blob-6 {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.1;
  z-index: 0;
}

.shape-blob-1 {
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
}

.shape-blob-2 {
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
}

.shape-blob-3 {
  top: 20%;
  left: 25%;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
}

.shape-blob-4 {
  bottom: 20%;
  right: 25%;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
}

.shape-blob-5 {
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
}

.shape-blob-6 {
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--color-accent);
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }
}

/*-------------------------------------
   * Services Section
   *------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-darkblue);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--color-gray-400);
  margin-bottom: 1.5rem;
}

.service-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/*-------------------------------------
   * About Section
   *------------------------------------*/
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-2xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  height: 600px;
  object-fit: cover;
  width: 100%;
}

.about-stats {
  position: absolute;
  bottom: -3rem;
  right: -3rem;
  background-color: var(--color-darkblue);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 300px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-counter .stat-value {
  margin-bottom: 0.25rem;
}

.stat-counter .stat-label {
  font-size: 0.75rem;
}

.about-text {
  flex: 1;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  display: flex;
}

.feature-icon {
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.feature-text h4 {
  margin-bottom: 0.5rem;
}

.feature-text p {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .about-stats {
    position: static;
    margin-top: 2rem;
    max-width: 100%;
  }

  .about-image img {
    height: auto;
  }
}

@media (max-width: 768px) {
  .about-features {
    grid-template-columns: 1fr;
  }
}

/*-------------------------------------
   * Work Section
   *------------------------------------*/
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  gap: 1rem;
}

.filter-btn {
  background-color: var(--color-darkblue);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-full);
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-xl);
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 28, 45, 0.9),
    rgba(22, 28, 45, 0.5),
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-overlay p {
  margin-bottom: 1rem;
  color: var(--color-gray-300);
  font-size: 0.875rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.05s;
}

.portfolio-link {
  display: flex;
  align-items: center;
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.portfolio-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.portfolio-link:hover i {
  transform: translateX(5px);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .portfolio-link {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/*-------------------------------------
   * Work Process Section
   *------------------------------------*/
.process-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background-color: var(--color-dark);
}

.process-container {
  position: relative;
  margin: 4rem auto;
  max-width: 1200px;
  padding: 0 20px;
  min-height: 300px;
}

.process-steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.process-step-wrapper {
  flex: 0 0 20%;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step-wrapper.active {
  opacity: 1;
  transform: translateY(0);
}

.process-step {
  width: 100px;
  height: 100px;
  background-color: var(--color-white);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.process-step[data-step='1'] {
  margin-top: 0;
}

.process-step[data-step='2'] {
  margin-top: 50px;
}

.process-step[data-step='3'] {
  margin-top: 0;
}

.process-step[data-step='4'] {
  margin-top: 50px;
}

.process-step[data-step='5'] {
  margin-top: 0;
}

.process-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.process-text {
  text-align: center;
  max-width: 150px;
  margin-top: 1rem;
}

.process-text h4 {
  font-size: 0.9rem;
  color: var(--color-white);
  line-height: 1.4;
  margin: 0;
}

.process-path-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.process-path-svg {
  width: 100%;
  height: 100%;
  position: absolute;
}

#process-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawProcessPath 3s forwards ease-in-out;
  animation-delay: 0.5s;
}

@keyframes drawProcessPath {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 992px) {
  .process-steps-container {
    flex-direction: column;
    align-items: center;
  }

  .process-step-wrapper {
    flex: 0 0 100%;
    margin-bottom: 3rem;
    max-width: 250px;
  }

  .process-step[data-step] {
    margin-top: 0;
  }

  .process-path-container {
    display: none;
  }
}

/*-------------------------------------
   * Latest Projects Section
   *------------------------------------*/
.latest-projects-section {
  position: relative;
  padding: 6rem 0;
  background-color: var(--color-darkblue);
  overflow: hidden;
}

.projects-container {
  margin: 3rem 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.project-item.show {
  opacity: 1;
  transform: translateY(0);
}

.project-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.8)
  );
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 2rem;
  color: var(--color-white);
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0.1s;
}

.project-item:hover .project-content {
  transform: translateY(0);
  opacity: 1;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.project-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-gray-200);
}

.project-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.project-categories span {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--color-gray-200);
}

.project-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}

.project-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--color-white);
}

.project-link:hover i {
  transform: translateX(5px);
}

.view-all-projects {
  margin-top: 2.5rem;
  text-align: center;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

/*-------------------------------------
   * Technologies Section
   *------------------------------------*/
.technologies-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.tech-orbit-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 500px;
  height: 500px;
  animation: rotate 60s linear infinite;
}

.orbit-2 {
  width: 360px;
  height: 360px;
  animation: rotate-reverse 45s linear infinite;
}

.orbit-3 {
  width: 240px;
  height: 240px;
  animation: rotate 30s linear infinite;
}

.tech-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: var(--color-darkblue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform-origin: center;
}

.orbit-1 .tech-icon {
  transform: rotate(calc(60deg * var(--i))) translateX(250px)
    rotate(calc(-60deg * var(--i)));
}

.orbit-2 .tech-icon {
  transform: rotate(calc(72deg * var(--i))) translateX(180px)
    rotate(calc(-72deg * var(--i)));
}

.orbit-3 .tech-icon {
  transform: rotate(calc(120deg * var(--i))) translateX(120px)
    rotate(calc(-120deg * var(--i)));
}

.tech-icon img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.tech-icon:hover img {
  transform: scale(1.2);
}

.book-meeting {
  position: absolute;
  z-index: 2;
}

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotate-reverse {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@media (max-width: 992px) {
  .tech-orbit-container {
    height: 500px;
  }

  .orbit-1 {
    width: 400px;
    height: 400px;
  }

  .orbit-2 {
    width: 280px;
    height: 280px;
  }

  .orbit-3 {
    width: 180px;
    height: 180px;
  }

  .orbit-1 .tech-icon {
    transform: rotate(calc(60deg * var(--i))) translateX(200px)
      rotate(calc(-60deg * var(--i)));
  }

  .orbit-2 .tech-icon {
    transform: rotate(calc(72deg * var(--i))) translateX(140px)
      rotate(calc(-72deg * var(--i)));
  }

  .orbit-3 .tech-icon {
    transform: rotate(calc(120deg * var(--i))) translateX(90px)
      rotate(calc(-120deg * var(--i)));
  }
}

@media (max-width: 768px) {
  .tech-orbit-container {
    height: 400px;
  }

  .orbit-1 {
    width: 300px;
    height: 300px;
  }

  .orbit-2 {
    width: 220px;
    height: 220px;
  }

  .orbit-3 {
    width: 140px;
    height: 140px;
  }

  .tech-icon {
    width: 50px;
    height: 50px;
  }

  .tech-icon img {
    width: 25px;
    height: 25px;
  }

  .orbit-1 .tech-icon {
    transform: rotate(calc(60deg * var(--i))) translateX(150px)
      rotate(calc(-60deg * var(--i)));
  }

  .orbit-2 .tech-icon {
    transform: rotate(calc(72deg * var(--i))) translateX(110px)
      rotate(calc(-72deg * var(--i)));
  }

  .orbit-3 .tech-icon {
    transform: rotate(calc(120deg * var(--i))) translateX(70px)
      rotate(calc(-120deg * var(--i)));
  }
}

/*-------------------------------------
   * Testimonials Section
   *------------------------------------*/
.testimonial-slider-container {
  position: relative;
  padding: 0 3rem;
}

.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
  flex: 1 0 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    min-width: 50%;
    flex: 1 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    min-width: 33.333%;
    flex: 1 0 33.333%;
  }
}

.testimonial-card {
  background-color: var(--color-darkblue);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.quote-icon {
  font-size: 2rem;
}

.testimonial-rating {
  color: #ffc107;
}

.testimonial-content {
  color: var(--color-gray-300);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.testimonial-prev,
.testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--color-darkblue);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.testimonial-prev {
  left: 0;
}

.testimonial-next {
  right: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--color-primary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--color-primary);
}

/*-------------------------------------
   * Contact Section
   *------------------------------------*/
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-item {
  display: flex;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--color-gray-400);
  margin-bottom: 0.25rem;
}

.social-links {
  margin-top: 2rem;
}

.social-links h4 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-darkblue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background-color: var(--color-primary);
}

.contact-form-container {
  background-color: var(--color-darkblue);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-400);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  background-color: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/*-------------------------------------
   * Footer
   *------------------------------------*/
.footer {
  background-color: var(--color-darkblue);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  font-family: var(--font-heading);
}

.footer-col p {
  color: var(--color-gray-400);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.newsletter-form {
  margin-bottom: 1rem;
}

.newsletter-input-group {
  display: flex;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-l) 0 0 var(--border-radius-l);
  background-color: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-right: none;
}

.newsletter-input-group button {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0 1rem;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-input-group button:hover {
  background-color: rgba(108, 99, 255, 0.9);
}

.newsletter-disclaimer {
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/*-------------------------------------
   * Animations
   *------------------------------------*/
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animated {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animation] {
  transition-delay: calc(var(--delay, 0) * 1s);
}
