:root {
  --bg: #050b18;
  --bg-alt: #071320;
  --surface: rgba(15, 26, 39, 0.82);
  --surface-strong: #0d1c2d;
  --surface-soft: #11233b;
  --primary: #1c8cff;
  --primary-strong: #56c0ff;
  --secondary: #0a2547;
  --silver: #dfeaf7;
  --white: #ffffff;
  --text: #edf5ff;
  --muted: #a4b7d1;
  --border: rgba(130, 175, 255, 0.22);
  --shadow: 0 18px 40px rgba(8, 14, 25, 0.48);
  --glow: 0 0 20px rgba(54, 137, 255, 0.4);
  --radius: 22px;
  --radius-sm: 12px;
  --container: min(1200px, calc(100% - 2rem));
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(27, 140, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(86, 192, 255, 0.12), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: relative;
}

img,
svg {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(14, 25, 38, 0.7);
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

.section-header p {
  margin: 0 auto;
  max-width: 700px;
  color: var(--muted);
  font-size: 1.06rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(16px);
  background: rgba(6, 12, 22, 0.72);
  border-bottom: 1px solid rgba(145, 176, 228, 0.12);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 200px;
}

.brand img {
  width: 210px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  padding: 0.55rem 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(14, 20, 30, 0.7);
  color: var(--white);
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.nav-toggle span {
  top: 22px;
}

.nav-toggle::before {
  top: 16px;
}

.nav-toggle::after {
  top: 28px;
}

.nav-toggle.is-open span {
  opacity: 0;
}

.nav-toggle.is-open::before {
  top: 22px;
  transform: rotate(45deg);
}

.nav-toggle.is-open::after {
  top: 22px;
  transform: rotate(-45deg);
}

.hero {
  padding: 4.4rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: rgba(28, 140, 255, 0.08);
  border: 1px solid rgba(92, 161, 255, 0.25);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 2rem;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-meta span {
  position: relative;
  padding-left: 1rem;
}

.hero-meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  transform: translateY(-50%);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.tech-panel {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 22, 35, 0.88), rgba(8, 13, 20, 0.84));
  box-shadow: var(--shadow);
}

.tech-panel--main {
  inset: 50px 30px 50px 90px;
  padding: 1.2rem;
}

.tech-panel--top {
  top: 0;
  right: 18px;
  width: 180px;
  padding: 1rem;
}

.tech-panel--bottom {
  bottom: 10px;
  left: 10px;
  width: 200px;
  padding: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: #ff5f5f; }
.dot--amber { background: #ffc857; }
.dot--green { background: #5fe6a1; }

.dashboard-graph {
  position: relative;
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23, 45, 69, 0.9), rgba(15, 24, 36, 0.8));
  border: 1px solid rgba(125, 167, 255, 0.18);
  overflow: hidden;
  margin-top: 1rem;
}

.dashboard-graph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(130, 175, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 175, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.dashboard-graph svg {
  position: absolute;
  inset: 0;
}

.orbit {
  position: absolute;
  inset: 16% 8% 12% 6%;
  border: 1px solid rgba(97, 155, 255, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(20, 103, 223, 0.16), 0 0 30px rgba(20, 103, 223, 0.08);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 12% 16%;
  border: 1px solid rgba(125, 167, 255, 0.28);
  border-radius: 50%;
}

.orbit::after {
  inset: 24% 28%;
  border-color: rgba(131, 225, 255, 0.24);
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 17, 30, 0.7);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.float-chip--one { top: 12%; left: 4%; }
.float-chip--two { right: 4%; bottom: 18%; }
.float-chip--three { left: 18%; bottom: 2%; }

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 26, 39, 0.92), rgba(9, 18, 29, 0.75));
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 175, 255, 0.42);
  box-shadow: 0 30px 60px rgba(7, 17, 28, 0.52);
}

.metric-card,
.feature-card,
.service-card,
.solution-card,
.project-card,
.tech-card,
.team-card,
.contact-card {
  padding: 1.5rem;
}

.metric-card {
  text-align: center;
}

.metric-number {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--primary-strong);
}

