/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* BODY */
body {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  min-height: 100vh;

  padding-top: 80px; /* FIX for fixed header */
}

/* ===== NAVBAR ===== */
header {
  position: fixed; /* FIXED HEADER */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  transition: 0.3s;
}

/* SHRINK ON SCROLL */
header.scrolled {
  padding: 10px 25px;
  background: rgba(15, 23, 42, 0.95);
}

header h1 {
  font-size: 20px;
  font-weight: 600;
}

/* NAV LINKS */
nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  position: relative;
  transition: 0.3s;
}

/* NAV HOVER UNDERLINE */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #38bdf8;
}

/* ===== HERO ===== */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero h2 {
  font-size: 38px;
  font-weight: 700;
  animation: fadeUp 1s ease;
}

.hero p {
  margin-top: 10px;
  opacity: 0.8;
  animation: fadeUp 1.3s ease;
}

/* BUTTON */
.btn {
  margin-top: 25px;
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(45deg,#22c55e,#38bdf8);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(56,189,248,0.7);
}

/* ===== SECTION ===== */
.services, .blog, .cta {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
}

.services h2, .blog h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* ===== CARD ===== */
.card {
  background: rgba(255,255,255,0.07);
  padding: 25px;
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: 0.4s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(40px);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* GLOW EFFECT */
.card::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,transparent,#38bdf8,transparent);
  top: -50%;
  left: -50%;
  transform: rotate(25deg);
  opacity: 0;
  transition: 0.5s;
}

.card:hover::before {
  opacity: 0.2;
}

.card:hover {
  transform: translateY(-12px) scale(1.04);
}

/* TEXT */
.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  font-size: 14px;
  opacity: 0.9;
}

/* ===== BLOG ===== */
.blog-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
}

.blog-card:hover {
  transform: scale(1.05);
  background: rgba(56,189,248,0.2);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  background: linear-gradient(45deg,#22c55e,#38bdf8);
  border-radius: 20px;
  margin: 40px auto;
}

/* ===== FOOTER ===== */
footer {
  padding: 25px;
  text-align: center;
  background: #000;
  font-size: 14px;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  padding: 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  header {
    flex-direction: column;
  }

  nav {
    margin-top: 10px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .services h2, .blog h2 {
    font-size: 22px;
  }
}