/* ============================================
   DESIGNMELA — Premium Portfolio Stylesheet
   ============================================ */

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

:root {
  --bg-0: #07091a;
  --bg-1: #0b0f24;
  --bg-2: #11163a;
  --ink: #e9ecff;
  --ink-dim: #a4abd1;
  --ink-mute: #6b73a3;
  --neon-blue: #4f8bff;
  --neon-purple: #a06bff;
  --neon-cyan: #5be7ff;
  --grad: linear-gradient(135deg, #5be7ff 0%, #a06bff 60%, #ff6bd6 100%);
  --grad-soft: linear-gradient(135deg, rgba(91,231,255,.18), rgba(160,107,255,.18));
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-glow: 0 0 60px rgba(91, 231, 255, 0.18), 0 0 120px rgba(160, 107, 255, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* Ambient backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 500px at 12% 8%, rgba(91, 139, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at 90% 20%, rgba(160, 107, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(255, 107, 214, 0.10), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

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

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-dim); font-size: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: none;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad);
  color: #0b0f24;
  box-shadow: 0 10px 30px rgba(160,107,255,.35), inset 0 0 0 1px rgba(255,255,255,.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(160,107,255,.55), 0 0 0 1px rgba(255,255,255,.25);
}
.btn-glass {
  background: var(--glass-strong);
  border-color: var(--border-strong);
  color: var(--ink);
  backdrop-filter: blur(14px);
}
.btn-glass:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 1px var(--neon-cyan), 0 10px 40px rgba(91,231,255,.25);
}
.btn-ghost {
  padding: 10px 20px;
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
  font-size: .9rem;
}
.btn-ghost:hover {
  border-color: var(--neon-purple);
  background: var(--glass);
}
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  z-index: 100;
  transition: all .35s ease;
}
.nav.scrolled {
  background: rgba(7, 9, 26, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* This adds a nice glow to your new logo */
  filter: drop-shadow(0 0 10px rgba(160, 107, 255, 0.6)); 
}
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-dim);
  transition: color .25s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 14px 18px; }
  .nav-cta { padding: 8px 14px; font-size: .82rem; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(20px, 5vw, 60px) 140px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(1.05);
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(7,9,26,.35) 0%, rgba(7,9,26,.7) 60%, var(--bg-0) 100%),
    linear-gradient(180deg, rgba(7,9,26,.55), rgba(7,9,26,.9));
  z-index: 1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
}
.hero-title {
  margin: 16px 0 24px;
  font-weight: 800;
}
.hero-title .reveal-word {
  display: inline-block;
  margin: 0 .15em;
  opacity: 0;
  transform: translateY(40px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title .reveal-word:nth-child(1) { animation-delay: .1s; }
.hero-title .reveal-word:nth-child(2) { animation-delay: .2s; }
.hero-title .reveal-word:nth-child(3) { animation-delay: .3s; }
.hero-title .reveal-word:nth-child(4) { animation-delay: .4s; }
.hero-title .reveal-word:nth-child(5) { animation-delay: .5s; }
.hero-title .reveal-word:nth-child(6) { animation-delay: .6s; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--ink-dim);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta {
  display: inline-flex;
  gap: clamp(20px, 5vw, 60px);
  padding: 18px 32px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(16px);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}
@media (max-width: 480px) {
  .hero-meta { gap: 18px; padding: 14px 20px; border-radius: 22px; }
  .hero-meta strong { font-size: 1.15rem; }
  .hero-meta span { font-size: .65rem; }
  .hero { padding-top: 110px; padding-bottom: 80px; }
  .btn { padding: 12px 20px; font-size: .88rem; }
}
.hero-meta div {
  display: flex; flex-direction: column; align-items: center;
}
.hero-meta strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta span {
  font-size: .75rem;
  color: var(--ink-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; align-items: center; gap: 8px;
  z-index: 2;
  color: var(--ink-mute);
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  pointer-events: none;
}
.scroll-hint span {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@media (max-width: 768px) {
  .scroll-hint { display: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================
   SECTION
   ============================================ */
.section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 60px);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 { margin: 14px 0 14px; }
.section-head p { color: var(--ink-mute); }

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.project-card {
  padding: 14px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .4s;
  cursor: none;
  will-change: transform;
}
.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}
.project-card .media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-1);
}
.project-card .media img,
.project-card .media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .5s ease, transform .8s ease;
}
.project-card .media video { opacity: 0; }
.project-card:hover .media video { opacity: 1; }
.project-card:hover .media img { opacity: 0; transform: scale(1.05); }

.project-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 8px 8px;
}
.project-meta h3 { font-size: 1.1rem; margin-bottom: 4px; }
.project-meta p { font-size: .88rem; color: var(--ink-mute); }
.tag {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--neon-cyan);
  white-space: nowrap;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-image {
  position: relative;
  padding: 10px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px;
}
.about-image-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(160,107,255,.3), transparent 60%);
  z-index: -1;
  filter: blur(40px);
}
.about-content h2 { margin: 14px 0 22px; }
.about-content p { margin-bottom: 16px; }
.about-points {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-points li {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
  font-size: .95rem;
}
.about-points li span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--neon-purple);
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 36px 30px;
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad);
  opacity: 0;
  z-index: -1;
  transition: opacity .4s;
  border-radius: var(--radius);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 30px 60px rgba(160,107,255,.25), 0 0 80px rgba(91,231,255,.15);
}
.service-card:hover::before { opacity: .35; }
.service-icon {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--neon-cyan);
  margin-bottom: 22px;
  transition: all .3s ease;
}
.service-card:hover .service-icon {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  transform: rotate(-6deg) scale(1.05);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.service-card p { color: var(--ink-dim); font-size: .92rem; margin-bottom: 22px; }
.service-link {
  font-size: .88rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: letter-spacing .3s;
}
.service-card:hover .service-link { letter-spacing: .03em; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-intro h2 { margin: 14px 0 18px; }
.contact-meta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-meta a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all .25s ease;
  backdrop-filter: blur(10px);
}
.contact-meta a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateX(4px);
}

.contact-form { padding: 36px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  transition: all .25s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(91,231,255,.15);
  background: rgba(0,0,0,0.35);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(91, 231, 255, 0.08);
  border: 1px solid rgba(91, 231, 255, 0.3);
  border-radius: 12px;
  color: var(--neon-cyan);
  font-size: .9rem;
  text-align: center;
}
.form-success.show { display: block; animation: rise .5s ease forwards; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 50px clamp(20px, 5vw, 60px) 30px;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 26, 0.5);
  backdrop-filter: blur(14px);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-inner .brand { justify-content: center; }
}
.footer-tag {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: .88rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}
.footer-links a {
  color: var(--ink-dim);
  font-size: .9rem;
  transition: color .25s;
}
.footer-links a:hover { color: var(--neon-cyan); }
.footer-copy {
  color: var(--ink-mute);
  font-size: .82rem;
  text-align: right;
}
@media (max-width: 768px) { .footer-copy { text-align: center; } }

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5);
  z-index: 99;
  animation: pulse 2.4s infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
.wa-float:hover {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.0);
}
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(91, 231, 255, 0.45);
  border-radius: 50%;
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor.hover {
  width: 60px; height: 60px;
  background: rgba(160, 107, 255, 0.15);
  border-color: rgba(160, 107, 255, 0.5);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
}
@media (max-width: 880px), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
  body, .btn, .project-card { cursor: auto; }
  a, button { cursor: pointer; }
}
