@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-color: #ff8539ff;
  --primary-dark: #e56b20;
  --secondary-color: #3b82f6;
  --accent-color: #10b981;
  --dark-color: #1e293b;
  --first_section-color: #0e1829;
  --second_section-color: #132138;
  --third_section-color: #172845;
  --forth_section-color: #20365c;
  --fifth_section-color: #25406e;
  --sixth_section-color: #2a497d;
  --dark-transparent-color: rgba(30, 41, 59, 0.8);
  --light-color: #f8fafc;
  --extra-light: #f1f5f9;
  --max-width: 100vw;
  --shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: #fff5;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.logo-icon {
  font-size: 3rem;
  color: var(--primary-color);
  animation: electricGlow 1.5s ease-in-out infinite alternate;
  text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

@keyframes electricGlow {
  0% {
    filter: drop-shadow(0 0 5px var(--primary-color));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 20px var(--primary-color));
    transform: scale(1.1);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-primary {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
}

.logo-secondary {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid transparent;
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--secondary-color);
  border-bottom: 4px solid var(--primary-color);
  border-left: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite, colorShift 2s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes colorShift {
  0% {
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
    border-left-color: var(--secondary-color);
  }
  25% {
    border-top-color: var(--secondary-color);
    border-right-color: var(--accent-color);
    border-bottom-color: var(--secondary-color);
    border-left-color: var(--accent-color);
  }
  50% {
    border-top-color: var(--accent-color);
    border-right-color: var(--primary-color);
    border-bottom-color: var(--accent-color);
    border-left-color: var(--primary-color);
  }
  75% {
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-color);
    border-bottom-color: var(--primary-color);
    border-left-color: var(--accent-color);
  }
  100% {
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
    border-left-color: var(--secondary-color);
  }
}

.loading-content p {
  font-size: 1.1rem;
  opacity: 0.8;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--dark-transparent-color);
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

nav.scrolled {
  background-color: transparent !important;
  box-shadow: none !important;
}

nav.scrolled .nav__logo {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

nav.scrolled .nav__toggle {
  color: var(--primary-color) !important;
}

nav.hidden-in-footer {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  transition: var(--transition);
}

.nav__logo_menu {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  transition: var(--transition);
}

.nav__logo img.logo-svg,
.nav__logo_menu img.logo-svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: var(--transition);
}

.nav__logo span span,
.nav__logo_menu span span {
  color: var(--primary-color);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.language-picker {
  position: relative;
  display: inline-block;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-code {
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 90%;
  transform: translateX(-50%) translateY(-10px);
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
  overflow: hidden;
}

.language-picker.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark-color);
  border-bottom: 1px solid var(--extra-light);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--extra-light);
}

.lang-name {
  font-weight: 500;
}

nav.scrolled .language-picker .lang-current {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

nav.scrolled .language-picker .lang-current:hover {
  background: rgba(0, 0, 0, 0.5);
}

.nav__toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--light-color);
  transition: var(--transition);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--dark-transparent-color);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  visibility: hidden;
}

.mobile-sidebar.active {
  right: 0;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-sidebar {
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.sidebar-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-links a {
  display: block;
  padding: 1rem;
  color: var(--light-color);
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}

/* ===== SECTIONS ===== */
.section {
  min-height: auto;
  padding: 80px 5%;
  display: flex;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.section:not(.hero) {
  min-height: auto;
  padding: 50px 5% 80px;
  display: flex;
  align-items: flex-start;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  min-width: 0;
}

.services-section .section-container,
.projects-section .section-container {
  padding: 0;
  max-width: 100%;
  overflow: visible;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}

.section-title span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.3;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.section-title:hover span::after {
  transform: scaleX(1);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-color);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CIRCUIT ANIMATIONS ===== */
.section-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.circuit-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 10px var(--primary-color);
  animation: nodeFloat 20s infinite linear;
  z-index: 0;
}

@keyframes nodeFloat {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -20px);
    opacity: 0.4;
  }
  50% {
    transform: translate(20px, 20px);
    opacity: 0.5;
  }
  75% {
    transform: translate(-20px, 20px);
    opacity: 0.4;
  }
}

.connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-color), 
    transparent
  );
  transform-origin: left center;
  animation: linePulse 6s infinite ease-in-out;
  z-index: 0;
  opacity: 0.15;
}

