/* =============================================
   A5TECH – STYLESHEET
   ============================================= */

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

:root {
  --blue:      #1a56db;
  --blue-dark: #1340b0;
  --blue-glow: #3b82f680;
  --dark:      #0d1117;
  --dark2:     #161b26;
  --dark3:     #1e2535;
  --white:     #ffffff;
  --gray:      #64748b;
  --gray-light:#f0f4f8;
  --text:      #1e293b;
  --text-light:#475569;
  --border:    #e2e8f0;
  --accent:    #3b82f6;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* Typography */
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

.accent { color: var(--accent); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header p { color: var(--text-light); margin-top: .75rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: var(--gray-light); }

.link-arrow { color: var(--blue); font-weight: 600; font-size: .9rem; transition: gap .2s; }
.link-arrow:hover { gap: .4rem; }

/* =============================================
   NAV
   ============================================= */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .25rem; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.25rem;
}
.logo-icon {
  background: var(--blue); color: #fff;
  padding: .2em .4em; border-radius: 6px; font-size: 1rem;
}
.logo-text { color: var(--text); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--text-light);
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content:''; position: absolute; bottom: -2px; left: 0; width: 0;
  height: 2px; background: var(--blue); transition: width .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.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(--text); border-radius: 2px; transition: all .3s; }

/* =============================================
   HERO
   ============================================= */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 88vh; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0f2050 100%);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,.15) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; padding: 4rem 0 4rem 1.5rem; max-width: 600px; margin: 0 auto; }
.hero-badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.3); padding: .35em .9em;
  border-radius: 99px; margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-sub { color: #94a3b8; font-size: 1.1rem; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-features { display: flex; flex-direction: column; gap: .75rem; }
.hero-feat { display: flex; align-items: flex-start; gap: .75rem; color: #94a3b8; font-size: .9rem; }
.feat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }

.hero-image { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.hero-image img { border-radius: var(--radius-lg); object-fit: cover; max-height: 440px; box-shadow: var(--shadow-lg); }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band { background: var(--blue); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.2rem; color: #fff; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.75); }

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--gray-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius-lg); }
.about-card {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--blue); color: #fff;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: .2rem;
  box-shadow: var(--shadow-lg); min-width: 160px;
}
.about-card-num { font-size: 2rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.about-card span:last-child { font-size: .8rem; opacity: .85; }
.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text h2 { margin-bottom: .25rem; }
.about-text p { color: var(--text-light); }

/* =============================================
   SERVICES PREVIEW
   ============================================= */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--text-light); font-size: .95rem; margin-bottom: 1rem; }

/* =============================================
   SERVICES FULL (services.html)
   ============================================= */
.services-full-grid { display: flex; flex-direction: column; gap: 3rem; }
.service-full-card {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.service-full-card:nth-child(even) { direction: rtl; }
.service-full-card:nth-child(even) > * { direction: ltr; }
.service-full-card img { height: 100%; min-height: 280px; }
.sfc-body { padding: 2.5rem; display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
.sfc-body h3 { font-size: 1.5rem; }
.sfc-body p { color: var(--text-light); }
.svc-list { display: flex; flex-direction: column; gap: .4rem; padding-left: .25rem; }
.svc-list li { font-size: .9rem; color: var(--text-light); }
.svc-list li::before { content: "✓ "; color: var(--blue); font-weight: 700; }

/* =============================================
   INNOVATION
   ============================================= */
.innovation { background: var(--gray-light); }
.innovation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.innovation-text { display: flex; flex-direction: column; gap: 1rem; }
.innovation-text h2 { margin-bottom: .25rem; }
.innovation-text > p { color: var(--text-light); }
.team-list { display: flex; flex-direction: column; gap: 1.25rem; }
.team-item { display: flex; gap: 1rem; align-items: flex-start; }
.team-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-item strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.team-item p { font-size: .85rem; color: var(--text-light); margin: 0; }
.innovation-imgs { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.innovation-imgs img { border-radius: var(--radius); height: 200px; }

/* =============================================
   TESTIMONIAL
   ============================================= */
.testimonial { background: var(--dark); }
.testimonial-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.testimonial .eyebrow { color: var(--accent); }
.stars { font-size: 1.5rem; color: #f59e0b; margin: .75rem 0 1.5rem; }
blockquote { font-size: 1.2rem; color: #e2e8f0; line-height: 1.8; font-style: italic; margin-bottom: 2rem; }
.testi-author { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.testi-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; color: #fff; }
.testi-author span { font-size: .85rem; color: #94a3b8; }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band { background: var(--blue); padding: 4rem 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: .75rem; }
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }

/* =============================================
   PARTNERS PAGE
   ============================================= */
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.partner-card {
  background: var(--gray-light); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; transition: box-shadow .2s, transform .2s;
  border: 1px solid var(--border);
}
.partner-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.partner-logo { font-size: 3rem; margin-bottom: 1rem; }
.partner-card h4 { margin-bottom: .5rem; }
.partner-card p { color: var(--text-light); font-size: .9rem; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.why-card { text-align: center; padding: 1.75rem 1.25rem; background: var(--gray-light); border-radius: var(--radius); }
.why-icon { font-size: 2rem; margin-bottom: .75rem; }
.why-card h4 { margin-bottom: .5rem; }
.why-card p { color: var(--text-light); font-size: .85rem; }
.partner-why { background: var(--white); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2, .contact-form-wrap h2 { margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.ci-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; font-weight: 600; margin-bottom: .2rem; }
.contact-item p { color: var(--text-light); font-size: .9rem; margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: .7rem 1rem; font-size: .95rem; font-family: 'Inter', sans-serif;
  color: var(--text); transition: border-color .2s, box-shadow .2s;
  background: var(--white); resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-success {
  display: none; background: #ecfdf5; color: #065f46;
  border: 1px solid #6ee7b7; padding: 1rem; border-radius: var(--radius);
  font-size: .95rem; text-align: center;
}
.form-success.visible { display: block; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero p { color: #94a3b8; margin-top: .75rem; font-size: 1.05rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: #64748b; font-size: .9rem; }
.footer-links h4,
.footer-contact h4 { color: #fff; margin-bottom: 1.25rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #64748b; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: #64748b; font-size: .9rem; margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid #1e2535; padding: 1.5rem 0; text-align: center; }
.footer-bottom p { color: #475569; font-size: .85rem; }

.social-links { display: flex; gap: .75rem; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #334155;
  color: #94a3b8; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 4rem 1.5rem; max-width: 100%; }
  .about-grid,
  .innovation-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card { position: static; margin-top: 1rem; display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-full-card { grid-template-columns: 1fr; }
  .service-full-card:nth-child(even) { direction: ltr; }
  .service-full-card img { height: 220px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-wrap { position: relative; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
}
