*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #18181a;
  --dark: #1d1e20;
  --gray-dark: #36344d;
  --gray: #727586;
  --gray-border: #dadce0;
  --gray-light: #f2f3f6;
  --light: #fff;
  --glass-border: rgba(255,255,255,0.08);
  --glass-bg: rgba(255,255,255,0.03);
  --glass-shadow: rgba(0,0,0,0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== NOISE OVERLAY ===== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== CURSOR LOGO FOLLOWER ===== */
.cursor-logo {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cursor-logo.visible {
  opacity: 0.9;
}

.cursor-logo.hovering {
  transform: translate(-50%, -50%) scale(1.4);
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.cursor-dot.hovering {
  width: 10px;
  height: 10px;
  background: var(--gray);
}

#cursorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9997;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.08s ease, top 0.08s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: multiply;
}

.cursor-glow.hovering {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,0,0,0.06), transparent 70%);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: min-content auto min-content;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  color: var(--gray);
  font-weight: 300;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--gray);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-social a:hover {
  color: var(--black);
  background: var(--gray-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-glow {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.3) translate(-50px, -50px); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.03);
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  color: var(--light);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--light), rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-outline {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--black);
  color: var(--light);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--dark);
  transform: translateY(-2px);
}

.btn-glow {
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.btn-glow:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border: 1px solid var(--gray-border);
  border-radius: 100px;
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--light);
}

.btn-outline:hover {
  border-color: var(--gray);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

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

/* ===== SERVICES ===== */
.services {
  padding: 120px 0;
  position: relative;
  background: var(--light);
}

.section-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.section-bg-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--gray-border);
  opacity: 0.3;
}

.services-inner {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  max-width: 600px;
  margin-bottom: 64px;
}

.section-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-label.light {
  color: rgba(255,255,255,0.5);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--dark);
  letter-spacing: -1px;
}

.section-title.light {
  color: var(--light);
}

.text-gradient {
  background: linear-gradient(135deg, var(--dark), var(--gray));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  box-shadow: 0 1px 3px var(--glass-shadow);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.02);
  background: rgba(255,255,255,0.05);
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.02), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  transform: translateX(-100%);
}

.glass-card:hover .card-shine {
  opacity: 1;
  transform: translateX(100%);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  margin-bottom: 20px;
  color: var(--gray-dark);
  transition: all 0.3s ease;
}

.glass-card:hover .card-icon {
  background: var(--dark);
  color: var(--light);
}

.card-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
  line-height: 1.3;
}

.card-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 4px 12px;
  background: var(--gray-light);
  border-radius: 100px;
  transition: all 0.3s ease;
}

.glass-card:hover .card-tags span {
  background: var(--dark);
  color: var(--light);
}

.services-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ===== STATS ===== */
.stats {
  padding: 80px 0;
  background: var(--gray-light);
}

.stats-inner {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0 40px;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

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

.contact-glow-1 {
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 70%);
  border-radius: 50%;
  animation: contactGlow1 12s ease-in-out infinite;
}

.contact-glow-2 {
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.02), transparent 70%);
  border-radius: 50%;
  animation: contactGlow2 10s ease-in-out infinite;
}

@keyframes contactGlow1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.2); }
}

@keyframes contactGlow2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.3); }
}

.contact-inner {
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.contact-text {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 32px;
  margin-top: 8px;
  font-family: var(--font-body);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--light);
  transform: translateX(4px);
}

.contact-social {
  display: flex;
  gap: 8px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.contact-social a:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--light);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.contact-right .glass-card {
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.contact-form input {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--light);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.contact-form input:focus {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.contact-form input::placeholder {
  color: rgba(255,255,255,0.2);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.3);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--light);
}

/* ===== CLICK RIPPLE ===== */
.ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid var(--gray);
  pointer-events: none;
  z-index: 9996;
  animation: rippleAnim 0.8s ease-out forwards;
}

@keyframes rippleAnim {
  0% { width: 0; height: 0; opacity: 0.8; }
  100% { width: 200px; height: 200px; opacity: 0; }
}

/* ===== MAGNETIC HOVER ON ELEMENTS ===== */
[data-magnetic] {
  transition: transform 0.15s ease;
}

/* ===== WHATSAPP BUBBLE ===== */
.whatsapp-bubble {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-bubble:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 3D TILT OVERRIDE ===== */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-inner {
    grid-template-columns: 1fr auto auto;
    gap: 16px;
  }

  .nav-links,
  .nav-social {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .services {
    padding: 80px 0;
  }

  .contact {
    padding: 80px 0 32px;
  }

  .services-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cursor-logo,
  .cursor-dot,
  #cursorCanvas,
  .cursor-glow {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}
