/* =========================
   FANTASY FOX HOUSE THEME
   styles.css
   ========================= */

:root {
  --bg: #0f0c14;
  --bg-soft: #1a1322;
  --panel: rgba(32, 22, 43, 0.88);
  --panel-strong: #24182f;
  --text: #f8f2e8;
  --text-soft: #d8cdbf;
  --primary: #ff9f43;
  --primary-dark: #e07d1c;
  --secondary: #ffcf7d;
  --accent: #a96cff;
  --accent-soft: #c89cff;
  --success: #8ee6a3;
  --border: rgba(255, 207, 125, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* =========================
   RESET
   ========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(169, 108, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 159, 67, 0.14), transparent 25%),
    linear-gradient(180deg, #120d18 0%, #0f0c14 45%, #191124 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* leichte Sterne */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.35) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,207,125,0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(200,156,255,0.2) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  background-position: 0 0, 40px 60px, 100px 30px;
  opacity: 0.22;
  z-index: -1;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* =========================
   HEADER / NAVBAR
   ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(15, 12, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--secondary);
  text-shadow: 0 0 12px rgba(255, 159, 67, 0.35);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 159, 67, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 159, 67, 0.18);
}

/* =========================
   HERO
   ========================= */

.hero {
  padding: 110px 0 90px;
}

.hero-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(145deg, rgba(37, 24, 49, 0.86), rgba(23, 16, 31, 0.92));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 48px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-box::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 159, 67, 0.22), transparent 70%);
  right: -60px;
  top: -60px;
  border-radius: 50%;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-text h1 span {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(255, 159, 67, 0.25);
}

.hero-text p {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  min-height: 360px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 207, 125, 0.08), rgba(169, 108, 255, 0.08)),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255, 207, 125, 0.18);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "🦊";
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 5rem;
  opacity: 0.22;
}

.hero-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.hero-card p {
  color: var(--text-soft);
}

/* =========================
   BUTTONS
   ========================= */

.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #1a1010;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(224, 125, 28, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 24px rgba(224, 125, 28, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 1px solid rgba(255, 207, 125, 0.28);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 207, 125, 0.08);
}

/* =========================
   SECTION DEFAULTS
   ========================= */

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto;
}

/* =========================
   CARDS / FEATURES
   ========================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 159, 67, 0.35);
  background: rgba(40, 28, 54, 0.95);
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.18), rgba(169, 108, 255, 0.18));
  border: 1px solid rgba(255, 207, 125, 0.16);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--text-soft);
}

/* =========================
   GALLERY / PROJECTS
   ========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  min-height: 240px;
  position: relative;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(10, 8, 16, 0.92), transparent);
  color: var(--text);
}

/* =========================
   CONTENT BOX / ABOUT
   ========================= */

.content-box {
  background: linear-gradient(145deg, rgba(34, 24, 46, 0.95), rgba(25, 18, 33, 0.92));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 34px;
  box-shadow: var(--shadow);
}

.content-box p + p {
  margin-top: 14px;
}

/* =========================
   FORMS
   ========================= */

form {
  display: grid;
  gap: 18px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 207, 125, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 242, 232, 0.55);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 159, 67, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* =========================
   TABLES
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
}

th {
  background: rgba(255, 159, 67, 0.12);
  color: var(--secondary);
}

tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 207, 125, 0.08);
}

/* =========================
   FOOTER
   ========================= */

footer {
  margin-top: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 8, 14, 0.65);
}

.footer-content {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-content p {
  color: var(--text-soft);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 207, 125, 0.14);
}

.socials a:hover {
  background: rgba(255, 159, 67, 0.14);
}

/* =========================
   BADGES / TAGS
   ========================= */

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1b1212;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.tag {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(169, 108, 255, 0.16);
  color: var(--accent-soft);
  border: 1px solid rgba(169, 108, 255, 0.2);
  font-size: 0.9rem;
}

/* =========================
   SMALL UTILITIES
   ========================= */

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {
  .hero-box,
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-box {
    padding: 34px;
  }

  .navbar {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 80px 0 60px;
  }
}

@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 2.1rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .hero-box,
  .content-box,
  .card {
    padding: 22px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}