/* Critical CSS - Above the fold only */
:root {
  --primary: #06BBCC;
  --primary-rgb: 6, 187, 204;
  --light: #F0FBFC;
  --dark: #181d38;
  --dark-rgb: 24, 29, 56;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Heebo', 'Nunito', sans-serif;
  color: #333;
  line-height: 1.6;
  transition: all var(--transition-base);
  margin: 0;
  padding: 0;
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.navbar-brand .fa-book {
  margin-right: 0.75rem;
}

.text-primary {
  color: var(--primary) !important;
}

.nav-link {
  color: #333 !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Hero Section */
.home {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .owl-carousel-item {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
}

.home .owl-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.position-absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.start-0 {
  left: 0;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.text-white {
  color: #fff;
}

.display-3 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.fs-5 {
  font-size: 1.25rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.me-3 {
  margin-right: 1rem;
}

/* Buttons */
.btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all var(--transition-base);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--primary) 0%, #049ab8 100%);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #049ab8 0%, var(--primary) 100%);
}

.btn-light {
  color: var(--dark);
  background: #fff;
}

.btn-light:hover {
  transform: translateY(-2px);
  background: #f0f0f0;
}

.py-md-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-md-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

/* Container */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Row and Columns */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-sm-10 {
  flex: 0 0 83.333333%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-lg-8 {
  flex: 0 0 66.666667%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (max-width: 767px) {
  .col-sm-10 {
    flex: 0 0 100%;
  }
}

.slideInDown {
  animation: slideInDown 0.8s ease-out;
}

.slideInLeft {
  animation: slideInLeft 0.8s ease-out;
}

.slideInRight {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Theme */
.theme {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.75rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Back to Top Button */
.up {
  position: fixed;
  bottom: 20px;
  right: -60px;
  background: linear-gradient(135deg, var(--primary) 0%, #049ab8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(6, 187, 204, 0.2);
  z-index: 999;
  border: 2px solid rgba(255, 255, 255, 0.2);
  outline: none;
}

.up.show {
  right: 20px;
  animation: slideInRight 0.3s ease-out;
}

/* Dark Mode Button */
.btn-theme {
  position: fixed;
  bottom: 75px;
  right: -60px;
  background: linear-gradient(135deg, var(--primary) 0%, #049ab8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(6, 187, 204, 0.2);
  z-index: 998;
  border: 2px solid rgba(255, 255, 255, 0.2);
  outline: none;
}

.btn-theme:hover {
  transform: translateY(-4px) scale(1.1) rotate(20deg);
  box-shadow: 0 15px 40px rgba(6, 187, 204, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #049ab8 0%, var(--primary) 100%);
}

.btn-theme.show {
  right: 20px;
  animation: slideInRight 0.3s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2rem;
  }
  
  .col-sm-10 {
    flex: 0 0 100%;
  }
  
  .py-md-3 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .px-md-5 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .up {
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .up.show {
    right: 15px;
  }
  
  .btn-theme {
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .btn-theme.show {
    right: 15px;
  }
}
