/* === Reset & Variables === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #1a1a2e;
  --bg-section: #16213e;
  --accent: #7c8cf8;
  --accent-it: #4ade80;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --surface: #1e2a4a;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

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

/* === Top Bar === */
.top-bar {
  background: #0f0f1e;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.top-bar-content {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  flex-shrink: 0;
}

/* === Main Nav === */
.main-nav {
  background: var(--bg-primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links .nav-it {
  color: var(--accent-it);
  font-weight: 600;
}

.nav-links .nav-it:hover {
  color: #6ee7a0;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-section) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 140, 248, 0.08) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(124, 140, 248, 0.3);
}

/* === Section Common === */
.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

/* === About === */
.about {
  padding: 80px 0;
  background: var(--bg-section);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: 8px;
}

.highlight h3 {
  font-size: 16px;
  margin-bottom: 2px;
}

.highlight p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* === Services / Card Grid === */
.services {
  padding: 80px 0;
  background: var(--bg-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 140, 248, 0.15);
}

.card-icon {
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === Stats === */
.stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--accent) 0%, #5b6be6 100%);
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-number, .stat-label {
  font-size: 48px;
  font-weight: 700;
  display: inline;
}

.stat-suffix {
  font-size: 48px;
  font-weight: 700;
}

.stat p {
  font-size: 16px;
  margin-top: 4px;
  opacity: 0.9;
}

/* === IT Services === */
.it-services {
  padding: 80px 0;
  background: var(--bg-section);
  border-top: 2px solid rgba(74, 222, 128, 0.2);
}

.it-services .section-title {
  color: var(--accent-it);
}

.card-it {
  border: 1px solid rgba(74, 222, 128, 0.1);
}

.card-it:hover {
  box-shadow: 0 12px 32px rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
}

/* === Contact === */
.contact {
  padding: 80px 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border-radius: 12px;
}

.contact-card svg {
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-card a, .contact-card p {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--accent);
}

/* === Footer === */
.footer {
  padding: 40px 0;
  background: #0f0f1e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--accent);
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-section) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 140, 248, 0.08) 0%, transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* === Service Pillars (home page) === */
.pillars {
  padding: 80px 0;
  background: var(--bg-primary);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 140, 248, 0.15);
}

.pillar-icon {
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.pillar .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* === Division Detail (services page) === */
.division {
  padding: 80px 0;
}

.division:nth-child(odd) {
  background: var(--bg-section);
}

.division:nth-child(even) {
  background: var(--bg-primary);
}

.division-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.division-content.reverse {
  direction: rtl;
}

.division-content.reverse > * {
  direction: ltr;
}

.division-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.division-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
}

.division-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.division-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.division-features li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.division-visual {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid rgba(255,255,255,0.05);
}

.division-visual svg {
  margin-bottom: 16px;
}

.division-visual h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.division-visual p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* === Timeline (IT Services) === */
.timeline-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-it));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-section);
}

.timeline-item:last-child::before {
  background: var(--accent-it);
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--accent);
}

.timeline-item:last-child h3 {
  color: var(--accent-it);
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* === CTA Banner === */
.cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--accent) 0%, #5b6be6 100%);
  text-align: center;
}

.cta-banner h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-banner .btn {
  background: white;
  color: var(--accent);
}

.cta-banner .btn:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* === Contact Form Section === */
.contact-info-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-details h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.contact-detail-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-detail-item .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-detail-item a,
.contact-detail-item p {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}

.contact-detail-item a:hover {
  color: var(--accent);
}

.contact-map {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* === Responsive === */
@media (max-width: 1023px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

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

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .division-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .division-content.reverse {
    direction: ltr;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number, .stat-label, .stat-suffix {
    font-size: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .division-features {
    grid-template-columns: 1fr;
  }

  .cta-banner h2 {
    font-size: 24px;
  }
}
