@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #07070a;
  --bg-card: rgba(22, 20, 28, 0.65);
  --glass-border: rgba(255, 215, 120, 0.15);
  --glass-border-hover: rgba(255, 180, 50, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --champagne: #f3e5ab;
  --aurora-yellow: #ffd166;
  --aurora-orange: #ff9f1c;
  --aurora-glow: #ff595e;
  --text-main: #f0ede6;
  --text-muted: #a39f97;
  --text-dim: #6c6860;
  --serif-font: 'Playfair Display', Georgia, serif;
  --sans-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--sans-font);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 209, 102, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(255, 159, 28, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 89, 94, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background Aurora Visual Effects */
.aurora-bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 50% -20%, rgba(255, 209, 102, 0.12), transparent 70%);
}

a {
  color: var(--aurora-yellow);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--aurora-orange);
}

/* Slim Unstuck Header */
.site-header {
  position: relative; /* Not fixed, scrolls off-screen */
  width: 100%;
  padding: 0.85rem 2rem;
  background: rgba(10, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo svg {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-family: var(--serif-font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, var(--champagne) 60%, var(--aurora-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--champagne);
  text-shadow: 0 0 10px rgba(243, 229, 171, 0.3);
}

.btn-header-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 159, 28, 0.25));
  border: 1px solid var(--aurora-yellow);
  color: var(--champagne);
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-cta:hover {
  background: linear-gradient(135deg, var(--aurora-yellow), var(--aurora-orange));
  color: #000;
  box-shadow: 0 0 15px rgba(255, 159, 28, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Glassmorphism Containers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
}

/* Hero Section */
.hero {
  padding: 5rem 1.5rem 3rem 1.5rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  color: var(--champagne);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif-font);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 30%, #e0d0b0 70%, var(--aurora-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  font-weight: 300;
}

/* Tool & Article Cards Layout */
.section-title-wrap {
  text-align: center;
  margin: 4rem 0 2.5rem 0;
}

.section-title {
  font-family: var(--serif-font);
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 9, 14, 0.85);
  border: 1px solid var(--aurora-yellow);
  color: var(--aurora-yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--serif-font);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 159, 28, 0.3));
  border: 1px solid var(--aurora-yellow);
  color: var(--champagne);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--aurora-yellow), var(--aurora-orange));
  color: #0c0a09;
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--aurora-yellow);
  background: rgba(255, 209, 102, 0.08);
  color: var(--champagne);
}

/* Detail Pages Styling */
.page-header {
  padding: 4rem 1.5rem 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--serif-font);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.detail-card {
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.detail-card h2 {
  font-family: var(--serif-font);
  color: var(--champagne);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.detail-card p, .detail-card ul, .detail-card ol {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.detail-card ul, .detail-card ol {
  padding-left: 1.5rem;
}

.detail-card li {
  margin-bottom: 0.5rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.spec-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--aurora-yellow);
  margin-top: 4px;
}

/* Universal Footer */
.site-footer {
  margin-top: auto;
  background: rgba(5, 5, 8, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1.5rem 2rem 1.5rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 320px;
  font-size: 0.88rem;
}

.footer-heading {
  font-family: var(--serif-font);
  color: var(--champagne);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--aurora-yellow);
}

.footer-address-box {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Cookie Consent Pop-up */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: rgba(15, 14, 22, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--aurora-yellow);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--aurora-yellow);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Contact Form Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--sans-font);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--aurora-yellow);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.2);
}

/* Media Queries */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 9, 14, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}