/* =========================================
   ADSI Technology Inc. — Stylesheet
   ========================================= */

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

:root {
  --green:        #4db84d;
  --green-dark:   #357a35;
  --green-light:  #6dd46d;
  --navy:         #0d1b2a;
  --navy-mid:     #132336;
  --slate:        #1e3a5f;
  --white:        #ffffff;
  --off-white:    #f4f6f8;
  --text-dark:    #1a1a2e;
  --text-muted:   #6b7a8d;
  --border:       #dde3ea;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.16);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-light);
  border-bottom-color: var(--green-light);
}

.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 6px;
  border-bottom: none !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ─────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--slate) 100%);
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(77,184,77,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77,184,77,0.06) 0%, transparent 40%);
}

/* Circuit grid overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,184,77,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,184,77,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-text h1 span {
  color: var(--green-light);
}

.hero-text p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77,184,77,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  max-width: 360px;
  width: 100%;
  filter: drop-shadow(0 8px 32px rgba(77,184,77,0.3));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── SECTION SHARED ──────────────────────── */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title span {
  color: var(--green-dark);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.divider {
  width: 52px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 1.25rem 0 2.5rem;
}

/* ── ABOUT ───────────────────────────────── */
#about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.about-text p {
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
  text-align: center;
}

.stat-card .number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-card .label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── SERVICES ────────────────────────────── */
#services {
  background: var(--white);
}

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

.service-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  transition: all 0.3s;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(77,184,77,0.3);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-list li {
  font-size: 0.88rem;
  color: #555;
  padding-left: 1.1rem;
  position: relative;
}

.service-list li::before {
  content: '▸';
  color: var(--green);
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 1px;
}

/* ── CONTACT ─────────────────────────────── */
#contact {
  background: var(--navy);
  color: var(--white);
}

#contact .section-label {
  color: var(--green-light);
}

#contact .section-title {
  color: var(--white);
}

#contact .section-sub {
  color: rgba(255,255,255,0.65);
}

#contact .divider {
  background: var(--green-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  margin-top: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(77,184,77,0.15);
  border: 1px solid rgba(77,184,77,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-item-body p,
.contact-item-body a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-item-body a:hover {
  color: var(--green-light);
}

/* Contact form */
.contact-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-light);
  background: rgba(255,255,255,0.1);
}

.form-group select option {
  background: var(--navy-mid);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.form-submit:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77,184,77,0.4);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  margin-top: 0.75rem;
}

/* Form success/error states */
.form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.form-message.success {
  background: rgba(77,184,77,0.15);
  border: 1px solid rgba(77,184,77,0.4);
  color: var(--green-light);
}

.form-message.error {
  background: rgba(220,50,50,0.15);
  border: 1px solid rgba(220,50,50,0.4);
  color: #ff8080;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: #080f18;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 2rem;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer a {
  color: var(--green-light);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 960px) {
  .hero-inner        { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-text p       { margin-left: auto; margin-right: auto; }
  .btn-group         { justify-content: center; }
  .hero-logo         { order: -1; }
  .hero-logo img     { max-width: 240px; }
  .about-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid     { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open     { display: flex; }
  .nav-links li a     { display: block; padding: 0.85rem 2rem; border-bottom: none; }
  .nav-cta            { margin: 0.5rem 2rem; text-align: center; border-radius: 6px; }
  .nav-toggle         { display: flex; }

  .form-row           { grid-template-columns: 1fr; }
  .about-stats        { grid-template-columns: 1fr 1fr; }
  section             { padding: 4rem 1.5rem; }
  .contact-form       { padding: 1.75rem 1.25rem; }
}
