:root {
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --primary: #38bdf8;
  --text-dark: #020617;
  --text-light: #e5e7eb;
  --card-bg: #020617;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.navbar {
  background: var(--bg-dark);
  padding: 20px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
}

nav a {
  color: var(--text-light);
  margin-left: 20px;
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

.hero {
  position: relative;
  height: 30vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0 20px;
  color: var(--text-light);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  z-index: 1;
  position: relative;
}

.hero p {
  max-width: 600px;
  margin: auto;
  margin-bottom: 30px;
  color: #ffffff;
  z-index: 1;
  position: relative;
}

.hero .btn-primary {
  z-index: 1;
  position: relative;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.hero .btn-primary:hover {
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: #020617;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-primary:hover {
  opacity: 0.9;
}

.section {
  padding: 80px 0;
}

.section.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 14px;
  border: 1px solid #1e293b;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card p.tech {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.contact-form {
  max-width: 700px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

input {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  text-align: center;
  padding: 30px 0;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
  }

  nav a {
    margin-left: 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .section {
    padding: 50px 15px;
  }

  .contact-form input {
    font-size: 0.9rem;
    padding: 12px;
  }

  .footer {
    font-size: 0.75rem;
    padding: 20px 10px;
  }
}

@media (max-height: 500px) {
  .hero {
    height: auto;
    padding: 40px 20px;
  }
}

.lang-switch {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.lang-switch button {
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 1px solid #94a3b8;
  background-color: transparent;
  color: #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.lang-switch button:hover {
  background-color: var(--primary);
  color: #020617;
  border-color: var(--primary);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-text {
  font-size: 0.95rem;
  color: #cbd5f5;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switch {
    margin: 10px 0 0 0;
  }
}

.contact-form input::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}
