/* ═══════════════════════════════════════════════
   CUBE CONTROLS — styles.css
   Color palette derived from logo:
     --light-blue : #79C4D8  (lightest cube)
     --teal       : #3D98A8  (middle cube)
     --navy       : #1E4B6F  (darkest cube / wordmark)
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --light-blue : #79C4D8;
  --teal       : #3D98A8;
  --navy       : #1E4B6F;
  --navy-dark  : #132F47;
  --bg-light   : #F4F8FA;
  --bg-white   : #FFFFFF;
  --text-dark  : #131E28;
  --text-mid   : #3D5264;
  --text-muted : #7A94A4;
  --border     : #D6E4EC;
  --radius-sm  : 8px;
  --radius-md  : 16px;
  --radius-lg  : 24px;
  --shadow-sm  : 0 2px 8px rgba(30,75,111,.08);
  --shadow-md  : 0 8px 32px rgba(30,75,111,.12);
  --shadow-lg  : 0 20px 60px rgba(30,75,111,.16);
  --transition : 0.25s cubic-bezier(.4,0,.2,1);
  --max-w      : 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utility ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 64px; }

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Nav ─────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 120px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
}
.nav-cta:hover { opacity: .88; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 45%, var(--teal) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cube-grid {
  position: absolute;
  inset: 0;
}
.cube-float {
  position: absolute;
  border-radius: 12px;
  opacity: .08;
  animation: floatCube 12s ease-in-out infinite;
}
.c1 { width: 220px; height: 220px; background: var(--light-blue); top: 8%; right: 12%; animation-delay: 0s; }
.c2 { width: 140px; height: 140px; background: var(--teal); top: 55%; right: 6%; animation-delay: 2s; }
.c3 { width: 100px; height: 100px; background: var(--light-blue); top: 20%; left: 5%; animation-delay: 4s; }
.c4 { width: 300px; height: 300px; background: var(--navy); bottom: -60px; right: 25%; animation-delay: 1s; opacity: .05; }
.c5 { width: 80px; height: 80px; background: var(--light-blue); bottom: 18%; left: 15%; animation-delay: 3s; }

@keyframes floatCube {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(4deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 136px;
}
.hero-badge {
  display: inline-block;
  background: rgba(121,196,216,.18);
  border: 1px solid rgba(121,196,216,.35);
  color: var(--light-blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── Services ────────────────────────────────── */
.services { background: var(--bg-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--light-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: var(--light-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.icon-hardware { background: rgba(30,75,111,.08); color: var(--navy); }
.icon-software { background: rgba(61,152,168,.1); color: var(--teal); }
.icon-connect  { background: rgba(121,196,216,.15); color: var(--light-blue); }
.icon-consult  { background: rgba(30,75,111,.08); color: var(--navy); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.service-tags li {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--bg-light);
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── About ───────────────────────────────────── */
.about { background: var(--bg-light); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-logo-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.about-logo { width: 100%; max-width: 240px; height: auto; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-number {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.about-text .section-title { text-align: left; }
.about-text p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-pillars { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillar-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 6px;
}
.pillar strong {
  display: block;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.pillar span { font-size: .88rem; color: var(--text-mid); }

/* ── Contact ─────────────────────────────────── */
.contact { background: var(--bg-white); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--teal); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .93rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A94A4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,152,168,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}
.form-note a { color: var(--teal); text-decoration: none; font-weight: 500; }
.form-note a:hover { text-decoration: underline; }

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  border: 1.5px solid var(--border);
}
.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-info-card > p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(61,152,168,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-detail-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-detail-value {
  font-size: .92rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
a.contact-detail-value:hover { color: var(--teal); }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-brand p {
  font-size: .85rem;
  margin-top: 8px;
  color: rgba(255,255,255,.5);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.footer-nav a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--light-blue); }
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.08);
  width: 100%;
  text-align: center;
  padding-top: 24px;
}

/* ── Toast ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 999;
}
.toast svg { width: 18px; height: 18px; color: var(--light-blue); }
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed;
    top: 136px; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 24px 24px 32px;
    gap: 8px;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--text-mid) !important; padding: 10px 0; font-size: 1rem; }
  .nav-links a:hover { color: var(--teal) !important; }
  .nav-toggle { display: flex; }
  .hero-content { padding-top: 148px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
