@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap");

:root {
  --primary-color: #0a9396; /* Teal color similar to the reference site */
  --secondary-color: #005f73;
  --accent-color: #ee1d23; /* Red accent */
  --background-color: #f4f4f4;
  --text-color: #333;
  --card-bg-color: #fff;
  --header-bg-color: #0a9396;
  --footer-bg-color: #005f73;
  --border-color: #e0e0e0;
  --text-muted: #6c757d;
  --timer-bg-color: #003844;
  --category-bg: #f8f9fa;
  --category-hover: #e9ecef;
}

.dark-mode {
  --primary-color: #0a9396;
  --secondary-color: #005f73;
  --accent-color: #ee1d23;
  --background-color: #1a1a1a;
  --text-color: #f4f4f4;
  --card-bg-color: #2c3e50;
  --header-bg-color: #005f73;
  --footer-bg-color: #003844;
  --border-color: #444;
  --text-muted: #adb5bd;
  --timer-bg-color: #001e29;
  --category-bg: #2c3e50;
  --category-hover: #34495e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  padding-top: 0 !important; /* Adjusted for timer bar + navbar */
  direction: rtl;
}
[dir="rtl"] .navbar-nav {
  flex-direction: row-reverse !important;
  margin-right: 0 !important;
  margin-left: auto !important;
}
[dir="ltr"] .navbar-nav {
  flex-direction: row !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

/* Navbar Direction Fixes */
[dir="rtl"] .navbar .navbar-collapse {
  justify-content: flex-start !important;
}
[dir="ltr"] .navbar .navbar-collapse {
  justify-content: flex-start !important;
}
[dir="rtl"] .navbar .d-flex {
  flex-direction: row-reverse;
}
[dir="ltr"] .navbar .d-flex {
  flex-direction: row;
}
[dir="ltr"] .navbar-nav {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row;
}
[dir="rtl"] .navbar-nav {
  margin-right: 0;
  margin-left: auto;
  flex-direction: row-reverse;
}

/* Language switcher active state */
.language-switcher .active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  font-weight: bold;
}

/* Timer Bar Styles - Update to be fixed */
.timer-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--timer-bg-color);
  color: white;
  z-index: 1100;
  padding: 8px 0;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-display,
.time-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-display i,
.time-display i {
  color: var(--accent-color);
}

#current-time {
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Enhanced Navbar Styles */
.navbar {
  background-color: var(--header-bg-color) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 147, 150, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
}

.nav-link:hover {
  color: #f8f9fa !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: #fff !important;
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* Adjust navbar position to account for timer bar */
.navbar {
  top: 39px !important;
}

.hero-section {
  background: linear-gradient(rgba(0, 95, 115, 0.8), rgba(0, 95, 115, 0.8)), url("hero-background.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  margin-bottom: 30px;
  margin-top: 0; /* Remove any top margin as body padding handles this */
}

.section-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 10px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
}

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

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

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  right: 50%;
  margin-right: -1px;
}

.timeline > li {
  position: relative;
  margin-bottom: 50px;
}

.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}

.timeline > li:after {
  clear: both;
}

.timeline > li > .timeline-panel {
  width: 46%;
  float: right;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 20px;
  position: relative;
  background: var(--card-bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline > li > .timeline-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 16px;
  right: 50%;
  margin-right: -25px;
  background-color: var(--accent-color);
  z-index: 100;
  border-radius: 50%;
}

.timeline > li.timeline-inverted > .timeline-panel {
  float: left;
}

.timeline-heading h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.timeline-body > p,
.timeline-body > ul {
  margin-bottom: 0;
}

footer {
  background-color: var(--footer-bg-color);
  color: #fff;
  padding: 20px 0;
}

/* Visitor Counter Styles */
.visitor-counter {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 15px;
  margin-top: 20px;
}

.counter-item {
  text-align: center;
  padding: 10px;
}

.counter-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
}

.counter-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 5px;
}

#darkModeToggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#darkModeToggle:hover {
  background-color: var(--secondary-color);
}

/* Scroll to Top Button */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.section-light {
  background-color: var(--background-color);
  padding: 40px 0;
}

