/* ============================================
   ALLY ARTS — Palette & Globals
   ============================================ */
:root {
  --bg-base: #1E1D22;
  --bg-card: #2C2E35;
  --text: #F9F6F2;
  --gold: #E6C76E;
  --lilac: #A08BFF;
  --pink: #F3A8C2;

  --grad-main: linear-gradient(135deg, #A08BFF 0%, #F3A8C2 50%, #E6C76E 100%);
  --grad-soft: linear-gradient(135deg, rgba(160,139,255,0.18), rgba(243,168,194,0.14), rgba(230,199,110,0.18));
  --grad-bg: radial-gradient(1200px 800px at 85% -10%, rgba(160,139,255,0.18), transparent 60%),
             radial-gradient(900px 700px at -10% 30%, rgba(243,168,194,0.12), transparent 60%),
             radial-gradient(800px 600px at 50% 110%, rgba(230,199,110,0.10), transparent 60%),
             linear-gradient(180deg, #1E1D22 0%, #17161A 100%);

  --shadow-card: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(249,246,242,0.04) inset;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --nav-bg: rgba(30,29,34,0.55);
  --nav-border: rgba(249,246,242,0.06);
  --card-bg: rgba(44,46,53,0.55);
  --card-bg-strong: rgba(44,46,53,0.6);
  --input-bg: rgba(30,29,34,0.7);
  --text-soft: rgba(249,246,242,0.85);
  --text-muted: rgba(249,246,242,0.7);
  --text-faint: rgba(249,246,242,0.6);
  --hairline: rgba(249,246,242,0.08);
  --label-pink: var(--pink);
}

/* ============================================
   LIGHT THEME
   ============================================ */
body.light {
  --bg-base: #FBF6EE;
  --bg-card: #FFFFFF;
  --text: #2A2438;
  --gold: #C99A1F;
  --lilac: #6E54E0;
  --pink: #D85F8E;

  --grad-soft: linear-gradient(135deg, rgba(110,84,224,0.10), rgba(216,95,142,0.08), rgba(201,154,31,0.10));
  --grad-bg: radial-gradient(1200px 800px at 85% -10%, rgba(110,84,224,0.18), transparent 60%),
             radial-gradient(900px 700px at -10% 30%, rgba(216,95,142,0.14), transparent 60%),
             radial-gradient(800px 600px at 50% 110%, rgba(201,154,31,0.14), transparent 60%),
             linear-gradient(180deg, #FBF6EE 0%, #F1E9DC 100%);

  --shadow-card: 0 18px 50px rgba(110,84,224,0.18), 0 0 0 1px rgba(42,36,56,0.06) inset;

  --nav-bg: rgba(255,251,244,0.7);
  --nav-border: rgba(42,36,56,0.08);
  --card-bg: rgba(255,255,255,0.78);
  --card-bg-strong: rgba(255,255,255,0.85);
  --input-bg: rgba(255,255,255,0.9);
  --text-soft: rgba(42,36,56,0.88);
  --text-muted: rgba(42,36,56,0.7);
  --text-faint: rgba(42,36,56,0.55);
  --hairline: rgba(42,36,56,0.1);
  --label-pink: #B14671;
}
body, .nav, .hero, .section, .about, .faq-item, .faq-q, .field input, .field textarea,
.contact-card, .art-card, .footer, .loader, .btn, .theme-toggle {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

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

/* ============================================
   LOADING OVERLAY (logo + glow + bar)
   ============================================ */
.loader {
  position: fixed; inset: 0;
  background: var(--grad-bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  width: 200px; height: 200px;
  border-radius: 0;
  background: url('Logo.PNG') center/contain no-repeat;
  position: relative;
  animation: pulse-glow 1.6s ease-in-out infinite;
  /* Sem filter na frente — brilho só pelo ::after atrás */
}
.loader-logo::after {
  content: "";
  position: absolute; inset: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(160,139,255,0.85) 0%,
    rgba(243,168,194,0.5) 40%,
    transparent 72%);
  z-index: -1;
  filter: blur(36px);
  opacity: 0.9;
  animation: spin 5s linear infinite;
}

.loader-title {
  font-weight: 800;
  letter-spacing: 6px;
  font-size: 22px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.loader-bar {
  width: 280px; height: 8px;
  background: rgba(249,246,242,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(249,246,242,0.06) inset;
}
.loader-bar::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 40%;
  background: var(--grad-main);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(160,139,255,0.8);
  animation: bar 1.4s ease-in-out infinite;
}

@keyframes bar {
  0%   { left: -45%; width: 45%; }
  50%  { left: 30%;  width: 60%; }
  100% { left: 100%; width: 40%; }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 24px rgba(160,139,255,0.85)) drop-shadow(0 0 50px rgba(243,168,194,0.55)); }
  50%      { transform: scale(1.05); filter: drop-shadow(0 0 42px rgba(230,199,110,0.95)) drop-shadow(0 0 80px rgba(243,168,194,0.75)); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
}

.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: url('Logo.PNG') center/cover no-repeat;
  box-shadow: 0 0 0 2px rgba(160,139,255,0.5),
              0 0 22px rgba(160,139,255,0.45),
              0 0 40px rgba(243,168,194,0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.nav-logo:hover {
  transform: rotate(8deg) scale(1.06);
  box-shadow: 0 0 0 2px var(--gold),
              0 0 30px rgba(230,199,110,0.7),
              0 0 60px rgba(243,168,194,0.5);
}
.nav-brand {
  font-weight: 800;
  letter-spacing: 5px;
  font-size: 20px;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.nav-menu { display: flex; gap: 14px; align-items: center; }
.nav-link {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  transition: color 0.35s ease, transform 0.35s ease;
  border: none;
  background: transparent;
  z-index: 1;
}
.nav-link::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 999px;
  background: var(--grad-main);
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.nav-link::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.nav-link:hover {
  color: var(--bg-base);
  transform: translateY(-2px);
}
.nav-link:hover::before { opacity: 0.9; }
.nav-link:hover::after  { opacity: 1; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 90px 48px 60px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(160,139,255,0.35);
  color: var(--pink);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 32px;
  background: var(--grad-soft);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.hero-art::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 34px;
  padding: 2px;
  background: var(--grad-main);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

/* Floating sparkles */
.spark {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 10px var(--gold));
  animation: float 3.5s ease-in-out infinite;
}
.spark.s1 { top: 8%; left: -10px;  background: var(--lilac); filter: drop-shadow(0 0 10px var(--lilac)); animation-delay: 0s;}
.spark.s2 { bottom: 12%; right: -12px; background: var(--pink);  filter: drop-shadow(0 0 10px var(--pink));  animation-delay: 1s; width: 18px; height: 18px;}
.spark.s3 { top: 50%; left: -22px; background: var(--gold);  animation-delay: 1.8s; width: 10px; height: 10px;}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  50%     { transform: translateY(-14px) rotate(18deg); }
}

/* ============================================
   BUTTONS — Glow Hover Effect
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  color: var(--bg-base);
  background: linear-gradient(120deg, #A08BFF 0%, #F3A8C2 25%, #E6C76E 50%, #F3A8C2 75%, #A08BFF 100%);
  background-size: 300% 100%;
  transition: transform 0.3s ease, box-shadow 0.4s ease, filter 0.3s ease;
  box-shadow: 0 10px 28px rgba(160,139,255,0.35), 0 4px 14px rgba(243,168,194,0.25);
  overflow: hidden;
  z-index: 1;
  animation: grad-shift 7s ease-in-out infinite;
}
.btn::before {
  content: "";
  position: absolute; inset: -3px;
  background: linear-gradient(120deg, #A08BFF 0%, #F3A8C2 25%, #E6C76E 50%, #F3A8C2 75%, #A08BFF 100%);
  background-size: 300% 100%;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: grad-shift 7s ease-in-out infinite;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.1);
  box-shadow: 0 18px 40px rgba(160,139,255,0.55), 0 8px 24px rgba(230,199,110,0.45);
}
.btn:hover::before { opacity: 0.95; }
.btn:active { transform: translateY(-1px) scale(1); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(249,246,242,0.18);
  box-shadow: none;
}
.btn-ghost::before { display: none; }
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 22px rgba(230,199,110,0.45), 0 0 60px rgba(160,139,255,0.25);
  background: rgba(230,199,110,0.06);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 48px;
  max-width: 1320px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-block;
  animation: title-float 6s ease-in-out infinite;
}
.section-title .grad {
  background: linear-gradient(120deg, #A08BFF 0%, #F3A8C2 25%, #E6C76E 50%, #F3A8C2 75%, #A08BFF 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: grad-shift 7s ease-in-out infinite;
}

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes title-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 14px auto 0;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}
.about > * { position: relative; z-index: 1; }
.about-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(160,139,255,0.35);
}
.about-photo::before {
  content: "";
  position: absolute; inset: -2px;
  background: var(--grad-main);
  z-index: -1;
  border-radius: 26px;
  filter: blur(14px); opacity: 0.7;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h3 {
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 800;
}
.about-text h3 .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-text .role {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.about-text p {
  color: var(--text-soft);
  font-size: 15.5px;
  margin-bottom: 14px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.art-card {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
}
.art-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
}
.art-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 60px rgba(160,139,255,0.4), 0 0 0 1px var(--lilac) inset;
}
.art-card:hover::before { opacity: 0.45; }

.art-card .art-placeholder {
  font-size: 60px;
  filter: drop-shadow(0 0 20px rgba(230,199,110,0.6));
  z-index: 2;
}
.art-card .art-label {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 3;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  background: var(--input-bg);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ---- Art Card — Real Image ---- */
.art-card .art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.55s ease;
  z-index: 1;
}
.art-card:hover .art-img { transform: scale(1.07); }

.gallery-cta { text-align: center; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,9,14,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow:
    0 0 50px rgba(160,139,255,0.55),
    0 0 100px rgba(243,168,194,0.3),
    0 30px 80px rgba(0,0,0,0.7);
  display: block;
}
.lightbox-close {
  position: fixed;
  top: 22px; right: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(44,46,53,0.7);
  border: 1.5px solid rgba(249,246,242,0.18);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.35s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 9999;
  font-family: var(--font);
}
.lightbox-close:hover {
  background: rgba(243,168,194,0.22);
  box-shadow: 0 0 24px rgba(243,168,194,0.4);
  transform: rotate(90deg) scale(1.12);
}
.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(44,46,53,0.7);
  border: 1.5px solid rgba(249,246,242,0.18);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 9999;
  font-family: var(--font);
  user-select: none;
}
.lightbox-nav:hover {
  background: rgba(160,139,255,0.25);
  box-shadow: 0 0 24px rgba(160,139,255,0.4);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.1); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card-bg-strong);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-item.open {
  border-color: rgba(160,139,255,0.5);
  box-shadow: 0 0 30px rgba(160,139,255,0.25), 0 12px 30px rgba(0,0,0,0.4);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
  padding: 20px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
}
.faq-q::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.faq-q:hover {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(230,199,110,0.55);
}
.faq-q:hover::before { opacity: 0.6; }

.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-main);
  color: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  transition: transform 0.4s ease;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(160,139,255,0.55);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.4s ease;
  color: var(--text-soft);
  padding: 0 26px;
  font-size: 15px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 26px 22px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 50px 48px 30px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  margin-top: 60px;
  color: var(--text-faint);
  font-size: 13px;
  position: relative;
}
.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  bottom: 30px;
  right: 32px;
  font-size: 11px;
  color: rgba(249,246,242,0.3);
  text-decoration: none;
  transition: color .3s ease;
}
.footer-dev:hover { color: rgba(249,246,242,0.7); }
.footer-dev-label { font-weight: 400; }
.footer-dev-logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(135deg, #0a1230, #050a1f);
  border: 1px solid rgba(110,140,255,0.3);
  border-radius: 6px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  box-shadow: 0 0 8px rgba(80,130,255,0.2);
  transition: box-shadow .3s ease;
}
.footer-dev:hover .footer-dev-logo {
  box-shadow: 0 0 14px rgba(80,130,255,0.5);
}
.footer-dev-logo .ad-name { color: #FFFFFF; }
.footer-dev-logo .ad-dev {
  background: linear-gradient(90deg, #3b82f6, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer .grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ============================================
   CONTATO PAGE
   ============================================ */
.contact-wrap {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 48px;
}
.contact-card {
  background: var(--card-bg-strong);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0.4;
  pointer-events: none;
}
.contact-card > * { position: relative; z-index: 1; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--label-pink);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input, .field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--lilac);
  box-shadow: 0 0 0 4px rgba(160,139,255,0.18), 0 0 20px rgba(160,139,255,0.3);
}
.field textarea { min-height: 160px; resize: vertical; }

.file-upload {
  border: 2px dashed rgba(160,139,255,0.4);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(30,29,34,0.4);
}
.file-upload:hover {
  border-color: var(--gold);
  background: rgba(230,199,110,0.08);
  box-shadow: 0 0 24px rgba(230,199,110,0.25);
}
.file-upload input { display: none; }
.file-upload-text { color: rgba(249,246,242,0.7); font-size: 14px; }
.file-upload-text strong { color: var(--gold); }
.file-name { margin-top: 10px; font-size: 13px; color: var(--pink); }

.contact-submit { width: 100%; margin-top: 10px; padding: 18px; font-size: 15px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav-menu { gap: 2px; }
  .nav-link { padding: 8px 12px; font-size: 12px; letter-spacing: 0.5px; }
  .nav-brand { font-size: 16px; letter-spacing: 3px; }
  .hero { grid-template-columns: 1fr; padding: 50px 24px; gap: 40px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .about { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .about-photo { max-width: 280px; margin: 0 auto; }
  .section { padding: 50px 24px; }
  .contact-wrap { padding: 0 20px; }
  .contact-card { padding: 28px; }
}

/* ============================================
   HOME (page 1) — Designer/Gamer brand + Hero
   ============================================ */
.home .nav-brand {
  font-family: 'Audiowide', 'Orbitron', cursive;
  letter-spacing: 4px;
  font-weight: 400;
  font-size: 22px;
}
.home .loader-title {
  font-family: 'Audiowide', 'Orbitron', cursive;
  letter-spacing: 5px;
  font-weight: 400;
}

.home .hero-modern {
  padding-top: 70px;
  padding-bottom: 40px;
}
.home .hero-eyebrow {
  background: linear-gradient(135deg, rgba(243,168,194,0.18), rgba(160,139,255,0.18));
  border-color: rgba(243,168,194,0.4);
  color: var(--pink);
  font-size: 13px;
  letter-spacing: 3px;
}
.home .hero-brand {
  font-family: 'Audiowide', 'Orbitron', cursive;
  font-weight: 400;
  font-size: clamp(58px, 8vw, 110px);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 24px rgba(160,139,255,0.35));
}
.home .hero-tags {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(249,246,242,0.85);
  margin-bottom: 36px;
}
.home .hero-tags .dot {
  color: var(--gold);
  margin: 0 8px;
  text-shadow: 0 0 12px var(--gold);
}

/* ---- Modern Portrait — fades into the site ---- */
.home .hero-portrait {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}
.home .hero-portrait::before { display: none; }

.portrait-aura {
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle at 40% 30%, var(--lilac) 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, var(--pink) 0%, transparent 55%),
              radial-gradient(circle at 50% 90%, var(--gold) 0%, transparent 55%);
  filter: blur(60px);
  opacity: 0.7;
  animation: aura-rotate 12s ease-in-out infinite;
  z-index: 0;
}
.portrait-aura.aura-2 {
  inset: 18%;
  background: conic-gradient(from 0deg, var(--lilac), var(--pink), var(--gold), var(--lilac));
  filter: blur(40px);
  opacity: 0.45;
  animation: aura-spin 18s linear infinite;
}
@keyframes aura-rotate {
  0%,100% { transform: scale(1) translate(0,0); opacity: 0.7; }
  50%     { transform: scale(1.12) translate(2%, -2%); opacity: 0.9; }
}
@keyframes aura-spin { to { transform: rotate(360deg); } }

.portrait-grid {
  position: absolute;
  inset: 12%;
  background-image:
    linear-gradient(rgba(160,139,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,139,255,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
  opacity: 0.5;
  z-index: 1;
  animation: grid-drift 8s ease-in-out infinite;
}
@keyframes grid-drift {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(8px, -8px); }
}

.home .portrait-img {
  position: relative;
  z-index: 2;
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 0;
  mask-image: radial-gradient(ellipse 65% 75% at 50% 45%, black 55%, rgba(0,0,0,0.6) 70%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 50% 45%, black 55%, rgba(0,0,0,0.6) 70%, transparent 90%);
  filter:
    drop-shadow(0 0 30px rgba(160,139,255,0.55))
    drop-shadow(0 0 60px rgba(243,168,194,0.35))
    contrast(1.08) saturate(1.1);
  animation: portrait-float 6s ease-in-out infinite;
}
@keyframes portrait-float {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-14px) scale(1.015); }
}

