/* ================================================================== */
/* Navigation                                                           */
/* ================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 16, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--c-text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity var(--t);
}
.nav-brand:hover { opacity: 0.8; color: var(--c-text); }
.nav-brand img { width: 36px; height: 36px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-s);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-2);
  transition: all var(--t);
}
.nav-links a:hover { color: var(--c-text); background: rgba(255,255,255,0.05); }
.nav-links a.btn-primary { color: #fff; padding: 0.5rem 1.2rem; }

/* Active nav link per page */
.page-home     .nav-links a[href="index.html"],
.page-services .nav-links a[href="services.html"],
.page-about    .nav-links a[href="about.html"],
.page-contact  .nav-links a[href="contact.html"] {
  color: var(--c-blue);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================== */
/* Hero                                                                 */
/* ================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + var(--s-2xl));
  padding-bottom: var(--s-2xl);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background:
    linear-gradient(to bottom, rgba(7,16,31,0.68) 0%, rgba(7,16,31,0.86) 100%),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(74, 142, 255, 0.07) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 65%;
  background: radial-gradient(ellipse, rgba(74, 142, 255, 0.11) 0%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-2);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================================== */
/* Services overview                                                    */
/* ================================================================== */
.services-overview { background: var(--c-bg-alt); }

.services-overview h2 { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  padding: 1.75rem;
  transition: all var(--t);
}
.service-card:hover {
  border-color: rgba(74, 142, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(74, 142, 255, 0.12);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 142, 255, 0.1);
  border-radius: var(--r-s);
  color: var(--c-blue);
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.92rem; line-height: 1.65; }

.services-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ================================================================== */
/* Approach                                                             */
/* ================================================================== */
.approach h2 { margin-bottom: 0; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.approach-item {
  padding: 1.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
}

.approach-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 198, 223, 0.1);
  border-radius: var(--r-s);
  color: var(--c-cyan);
  margin-bottom: 1.2rem;
}

.approach-item h3 { margin-bottom: 0.6rem; }
.approach-item p  { font-size: 0.92rem; line-height: 1.65; }

/* ================================================================== */
/* Expertise tags                                                       */
/* ================================================================== */
.expertise {
  background: var(--c-bg-alt);
  padding: var(--s-xl) 0;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* ================================================================== */
/* CTA banner                                                           */
/* ================================================================== */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(74,142,255,0.1) 0%, rgba(0,198,223,0.1) 100%),
    var(--c-bg-alt);
  border-top:    1px solid rgba(74, 142, 255, 0.2);
  border-bottom: 1px solid rgba(74, 142, 255, 0.2);
  text-align: center;
  padding: var(--s-2xl) 0;
}

.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p  { font-size: 1.05rem; max-width: 620px; margin: 0 auto 2rem; }

/* ================================================================== */
/* Footer                                                               */
/* ================================================================== */
.site-footer {
  background: #040c18;
  border-top: 1px solid var(--c-border);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand .nav-brand { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 340px;
}

.footer-nav h3,
.footer-contact h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 1rem;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a {
  font-size: 0.9rem;
  color: var(--c-text-2);
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--c-blue); }

.footer-contact p  { font-size: 0.9rem; }
.footer-contact a  { color: var(--c-text-2); }
.footer-contact a:hover { color: var(--c-blue); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.82rem; color: var(--c-text-3); }

/* ================================================================== */
/* Inner page hero                                                      */
/* ================================================================== */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--s-2xl));
  padding-bottom: var(--s-xl);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(74,142,255,0.1) 0%, transparent 70%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}

.page-services .page-hero {
  background:
    linear-gradient(to bottom, rgba(7,16,31,0.76) 0%, rgba(7,16,31,0.88) 100%),
    url('../images/datacenter.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--c-border);
}

.page-about .page-hero {
  background:
    linear-gradient(to bottom, rgba(7,16,31,0.76) 0%, rgba(7,16,31,0.88) 100%),
    url('../images/engineer.jpg');
  background-size: cover;
  background-position: center 30%;
  border-bottom: 1px solid var(--c-border);
}

.page-contact .page-hero {
  background:
    linear-gradient(to bottom, rgba(7,16,31,0.76) 0%, rgba(7,16,31,0.88) 100%),
    url('../images/servers.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--c-border);
}

.page-hero .section-label { margin-bottom: 0.5rem; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 600px; }

/* ================================================================== */
/* Services detail page                                                 */
/* ================================================================== */
.service-detail { padding: var(--s-2xl) 0; }
.service-detail:nth-child(even) { background: var(--c-bg-alt); }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}

.service-detail-header { position: sticky; top: calc(var(--nav-h) + 2rem); }

.service-detail-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 142, 255, 0.1);
  border-radius: var(--r-m);
  color: var(--c-blue);
  margin-bottom: 1.5rem;
}

.service-detail-header h2 { margin-bottom: 0; }

.service-detail-body p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.75rem; }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: var(--c-text-2);
}
.service-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
  margin-top: 0.55em;
}

/* ================================================================== */
/* About page                                                           */
/* ================================================================== */
.about-intro { padding: var(--s-2xl) 0; }

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p   { margin-bottom: 1rem; font-size: 1rem; line-height: 1.8; }
.about-text p:last-child { margin-bottom: 0; }

.about-img {
  width: 100%;
  border-radius: var(--r-l);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.about-values { background: var(--c-bg-alt); padding: var(--s-2xl) 0; }

.about-values h2 { margin-bottom: 2.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-m);
  padding: 1.75rem;
}
.value-card h3 { margin-bottom: 0.65rem; }
.value-card p  { font-size: 0.92rem; line-height: 1.65; }

.value-num {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

/* ================================================================== */
/* Contact page                                                         */
/* ================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  padding: var(--s-2xl) 0;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p   { font-size: 1rem; line-height: 1.8; margin-bottom: 1.75rem; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 142, 255, 0.1);
  border-radius: var(--r-s);
  color: var(--c-blue);
  flex-shrink: 0;
}

.contact-detail-item h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 0.2rem;
}
.contact-detail-item p { font-size: 0.93rem; margin-bottom: 0; }
.contact-detail-item a { color: var(--c-text-2); }
.contact-detail-item a:hover { color: var(--c-blue); }

/* Form */
.contact-form-wrapper {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-l);
  padding: 2.5rem;
}

.contact-form-wrapper h3 { margin-bottom: 0.4rem; }
.contact-form-wrapper > p { font-size: 0.9rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--c-text-2);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-s);
  color: var(--c-text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color var(--t);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(74, 142, 255, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.8rem;
  color: var(--c-text-3);
  margin-top: 1rem;
}

/* ================================================================== */
/* Responsive                                                           */
/* ================================================================== */
@media (max-width: 900px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .approach-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-main    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }

  .service-detail-inner   { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail-header  { position: static; }

  .about-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout   { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 16, 31, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 0.65rem 1rem; }
  .nav-links a.btn-primary { text-align: center; margin-top: 0.5rem; }
}

@media (max-width: 600px) {
  :root { --s-2xl: 4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .footer-main   { grid-template-columns: 1fr; gap: 2rem; }
  .hero-cta      { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
  .contact-form-wrapper { padding: 1.5rem; }
}
