/* --------------------------
       GLOBAL / THEME / VARIABLES
       -------------------------- */
:root {
  --bg-1: #0f1724;
  /* deep */
  --bg-2: #0a1020;
  --glass: rgba(255, 255, 255, 0.04);
  --muted: rgba(255, 255, 255, 0.6);
  --accent-a: 55, 50, 255;
  /* rgb components */
  --accent-b: 179, 80, 255;
  --accent-c: 0, 200, 255;
  --neon: rgba(123, 75, 255, 0.16);
  --card: linear-gradient(
    135deg,
    rgba(var(--accent-a), 0.12),
    rgba(var(--accent-b), 0.08)
  );
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: 0 8px 30px rgba(99, 102, 241, 0.06);
  --max-width: 1200px;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-1);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px;
}

/* --------------------------
   NAVBAR
   --------------------------*/
header.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  pointer-events: auto;
  backdrop-filter: blur(6px) saturate(120%);
  margin: 0 auto;
  width: calc(100% - 56px);
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 20, 0.25),
    rgba(10, 11, 20, 0.1)
  );
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  box-shadow: var(--glass-glow);
  transform: rotate(-6deg);
}
.logo img {
  border-radius: 12px;
  width: 50px;
}
.brand h1 {
  font-size: 16px;
  margin: 0;
}

nav.primary {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav.primary a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}

nav.primary a:hover {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-a), 0.08),
    rgba(var(--accent-b), 0.06)
  );
  backdrop-filter: blur(4px);
}

.cta {
  background: linear-gradient(
    90deg,
    rgba(var(--accent-a), 1),
    rgba(var(--accent-b), 1)
  );
  padding: 8px 12px;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(var(--accent-b), 0.14);
}

.mobile-toggle {
  display: none;
}

/* --------------------------
   HERO / HOME
   --------------------------*/
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: center;
  padding: 48px 0;
}

.hero .eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(var(--accent-c), 0.06),
    rgba(var(--accent-a), 0.06)
  );
  color: #cce0ff;
  font-weight: 600;
  font-size: 13px;
}

.hero h2 {
  font-size: 42px;
  margin: 12px 0 8px;
  line-height: 1.02;
}

.hero p {
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 18px;
}

.btns {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(
    90deg,
    rgba(var(--accent-a), 1),
    rgba(var(--accent-b), 1)
  );
  border: 0;
  color: white;
  box-shadow: 0 12px 40px rgba(var(--accent-b), 0.12);
}

.hero-card {
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-glow);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.member {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  transform-style: preserve-3d;
  cursor: default;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease;
}

.member:hover {
  transform: translateY(-8px) rotateX(6deg) rotateY(-4deg);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
}

.member h4 {
  margin: 0;
  font-size: 14px;
}

.member p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------
   SECTIONS: ABOUT / SERVICES
   --------------------------*/
section {
  padding: 40px 0;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
}

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

.card {
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--glass-border);
}

.card h3 {
  margin: 0 0 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --------------------------
   PROJECTS CAROUSEL
   --------------------------*/
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.25),
    rgba(255, 255, 255, 0.02)
  );
}

.carousel-inner {
  display: flex;
  gap: 16px;
  transition: transform 0.6s cubic-bezier(0.22, 0.95, 0.25, 1);
}

.proj-card {
  min-width: 320px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.proj-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* --------------------------
   TESTIMONIALS
   --------------------------*/
.testimonial {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--glass-border);
  max-width: 900px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-size: 18px;
  margin: 0;
  color: #eaf2ff;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

/* --------------------------
   CONTACT & FOOTER
   --------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

input,
textarea {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 10px;
  color: inherit;
}

.socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===============================
   RESPONSIVE MEDIA QUERIES
   =============================== */

/* Mobile first adjustments */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  nav.primary {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .mobile-toggle select {
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(120, 140, 255, 0.25);
    border-radius: 10px;
    padding: 5px;
  }

  .mobile-toggle select option {
    background: #0f172a;
    color: #fff;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero p {
    max-width: 100%;
  }
  .proj-card {
    min-width: 260px;
  }
}

/* Tablet / small screens */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-card {
    margin: 20px auto 0;
  }
  .btns {
    justify-content: center;
    flex-wrap: wrap;
  }
  .cards {
    gap: 12px;
  }
  .carousel-controls {
    flex-direction: column;
  }
  .testimonial blockquote {
    font-size: 16px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  aside.card {
    margin-top: 16px;
  }
}

/* Mobile / small devices */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .brand {
    gap: 8px;
  }
  .logo img {
    width: 40px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    font-size: 14px;
  }
  .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .proj-card {
    min-width: 220px;
  }
  .team-grid .member {
    padding: 10px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* Tiny devices / extra small phones */
@media (max-width: 360px) {
  .hero h2 {
    font-size: 22px;
  }
  .hero p {
    font-size: 13px;
  }
  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .carousel-controls button {
    padding: 6px 10px;
    font-size: 12px;
  }
}