.section-dark {
  background-color: rgba(0, 95, 115, 0.05);
  color: var(--text-color);
  padding: 40px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: var(--primary-color);
  transition: color 0.3s;
}

.social-link:hover {
  color: var(--accent-color);
}

.video-gallery {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 576px) {
  .video-gallery {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .video-gallery {
    column-count: 3;
  }
}

.video-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background-color: var(--card-bg-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out;
  border: 1px solid var(--border-color);
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.video-date,
.video-channel {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sidebar {
  margin-bottom: 30px;
}

.sidebar-title {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  margin: 0;
  font-size: 1.2rem;
  border-radius: 5px 5px 0 0;
}

.sidebar-content {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-top: none;
  padding: 15px;
  border-radius: 0 0 5px 5px;
}

.sidebar-link {
  display: block;
  padding: 8px 0;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  transition: color 0.3s;
}

.sidebar-link:last-child {
  border-bottom: none;
}

.sidebar-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Carousel Styles */
.carousel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.carousel-item img {
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  padding: 15px;
  bottom: 20px;
}

.carousel-caption h3 {
  font-weight: bold;
  margin-bottom: 10px;
}

/* Enhanced Carousel Animation */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
  transform: scale(1);
}

.carousel-item.animate__fadeIn {
  animation-duration: 0.5s;
}

.carousel-item.animate__fadeOut {
  animation-duration: 0.5s;
}

.news-item {
  display: flex;
  margin-bottom: 20px;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.news-image {
  flex: 0 0 120px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  padding: 15px;
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Content Categories (inspired by nawfalaburgeif.com) */
.content-categories {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

@media (min-width: 576px) {
  .content-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .content-categories {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  background-color: var(--category-bg);
  border-radius: 5px;
  padding: 15px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-card:hover {
  background-color: var(--category-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-title {
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.category-count {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Responsive fixes */
@media (max-width: 767px) {
  .timer-content {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  body {
    padding-top: 140px; /* Adjusted for stacked timer elements + navbar on mobile */
  }

  .navbar {
    top: 60px !important; /* Adjusted for stacked timer elements on mobile */
  }

  .carousel-item img {
    height: 250px;
  }

  .carousel-caption {
    position: relative;
    background-color: var(--primary-color);
    border-radius: 0;
    display: block !important;
  }

  .timeline:before {
    right: 40px;
  }

  .timeline > li > .timeline-panel {
    width: calc(100% - 90px);
    float: left;
  }

  .timeline > li > .timeline-badge {
    right: 15px;
    margin-right: 0;
    top: 16px;
  }

  .timeline > li.timeline-inverted > .timeline-panel {
    float: left;
  }

  #scrollToTopBtn,
  #darkModeToggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  #scrollToTopBtn {
    bottom: 70px;
  }

  .news-item {
    flex-direction: column;
  }

  .news-image {
    flex: 0 0 auto;
    height: 180px;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .counter-item {
    margin-bottom: 15px;
  }
}

/* New Archive Section */
.archive-list {
  list-style: none;
  padding: 0;
}

.archive-item {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s;
}

.archive-item:hover {
  background-color: var(--category-hover);
}

.archive-item a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
}

.archive-item a:hover {
  color: var(--primary-color);
}

/* Publications Grid */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 576px) {
  .publications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .publications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.publication-card {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.publication-image {
  height: 200px;
  overflow: hidden;
}

.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.publication-card:hover .publication-image img {
  transform: scale(1.05);
}

.publication-content {
  padding: 15px;
}

.publication-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.publication-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.publication-excerpt {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Content Page */
.content-page {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.content-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.content-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.content-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-body p {
  margin-bottom: 20px;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.content-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-whatsapp {
  background-color: #25d366;
}

/* New styles for publications page */
.publication-filters {
  text-align: center;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  margin: 0 5px 10px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.publication-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Content Quote */
.content-quote {
  background-color: rgba(10, 147, 150, 0.1);
  border-right: 4px solid var(--primary-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 5px 5px 0;
}

.content-quote blockquote {
  margin: 0;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Breadcrumbs */
.breadcrumbs-container {
  background-color: rgba(0, 95, 115, 0.05);
  padding: 10px 0;
  margin-bottom: 20px;
  margin-top: 0; /* Remove any top margin as body padding handles this */
}

.breadcrumb {
  margin-bottom: 0;
  background-color: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: var(--text-muted);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 5px;
  margin-left: 15px;
}

.language-switcher button {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.language-switcher button.active {
  background-color: white;
  color: var(--primary-color);
}

/* Search Modal */
.modal-content {
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.modal-header {
  border-bottom-color: var(--border-color);
}

.modal-footer {
  border-top-color: var(--border-color);
}

/* Gallery */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
}

@media (min-width: 576px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Gallery Modal */
.gallery-modal .modal-dialog {
  max-width: 800px;
}

.gallery-modal .modal-content {
  background-color: transparent;
  border: none;
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-modal img {
  width: 100%;
  border-radius: 5px;
}

.gallery-modal .modal-footer {
  background-color: rgba(0, 0, 0, 0.7);
  border-top: none;
  border-radius: 0 0 5px 5px;
  color: white;
}

.gallery-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 1050;
}

.gallery-nav-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.3s;
}

.gallery-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
  animation: slideUp 0.5s ease-in-out;
}

.slide-down {
  animation: slideDown 0.5s ease-in-out;
}

.slide-left {
  animation: slideLeft 0.5s ease-in-out;
}

.slide-right {
  animation: slideRight 0.5s ease-in-out;
}

.zoom-in {
  animation: zoomIn 0.5s ease-in-out;
}

.bounce {
  animation: bounce 0.5s ease-in-out;
}

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

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

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

@keyframes slideLeft {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* Subscription form */
.subscription-form {
  background-color: var(--card-bg-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Search results */
.search-results {
  margin-top: 30px;
}

.search-result-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.search-result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-result-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.search-result-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.search-result-excerpt {
  margin-bottom: 10px;
}

.search-highlight {
  background-color: rgba(238, 29, 35, 0.2);
  padding: 0 2px;
}

/* Language skills */
.language-skill {
  margin-bottom: 15px;
}

.language-skill .progress {
  height: 8px;
  border-radius: 4px;
  background-color: var(--border-color);
}

.language-skill .progress-bar {
  background-color: var(--primary-color);
}

/* Interest items */
.interest-item {
  text-align: center;
  padding: 20px;
  background-color: var(--card-bg-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
}

.interest-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.interest-icon {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Quote section */
.quote-section {
  background-color: rgba(10, 147, 150, 0.05);
}

.blockquote {
  font-size: 1.25rem;
  font-style: italic;
}

.blockquote-footer {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Profile section */
.profile-section {
  margin-bottom: 40px;
}

.profile-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.profile-bio {
  background-color: var(--card-bg-color);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Personal info */
.personal-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.personal-info li i {
  width: 20px;
  margin-left: 10px;
}

/* Social links vertical */
.social-links-vertical a {
  display: block;
  padding: 8px 0;
  color: var(--text-color);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}

.social-links-vertical a:last-child {
  border-bottom: none;
}

.social-links-vertical a:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

/* Download CV button */
.download-cv {
  transition: all 0.3s ease;
}

.download-cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Banner Styles */
.main-banner {
  position: relative;
  margin-top: 120px; /* Adjust based on navbar height */
}

.banner-image {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 95, 115, 0.6), rgba(0, 95, 115, 0.4));
}

.banner-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 60px 0;
  text-align: center;
}

/* Remove original hero-section styles */
.hero-section {
  display: none;
}

/* Adjust body padding */
body {
  padding-top: 180px; /* Increase for banner height */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .banner-image {
      height: 60vh;
  }
  
  .banner-content {
      padding: 30px 0;
  }
  
  .banner-content h1 {
      font-size: 2rem;
  }
  
  body {
      padding-top: 160px;
  }
}

@media (max-width: 576px) {
  .banner-image {
      height: 50vh;
  }
  
  .banner-content p {
      font-size: 1rem;
  }
}
