@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --gold: #f5a623;
  --purple: #7b2cbf;
  --magenta: #c77dff;
  --text: #ffffff;
  --text-muted: #a0a0b0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--text);
  overflow-x: hidden;
}

/* Stars Background */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Navigation */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,46,0.95) 0%, transparent 100%);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width:80px;
}

.logo-icon {
  width: 45px;
  height: 45px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  transition: width 0.3s;
}

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

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 5% 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(123,44,191,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(199,125,255,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(245,166,35,0.1) 0%, transparent 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(123,44,191,0.3), rgba(199,125,255,0.2));
  border: 1px solid rgba(199,125,255,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--magenta);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--magenta) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.optin-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.optin-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(199,125,255,0.3);
  border-radius: 50px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.optin-form input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}

.optin-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(123,44,191,0.4);
}

.optin-note {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Section Styles */
section {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--magenta), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Features Section */
#features {
  background: linear-gradient(180deg, transparent 0%, rgba(22,33,62,0.5) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(123,44,191,0.1), rgba(26,26,46,0.8));
  border: 1px solid rgba(199,125,255,0.2);
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(123,44,191,0.2);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Blog Posts Section */
#blog {
  max-width: 1200px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.post-card {
  background: linear-gradient(135deg, rgba(22,33,62,0.8), rgba(26,26,46,0.9));
  border: 1px solid rgba(199,125,255,0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.post-image {
  height: 200px;
  background: linear-gradient(135deg, var(--purple), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(245,166,35,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.post-content {
  padding: 1.5rem;
}

.post-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(123,44,191,0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--magenta);
  margin-bottom: 1rem;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.post-title a:hover {
  color: var(--gold);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.read-more {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover { color: var(--magenta); }

/* About Section */
#about {
  max-width: 1000px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--purple), var(--secondary));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: conic-gradient(from 0deg, transparent, rgba(245,166,35,0.3), transparent);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.about-image svg {
  position: relative;
  z-index: 1;
  width: 60%;
  height: auto;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA Section */
#cta {
  text-align: center;
  padding: 6rem 5%;
  background: linear-gradient(180deg, transparent 0%, rgba(123,44,191,0.2) 50%, transparent 100%);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--magenta) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(199,125,255,0.3);
  border-radius: 50px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

.cta-form input[type="email"]:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}

.cta-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

/* Footer */
footer {
  position: relative;
  z-index: 2;
  padding: 2rem 5%;
  background: linear-gradient(180deg, transparent, rgba(22,33,62,0.8));
  border-top: 1px solid rgba(199,125,255,0.1);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.footer-links-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-links-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links-legal a:hover {
  color: var(--gold);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image { order: -1; max-width: 300px; margin: 0 auto; }
}

/* Single Post Page */
.post-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 5% 4rem;
  overflow: hidden;
}

.post-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.post-hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, transparent 30%, transparent 70%, var(--primary) 100%);
}

.post-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.post-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-hero-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.post-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 5%;
  position: relative;
  z-index: 2;
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--gold);
}

.post-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--magenta);
}

.post-body p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.post-body ul, .post-body ol {
  color: var(--text-muted);
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--magenta);
}

.post-body a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.post-body a:hover {
  color: var(--magenta);
}

/* Category Page */
.category-hero {
  padding: 10rem 5% 4rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, #fff 0%, var(--magenta) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Static Pages */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 5% 4rem;
  position: relative;
  z-index: 2;
}

.page-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--gold);
}

.page-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-content ul {
  color: var(--text-muted);
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-content a {
  color: var(--gold);
  text-decoration: none;
}

.page-content a:hover {
  color: var(--magenta);
}

.page-content strong {
  color: var(--text);
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}