/* ================================
   Hero Section
=================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%);
  overflow: visible !important; /* ensure card not clipped */
  z-index: 3; /* keep above next section */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 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.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  from { background-position: 0 0; }
  to   { background-position: 120px 120px; }
}

/* outer container only centers content */
.hero .container {
  position: relative;
  z-index: 10;
}

/* inner wrapper handles layout */
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-3xl, 3rem);
  align-items: start;
}

.hero-content { color: white; }

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg, 1.25rem);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: slideInUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl, 1.5rem);
  opacity: 0;
  animation: slideInUp 1s ease-out 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md, 1rem);
  margin-bottom: var(--spacing-xl, 1.5rem);
  opacity: 0;
  animation: slideInUp 1s ease-out 0.9s forwards;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-primary { background:#fff; color:#1e40af; box-shadow:0 12px 25px rgba(0,0,0,.15); }
.btn-primary:hover { transform: translateY(-2px); box-shadow:0 18px 30px rgba(0,0,0,.2); }

.btn-secondary { background:rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.5); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow:0 18px 30px rgba(0,0,0,.2); }

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

/* ================================
   Hero Areas Card
=================================== */
.hero-areas-modern {
  opacity: 0;
  animation: slideInRight 1s ease-out 1.2s forwards;
  position: relative;
  z-index: 4;
}

.areas-card-hero {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 28px;
  padding: var(--spacing-xl, 2rem);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;
  z-index: 4;
}

.areas-card-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

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

@keyframes slideInRight {
  from { opacity:0; transform: translateX(40px); }
  to   { opacity:1; transform: translateX(0); }
}

.areas-card-hero h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md, 1rem);
  position: relative;
  z-index: 10;
}

.areas-list-hero {
  display: grid;
  gap: var(--spacing-sm, .75rem);
  position: relative;
  z-index: 10;
}

.area-item-hero {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm, .6rem);
  padding: var(--spacing-xs, .5rem) 0;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  transition: transform .15s ease, color .15s ease;
}
.area-item-hero:hover { color:#fff; transform: translateX(5px); }

.area-icon-hero {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  background: rgba(255,255,255,.2);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

/* ================================
   Services Section
=================================== */
.services {
  padding: var(--spacing-3xl, 5rem) 0;
  background: var(--bg-primary, #fff);
  position: relative;
  z-index: 1;
}
.services::before {
  content: ''; position:absolute; top:0; left:0; right:0; height:200px;
  background: linear-gradient(180deg, var(--bg-secondary, #e6efff) 0%, var(--bg-primary, #fff) 100%);
}
.section-header { text-align:center; margin-bottom: 2rem; }
.section-header h2 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); margin:0 0 .5rem; }
.section-header p  {text-align: center; max-width: 700px; margin: 0 auto;}


.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl, 1.5rem);
  position: relative; z-index: 10;
}
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: var(--spacing-xl, 1.5rem);
  border: 1px solid rgba(102,126,234,0.1);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px rgba(0,0,0,.08); border-color:#2563eb; }
.service-icon {
  width: 80px; height: 80px; margin: 0 auto 1rem;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff; border-radius: 14px; display:flex; align-items:center; justify-content:center; font-size:2rem;
}
.service-card h3 { margin:.25rem 0 .5rem; }
.service-card p { color:#475569; margin:0 0 .75rem; }
.service-link { display:inline-flex; align-items:center; gap:.4rem; color:#2563eb; text-decoration:none; font-weight:700; }
.service-link:hover { color:#1d4ed8; transform: translateX(4px); }

/* ================================
   About Section
=================================== */
.about { padding: var(--spacing-3xl, 5rem) 0; background: linear-gradient(135deg,#f7fafc 0%, #edf2f7 100%); }
.about-content { display:grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--spacing-3xl, 2.5rem); align-items:center; }
.about-text h2 { font-family:'Outfit',sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight:800; color:#0f172a; margin-bottom:1rem; }
.about-text p { font-size:1.125rem; color:#475569; line-height:1.8; margin:0 0 1.5rem; }
.about-stats { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
.stat { text-align:center; padding:1.25rem; background:#fff; border-radius:16px; border:1px solid #e5e7eb; box-shadow:0 10px 24px rgba(0,0,0,.06); }
.stat h3 { margin:0 0 .3rem; font-size:2.25rem; background: linear-gradient(135deg,#2563eb,#1d4ed8); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.stat p { margin:0; color:#475569; font-weight:600; letter-spacing:.03em; }

/* ================================
   Responsive
=================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--spacing-xl, 1.5rem); text-align: center; }
  .about-content { grid-template-columns: 1fr; gap: var(--spacing-xl, 1.5rem); text-align: center; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { min-height: 90vh; }
}

/* ================================
   Mobile Areas Section
=================================== */
@media (min-width: 1025px) {
  .areas-mobile { display: none; }
}
@media (max-width: 1024px) {
  .hero-areas-modern { display: none !important; }
  .areas-mobile { display: block; }
  .hero { padding-bottom: 2.5rem; }
  .areas-mobile .areas-card-hero {
    max-width: 680px;
    margin: 0 auto 1.25rem;
    border-radius: 28px;
    padding: var(--spacing-xl, 2rem);
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.08));
    box-shadow: 0 20px 40px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
  }
  .areas-mobile h3 {
    font-size: clamp(1.25rem, 2.5vw + 1rem, 1.75rem);
    margin: 0 0 1rem 0; text-align: center; color:#fff;
  }
}

/* ================================
   Desktop Padding Fix
=================================== */
@media (min-width: 1200px) {
  .hero { padding-bottom: 5rem !important; }
}


/* --- Layering fix: next sections should sit ABOVE the blue hero backdrop --- */
.hero {
  z-index: 0 !important;             /* put the hero background behind */
}

.hero-areas-modern,
.areas-card-hero {
  position: relative;
  z-index: 2;                         /* keep the card above the blue */
}

/* ensure following sections render on top of hero */
.services,
.about,
.section,
section {
  position: relative;
  z-index: 3;
}

/* small spacing nudge so shadows never look clipped at the seam */
@media (min-width: 1200px) {
  .hero { padding-bottom: 4.5rem !important; }
}

/* Mobile: extend hero blue behind the Areas card, then fade to white */
@media (max-width: 1024px) {
  .areas-mobile {
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%); /* same as .hero */
    padding-top: 0;          
  }

  /* soft fade from blue to page white after the card */
  .areas-mobile::after {
    content: "";
    display: block;
    height: 72px;            /* adjust if you want a longer fade */
    background: linear-gradient(180deg, rgba(37,99,235,0) 0%, #ffffff 100%);
  }

  /* keep Services from adding its own blue overlay at the very top */
  .services::before {
    display: none;
  }
}



