/* =============================================
   TSERVICE CORPORATION — Design System v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-deep:     #07090f;
  --bg-dark:     #0d1117;
  --bg-mid:      #111827;
  --bg-card:     rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --border-glow: rgba(49,130,206,0.4);
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-glow:   rgba(37,99,235,0.15);
  --cyan:        #06b6d4;
  --white:       #ffffff;
  --grey-1:      #e2e8f0;
  --grey-2:      #94a3b8;
  --grey-3:      #475569;
  --font:        'Inter', system-ui, sans-serif;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --radius:      16px;
  --radius-sm:   10px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 10px; }

/* =============================================
   HEADER / NAV
   ============================================= */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.5rem 0;
  transition: all 0.4s var(--ease);
}

#header.scrolled {
  background: rgba(7,9,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

#header.scrolled .nav-logo img {
  height: 42px;
}

#header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img {
  height: 65px;
  width: auto;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-2);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue-light);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(37,99,235,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,9,15,0.98);
  backdrop-filter: blur(20px);
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--grey-2);
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--blue-light); }

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,9,15,0.65) 0%,
    rgba(13,17,23,0.55) 50%,
    rgba(7,9,15,0.70) 100%
  );
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: var(--blue-glow);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge i { font-size: 0.7rem; }

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--grey-2);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: var(--blue);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,99,235,0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--blue-light);
  background: var(--blue-glow);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-stat-item .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}

.hero-stat-item .label {
  font-size: 0.8rem;
  color: var(--grey-2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   TRUST BAR
   ============================================= */
#trust-bar {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-item i { color: var(--blue-light); font-size: 1rem; }

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* =============================================
   SECTION SHARED STYLES
   ============================================= */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-mid); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--grey-2);
  max-width: 600px;
  line-height: 1.7;
}

.section-header { margin-bottom: 4rem; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.service-card:hover {
  border-color: rgba(37,99,235,0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 56px; height: 56px;
  background: var(--blue-glow);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--blue-light);
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey-2);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-top: 1.5rem;
  transition: gap 0.3s;
  position: relative;
  z-index: 1;
}

.service-card:hover .card-link { gap: 10px; }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.85) contrast(1.05);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,15,0.7), transparent 60%);
  border-radius: var(--radius);
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.about-badge .big { font-size: 1.75rem; font-weight: 800; color: var(--blue-light); line-height: 1; }
.about-badge .small { font-size: 0.75rem; color: var(--grey-2); margin-top: 2px; }

.about-checklist {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--grey-1);
}

.about-checklist li i {
  color: var(--blue-light);
  margin-top: 3px;
  flex-shrink: 0;
}

/* =============================================
   GOVERNMENT SECTION
   ============================================= */
.gov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.3s var(--ease);
}

.gov-card:hover {
  border-color: rgba(37,99,235,0.4);
  background: rgba(37,99,235,0.05);
}

.gov-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--blue-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue-light);
}

.gov-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.gov-card p { font-size: 0.85rem; color: var(--grey-2); line-height: 1.6; }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--blue-light);
  line-height: 1;
}

.stat-item .lbl {
  font-size: 0.85rem;
  color: var(--grey-2);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   WHY US SECTION
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}

.why-item:hover {
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-4px);
}

.why-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.why-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.85rem; color: var(--grey-2); line-height: 1.6; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.contact-info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--blue-glow);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--blue-light);
}

.contact-info-item .cil { font-size: 0.75rem; color: var(--grey-3); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info-item .civ { font-size: 0.9rem; color: var(--grey-1); font-weight: 600; margin-top: 2px; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-2);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }

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

.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-mid); }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo img { height: 45px; margin-bottom: 1rem; }
.footer-logo p { font-size: 0.85rem; color: var(--grey-2); line-height: 1.7; max-width: 260px; }

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-1);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--grey-2); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--blue-light); }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.social-icon {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--grey-2);
  transition: all 0.3s var(--ease);
}

.social-icon:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--grey-3); }
.footer-bottom a { color: var(--grey-2); font-size: 0.8rem; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--blue-light); }

/* =============================================
   ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 2fr); gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .gov-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}
