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

:root {
  --primary: #D24A69;
  --primary-light: #E56D89;
  --primary-glow: rgba(210, 74, 105, 0.15);
  --accent: #88C084;
  --accent-light: rgba(136, 192, 132, 0.12);
  --text: #534A4A;
  --bg: #FBFBFB;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- ANIMATIONS --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes blob-move {
  0%, 100% { border-radius: 42% 58% 62% 38% / 45% 55% 45% 55%; }
  25% { border-radius: 55% 45% 38% 62% / 58% 42% 58% 42%; }
  50% { border-radius: 38% 62% 55% 45% / 42% 58% 42% 58%; }
  75% { border-radius: 62% 38% 45% 55% / 55% 45% 55% 45%; }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

@keyframes float-alt {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(0.97); }
}

/* --- DECORATIVE CIRCLES --- */
.deco-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
}

.deco-circle-1 {
  width: 220px; height: 220px;
  top: -40px; left: 5%;
  background: radial-gradient(circle, rgba(210, 74, 105, 0.18), transparent 70%);
  animation: float-slow 7s ease-in-out infinite;
}
.deco-circle-2 {
  width: 120px; height: 120px;
  top: 10px; left: 42%;
  background: radial-gradient(circle, rgba(136, 192, 132, 0.2), transparent 70%);
  animation: float-alt 9s ease-in-out infinite;
}
.deco-circle-3 {
  width: 100px; height: 100px;
  top: 15px; right: 18%;
  background: radial-gradient(circle, rgba(210, 74, 105, 0.14), transparent 70%);
  animation: float-slow 6s ease-in-out infinite 1s;
}
.deco-circle-4 {
  width: 260px; height: 260px;
  top: 30px; right: -60px;
  background: radial-gradient(circle, rgba(136, 192, 132, 0.12), transparent 70%);
  animation: float-alt 11s ease-in-out infinite;
}
.deco-circle-5 {
  width: 80px; height: 80px;
  top: 20vh; left: 20%;
  background: radial-gradient(circle, rgba(229, 109, 137, 0.18), transparent 70%);
  animation: float-slow 8s ease-in-out infinite 2s;
}
.deco-circle-6 {
  width: 160px; height: 160px;
  top: 30vh; right: 8%;
  background: radial-gradient(circle, rgba(210, 74, 105, 0.11), transparent 70%);
  animation: float-alt 10s ease-in-out infinite 0.5s;
}
.deco-circle-7 {
  width: 200px; height: 200px;
  top: 48vh; left: -30px;
  background: radial-gradient(circle, rgba(136, 192, 132, 0.15), transparent 70%);
  animation: float-slow 9s ease-in-out infinite 1.5s;
}
.deco-circle-8 {
  width: 90px; height: 90px;
  top: 55vh; right: 25%;
  background: radial-gradient(circle, rgba(210, 74, 105, 0.13), transparent 70%);
  animation: float-alt 7s ease-in-out infinite 3s;
}
.deco-circle-9 {
  width: 140px; height: 140px;
  top: 62vh; right: -20px;
  background: radial-gradient(circle, rgba(229, 109, 137, 0.1), transparent 70%);
  animation: float-slow 12s ease-in-out infinite;
}
.deco-circle-10 {
  width: 180px; height: 180px;
  top: 75vh; left: 10%;
  background: radial-gradient(circle, rgba(210, 74, 105, 0.12), transparent 70%);
  animation: float-alt 8s ease-in-out infinite 2.5s;
}
.deco-circle-11 {
  width: 70px; height: 70px;
  top: 80vh; left: 55%;
  background: radial-gradient(circle, rgba(136, 192, 132, 0.2), transparent 70%);
  animation: float-slow 6s ease-in-out infinite 4s;
}
.deco-circle-12 {
  width: 240px; height: 240px;
  top: 85vh; right: -50px;
  background: radial-gradient(circle, rgba(136, 192, 132, 0.1), transparent 70%);
  animation: float-alt 13s ease-in-out infinite 1s;
}

