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

:root {
  --primary: #a6d4dad0;
  /* Deep Navy Blue from the ScriptHive Text */
  --primary-light: #e2e8f0;
  /* Secondary Dark Navy of our JOurnals box color */
  --secondary: #1A212F;
  /* Metallic Gold from the Badge/Books */
  --secondary-hover: #9c7832;
  --bg-color: #f1efef;
  --white: #FFFFFF;
  --text-dark: #111420;
  --text-muted: #666c77;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

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

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* Header & Nav */
header {
  background-color: var(--primary);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.logo img {
  height: 60px;
  transition: var(--transition);
}

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

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  opacity: 0.9;
}

nav a:hover,
nav a.active {
  color: var(--secondary);
  opacity: 1;
}

/* Mobile Navigation Overlay & Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 2001;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-nav-drawer.active {
  transform: translateX(-300px);
}

.mobile-nav-drawer .close-menu {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-drawer a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.mobile-nav-drawer a:hover {
  color: var(--secondary);
  padding-left: 10px;
}

.mobile-nav-drawer .btn {
  margin-top: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 161, 74, 0.4);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(10, 37, 64, 0.9) 100%), url('https://images.unsplash.com/photo-1532012197267-da84d127e765?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero span.highlight {
  color: var(--secondary);
}

/* Header Buttons */
.header-btns {
  display: flex;
  gap: 15px;
  align-items: center;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2.5rem auto;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
}

/* Three Column Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 161, 74, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(201, 161, 74, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* About Preview */
.about-preview {
  display: flex;
  align-items: center;
  gap: 4rem;
  background: var(--white);
}

.about-content {
  flex: 1;
}

.about-highlights {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--secondary);
}

.highlight-item h4 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
}

/* Journal Grid */
.journal-section {
  background: var(--bg-color);
}

.journal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.journal-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
}

.journal-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.journal-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.journal-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.journal-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col .logo {
  justify-content: center;
  width: 100%;
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  nav {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 3rem;
  }

  .about-preview {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  nav {
    display: none;
  }

  .header-btns {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
}