.portrait-tint {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(160deg, rgba(160,139,255,0.18) 0%, transparent 35%, transparent 65%, rgba(243,168,194,0.18) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, black 40%, transparent 85%);
}

/* ---- Falling stars field (page 1 + loader) ---- */
.meteor-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.meteor-field-page {
  position: fixed;
  z-index: 1;
  transition: opacity 0.5s ease;
}
.meteor-field-page.stars-hidden {
  opacity: 0;
  pointer-events: none;
}
.meteor-field-loader {
  z-index: 0;
  opacity: 0.9;
}
.star {
  --drift: 0vw;
  position: absolute;
  top: -40px;
  opacity: 0;
  line-height: 1;
  animation-name: star-fall, star-twinkle;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  will-change: transform, opacity;
}
@keyframes star-fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(var(--drift), 110vh) rotate(360deg); }
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* Make page-1 layers sit above the star field */
.home .nav, .home .hero, .home .section, .home .footer { position: relative; z-index: 2; }

.home .spark.s4 {
  top: 20%; right: 8%;
  background: var(--lilac);
  filter: drop-shadow(0 0 10px var(--lilac));
  animation-delay: 0.6s;
  width: 12px; height: 12px;
}

@media (max-width: 900px) {
  .home .hero-portrait { max-width: 380px; margin: 0 auto; }
  .home .hero-brand { font-size: clamp(48px, 14vw, 80px); }
}

