/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f9fbff;
  color: #111;
  overflow-x: hidden;
  animation: pageEnter 0.8s ease;
}

/* =========================
   BACKGROUND GLOW (REFINED)
========================= */
body::before {
  content: "";
  position: fixed;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79,172,254,0.08), transparent 70%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(120px);
  z-index: -1;
}

/* =========================
   SECTION
========================= */
section {
  padding: 140px 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

section:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1150px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.15;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* =========================
   IMAGE
========================= */
img {
  border-radius: 14px;
  display: block;
}

/* =========================
   LINK
========================= */
a {
  transition: all 0.25s ease;
}

/* =========================
   BUTTON SYSTEM
========================= */
.btn-primary,
.btn-secondary {
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* PRIMARY */
.btn-primary {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79,172,254,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 15px 35px rgba(79,172,254,0.3);
}

/* SECONDARY */
.btn-secondary {
  border: 1px solid #ddd;
  color: #333;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* =========================
   CURSOR GLOW
========================= */
.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(79,172,254,0.12), transparent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: multiply;
}

/* =========================
   WHATSAPP FLOAT (FINAL)
========================= */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: #fff;

  border-radius: 50%;
  font-size: 20px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);

  z-index: 999;
  text-decoration: none;

  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.25);
  animation: whatsappPulse 2.5s infinite;
  z-index: -1;
}

@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { opacity: 0; }
}

/* =========================
   LOADER
========================= */
.loader {
  position: fixed;
  inset: 0;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;

  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: loaderPulse 1.2s infinite ease-in-out;
}

/* =========================
   ANIMATION
========================= */
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

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

/* =========================
   3D SUPPORT
========================= */
.service-card,
.project-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

/* =========================
   FOOTER (APPLE STYLE FINAL)
========================= */
.site-footer {
  background: #fff;
  padding: 70px 20px 40px;
  text-align: center;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.footer-text {
  font-size: 13px;
  color: #999;
  letter-spacing: 0.3px;
}

.footer-text strong {
  color: #111;
  font-weight: 500;
}