@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar:horizontal { display: none; }

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  background-color: #f6f3ed;
  color: #111827;
  margin: 0;
}

#root { max-width: 100vw; overflow-x: hidden; }

a, button, [role="button"], input, select, textarea, label { cursor: none; }

@media (pointer: coarse) {
  body, a, button, [role="button"], input, select, textarea, label { cursor: auto; }
}

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

.font-gravica { font-family: 'Poppins', sans-serif; }
.font-cagdoy  { font-family: 'Inter', sans-serif; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-gradient-lime {
  background: linear-gradient(135deg, #defe00 0%, #8fff39 50%, #0fffc0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-lime {
  background: linear-gradient(135deg, #defe00 0%, #8fff39 50%, #0fffc0 100%);
}

.animate-drift { animation: drift 20s ease-in-out infinite; }
.animate-fade-in { animation: fadeIn 1s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.8s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft 1s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 1s ease-out forwards; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float 6s ease-in-out 1s infinite; }

.hover-lift { transition: transform 0.4s ease, filter 0.4s ease; }
.hover-lift:hover { transform: scale(1.05) rotate(2deg); filter: brightness(1.1); }

.animate-float-rotate { animation: floatRotate 8s ease-in-out infinite; }
.animate-zoom-in { animation: zoomIn 1.2s ease-out forwards; }

.hover-3d { transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hover-3d:hover { transform: scale(1.08) translateY(-10px) rotateY(5deg) rotateX(-5deg); }

.animate-bounce-slow { animation: bounceSlow 2s ease-in-out infinite; }
.animate-modal-entrance { animation: modalEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-backdrop-fade { animation: backdropFade 0.3s ease-out; }
.animate-image-reveal { animation: imageReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.animate-scale-in { animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }

.hover-image-zoom { transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hover-image-zoom:hover { transform: scale(1.05); }

.parallax-scroll { transition: transform 0.3s ease-out; }
.animate-spin-slow { animation: spinSlow 4s linear infinite; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(2deg); }
  66% { transform: translate(-20px, 20px) rotate(-2deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes floatRotate {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(1deg); }
  50% { transform: translateY(-25px) rotate(0deg); }
  75% { transform: translateY(-15px) rotate(-1deg); }
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes bounceSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes modalEntrance {
  from { opacity: 0; transform: scale(0.9) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes backdropFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes imageReveal {
  from { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes spinSlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes wordFadeUp {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.animate-word-fade-up { animation: wordFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }

/* ── Custom cursor ───────────────────────────────────────────── */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: #3839FF; border-radius: 50%; pointer-events: none;
  z-index: 99999; transition: opacity 0.3s ease; will-change: transform; opacity: 0;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1.5px solid #3839FF; border-radius: 50%; pointer-events: none;
  z-index: 99998; opacity: 0;
  transition: opacity 0.3s ease,
              width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}
.cursor-ring--hover {
  width: 56px; height: 56px; border-color: #3839FF;
  background-color: rgba(56, 57, 255, 0.08);
}

/* ── Contact form fields ─────────────────────────────────────── */
.contact-field { position: relative; display: flex; flex-direction: column; gap: 6px; }

.contact-label {
  font-family: inherit; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(0,0,0,0.55);
  transition: color 0.25s ease, transform 0.25s ease; transform-origin: left;
}
.contact-field--focused .contact-label { color: #3839FF; transform: scale(1.04); }

.contact-input {
  width: 100%; padding: 10px 12px; background: #f5f0e8; border: none;
  border-bottom: 2px solid rgba(0,0,0,0.12); outline: none;
  font-family: inherit; font-size: 0.9rem; color: #111;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  border-radius: 2px 2px 0 0;
}
.contact-input::placeholder { color: rgba(0,0,0,0.3); font-size: 0.85rem; }
.contact-field--focused .contact-input {
  background: #fff; border-bottom-color: transparent;
  box-shadow: 0 4px 16px rgba(56, 57, 255, 0.08); transform: translateY(-1px);
}
.contact-textarea { resize: none; min-height: 110px; }
.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.contact-field-bar {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 0%;
  background: #3839FF; border-radius: 0 0 2px 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-field--focused .contact-field-bar { width: 100%; }

.contact-submit-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; background: #0a0a0a; color: #fff; font-family: inherit;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border: none; border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.contact-submit-btn:hover:not(:disabled) {
  background: #3839FF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(56, 57, 255, 0.25);
}
.contact-submit-btn:active:not(:disabled) { transform: translateY(0); }
.contact-submit-btn:disabled { opacity: 0.75; }

.contact-submit-spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero reveal ─────────────────────────────────────────────── */
@keyframes heroWordSlideUp {
  0%   { opacity: 0; transform: translateY(48px) skewY(3deg); filter: blur(6px); }
  60%  { filter: blur(0px); }
  100% { opacity: 1; transform: translateY(0) skewY(0deg); filter: blur(0px); }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-word-reveal { display: inline-block; opacity: 0; margin-right: 0.2em; }
.hero-word-reveal.active { animation: heroWordSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero-subtitle-reveal { opacity: 0; }
.hero-subtitle-reveal.active { animation: heroFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.hero-cta-reveal { opacity: 0; }
.hero-cta-reveal.active { animation: heroFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* ── Contact success overlay ─────────────────────────────────── */
.contact-success-overlay {
  position: absolute; inset: 0; background: #d8baf9;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; opacity: 0; pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-success-overlay[data-visible="true"] { opacity: 1; pointer-events: auto; }

.contact-success-inner {
  text-align: center; transform: scale(0.85) translateY(16px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
.contact-success-overlay[data-visible="true"] .contact-success-inner { transform: scale(1) translateY(0); }

.contact-success-icon {
  width: 60px; height: 60px; background: #c4f135; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.contact-success-overlay[data-visible="true"] .contact-success-icon {
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes successPop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.contact-form-wrap { transition: opacity 0.35s ease, transform 0.35s ease; }
.contact-form-wrap[data-hidden="true"] { opacity: 0; transform: scale(0.97); pointer-events: none; }

/* ── Scroll reveal helper ────────────────────────────────────── */
[data-reveal] { transition: opacity 0.7s ease, transform 0.7s ease; }

/* reveal-on-scroll driver */
[data-reveal] { opacity: 0; }
[data-reveal-root].is-in [data-reveal] { opacity: 1 !important; transform: none !important; }