@keyframes linePulse {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes lineRotate {
  0%, 100% {
    transform: rotate(var(--start-angle));
  }
  50% {
    transform: rotate(calc(var(--start-angle) + 5deg));
  }
}

.about-circuit .circuit-node:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.about-circuit .circuit-node:nth-child(2) { top: 25%; left: 85%; animation-delay: 2s; }
.about-circuit .circuit-node:nth-child(3) { top: 55%; left: 15%; animation-delay: 4s; }
.about-circuit .circuit-node:nth-child(4) { top: 65%; left: 80%; animation-delay: 6s; }
.about-circuit .circuit-node:nth-child(5) { top: 35%; left: 92%; animation-delay: 1s; }
.about-circuit .circuit-node:nth-child(6) { top: 85%; left: 25%; animation-delay: 3s; }

.about-circuit .connection-1 {
  top: 20%; left: 12%; width: 73%;
  transform: rotate(10deg);
  animation: lineRotate 8s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 10deg;
}

.about-circuit .connection-2 {
  top: 40%; left: 80%; width: 35%;
  transform: rotate(-45deg);
  animation: lineRotate 10s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: -45deg;
}

.about-circuit .connection-3 {
  top: 60%; left: 20%; width: 60%;
  transform: rotate(25deg);
  animation: lineRotate 12s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 25deg;
}

.about-circuit .connection-4 {
  top: 50%; left: 85%; width: 7%;
  transform: rotate(80deg);
}

.services-circuit .circuit-node:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.services-circuit .circuit-node:nth-child(2) { top: 20%; left: 60%; animation-delay: 1s; }
.services-circuit .circuit-node:nth-child(3) { top: 35%; left: 90%; animation-delay: 2s; }
.services-circuit .circuit-node:nth-child(4) { top: 50%; left: 10%; animation-delay: 3s; }
.services-circuit .circuit-node:nth-child(5) { top: 65%; left: 40%; animation-delay: 4s; }
.services-circuit .circuit-node:nth-child(6) { top: 80%; left: 70%; animation-delay: 5s; }
.services-circuit .circuit-node:nth-child(7) { top: 90%; left: 30%; animation-delay: 6s; }
.services-circuit .circuit-node:nth-child(8) { top: 75%; left: 85%; animation-delay: 7s; }

.services-circuit .connection-1 {
  top: 15%; left: 25%; width: 35%;
  transform: rotate(20deg);
  animation: lineRotate 7s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 20deg;
}

.services-circuit .connection-2 {
  top: 28%; left: 65%; width: 25%;
  transform: rotate(-15deg);
  animation: lineRotate 9s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: -15deg;
}

.services-circuit .connection-3 {
  top: 43%; left: 15%; width: 75%;
  transform: rotate(5deg);
  animation: lineRotate 11s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 5deg;
}

.services-circuit .connection-4 {
  top: 58%; left: 45%; width: 25%;
  transform: rotate(40deg);
}

.services-circuit .connection-5 {
  top: 73%; left: 75%; width: 10%;
  transform: rotate(-25deg);
  animation: lineRotate 8s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: -25deg;
}

.services-circuit .connection-6 {
  top: 83%; left: 50%; width: 35%;
  transform: rotate(60deg);
}

.whyus-circuit .circuit-node:nth-child(1) { top: 15%; left: 40%; animation-delay: 0s; }
.whyus-circuit .circuit-node:nth-child(2) { top: 30%; left: 15%; animation-delay: 1s; }
.whyus-circuit .circuit-node:nth-child(3) { top: 45%; left: 75%; animation-delay: 2s; }
.whyus-circuit .circuit-node:nth-child(4) { top: 60%; left: 25%; animation-delay: 3s; }
.whyus-circuit .circuit-node:nth-child(5) { top: 75%; left: 60%; animation-delay: 4s; }
.whyus-circuit .circuit-node:nth-child(6) { top: 85%; left: 85%; animation-delay: 5s; }
.whyus-circuit .circuit-node:nth-child(7) { top: 90%; left: 40%; animation-delay: 6s; }

.whyus-circuit .connection-1 {
  top: 23%; left: 28%; width: 47%;
  transform: rotate(35deg);
  animation: lineRotate 10s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 35deg;
}

.whyus-circuit .connection-2 {
  top: 38%; left: 45%; width: 30%;
  transform: rotate(-20deg);
}

.whyus-circuit .connection-3 {
  top: 53%; left: 50%; width: 25%;
  transform: rotate(15deg);
  animation: lineRotate 12s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 15deg;
}

.whyus-circuit .connection-4 {
  top: 68%; left: 43%; width: 42%;
  transform: rotate(-5deg);
}

.whyus-circuit .connection-5 {
  top: 80%; left: 73%; width: 12%;
  transform: rotate(70deg);
  animation: lineRotate 8s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 70deg;
}

.projects-circuit .circuit-node:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.projects-circuit .circuit-node:nth-child(2) { top: 40%; left: 80%; animation-delay: 1s; }
.projects-circuit .circuit-node:nth-child(3) { top: 60%; left: 20%; animation-delay: 2s; }
.projects-circuit .circuit-node:nth-child(4) { top: 80%; left: 65%; animation-delay: 3s; }
.projects-circuit .circuit-node:nth-child(5) { top: 50%; left: 50%; animation-delay: 4s; }

.projects-circuit .connection-1 {
  top: 30%; left: 40%; width: 40%;
  transform: rotate(25deg);
  animation: lineRotate 9s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 25deg;
}

.projects-circuit .connection-2 {
  top: 50%; left: 50%; width: 30%;
  transform: rotate(-40deg);
}

.projects-circuit .connection-3 {
  top: 70%; left: 43%; width: 22%;
  transform: rotate(10deg);
  animation: lineRotate 11s infinite ease-in-out, linePulse 6s infinite ease-in-out;
  --start-angle: 10deg;
}

.projects-circuit .connection-4 {
  top: 65%; left: 35%; width: 45%;
  transform: rotate(50deg);
}

/* ===== SKELETON LOADING ===== */
.skeleton-image {
  background: linear-gradient(90deg, #2a497d 25%, #3b5a9a 50%, #2a497d 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.skeleton-image img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skeleton-image[data-loaded="true"] {
  background: none;
  animation: none;
}

.skeleton-image[data-loaded="true"] img {
  opacity: 1;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, #0f172a 100%);
  color: var(--light-color);
  text-align: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  filter: blur(40px);
  z-index: 0;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.start-project {
  padding: 1.2rem 2.5rem;
  background-color: var(--primary-color);
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.start-project:hover {
  background-color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.secondary-btn {
  padding: 1.2rem 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--light-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 133, 57, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: linear-gradient(180deg, var(--first_section-color) 0%, var(--second_section-color) 100%);
  padding: 80px 5%;
  min-height: auto;
  display: flex;
  align-items: center;
}

.about-section .section-title,
.about-section .section-subtitle {
  color: var(--light-color);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.about-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 133, 57, 0.15);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 133, 57, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}

.about-card:hover::before {
  opacity: 1;
}

.about-card:hover {
  border-color: rgba(255, 133, 57, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-5px);
}

.about-card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.about-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-card:hover .about-card-image img {
  transform: scale(1.05);
}

.about-card-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.card-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 133, 57, 0.1);
  border-radius: 50px;
  width: fit-content;
  position: relative;
  overflow: hidden;
}

.card-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.about-card:hover .card-number::before {
  left: 100%;
}

.about-card-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.about-card-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  flex: 1;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 500;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: linear-gradient(180deg, var(--second_section-color) 0%, var(--third_section-color) 100%);
  position: relative;
  overflow: hidden;
}

.services-section .section-title,
.services-section .section-subtitle {
  color: white;
}

.services-section .section-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}

