:root {
  --bg: #050509;
  --bg-alt: #0b0b12;
  --card: #101019;
  --border: #2b2738;
  --gold: #d4af37;
  --gold-soft: #b89633;
  --silver: #c0c4d8;
  --royal: #7c6bff;
  --text-main: #f5f5fa;
  --text-muted: #a1a3b8;
  --accent: #f1e4c0;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #181628 0, #050509 55%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout */

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 9, 0.9),
    rgba(5, 5, 9, 0.75)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 0 0.3rem 0;
}

/* NAV */

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.7rem;
  justify-content: center;
  width: 100%;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  opacity: 0.9;
  transition: color 0.25s ease-out;
}

/* Animated gold underline */
.nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(212, 175, 55, 0),
    rgba(212, 175, 55, 1),
    rgba(212, 175, 55, 0)
  );
  transform: translateX(-50%);
  transition: width 0.25s ease-out;
  border-radius: 999px;
}

/* Hover + active effect */
.nav a:hover,
.nav a.active {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}

.nav a:hover::after,
.nav a.active::after {
  width: 65%;
}

.btn-nav {
  border: 1px solid rgba(212, 175, 55, 0.85);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3.2vw + 1rem, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.95);
  background: radial-gradient(
    circle at top left,
    #f6e7b9 0,
    #d4af37 40%,
    #7f6724 100%
  );
  color: #221;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.hero-badge {
  border-radius: 1.5rem;
  padding: 1.6rem 1.4rem;
  background: radial-gradient(circle at top, #28223a 0, #101019 55%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.badge-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--silver);
  margin-bottom: 0.35rem;
}

.badge-name {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.badge-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #181628 0, #050509 70%);
}

.section-heading {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

/* LUXURY DOMAIN CARD + GOLD AURA */
.domain-card {
  position: relative;
  background: radial-gradient(circle at top left, #1f1a2e 0, #0b0b12 55%);
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  z-index: 0;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out,
    background 0.25s ease-out;
}

/* Aura */
.domain-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    circle at top center,
    rgba(212, 175, 55, 0.42),
    rgba(212, 175, 55, 0.18),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease-out, transform 0.3s ease-out;
  transform: translateY(10px);
  z-index: 1;
}

.domain-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at top left, #26203a 0, #0b0b12 60%);
}

.domain-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.domain-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-gold {
  border-color: rgba(212, 175, 55, 0.8);
  color: var(--gold);
}

.badge-silver {
  border-color: rgba(192, 196, 216, 0.8);
  color: var(--silver);
}

.badge-royal {
  border-color: rgba(124, 107, 255, 0.9);
  color: var(--royal);
}

/* LOGO HEADER REWORK – SVG DE Logo */
.logo-box {
  width: 100%;
  text-align: center;
  padding: 1rem 0 0.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.de-logo {
  display: block;
  margin: 0 auto;
  max-width: 240px;
  width: 100%;
  height: auto;
  transform-origin: center center;
  animation: deGlow 2.8s ease-in-out infinite;
}

.de-logo:hover {
  animation: deGlowHover 1.1s ease-in-out infinite;
  cursor: pointer;
}

/* GOLD LINE UNDER LOGO */
.header-divider {
  width: 80%;
  height: 2px;
  margin: 0.8rem auto 0.6rem auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.18),
    rgba(212, 175, 55, 1),
    rgba(212, 175, 55, 0.18),
    transparent
  );
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.65);
  border-radius: 999px;
}

/* Bottom gold line (under menu) */
.header-divider-bottom {
  width: 60%;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

/* DRAMATIC GOLD PULSE FOR DE LOGO */
@keyframes deGlow {
  0% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4))
      drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  }
  25% {
    transform: scale(1.08) rotate(1deg);
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.9))
      drop-shadow(0 0 45px rgba(212, 175, 55, 0.7));
  }
  50% {
    transform: scale(1.12) rotate(0deg);
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 1))
      drop-shadow(0 0 70px rgba(212, 175, 55, 0.7));
  }
  75% {
    transform: scale(1.08) rotate(-1deg);
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.9))
      drop-shadow(0 0 50px rgba(212, 175, 55, 0.6));
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4))
      drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  }
}

/* Extra intense flash on hover */
@keyframes deGlowHover {
  0% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 240, 180, 0.9))
      drop-shadow(0 0 40px rgba(212, 175, 55, 0.8));
  }
  40% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 60px rgba(255, 255, 200, 1))
      drop-shadow(0 0 90px rgba(212, 175, 55, 1));
  }
  70% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 35px rgba(255, 240, 180, 0.9))
      drop-shadow(0 0 60px rgba(212, 175, 55, 0.8));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(255, 240, 180, 0.8))
      drop-shadow(0 0 40px rgba(212, 175, 55, 0.7));
  }
}