/* --- REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(251, 251, 251, 0.18);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid rgba(83, 74, 74, 0.04);
  isolation: isolate;
}

section, header.hero, footer {
  position: relative;
  z-index: 1;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.nav-logo span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- HERO --- */
.hero {
  padding: 9rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero::before,
.hero::after {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto 2.5rem;
}

.hero-logo-bg {
  position: absolute;
  inset: -25px;
  background: linear-gradient(135deg, var(--primary-glow), var(--accent-light));
  border-radius: 50%;
  animation: pulse-soft 4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  width: 420px;
  height: 420px;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 16px 40px rgba(210, 74, 105, 0.25));
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary-glow);
  border-radius: 3px;
  z-index: -1;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text);
  opacity: 0.75;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(210, 74, 105, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(210, 74, 105, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(210, 74, 105, 0.3);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

/* --- SECTION COMMON --- */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  opacity: 0.7;
  max-width: 550px;
  margin: 0 auto 3.5rem;
}

/* --- FEATURES --- */
.features {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(83, 74, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(83, 74, 74, 0.04);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(210, 74, 105, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon-pink {
  background: linear-gradient(135deg, rgba(210, 74, 105, 0.1), rgba(229, 109, 137, 0.15));
}

.feature-icon-green {
  background: linear-gradient(135deg, rgba(136, 192, 132, 0.12), rgba(136, 192, 132, 0.22));
}

.feature-icon-warm {
  background: linear-gradient(135deg, rgba(210, 74, 105, 0.06), rgba(136, 192, 132, 0.1));
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.7;
}

/* --- PROJECTS --- */
.projects {
  background: transparent;
  position: relative;
}

.project-card {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg), rgba(210, 74, 105, 0.02));
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid rgba(83, 74, 74, 0.05);
  box-shadow: 0 4px 24px rgba(83, 74, 74, 0.04);
  transition: box-shadow 0.3s;
}

.project-card:hover {
  box-shadow: 0 8px 40px rgba(210, 74, 105, 0.08);
}

.project-badge {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(210, 74, 105, 0.25);
  transition: transform 0.3s;
}

.project-card:hover .project-badge {
  transform: rotate(-5deg) scale(1.05);
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.project-info .project-tagline {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.project-info p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, rgba(210, 74, 105, 0.07), rgba(210, 74, 105, 0.12));
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s;
}

.tech-tag:hover {
  background: linear-gradient(135deg, rgba(210, 74, 105, 0.12), rgba(210, 74, 105, 0.2));
}

/* --- CONTACT --- */
.contact {
  background: transparent;
}

.contact-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(83, 74, 74, 0.05);
  box-shadow: 0 4px 24px rgba(83, 74, 74, 0.04);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(83, 74, 74, 0.1);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

/* CAPTCHA */
.captcha-group {
  margin-bottom: 1.35rem;
  background: linear-gradient(135deg, rgba(136, 192, 132, 0.06), rgba(210, 74, 105, 0.04));
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.captcha-question {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.captcha-group input {
  width: 80px;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(83, 74, 74, 0.1);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.captcha-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.captcha-label {
  font-size: 0.8rem;
  opacity: 0.6;
}

.captcha-error {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: none;
}

.captcha-error.show {
  display: block;
}

.contact-wrapper .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.95rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 0;
}

.form-success.active {
  display: block;
}

.form-content.hidden {
  display: none;
}

.form-success .check-circle {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent), #6db568);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(136, 192, 132, 0.35);
  animation: pulse-soft 2s ease-in-out infinite;
}

.form-success h3 {
  margin-bottom: 0.4rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.footer-logo span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 1.6rem;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer p {
  opacity: 0.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(251, 251, 251, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(83, 74, 74, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 7.5rem 0 4rem;
  }

  .hero-logo-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero-logo {
    width: 280px;
    height: 280px;
  }

  section {
    padding: 4rem 0;
  }

  .project-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .project-badge {
    margin: 0 auto;
  }

  .tech-tags {
    justify-content: center;
  }

  .contact-wrapper {
    padding: 2rem;
  }

  .captcha-group {
    flex-wrap: wrap;
  }
}
