/* ===== ROOT VARIABLES & BASE STYLES START ===== */
:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #c53030;
  --light: #f8fafc;
  --dark: #1a202c;
  --gray: #718096;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 13px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
}
/* ===== ROOT VARIABLES & BASE STYLES END ===== */

/* ===== PRELOADER STYLES START ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid #fff;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ===== PRELOADER STYLES END ===== */

/* ===== WHATSAPP BUTTON STYLES START ===== */
#left-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  border: 2px solid white;
}

#left-whatsapp-btn:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#left-whatsapp-btn i {
  font-size: 28px;
}

.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  width: max-content;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#left-whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  left: 65px;
}

@keyframes whatsapp-pulse-left {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
#left-whatsapp-btn:not(:hover) {
  animation: whatsapp-pulse-left 2.5s infinite;
}
/* ===== WHATSAPP BUTTON STYLES END ===== */

/* ===== SCROLL TO TOP BUTTON STYLES START ===== */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: #FFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #9b2c2c;
  transform: translateY(-5px);
}

#scrollToTopBtn i {
  font-size: 24px;
}
/* ===== SCROLL TO TOP BUTTON STYLES END ===== */

/* ===== HEADER & NAVIGATION STYLES START ===== */
.top-bar {
  background-color: var(--primary);
  color: white;
  padding: 10px 0;
  font-size: 14px;
}

.top-contact span {
  margin-right: 20px;
}

.social-icons a {
  color: white;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--primary);
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  margin: 0 10px;
  position: relative;
  padding: 5px 0;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.logo-img {
  width: 300px;
  height: auto;
}

.btn-primary {
  background-color: var(--accent);
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #9b2c2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(197, 48, 48, 0.05);
  padding-left: 1.75rem;
  transform: translateX(5px);
}

.dropdown-item i{
  color: var(--accent);
}

.btn {
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-outline-primary {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.scrollable-dropdown {
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.dropdown-header {
  font-weight: 600;
  color: #1a365d;
  font-size: 0.85rem;
  padding: 0.25rem 1.5rem;
}

.dropdown-divider {
  margin: 0.25rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-icon {
  font-size: 2rem;
  margin-right: 10px;
  color: var(--accent);
  transition: all 0.3s ease;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.8rem;
}

.logo-text span {
  color: var(--accent);
}
/* ===== HEADER & NAVIGATION STYLES END ===== */


/* ===== RESPONSIVE ADJUSTMENTS START ===== */
@media (max-width: 991.98px) {
  .logo-img {
    width: 200px;
  }
  .navbar-nav {
    margin-top: 15px;
  }
}

@media (max-width: 767.98px) {
  .logo-img {
    width: 150px;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .top-contact,
  .social-icons {
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 575.98px) {
  .logo-img {
    width: 120px;
  }
}
/* ===== RESPONSIVE ADJUSTMENTS END ===== */

/* ===== ENHANCED TOP BAR STYLES ===== */
/* ===== TOP BAR STYLES ===== */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contact {
    width: 100%;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: white;
    text-decoration: underline;
}

.contact-item i {
    color: var(--accent);
    font-size: 14px;
    min-width: 16px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .top-contact {
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .top-contact > div {
        justify-content: center !important;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 8px 0;
    }
    
    .contact-item {
        font-size: 12px;
    }
    
    .contact-item i {
        font-size: 12px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-contact {
        justify-content: center;
        gap: 15px;
    }
    
    .contact-item {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 0;
    }
    
    .top-contact {
        gap: 10px;
        font-size: 12px;
    }
    
    .contact-item i {
        font-size: 12px;
    }
}

/* ===== STATS SECTION STYLES START ===== */
.stats {
  background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.stat-item {
  margin: 20px 0;
  position: relative;
}

.stat-item::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--accent);
  opacity: 0.7;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

.stat-number.counter {
  transition: all 1s ease;
}

.stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}
/* ===== STATS SECTION STYLES END ===== */

/* ===== TESTIMONIALS SECTION STYLES START ===== */
.testimonials {
  background: white;
  padding: 100px 0;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.testimonial-card:hover .client-img {
  transform: scale(1.1);
}

.client-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .client-img img {
  transform: scale(1.1);
}
/* ===== TESTIMONIALS SECTION STYLES END ===== */

/* ===== FOOTER SECTION STYLES START ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 70px 0 0;
}

.footer-title {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 15px;
}

.footer-title:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 50px;
}
/* ===== FOOTER SECTION STYLES END ===== */

/* ===== HERO SECTION STYLES START ===== */
.publishing-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}

.publishing-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/science-pattern.png') center/cover;
  opacity: 0.1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-button:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
}
/* ===== HERO SECTION STYLES END ===== */

/* ===== FEATURES SECTION STYLES START ===== */
.bg-light {
  background-color: #f1f5f9 !important;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(197, 48, 48, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  font-size: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: white;
  transform: rotate(10deg);
}

.section-title {
  position: relative;
  margin-bottom: 60px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--accent);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.center-title {
  text-align: center;
}
/* ===== FEATURES SECTION STYLES END ===== */

/* ===== ANIMATIONS START ===== */
@keyframes fadeInElement {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInElement 0.8s ease forwards;
}
/* ===== ANIMATIONS END ===== */
