:root {
  --primary-color: #0a192f;
  --secondary-color: #f3f4f6;
  --accent-color: #d4af37;
  --text-color: #333333;
  --text-light: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--secondary-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--accent-color);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 2px;
  position: relative;
  z-index: 1001;
}

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

/* Nav Styles */
nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding-bottom: 4px;
}

nav a:hover, nav a.active {
  color: var(--accent-color);
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Page Header for Inner Pages */
.page-header {
  height: 40vh;
  min-height: 300px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, rgba(10,25,47,1) 60%);
  z-index: 1;
}

.page-header h1 {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  color: var(--text-light);
  animation: fadeInUp 0.8s ease-out;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.95));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: #ccc;
}

/* Split Section (Cards) */
.split-section {
  display: flex;
  min-height: 80vh;
  background-color: var(--secondary-color);
}

.split-card {
  flex: 1;
  padding: 80px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.split-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.split-card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  transition: var(--transition);
}

.split-card:hover .card-content {
  transform: translateY(-10px);
}

.split-card h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.split-card:hover h2 {
  color: var(--accent-color);
}

.split-card p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #555;
  transition: var(--transition);
}

.split-card:hover p {
  color: #ddd;
}

.card-a {
  background-color: #ffffff;
}

.card-b {
  background-color: #e5e7eb;
}

.split-card:hover .btn {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.split-card:hover .btn:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

/* Content Sections (for interior pages) */
.content-section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.content-grid:nth-child(even) .text-content {
  order: 2;
}

.content-grid:nth-child(even) .image-content {
  order: 1;
}

.text-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.text-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.text-content p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: #555;
}

.image-content {
  position: relative;
}

.image-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  z-index: 1;
}

.image-content img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.image-content img:hover {
  transform: translate(10px, 10px);
}

/* Info Cards for features/services */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-top-color: var(--accent-color);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.info-card p {
  color: #666;
}

/* Books Gallery */
.books-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.book-cover {
  width: 100%;
  max-width: 250px;
  height: 350px;
  background-color: var(--primary-color);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  box-shadow: -5px 5px 15px rgba(0,0,0,0.2);
  position: relative;
  border-radius: 2px 10px 10px 2px;
}

.book-cover::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.book-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.book-item p {
  font-size: 0.9rem;
  color: #666;
}

/* Fixed CTAs */
.fixed-ctas {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.fixed-ctas .btn {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 12px;
  padding: 10px 20px;
}

.btn-alt {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.btn-alt:hover {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 5%;
  text-align: center;
}

.social-icons {
  margin-bottom: 24px;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 24px;
  color: var(--text-light);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

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

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 15px 5%;
  }
  .menu-toggle {
    display: flex;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 0;
    box-shadow: 0 10px 10px rgba(0,0,0,0.2);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-out;
  }
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    padding: 20px 0;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  nav a {
    font-size: 16px;
    display: block;
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .split-section {
    flex-direction: column;
  }
  .split-card {
    padding: 60px 5%;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .content-grid:nth-child(even) .text-content,
  .content-grid:nth-child(even) .image-content {
    order: unset;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 16px;
  }
  .fixed-ctas {
    bottom: 20px;
    right: 20px;
    left: 20px;
    flex-direction: row;
    justify-content: space-between;
  }
  .fixed-ctas .btn {
    flex: 1;
    text-align: center;
    font-size: 11px;
    padding: 10px 5px;
  }
}
