/* CSS Variables - Dream Visual Theme */
:root {
  --primary-gradient: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 50%,
    #f093fb 100%
  );
  --secondary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --accent-color: #667eea;
  --text-dark: #1a1a2e;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --border-radius: 20px;
  --card-radius: 16px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Simple Navigation - Logo + Home Icon Only */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-bold {
  color: var(--text-dark);
}

.brand-light {
  color: var(--accent-color);
  font-weight: 300;
  letter-spacing: 2px;
}

.home-icon {
  color: var(--text-dark);
  font-size: 1.3rem;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.home-icon:hover {
  color: var(--accent-color);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

/* E-Book Header */
.ebook-header {
  margin-top: 80px;
  padding: 5rem 5% 4rem;
  background: var(--primary-gradient);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.ebook-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: float 25s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-40px, -40px) rotate(180deg);
  }
}

.ebook-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ebook-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* E-Book Content */
.ebook-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 5%;
  background: var(--white);
  position: relative;
  top: -3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.ebook-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
}

.ebook-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.ebook-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: justify;
}

.ebook-content p:last-child {
  margin-bottom: 0;
}

/* Gallery Section */
.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 5% 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.card-web video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.card:hover img {
  transform: scale(1.03);
}

.card p {
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #631663 0%, #192868 100%);
  color: var(--white);
  padding: 3rem 5% 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand .brand-bold,
.footer-brand .brand-light {
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ebook-header {
    margin-top: 70px;
    padding: 3rem 5% 3rem;
  }

  .ebook-header h1 {
    font-size: 2rem;
  }

  .ebook-header p {
    font-size: 1rem;
  }

  .ebook-content {
    margin: 0 5%;
    padding: 2.5rem 5%;
    top: -2rem;
  }

  .ebook-content h2 {
    font-size: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    padding: 1rem 5% 3rem;
  }

  .card img {
    height: 14rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem 5%;
  }

  .nav-brand {
    font-size: 1.3rem;
  }

  .ebook-header h1 {
    font-size: 1.75rem;
  }

  .ebook-content {
    margin: 0 3%;
    padding: 2rem 4%;
  }

  .ebook-content p {
    font-size: 1rem;
    text-align: left;
  }

  .card img {
    height: 12rem;
  }
}
