/* css/home.css */

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

/* ── Background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    #060d1f 0%,
    #0a1a38 30%,
    #0F3460 65%,
    #0a2050 100%
  );
}

/* Dark mode: same bg is fine */
[data-theme="dark"] .hero-canvas {
  background: linear-gradient(125deg, #020810 0%, #060f20 30%, #0a1e40 65%, #08183a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(14,165,233,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(56,189,248,0.1) 0%, transparent 45%);
}

/* Geometric shapes */
.geo {
  position: absolute;
  border: 1px solid rgba(14,165,233,0.12);
  border-radius: 50%;
  animation: geoSpin linear infinite;
}

.geo-1 {
  width: 500px; height: 500px;
  top: -100px; left: -150px;
  animation-duration: 40s;
}

.geo-2 {
  width: 300px; height: 300px;
  top: 30%; right: 5%;
  border-color: rgba(56,189,248,0.08);
  animation-duration: 28s;
  animation-direction: reverse;
}

.geo-3 {
  width: 180px; height: 180px;
  bottom: 15%; right: 20%;
  border-color: rgba(14,165,233,0.15);
  animation-duration: 20s;
  border-radius: 30%;
}

.geo-4 {
  width: 80px; height: 80px;
  top: 25%; left: 40%;
  border-color: rgba(56,189,248,0.2);
  animation-duration: 14s;
  animation-direction: reverse;
}

@keyframes geoSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Wave SVG */
.wave-svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 45%;
  opacity: 0.06;
}

.wave {
  animation: waveMove 12s ease-in-out infinite;
}

.w1 { fill: #38BDF8; animation-delay: 0s; }
.w2 { fill: #0EA5E9; animation-delay: -4s; }

@keyframes waveMove {
  0%, 100% { d: path("M0,400 C240,300 480,500 720,400 C960,300 1200,500 1440,400 L1440,800 L0,800 Z"); }
  50%       { d: path("M0,450 C240,350 480,550 720,450 C960,350 1200,550 1440,450 L1440,800 L0,800 Z"); }
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  max-width: 720px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #38BDF8;
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.hero-title {
  color: white;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-line1 {
  display: block;
  font-size: clamp(2.5rem, 6vw, 5rem);
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-line2 {
  display: block;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  color: #38BDF8;
  font-weight: 500;
  animation: fadeUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #0EA5E9, #38BDF8);
  color: white;
  box-shadow: 0 8px 24px rgba(14,165,233,0.35);
  padding: 14px 32px;
  font-size: 15px;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(14,165,233,0.45);
}

.hero-btn-ghost {
  background: rgba(255,255,255,0.07);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.2);
  padding: 14px 28px;
  font-size: 15px;
  backdrop-filter: blur(8px);
}

.hero-btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeUp 0.8s ease 1s forwards;
  opacity: 0;
  flex-wrap: wrap;
}

.hstat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  color: #38BDF8;
  line-height: 1;
  margin-bottom: 4px;
}

.hstat span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.hstat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: fadeUp 1s ease 1.4s forwards;
}

.hero-scroll span {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px; height: 7px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   INTRO
══════════════════════════════════════ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.visual-stack {
  position: relative;
}

.vs-main {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5/4;
  box-shadow: 0 24px 60px rgba(15,52,96,0.2);
}

[data-theme="dark"] .vs-main {
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.vs-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.vs-main:hover img { transform: scale(1.04); }

.vs-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
  min-width: 180px;
}

.vs-badge svg {
  background: rgba(14,165,233,0.1);
  padding: 6px;
  border-radius: 8px;
  width: 36px; height: 36px;
  flex-shrink: 0;
}

.vs-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.vs-badge small { font-size: 11px; color: var(--text3); }

.vs-ring {
  position: absolute;
  border: 2px dashed var(--border);
  border-radius: 50%;
  animation: ringPulse 6s ease-in-out infinite;
}

.ring1 {
  width: 120px; height: 120px;
  top: -30px; right: -30px;
  animation-delay: 0s;
}

.ring2 {
  width: 70px; height: 70px;
  top: 10px; right: 10px;
  border-color: rgba(14,165,233,0.2);
  animation-delay: 3s;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.1); opacity: 0.3; }
}

.intro-feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
}

.feat-icon {
  width: 32px; height: 32px;
  background: rgba(14,165,233,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

[data-theme="dark"] .feat-icon { background: rgba(56,189,248,0.1); }

/* ══════════════════════════════════════
   SERVICES PREVIEW GRID
══════════════════════════════════════ */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.srv-card {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.srv-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.srv-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.srv-card:hover .srv-img img { transform: scale(1.08); }

.srv-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 28px;
  font-weight: 900;
  opacity: 0.15;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

.srv-body {
  padding: 24px;
}

.srv-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.srv-body p {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.srv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: var(--t3);
}

[data-theme="dark"] .srv-link { color: var(--accent); }

.srv-link:hover { gap: 10px; }

.srv-accent {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.srv-card:hover .srv-accent { opacity: 1; }

/* ══════════════════════════════════════
   WHY US
══════════════════════════════════════ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: var(--t3);
}

.why-item:hover {
  background: var(--surface);
  border-color: rgba(14,165,233,0.25);
  transform: translateX(-4px);
  box-shadow: var(--card-shadow);
}

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

.why-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}

.why-item p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* Visual card */
.why-card-visual {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: var(--card-hover);
  position: relative;
}

.wcv-top {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.wcv-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.wcv-dot.cyan  { background: #0EA5E9; }
.wcv-dot.mid   { background: rgba(14,165,233,0.4); }
.wcv-dot.sm    { background: rgba(14,165,233,0.2); }

.why-card-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.wcv-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(15,52,96,0.85), transparent);
  color: white;
}

.wcv-big {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: #38BDF8;
  line-height: 1;
}

.wcv-overlay span:last-child {
  font-size: 13px;
  opacity: 0.75;
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2a5a 50%, #0a1e40 100%);
  border-radius: 28px;
  padding: 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 24px 60px rgba(15,52,96,0.35);
}

[data-theme="dark"] .cta-box {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 50%, #091830 100%);
  border: 1px solid rgba(14,165,233,0.2);
}

.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%);
}

.cta-shape.s1 { width: 400px; height: 400px; right: -100px; top: -100px; }
.cta-shape.s2 { width: 300px; height: 300px; left: -50px; bottom: -80px; }

.cta-content { position: relative; z-index: 1; }

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin: 16px 0 12px;
}

.cta-box p {
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .intro-grid  { grid-template-columns: 1fr; gap: 48px; }
  .why-layout  { grid-template-columns: 1fr; gap: 48px; }
  .srv-grid    { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .why-card-visual { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .hero-stats  { gap: 16px; }
  .hstat-div   { display: none; }
  .cta-box     { padding: 48px 24px; }
  .vs-badge    { display: none; }
  .hero        { min-height: 100svh; }
}
