:root {
  --primary: #E67E7E; /* Soft Coral */
  --secondary: #F3A683; /* Muted Peach */
  --accent: #D16B6B; /* Deep Coral */
  --dark: #2D3436; /* Charcoal */
  --light: #F8F9FA; /* Off-white */
  --white: #FFFFFF;
  --gray: #636E72; /* Muted gray */
  --bg-gradient: linear-gradient(135deg, #FFF9F9 0%, #F5F6FA 100%);
  
  --spacer: 1.5rem;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
  --radius: 24px;
  --radius-sm: 12px;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--dark);
  background: var(--bg-gradient);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.script-font {
  font-family: 'Dancing Script', cursive;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 60px;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  color: var(--dark);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-svg {
  height: 48px;
  width: auto;
}

.logo-divider {
  width: 2px;
  height: 40px;
  background-color: var(--primary);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

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

/* Mobile Toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--dark);
}

.nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(230, 126, 126, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 126, 126, 0.4);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(230, 126, 126, 0.3);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(230, 126, 126, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(0,0,0,0.1);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-header-bg {
  padding-top: 15vh;
  background: var(--light);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  background: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  text-decoration: none;
  margin-bottom: 2rem;
  display: block;
}

.footer-logo .logo-svg {
  height: 32px;
}

.footer-logo .logo-divider {
  height: 24px;
}

.footer-logo .logo-text {
  font-size: 1.5rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  text-decoration: none;
  color: var(--gray);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--gray);
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Featured Magazine Section */
.magazine-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 5rem;
  box-shadow: var(--shadow-md);
}

.featured-title {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.featured-description {
  margin-bottom: 2.5rem;
  color: var(--gray);
  font-size: 1.1rem;
}

.featured-title-sm {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.featured-description-sm {
  margin-bottom: 2rem;
  color: var(--gray);
}

.featured-btns {
  display: flex;
  gap: 1rem;
}

.issue-image {
  transform: rotate(3deg);
  transition: var(--transition);
}

.issue-image:hover {
  transform: rotate(0);
}

.issue-label {
  display: inline-block;
  background: rgba(230, 126, 126, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Subscription Form */
.subscribe-section {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 4rem;
  text-align: center;
}

.subscribe-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
  gap: 1rem;
}

.subscribe-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  outline: none;
}

.subscribe-form .btn {
  background: var(--dark);
}

/* YouTube Section */
.youtube-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.video-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--dark);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-placeholder:hover .video-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(230, 126, 126, 0.5);
  transition: var(--transition);
}

.video-placeholder:hover .play-button {
  transform: scale(1.1);
  background: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
  section {
    padding: 4rem 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 220px !important;
    min-height: auto;
  }

  .page-header-bg {
    padding-top: 220px !important;
  }
  
  .hero-content {
    margin-bottom: 3rem;
    padding: 0 1rem;
    margin-top: 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero-btns .btn {
    width: 100%;
    margin: 0 !important;
  }

  .hero-image {
    padding-left: 0 !important;
    margin-top: 2rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .magazine-featured, .youtube-preview {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    text-align: center;
    overflow-x: hidden;
  }

  .featured-title {
    font-size: 2rem;
    word-wrap: break-word;
    hyphens: auto;
  }

  .featured-title-sm {
    font-size: 1.8rem;
  }

  .featured-btns {
    flex-direction: column;
    align-items: center;
  }

  .featured-btns .btn {
    width: 100%;
    margin-left: 0 !important;
  }

  .issue-image {
    transform: none;
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    z-index: 1000;
    padding-top: 100px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-image {
    padding-left: 0 !important;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .subscribe-form {
    flex-direction: column;
  }

  .grid-2, .grid-3, .archive-grid {
    grid-template-columns: 1fr !important;
  }

  .magazine-featured {
    padding: 1.25rem;
  }

  .issue-image {
    transform: none !important;
  }
}