.services-carousel {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  padding: 40px 0 100px;
}

.services-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: max-content;
  padding: 0;
  will-change: transform;
  box-sizing: border-box;
  min-width: 0;
  align-items: stretch;
}

.service-card {
  flex: 0 0 auto;
  width: calc((100vw - (gap * (visibleCards - 1))) / visibleCards);
  /* Option C: Use CSS variables for dynamic control */
  width: 45vw;
  
  background: linear-gradient(135deg, var(--third_section-color) 0%, var(--forth_section-color) 100%);
  padding: 0;
  border-radius: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  border: 2px solid rgba(255, 133, 57, 0.1);
  text-align: center;
  min-height: 700px;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition);
  border-radius: 24px 24px 0 0;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 133, 57, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  border-radius: 24px;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 133, 57, 0.2);
  border-color: var(--primary-color);
  z-index: 1;
}

.service-image {
  height: 280px;
  width: 100%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 30px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px auto 1.5rem;
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(255, 133, 57, 0.3);
  transition: var(--transition);
}

.service-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(255, 133, 57, 0.4);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
}

.service-features li {
  padding: 8px 0;
  color: var(--light-color);
  position: relative;
  padding-left: 24px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.services-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0;
  pointer-events: all;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-prev,
.services-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 133, 57, 0.3);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  pointer-events: all;
  box-sizing: border-box;
  min-width: 50px;
  max-width: 50px;
}

