/* ============================================
   GALAXY BOOKS - MAIN STYLESHEET
   Color System:
   - Primary: #0B3C5D (Deep Blue)
   - Secondary: #000000 (Black)
   - Accent: #FFD700 (Bright Yellow)
   - Support: #4FC3F7 (Light Blue)
   - Neutral: #FFFFFF (White)
   ============================================ */

:root {
  --primary-color: #0B3C5D;
  --secondary-color: #000000;
  --accent-color: #FFD700;
  --support-color: #4FC3F7;
  --neutral-color: #FFFFFF;
  --dark-gray: #1a1a1a;
  --light-gray: #f5f5f5;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --transition-smooth: 0.5s;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--neutral-color);
  overflow-x: hidden;
}

/* ============================================
   PRELOADER STYLES
   ============================================ */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  animation: spinLogo 3s linear infinite;
}

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

.preloader-text {
  color: var(--accent-color);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--accent-color);
}

.text-primary {
  color: var(--primary-color);
}

.text-support {
  color: var(--support-color);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
  background: var(--neutral-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  color: var(--primary-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

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

.nav-link.active {
  color: var(--accent-color) !important;
}

.nav-link.active::after {
  width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary-custom {
  background: var(--accent-color);
  color: var(--secondary-color);
  border: 2px solid var(--accent-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary-custom:hover {
  background: var(--secondary-color);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.btn-secondary-custom {
  background: var(--primary-color);
  color: var(--neutral-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary-custom:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(11, 60, 93, 0.3);
}

.btn-outline-custom {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-size: 1rem;
}

.btn-outline-custom:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--neutral-color);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: rgba(79, 195, 247, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--neutral-color);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: slideInDown 0.8s ease-out;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   CARDS
   ============================================ */

.card-custom {
  background: var(--neutral-color);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-custom-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--support-color) 100%);
  color: var(--neutral-color);
  padding: 2rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-custom-header i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.card-custom-body {
  padding: 2rem;
}

.card-custom-body h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-custom-body p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 80px 0;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 1rem auto 0;
}

.section-light {
  background: var(--light-gray);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--neutral-color);
}

.section-dark h2 {
  color: var(--neutral-color);
}

.section-dark h3 {
  color: var(--accent-color);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  background: var(--neutral-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  transition: all var(--transition-speed) ease;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: #666;
  font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--secondary-color);
  color: var(--neutral-color);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

footer a:hover {
  color: var(--support-color);
  text-decoration: underline;
}

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

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

.footer-links a {
  display: inline-block;
  transition: transform var(--transition-speed) ease;
}

.footer-links a:hover {
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: var(--support-color);
  transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS (AOS-like)
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  padding: 12px 15px;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   HERO SHAPE ANIMATION
   ============================================ */

.hero-shape-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shape-container::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.15) 0%, rgba(11, 60, 93, 0.1) 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobFloat 8s ease-in-out infinite;
  z-index: 1;
}

.hero-shape-container::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: linear-gradient(45deg, rgba(255, 215, 0, 0.08) 0%, rgba(79, 195, 247, 0.08) 100%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  animation: blobFloat 10s ease-in-out infinite reverse;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  z-index: 3;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(11, 60, 93, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: imageFloat 6s ease-in-out infinite;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-accent-circle-1 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateAccent 20s linear infinite;
  z-index: 2;
}

.hero-accent-circle-2 {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 2px solid rgba(79, 195, 247, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateAccent 30s linear infinite reverse;
  z-index: 2;
}

@keyframes imageFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.02);
  }
}

@keyframes rotateAccent {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -60%) scale(1.05);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 60px 0;
  }

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary-custom,
  .hero-buttons .btn-secondary-custom {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .navbar-brand img {
    height: 40px;
  }

  .nav-link {
    margin: 0.5rem 0;
  }

  footer {
    padding: 2rem 0 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

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

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

  .btn-primary-custom,
  .btn-secondary-custom,
  .btn-outline-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .card-custom-header {
    min-height: 120px;
    padding: 1.5rem;
  }

  .card-custom-body {
    padding: 1.5rem;
  }

  .feature-item {
    padding: 1.5rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.mt-5 {
  margin-top: 3rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.py-5 {
  padding: 3rem 0;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.gap-3 {
  gap: 1rem;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

#scrollToTop:hover {
  background: var(--primary-color);
  color: var(--accent-color);
  transform: translateY(-5px);
}

#scrollToTop.show {
  display: flex;
}

@media (max-width: 576px) {
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}
