/* ===== VARIABLES ===== */
:root {
  --navy: #0d1b2a;
  --navy-mid: #1b2f4b;
  --navy-light: #243b55;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --gray: #94a3b8;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --section-bg: #f8fafc;
}

/* ===== BASE ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #1e293b;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-weight: 700; }

/* ===== NAVBAR ===== */
#mainNav {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  padding: 14px 0;
}

#mainNav.scrolled {
  padding: 8px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

#mainNav .navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.02em;
}

#mainNav .navbar-brand span {
  color: var(--accent);
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px !important;
  transition: color 0.2s;
}

#mainNav .nav-link:hover {
  color: var(--accent) !important;
}

.lang-switcher .nav-link {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.8rem !important;
  padding: 4px 8px !important;
}

.lang-switcher .nav-link.active,
.lang-switcher .nav-link:hover {
  color: var(--accent) !important;
}

.lang-switcher .separator {
  color: rgba(255,255,255,0.25);
  align-self: center;
  font-size: 0.7rem;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3a5c 100%);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(14,165,233,0.08) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid-line {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

#hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,0.15);
  border: 1px solid rgba(14,165,233,0.3);
  color: var(--accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

#hero h1 span {
  color: var(--accent);
}

#hero .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.35);
}

.btn-outline-light-custom {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-light-custom:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 24px 28px;
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(14,165,233,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.hero-card h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.hero-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== SECTION COMMON ===== */
section {
  padding: 100px 0;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}

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

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 2px;
}

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

#about p {
  color: #475569;
  line-height: 1.8;
  font-size: 1.02rem;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: var(--section-bg);
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(14,165,233,0.1);
  transform: translateY(-4px);
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ===== SERVICES ===== */
#services {
  background: var(--navy);
}

#services .section-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  max-width: 520px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 36px 30px;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

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

.service-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-5px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(14,165,233,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(14,165,233,0.2);
}

.service-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.service-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== PROJECTS ===== */
#projects {
  background: var(--section-bg);
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
  height: 100%;
}

.project-card:hover {
  box-shadow: 0 16px 48px rgba(13,27,42,0.12);
  transform: translateY(-5px);
  border-color: transparent;
}

.project-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,27,42,0.5) 100%);
}

.project-sector {
  position: absolute;
  bottom: 12px;
  left: 16px;
  z-index: 1;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.project-body {
  padding: 24px;
}

.project-body h5 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-body p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

/* ===== CONTACT ===== */
#contact {
  background: var(--white);
}

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

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(14,165,233,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.contact-info-value {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.2s;
}

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


/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  padding: 60px 0 30px;
  color: rgba(255,255,255,0.55);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand span { color: var(--accent); }

footer p { font-size: 0.875rem; line-height: 1.7; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 40px 0 24px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTop.visible {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  section { padding: 70px 0; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 1.6rem; }
}

@media (max-width: 767px) {
  section { padding: 60px 0; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  #hero h1 { font-size: 1.9rem; }
  .btn-accent, .btn-outline-light-custom { width: 100%; text-align: center; }
}