.services-prev:hover,
.services-next:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 133, 57, 0.4);
}

.services-prev.hidden,
.services-next.hidden {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== WHY US SECTION ===== */
.whyus-section {
  background: linear-gradient(180deg, var(--third_section-color) 0%, var(--forth_section-color) 100%);
  color: white;
}

.whyus-section .section-title,
.whyus-section .section-subtitle {
  color: white;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 100vw;
  margin: 0 auto;
  padding: 2rem 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.feature-cards-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 133, 57, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.feature-card-item {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.feature-card-item .feature-content {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 2px solid rgba(255, 133, 57, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  height: 100%;
  flex-direction: column;
  justify-content: center;
  min-height: 350px;
  min-width: 20vw;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.feature-card-item:hover .feature-content {
  border-color: rgba(255, 133, 57, 0.4);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 133, 57, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: var(--primary-color);
  border: 2px solid rgba(255, 133, 57, 0.3);
  position: relative;
  transition: var(--transition);
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.feature-card-item:hover .feature-icon::before {
  opacity: 0.3;
  transform: scale(1);
}

.feature-card-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(255, 133, 57, 0.3);
}

.feature-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.feature-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.feature-badge {
  display: inline-block;
  position: absolute;
  padding: 8px 20px;
  bottom: 0px;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 25px;
  background: var(--primary-color);
  color: var(--light-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background: linear-gradient(180deg, var(--forth_section-color) 0%, var(--fifth_section-color) 100%);
}

.projects-section .section-title,
.projects-section .section-subtitle {
  color: white;
}

.projects-carousel {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 0 0 100px;
  box-sizing: border-box;
  min-width: 0;
}

.projects-list {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-sizing: border-box;
  min-width: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  margin: 0;
  align-items: stretch;
  position: relative;
}

.project-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  opacity: 1;
  pointer-events: all;
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  padding-right: 32px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: stretch;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  min-height: 550px;
  align-items: center;
  background: linear-gradient(135deg, var(--fifth_section-color) 0%, var(--sixth_section-color) 100%);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  border: 2px solid rgba(255, 133, 57, 0.15);
  transition: var(--transition);
  overflow: visible;
  position: relative;
  height: 100%;
  align-self: stretch;
}

.project-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 133, 57, 0.05) 0%, transparent 100%);
  border-radius: 24px;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.project-content:hover::before {
  opacity: 1;
}

.project-item:hover .project-content {
  border-color: rgba(255, 133, 57, 0.4);
  box-shadow: 0 20px 50px rgba(255, 133, 57, 0.15);
  transform: translateY(-8px) scale(1.01);
}

.project-text {
  padding: 20px;
  min-width: 0;
  overflow: visible;
}

.project-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.project-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--extra-light);
  margin-bottom: 2rem;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light-color);
  font-weight: 500;
}

.detail i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 24px;
  flex-shrink: 0;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 1.5rem;
}

.project-preview-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.project-preview-img:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.view-album-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 133, 57, 0.3);
  position: relative;
  overflow: hidden;
}

.view-album-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.view-album-btn:hover::before {
  left: 100%;
}

.view-album-btn:hover {
  background: white;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 133, 57, 0.4);
}

.view-album-btn.tiktok-btn {
  background: #000000;
  border-color: #000000;
}

.view-album-btn.tiktok-btn:hover {
  background: white;
  color: #000000;
}

.project-image-main {
  position: relative;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: var(--transition);
}

.project-item:hover .project-image-main {
  box-shadow: 0 15px 40px rgba(255, 133, 57, 0.2);
  transform: scale(1.02);
}

.project-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-item.active .project-image-main img {
  transform: scale(1);
}