.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-panel {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 18, 28, 0.82), rgba(13, 23, 35, 0.8));
}

.about-panel h3,
.solution-card h3,
.project-card h3,
.tech-card h3,
.team-card h3,
.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.about-panel p,
.service-card p,
.solution-card p,
.project-card p,
.tech-card p,
.team-card p,
.contact-card p,
.contact-copy p,
.footer-column p,
.footer-column li,
.section-header p {
  color: var(--muted);
}

.list {
  padding-left: 1.25rem;
  color: var(--muted);
}

.list li + li {
  margin-top: 0.6rem;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(27, 140, 255, 0.18), rgba(86, 192, 255, 0.08));
  border: 1px solid rgba(111, 175, 255, 0.24);
  color: var(--primary-strong);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-card .btn,
.project-card .btn,
.solution-card .btn {
  margin-top: 1rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  min-height: 100%;
}

.feature-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.cta-section {
  padding: 0 0 5rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 35, 52, 0.96), rgba(11, 22, 35, 0.76)),
    linear-gradient(120deg, rgba(25, 120, 255, 0.18), transparent 60%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(145, 176, 228, 0.14);
  background: rgba(6, 12, 20, 0.9);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 0.8rem;
}

.footer-column h3,
.footer-column h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li {
  margin-top: 0.6rem;
}

.socials {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(145, 176, 228, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-header {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  letter-spacing: -0.05em;
}

.page-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-card {
  padding: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  min-height: 100%;
}

.service-card h3 {
  min-height: 3rem;
}

.project-card {
  padding: 0;
}

.project-visual {
  height: 220px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(12, 28, 45, 0.86), rgba(12, 18, 30, 0.68));
}

.project-content {
  padding: 1.4rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(28, 140, 255, 0.08);
  border: 1px solid rgba(111, 175, 255, 0.2);
  color: var(--primary-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.profile-image {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 26, 39, 0.88), rgba(8, 13, 20, 0.74));
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-card {
  min-height: 100%;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(145, 176, 228, 0.12);
}

.contact-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

label {
  color: var(--white);
  font-weight: 600;
  font-size: 0.96rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.7);
  color: var(--white);
  padding: 0.9rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(111, 175, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(28, 140, 255, 0.12);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.92rem;
  color: var(--primary-strong);
}

.form-status.error {
  color: #ff6b8a;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(28, 140, 255, 0.18), rgba(86, 192, 255, 0.08));
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.social-float {
  position: fixed;
  right: 1.1rem;
  bottom: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 850;
}

.social-float a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(124, 191, 255, 0.4);
  background: linear-gradient(135deg, rgba(27, 140, 255, 0.22), rgba(12, 22, 38, 0.9));
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-float a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(19, 77, 150, 0.4);
}

.social-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(12, 19, 30, 0.9), rgba(17, 30, 44, 0.8));
}

.social-cta h3 {
  margin: 0;
  font-size: 1.2rem;
}

