/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a3a6b;
  --blue: #0e9de0;
  --teal: #00d4aa;
  --dark: #0d1b2a;
  --light: #f4f8fc;
  --white: #ffffff;
  --gray: #6b7a8d;
  --border: #e0eaf4;
  --shadow: 0 4px 24px rgba(14,157,224,0.10);
  --radius: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-logo img { height: 60px; width: auto; }

.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-links a {
  font-weight: 500; font-size: 0.95rem; color: var(--navy);
  position: relative; padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white) !important;
  padding: 8px 20px; border-radius: 25px;
  font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,157,224,0.35) !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px;
}
.hamburger span {
  display: block; width: 25px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 50%, #0a2a5e 100%);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(14,157,224,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,157,224,0.15); border: 1px solid rgba(14,157,224,0.3);
  color: var(--teal); padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 1.5rem;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255,255,255,0.75); font-size: 1.05rem;
  margin-bottom: 2rem; max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white); padding: 14px 32px; border-radius: 30px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(14,157,224,0.4); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.4); color: var(--white);
  padding: 12px 30px; border-radius: 30px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition); display: inline-block;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* Hero visual */
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; backdrop-filter: blur(10px);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card .num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .label { color: rgba(255,255,255,0.65); font-size: 0.8rem; margin-top: 4px; }
.stat-card.wide { grid-column: span 2; }

/* ===== SECTIONS ===== */
section { padding: 80px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  color: var(--blue); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--navy);
  margin-bottom: 1rem; line-height: 1.25;
}
.section-title span {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--gray); font-size: 1rem; max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,157,224,0.12), rgba(0,212,170,0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.service-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ===== TOOLS STRIP ===== */
.tools-strip { background: var(--light); }
.tools-grid {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.tool-pill {
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 25px;
  font-size: 0.85rem; font-weight: 600; color: var(--navy);
  transition: var(--transition);
}
.tool-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== WHY US ===== */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 1.2rem; }
.why-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.why-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1rem;
}
.why-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.why-item p { font-size: 0.85rem; color: var(--gray); }

.why-visual {
  background: linear-gradient(135deg, var(--navy), var(--dark));
  border-radius: 20px; padding: 2.5rem; color: white;
}
.why-visual h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.metric-bar-wrap { flex: 1; margin: 0 1rem; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.metric-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.metric-val { font-size: 0.85rem; font-weight: 700; color: var(--teal); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--dark));
  text-align: center; padding: 80px 5%;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); color: white; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 60px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 1px; }
.footer-col a { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: 0.8rem;
}
.footer-bottom a { color: var(--teal); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--navy));
  padding: 140px 5% 80px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: white; font-weight: 800; margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ===== ABOUT PAGE ===== */
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-img-wrap {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 20px; padding: 3rem; text-align: center; color: white;
}
.about-img-wrap .big-icon { font-size: 5rem; margin-bottom: 1rem; }
.about-img-wrap h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.about-img-wrap p { font-size: 0.9rem; opacity: 0.8; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.value-card {
  text-align: center; padding: 2rem 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition);
}
.value-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.value-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--gray); }

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--navy), var(--dark));
  border-radius: 20px; padding: 2.5rem; color: white;
}
.contact-info-card h3 { font-size: 1.3rem; margin-bottom: 2rem; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(14,157,224,0.2); display: flex; align-items: center;
  justify-content: center; font-size: 1rem;
}
.info-item h4 { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 3px; }
.info-item p { font-size: 0.9rem; }

.contact-form { background: var(--light); border-radius: 20px; padding: 2.5rem; }
.contact-form h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 2rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-family: inherit;
  background: white; color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,157,224,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white; border: none; border-radius: 30px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(14,157,224,0.35); }

.form-success {
  display: none; text-align: center; padding: 2rem;
  color: var(--teal); font-weight: 600;
}

/* ===== SERVICES PAGE ===== */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
  padding: 3rem; border: 1px solid var(--border); border-radius: 20px;
  margin-bottom: 2rem; transition: var(--transition);
}
.service-detail:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-icon {
  font-size: 3rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(14,157,224,0.1), rgba(0,212,170,0.1));
  border-radius: 16px; padding: 2rem; text-align: center;
}
.service-detail h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.service-detail p { color: var(--gray); margin-bottom: 1rem; font-size: 0.95rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: rgba(14,157,224,0.1); color: var(--blue);
  padding: 4px 12px; border-radius: 15px; font-size: 0.78rem; font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content, .why-grid, .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .why-visual { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 70px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 1rem 5%; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero-visual { grid-template-columns: 1fr; }
  .stat-card.wide { grid-column: span 1; }
  section { padding: 60px 5%; }
}

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