.project-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-tiktok .project-content {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.tiktok-image {
  background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-logo-container {
  text-align: center;
  color: white;
}

.tiktok-logo-container i {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: tiktokGlow 2s infinite alternate;
}

@keyframes tiktokGlow {
  0% {
    color: #00f2ea;
    text-shadow: 0 0 10px #00f2ea;
  }
  100% {
    color: #ff0050;
    text-shadow: 0 0 10px #ff0050;
  }
}

.tiktok-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tiktok-text span {
  font-size: 1.2rem;
  font-weight: 700;
}

.tiktok-handle {
  font-size: 1rem;
  opacity: 0.9;
}

.tiktok-tag {
  background: #000000;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0;
  pointer-events: all;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-prev,
.projects-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 133, 57, 0.3);
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  pointer-events: all;
  box-sizing: border-box;
  min-width: 50px;
  max-width: 50px;
}

.projects-prev:hover,
.projects-next:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 133, 57, 0.4);
}

.projects-prev:hover,
.projects-next:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.projects-prev.hidden,
.projects-next.hidden {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.projects-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.projects-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  position: relative;
}

.projects-dots .dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0;
  transition: var(--transition);
}

.projects-dots .dot.active {
  background: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.projects-dots .dot.active::before {
  opacity: 1;
}

/* ===== GALLERY MODAL ===== */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  margin: auto;
  background: var(--dark-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.gallery-header {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-gallery {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-gallery:hover {
  background: var(--primary-color);
  color: var(--dark-color);
}

.gallery-content {
  display: flex;
  height: calc(100% - 80px);
}

.gallery-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-thumbnails {
  width: 200px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  opacity: 1;
  border: 2px solid var(--primary-color);
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.gallery-prev,
.gallery-next {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  pointer-events: all;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: white;
  color: var(--primary-color);
  transform: scale(1.1);
}

.gallery-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ===== TEAM SECTION ===== */
.team {
  background: linear-gradient(180deg, var(--fifth_section-color) 0%, var(--sixth_section-color) 100%);
}

.team .section-title,
.team .section-subtitle {
  color: var(--light-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  background: var(--sixth_section-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-content {
  padding: 2rem;
}

.team-content h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 0.5rem;
}

.team-degree {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.team-founder {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-social a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-color);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: linear-gradient(180deg, var(--sixth_section-color) 0%, var(--dark-color) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--sixth_section-color);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.info-item h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--light-color);
}

.info-item p {
  color: var(--light-color);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.info-item small {
  color: var(--light-color);
  font-size: 0.85rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--primary-color);
}

.info-item.clickable {
  cursor: pointer;
}

.info-item.clickable:hover {
  background: var(--forth_section-color);
}

.contact-form {
  background: var(--sixth_section-color);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--light-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--forth_section-color);
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  background: var(--light-color);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 133, 57, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-group .error-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-btn:disabled:hover {
  background: var(--primary-color);
  color: var(--light-color);
  transform: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 4rem 5% 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-about {
  grid-column: span 2;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}

.footer-logo img.logo-svg {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-logo span span {
  color: var(--primary-color);
}

.footer-description {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: 0.8rem;
}

.contact-details {
  margin-bottom: 1.5rem;
}

.contact-details p {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.contact-details i {
  color: var(--primary-color);
  margin-top: 0.2rem;
  min-width: 20px;
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

.footer-links a,
.contact-details a,
.footer-legal a {
  color: white !important;
}

.footer-links a:hover,
.contact-details a:hover,
.footer-legal a:hover {
  color: var(--primary-color) !important;
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1001;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .feature-card-item {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .project-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .service-card {
    min-height: 580px;
  }
  
  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-about {
    grid-column: span 2;
  }
  
  .services-controls,
  .projects-controls {
    bottom: 10px;
    gap: 1.5rem;
  }
  
  .services-prev,
  .services-next,
  .projects-prev,
  .projects-next {
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
  }
  
  .section {
    padding: 60px 4%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .section-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: visible;
  }
  
  /* Hide carousel buttons on mobile */
  .services-prev,
  .services-next,
  .projects-prev,
  .projects-next {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .services-controls{
    visibility: hidden;
  }

  .projects-controls {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
    padding: 10px 16px;
    gap: 1rem;
  }
  
  .projects-prev,
  .projects-next {
    width: 45px;
    height: 45px;
    min-width: 45px;
    max-width: 45px;
    font-size: 1rem;
  }
  
  .projects-dots .dot {
    width: 8px;
    height: 8px;
  }
  
  .projects-dots .dot::before {
    width: 4px;
    height: 4px;
  }
  
  .services-section .section-container {
    padding: 0;
  }
  
  .services-carousel {
    padding: 0 0 20px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .services-track {
    display: flex;
    padding: 0;
    gap: 20px;
    width: max-content;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .service-card {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    flex: 0 0 calc(100vw - 40px);
    min-height: 600px;
    height: auto;
    border-radius: 20px;
    margin: 0;
  }
  
  .services-controls {
    padding: 10px 16px;
    gap: 1rem;
  }
  
  .services-prev,
  .services-next {
    width: 45px;
    height: 45px;
    min-width: 45px;
    max-width: 45px;
    font-size: 1rem;
  }
  
  .service-card .service-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .service-card .service-features {
    margin-top: auto;
  }
  
  .service-image {
    height: 240px;
  }
  
  .projects-carousel {
    padding: 0 0 80px;
    overflow: visible;
  }
  
  .projects-list {
    display: flex;
    gap: 20px;
    padding: 0;
  }
  
  .project-item {
    flex: 0 0 calc(100vw - 40px);
    width: calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    padding: 0;
  }
  
  .project-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    height: auto;
  }
  
  .project-image-main {
    height: 250px;
    order: -1;
  }
  
  .project-images {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-preview-img {
    height: 80px;
  }
  
  .project-text {
    padding: 0;
  }
  
  .project-number {
    font-size: 3rem;
  }
  
  .project-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .project-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card-item {
    min-width: 0;
    max-width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons a {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-card-image {
    height: 250px;
  }
  
  .about-card-content {
    padding: 2rem 1.5rem;
  }
  
  .about-card-content h3 {
    font-size: 1.5rem;
  }
  
  .about-card-content p {
    font-size: 1rem;
  }
  
  .service-image {
    height: 180px;
  }
  
  .service-content {
    padding: 25px 20px;
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin: -30px auto 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  
  .mobile-sidebar {
    width: 100%;
    max-width: 320px;
    right: -100%;
  }
  
  .mobile-sidebar.active {
    right: 0;
  }
  
  .nav-right .language-picker {
    display: none;
  }
  
  .hero-content {
    padding: 4rem 10px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .feature-content h3 {
    font-size: 1.5rem;
  }
  
  .feature-content p {
    font-size: 1rem;
  }
  
  .team-image {
    height: 250px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-about {
    grid-column: span 1;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .gallery-container {
    width: 95%;
    height: 95%;
  }
  
  .gallery-content {
    flex-direction: column;
  }
  
  .gallery-thumbnails {
    width: 100%;
    height: 120px;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px;
  }
  
  .gallery-thumbnail {
    height: 60px;
  }
  
  .gallery-prev,
  .gallery-next {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  
  .circuit-node {
    width: 4px;
    height: 4px;
  }
  
  .hero::after {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 50px 3%;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .project-text h3 {
    font-size: 1.5rem;
  }
  
  .feature-content h3 {
    font-size: 1.3rem;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-image {
    height: 220px;
  }
  
  .info-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .project-image-main {
    height: 200px;
  }
  
  .project-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  
  .project-preview-img {
    height: 70px;
  }
  
  .project-number {
    font-size: 2.5rem;
  }
  
  .service-card {
    min-height: 550px;
  }
  
  .service-image {
    height: 150px;
  }
  
  .service-card {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    flex: 0 0 calc(100vw - 40px);
  }
  
  .project-item {
    width: calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    flex: 0 0 calc(100vw - 40px);
  }
}

/* ===== HIGH CONTRAST & REDUCED MOTION ===== */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #ff6600;
    --light-color: #ffffff;
    --dark-color: #000000;
  }
  
  .section-title,
  .section-subtitle,
  .hero-content h1,
  .hero-subtitle {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .loading-spinner,
  .logo-icon,
  .loading-content p {
    animation: none;
  }
  
  .circuit-nodes {
    display: none !important;
  }
  
  .hero::after {
    animation: none;
    opacity: 0.5;
  }
  
  .circuit-node {
    animation: none;
    opacity: 0.1;
  }
}