/* ============================================
   RESPONSIVE — Tablets & Mobile (Android/iOS)
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 32px; }
  .nav { padding: 16px 28px; }
  .section { padding: 60px 32px; }
  .about { padding: 36px; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
}

/* Tablet portrait & small tablets */
@media (max-width: 820px) {
  .nav {
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px;
  }
  .nav-menu {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  .nav-link {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 40px 20px 30px; gap: 30px; }
  .hero > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .hero-cta { justify-content: center; }
  .home .hero-brand { font-size: clamp(44px, 13vw, 72px); letter-spacing: 1px; }
  .home .hero-portrait { max-width: 340px; width: 80%; margin: 0 auto; }
  .home .hero-tags { font-size: 13px; letter-spacing: 2px; }
  .home .hero-tags .dot { margin: 0 5px; }
  .about { grid-template-columns: 1fr; padding: 28px; text-align: center; }
  .about-photo { max-width: 240px; margin: 0 auto; }
}

/* Mobile (Android / iPhone) */
@media (max-width: 540px) {
  body { font-size: 15px; }
  .nav { padding: 12px 14px; }
  .nav-left { gap: 10px; }
  .nav-logo { width: 42px; height: 42px; }
  .home .nav-brand,
  .nav-brand { font-size: 16px; letter-spacing: 3px; }
  .nav-menu { gap: 4px; padding: 4px 0; }
  .nav-link {
    padding: 8px 11px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero { padding: 30px 16px 20px; gap: 24px; }
  .hero-eyebrow { font-size: 11px; padding: 6px 12px; letter-spacing: 2px; }
  .home .hero-brand { font-size: clamp(40px, 14vw, 60px); }
  .home .hero-tags { font-size: 11.5px; letter-spacing: 1.5px; }
  .home .hero-portrait { max-width: 280px; width: 85%; }

  .section { padding: 44px 18px; }
  .section-title { font-size: clamp(26px, 7vw, 34px); }
  .section-sub { font-size: 14px; }

  .about { padding: 22px 18px; gap: 22px; border-radius: 22px; }
  .about-photo { max-width: 200px; }
  .about-text h3 { font-size: 22px; }
  .about-text p { font-size: 14.5px; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  .art-card { border-radius: 16px; }
  .art-card .art-placeholder { font-size: 44px; }
  .art-card .art-label { font-size: 10px; padding: 4px 9px; bottom: 10px; left: 10px; }

  .btn { padding: 12px 20px; font-size: 12px; letter-spacing: 1.5px; }

  .faq-q { padding: 16px 18px; font-size: 14px; gap: 10px; }
  .faq-a { font-size: 14px; }
  .faq-item.open .faq-a { padding: 0 18px 18px; }
  .faq-icon { width: 28px; height: 28px; font-size: 16px; }

  .contact-wrap { padding: 0 14px; margin: 24px auto; }
  .contact-card { padding: 22px 18px; border-radius: 22px; }
  .field input, .field textarea { padding: 12px 14px; font-size: 14px; }
  .field label { font-size: 11px; letter-spacing: 2px; }
  .file-upload { padding: 20px 14px; }
  .file-upload-text { font-size: 13px; }

  .loader-logo { width: 150px; height: 150px; }
  .loader-bar { width: 220px; }
  .loader-title { font-size: 18px; letter-spacing: 4px; }

  .footer { padding: 36px 18px 22px; font-size: 12px; }

  /* Filter buttons on gallery */
  .filter-btn { padding: 8px 14px; font-size: 11px; letter-spacing: 1.5px; }
}

/* ============================================
   GALLERY FILTER ACTIVE STATE
   ============================================ */
.filter-btn.active {
  background: var(--grad-main);
  color: var(--bg-base);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(160,139,255,0.55), 0 0 50px rgba(243,168,194,0.35);
}

/* Very small screens (iPhone SE etc) */
@media (max-width: 380px) {
  .nav-link { padding: 7px 9px; font-size: 9.5px; }
  .home .hero-brand { font-size: 38px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   THEME TOGGLE (Claro / Escuro)
   ============================================ */
.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 30% 30%, rgba(160,139,255,0.25), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(243,168,194,0.22), transparent 60%),
    var(--input-bg);
  box-shadow:
    0 0 0 1.5px rgba(249,246,242,0.10) inset,
    0 6px 18px rgba(160,139,255,0.25),
    0 0 22px rgba(243,168,194,0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  overflow: hidden;
  z-index: 1;
}
.theme-toggle::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad-main);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
}
.theme-toggle::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: var(--grad-main);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
}
.theme-toggle:hover {
  transform: translateY(-2px) rotate(-12deg) scale(1.06);
  box-shadow:
    0 0 0 1.5px var(--gold) inset,
    0 10px 30px rgba(230,199,110,0.45),
    0 0 38px rgba(160,139,255,0.35);
}
.theme-toggle:hover::after { opacity: 0.7; }

.theme-toggle .icon {
  display: inline-block;
  transition: transform 0.55s cubic-bezier(.5,1.6,.4,1), opacity 0.35s ease;
  filter: drop-shadow(0 0 6px currentColor);
}
.theme-toggle .icon-sun { color: var(--gold); }
.theme-toggle .icon-moon { color: var(--lilac); }

body:not(.light) .theme-toggle .icon-sun { display: none; }
body.light .theme-toggle .icon-moon { display: none; }

/* Light-mode tweaks for atmospheric elements */
body.light .meteor-field-page,
body.light .meteor-field-loader { opacity: 0.35; mix-blend-mode: multiply; }
body.light .portrait-grid {
  background-image:
    linear-gradient(rgba(110,84,224,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,84,224,0.18) 1px, transparent 1px);
}
body.light .nav-link { color: var(--text); }
body.light .nav-link:hover { color: #FFFFFF; }
body.light .home .hero-tags { color: var(--text-soft); }
body.light .home .hero-brand { filter: drop-shadow(0 2px 14px rgba(110,84,224,0.35)); }
body.light .btn-ghost { color: var(--text); border-color: rgba(42,36,56,0.22); }
body.light .btn-ghost:hover { color: var(--gold); }
body.light .loader { background: var(--grad-bg); }
body.light .filter-btn.active { color: #FFFFFF; }
body.light .art-card .art-label { background: rgba(255,255,255,0.85); color: var(--text); }
body.light .faq-q:hover { color: var(--lilac); text-shadow: 0 0 18px rgba(110,84,224,0.35); }
body.light .faq-icon { color: #FFFFFF; }
body.light .hero-eyebrow { color: var(--label-pink); }

/* Touch-friendly tap sizes & remove hover-only effects on touch devices */
@media (hover: none) {
  .nav-link:hover { transform: none; }
  .art-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* === SLIDING ALAN.DEV BADGE (all pages) === */
.alan-dev-badge {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0a1230 0%, #050a1f 100%);
  border: 1px solid rgba(110, 140, 255, 0.35);
  border-radius: 16px;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(80, 130, 255, 0.22);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  will-change: left, transform;
  animation: alanSlide 64s ease-in-out infinite;
  transition: filter .35s ease, box-shadow .35s ease;
}
.alan-dev-badge:hover {
  filter: brightness(1.15);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(110, 160, 255, 0.5);
}
.alan-dev-badge .ad-name { color: #FFFFFF; }
.alan-dev-badge .ad-dev {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 1px;
}

@keyframes alanSlide {
  0%   { left: 0;    transform: translate(-100%, -50%); }
  50%  { left: 100%; transform: translate(0, -50%); }
  100% { left: 0;    transform: translate(-100%, -50%); }
}

@media (max-width: 600px) {
  .alan-dev-badge {
    padding: 9px 16px;
    font-size: 17px;
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alan-dev-badge {
    animation: none;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