.social-cta p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-layout,
  .contact-layout,
  .footer-grid,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .why-grid, .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .social-float {
    right: 0.8rem;
    bottom: 4.8rem;
  }

  .social-float a {
    width: 46px;
    height: 46px;
  }

  .social-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    position: relative;
    min-height: 74px;
    padding: 0.5rem 0;
  }

  .brand {
    min-width: auto;
    max-width: 170px;
  }

  .brand img {
    width: 160px;
  }

  .nav-toggle {
    display: block;
    z-index: 10;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: min(100%, 320px);
    margin-left: auto;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(8, 16, 24, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.7rem 0.25rem;
    font-size: 1rem;
  }

  .nav-actions .btn-contact {
    display: none;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .field-row,
  .why-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-visual {
    min-height: 430px;
  }

  .tech-panel--main {
    inset: 28px 18px 80px 42px;
  }

  .tech-panel--top {
    width: 130px;
    top: 18px;
    right: 10px;
  }

  .tech-panel--bottom {
    bottom: 6px;
    left: 10px;
    width: 160px;
  }

  .float-chip {
    font-size: 0.62rem;
    padding: 0.52rem 0.7rem;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .brand img {
    width: 178px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .section-header h2,
  .page-header h1,
  .cta-banner h2 {
    line-height: 1.2;
  }

  .card,
  .contact-card,
  .service-card,
  .feature-card,
  .tech-card,
  .solution-card {
    padding: 1.2rem;
  }

  .contact-item {
    align-items: center;
  }
}

/* Ultra-small phones (< 480px) */
@media (max-width: 480px) {
  :root {
    --container: min(100%, calc(100% - 1rem));
  }

  .section {
    padding: 3.5rem 0;
  }

  .navbar {
    min-height: 68px;
    padding: 0.5rem 0;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-copy h1 {
    font-size: 1.8rem;
    margin: 0.75rem 0;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.7rem;
  }

  .hero-meta {
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-header p {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .cta-banner p {
    font-size: 0.9rem;
  }

  .about-panel h3,
  .solution-card h3,
  .project-card h3,
  .tech-card h3,
  .team-card h3,
  .service-card h3,
  .contact-card h3 {
    font-size: 1.2rem;
  }

  .btn {
    min-height: 42px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

  .button-row {
    gap: 0.75rem;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
  }

  .profile-image {
    max-width: 100%;
  }

  .contact-form {
    gap: 0.85rem;
  }

  .form-group {
    gap: 0.4rem;
  }

  label {
    font-size: 0.9rem;
  }

  input,
  textarea {
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
  }

  textarea {
    min-height: 120px;
  }

  .field-row {
    gap: 0.85rem;
  }

  .metric-number {
    font-size: 2rem;
  }

  .metric-label {
    font-size: 0.9rem;
  }

  .back-to-top {
    width: 46px;
    height: 46px;
    right: 1rem;
    bottom: 1.2rem;
  }

  .footer-brand img {
    width: 170px;
  }

  .footer-column {
    margin-bottom: 1rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .socials a {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .icon-box {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .contact-item {
    padding: 0.75rem 0;
    flex-direction: column;
    gap: 0.6rem;
  }

  .contact-item strong {
    font-size: 0.95rem;
  }

  .nav-links {
    width: min(100%, 300px) !important;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .tech-badge {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  .tech-tag {
    font-size: 0.65rem;
    padding: 0.38rem 0.65rem;
  }

  .float-chip {
    font-size: 0.6rem;
    padding: 0.48rem 0.65rem;
  }

  .float-chip--one { left: 2%; }
  .float-chip--two { right: 2%; bottom: 12%; }
  .float-chip--three { left: 10%; bottom: 1%; }

  .tech-panel--main {
    inset: 20px 12px 60px 24px;
    padding: 1rem;
  }

  .tech-panel--top {
    width: 110px;
    padding: 0.8rem;
  }

  .tech-panel--bottom {
    width: 140px;
    padding: 0.8rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    padding: 0.38rem 0.7rem;
  }
}

/* Extra small phones (< 360px) */
@media (max-width: 360px) {
  :root {
    --container: min(100%, calc(100% - 0.75rem));
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .page-header h1,
  .section-header h2,
  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-height: 40px;
  }

  .navbar {
    gap: 0.5rem;
  }

  .brand img {
    width: 130px;
  }

  .metric-number {
    font-size: 1.8rem;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    right: 0.75rem;
    bottom: 1rem;
  }

  .footer-brand img {
    width: 150px;
  }

  .section {
    padding: 3rem 0;
  }

  input,
  textarea {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
  }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 1.5rem 0;
  }

  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-copy h1,
  .page-header h1,
  .section-header h2 {
    margin: 0.5rem 0;
  }

  .hero-visual {
    min-height: 350px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
    padding: 0.9rem 1.6rem;
  }

  .card {
    padding: 1.6rem;
  }

  .nav-links a {
    padding: 0.8rem 0.3rem;
  }

  input,
  textarea,
  button,
  .btn {
    font-size: 16px;
  }

  .socials a {
    width: 42px;
    height: 42px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
  }
}

/* Improved readability and accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
