/* Contact Section Styles */
.contact-section {
  margin-top: 48px;
  margin-bottom: 32px;
}
.contact-title {
  font-size: 1.7em;
  font-family: 'sequel';
  margin-bottom: 8px;
}
.contact-subtext {
  font-size: 16px;
  color: #000;
  margin-bottom: 18px;
}
.contact-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.contact-option {
  background: #eaf2ff;
  color: #000;
  border-radius: 12px;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08em;
  /*box-shadow: 0 2px 8px rgba(26,76,163,0.08);*/
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s;
}
.contact-option:hover {
  background: #c7dbf7;
  color: #000;
}
/* Highlight badge for featured projects */
.project-badge {
  display: inline-flex;
  align-items: center;
  background: #ffe066;
  color: #b8860b;
  font-family: 'sequel';
  font-weight: 700;
  font-size: 12px;
  border-radius: 12px;
  padding: 4px 8px 4px 8px;
  box-shadow: 0 1px 4px rgba(26,76,163,0.08);
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  z-index: 2;
}
.project-card {
  position: relative;
}
/* Projects Section Styles */
.projects-section {
  margin-top: 40px;
}

.projects-carousel {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  padding: 20px 0;
  scrollbar-width: thin;
}

.project-card {
  min-width: 280px;
  background: #eaf2ff;
  border-radius: 16px;
  /*box-shadow: 0 2px 8px rgba(26,76,163,0.08);*/
  text-decoration: none;
  color: #000000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.project-card-img-full {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.project-card-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.project-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card-title {
  font-family: 'sequel';
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 14px;
  text-align: left;
}
@font-face {
    font-family: "Circular";
    font-weight: 400;
    src: url('../assets/CircularStd-Book.woff');
}
@font-face {
    font-family: "Circular";
    font-weight: 500;
    src: url('../assets/CircularStd-Medium.woff');
}
@font-face {
    font-family: "Circular";
    font-weight: 600;
    src: url('../assets/CircularStd-Bold.woff');
}
@font-face {
    font-family: Sequel;
    src: url('../assets/sequel/Sequel100Black-55.ttf');
}
@font-face {
    font-family: Sequel;
    src: url('../assets/sequel/Sequel100Black-75.ttf');
    font-weight: 800;
}
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
}
body {
    font-family: "Circular";
    font-weight: 500;
    color: #000;
    overflow-x: hidden;
}
.overlay {
  height: 0%;
  width: 100%;
  position: fixed;
  z-index: 1000000;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-y: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 32%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 28px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

.overlay .navClose {
  position: absolute;
  top: -8px;
  right: calc(1.5rem* 0.5);
  font-size: 36px;
}

.navbar .hamburger {
  cursor: pointer;
  font-size: 26px;
  margin-right: 6px;
  color: #c4c4c4;
}

.navbar .container {
  padding-top: 5px;
  padding-bottom: 5px;
}

@media only screen and (min-width: 768px) {
  .navbar .hamburger {
    display: none;
  }
}


@media screen and (max-height: 450px) {
  .overlay {overflow-y: auto;}
  .overlay a {font-size: 20px}
  .overlay .navClose {
      font-size: 40px;
      top: 15px;
      right: 35px;
  }
}
.navbar {
    font-family: "Circular";
    background-size: cover;
    font-size: 1rem;
}
.navbar .container .navbar-brand {
    color: #c4c4c4!important;
    font-family: 'Sequel';
}
/* Navbar links styling matching brand tone */
.navbar .nav-link {
    color: #c4c4c4!important;
    font-family: 'Circular';
    font-size: 1rem;
}
.navbar .nav-link:hover {
    color: #ffffff!important;
}
.navbar-nav .nav-link {
    padding-left: 12px;
    padding-right: 12px;
}
/* Toggler aesthetics on dark navbar */
.navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.35);
}
/* Use default .navbar-dark icon; keep as-is for design language */
.hero {
    color: #c4c4c4;
    height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-image: url('../assets/gradient.png') ;
    background-size: cover;
    font-family: "sequel";
    font-size: 2em;
    padding-left: 10%;
    padding-right: 10%;
}
#chevronDown {
    margin-bottom: 20px;
    margin-left: -15px;
}
.autobiography {
    margin-top: 25px;
}
#row2Mobile ul {
    padding-left: 1.5rem;
}
.title {
    font-size: 1.7em;
    font-family: 'sequel';
}
.rowImage {
    width: 100%;
    border-radius: 20px;
    height: 230px;
    object-fit: cover;
    margin-top: 15px;
}
#row2Desktop {
    display: flex;
    margin-top: 20px;
}
#row2Mobile {
    display: none;
    margin-top: 20px;
}
#row2Content {
    margin-top: 10px;
}

@media only screen and (max-width: 1400px) {
    .rowImage {
        height: 270px;
    }
    #row2Image {
        height: 350px;
    }
}
@media only screen and (max-width: 1200px) {
    .rowImage {
        height: 314px;
    }
    #row2Image {
        height: 425px;
    }
}
@media only screen and (max-width: 992px) {
    .rowImage {
        height: 433px;
    }
    #row2Image {
        height: 480px;
    }
}
@media only screen and (max-width: 768px) {
    .rowImage, #row2Image {
        height: 315px;
    }
    #row2Desktop {
        display: none!important;
    }
    #row2Mobile {
        display: flex!important;
    }
}
@media only screen and (min-width: 1400px) {
    #row2Image {
        height: 350px!important;
    }
}

.achievments {
    margin-top: 30px;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}
.achievment {
    background-image: url('../assets/gradient.png');
    border-radius: 20px;
    color: #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 10px 20px;
    width: 49%;
    margin-bottom: 10px;
}
@media only screen and (max-width: 768px) {
    .achievment {
        width: 96%;
    }
}
.achInfo {
    display: flex;
    flex-direction: column;
}
.achTitle {
    font-size: 24px;
    margin-top: -3px;
    display: flex;
    align-items: center;
}
.achievment .ac {
    font-size: 1.8em;
    margin-left: 10px;
}
.info {
    font-size: 0.5em;
    margin-left: 10px;
}
.popover {
    border-radius: 15px;
    font-family: "Circular";
}
.footer {
    background-color: #2e2e2e;
    margin-top: 15px;
    color: #c4c4c4;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    align-items: center;
    width: 100%;
    justify-content: center;
}
.footer p {
  font-size: 8px;
  margin-top: 10px;
}
.footerTitle {
    font-family: 'sequel';
}
.contact a {
    color: #c4c4c4;
}
.expand {
    font-size: 1.2em;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.achievmentsCollapsed {
   display: block;
}
.achievmentsExpanded {
    display: none;
}

#language {
    position: fixed;
    font-size:28px;
    bottom: 15px;
    right: 20px;
    text-decoration: none;
    z-index:999;
    background-color: #1C3458;
    width: 50px;
    height: 50px;
    border-radius: 25%;
    display: none;
    justify-content: center;
    align-items: center;
}

#language a {
    text-decoration: none;
}

.buptime {
    position: fixed;
    left: 15px;
    bottom: 5px;
    z-index:1000;
}

.rise {
    display: flex;
    align-items: center;
    margin-top: 32px;
    justify-content: center;
}


.rise a {
    display: flex;
    align-items: center;
    color: black;
}

.rise img {
    height: 51px;
    margin-right: 11px;
}

.rise p {
    font-size: 21px;
    margin-bottom: 0;
    font-family: 'sequel';
}

.achievments .title {
    margin-bottom: 10px;
}

.footer p {
    margin-top: 4px;
    margin-bottom: 0;
    text-align: center;
}

/* Contact section: two-column layout for desktop, stacked on mobile */
.contact-section {
  margin-top: 30px;
  margin-bottom: 32px;
}
.contact-illustration {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 20px;
}
.contact-socials {
  margin-top: 12px;
  color: #000;
  font-size: 16px;
}
.socials-link {
  color: #000;
  font-weight: 700;
}
.socials-link:hover {
  text-decoration: underline;
}
.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}
.contact-row {
  display: flex;
  flex-direction: row;
}

@media only screen and (max-width: 768px) {
  .contact-row {
    flex-direction: column;
    gap: 16px;
  }
  .contact-right {
    width: 100%;
    justify-content: center;
  }
  .contact-illustration {
    max-height: 360px;
    width: 100%;
  }
  .contact-options {
    justify-content: flex-start;
  }
  .contact-socials {
    text-align: left;
  }
}

/* Blog styles */
.blog-hero {
  color: #c4c4c4;
  width: 100%;
  display: flex;
  align-items: center;
  background-image: url('../assets/gradient.png');
  background-size: cover;
  padding: 120px 0 48px 0;
  margin-bottom: 12px;
}
.blog-title {
  font-family: 'sequel';
  font-size: 2em;
}
.blog-subtitle {
  margin-top: 6px;
}
/* Post page hero (smaller than full viewport) */
.post-hero {
  color: #c4c4c4;
  width: 100%;
  background-image: url('../assets/gradient.png');
  background-size: cover;
  padding: 80px 0 32px 0; /* account for fixed navbar */
  margin-bottom: 12px;
}
.post-hero h1 {
  font-family: 'sequel';
  margin: 0 0 6px 0;
}
.post-hero .post-meta {
  color: #c4c4c4; /* match title gray */
  font-size: 14px;
}
.post-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 12px;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 48px 0;
}
.blog-card {
  background: #eaf2ff;
  border-radius: 16px;
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
}
.blog-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.blog-card-body {
  padding: 16px;
}
.blog-card-title { font-family: 'sequel'; font-size: 18px; margin-bottom: 6px; }
.blog-card-meta { font-size: 12px; color: #333; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 14px; }
.empty-state { color: #666; padding: 16px; }

.post-container { margin-top: 25px; }
.post-header { margin-bottom: 16px; }
.post-image { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; }
.post-content img { max-width: 100%; border-radius: 10px; }
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 12px; overflow: auto; }
.post-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }
.post-content h1, .post-content h2, .post-content h3 { font-family: 'sequel'; margin-top: 18px; }

.admin-container { margin-top: 80px; }

/* Post extras */
.read-time { margin-left: 10px; opacity: 0.9; }
.share-section { margin-top: 20px; border-top: 1px solid #eee; padding-top: 14px; }
.share-title { font-family: 'sequel'; margin-bottom: 8px; }
.share-icons { display:flex; gap: 12px; }
.share-icons .share { color: #000; background: #eaf2ff; border: none; border-radius: 10px; padding: 10px 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.share-icons .share:hover { background: #c7dbf7; }

/* Image carousel in blog posts */
.image-carousel {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: #c7dbf7 #f1f5f9;
  /* Force horizontal layout */
  flex-wrap: nowrap;
  align-items: flex-start;
  /* Ensure smooth scrolling */
  scroll-behavior: smooth;
  /* Prevent vertical overflow */
  overflow-y: hidden;
  /* Add some padding for better visual appearance */
  padding-left: 4px;
  padding-right: 4px;
}
.image-carousel img {
  flex-shrink: 0; /* Prevent images from shrinking */
  max-width: 380px;
  min-width: 250px; /* Ensure minimum width for consistent layout */
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  /* Remove margin-right as we're using gap */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}
.image-carousel img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.image-carousel::-webkit-scrollbar {
  height: 8px;
}
.image-carousel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.image-carousel::-webkit-scrollbar-thumb {
  background: #c7dbf7;
  border-radius: 4px;
}
.image-carousel::-webkit-scrollbar-thumb:hover {
  background: #a8c7f0;
}

/* Add visual indicator that carousel is scrollable */


/* Ensure carousel container has relative positioning for the after pseudo-element */
.image-carousel {
  position: relative;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .image-carousel {
    gap: 8px;
    padding: 12px 0;
    /* Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .image-carousel img {
    max-width: 250px;
    min-width: 200px;
    height: 150px;
    /* Add scroll snapping for better mobile experience */
    scroll-snap-align: start;
  }
}

/* Add scroll snap for better UX on all devices */
.image-carousel {
  scroll-snap-type: x proximity;
}

.image-carousel img {
  scroll-snap-align: start;
}

/* Ensure images don't get cut off on small screens */
@media (max-width: 480px) {
  .image-carousel img {
    max-width: 300px;
    min-width: 180px;
    height: 220px;
  }
}

/* Video carousel styles */
.video-carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding: 16px 0;
  scrollbar-width: thin;
  scrollbar-color: #c7dbf7 #f1f5f9;
  /* Force horizontal layout */
  flex-wrap: nowrap;
  align-items: flex-start;
  /* Ensure smooth scrolling */
  scroll-behavior: smooth;
  /* Prevent vertical overflow */
  overflow-y: hidden;
  /* Add some padding for better visual appearance */
  padding-left: 4px;
  padding-right: 4px;
  /* Ensure carousel container has relative positioning */
  position: relative;
}

.video-carousel video {
  flex-shrink: 0; /* Prevent videos from shrinking */
  max-width: 400px;
  min-width: 300px; /* Ensure minimum width for consistent layout */
  height: auto; /* Maintain aspect ratio */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* make sure the video is clickable even if something else is nearby */
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.video-carousel video:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-carousel::-webkit-scrollbar {
  height: 8px;
}

.video-carousel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.video-carousel::-webkit-scrollbar-thumb {
  background: #c7dbf7;
  border-radius: 4px;
}

.video-carousel::-webkit-scrollbar-thumb:hover {
  background: #a8c7f0;
}

/* Add visual indicator that video carousel is scrollable */
.video-carousel::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-carousel:hover::after {
  opacity: 1;
}

/* Video carousel mobile optimizations */
@media (max-width: 768px) {
  .video-carousel {
    gap: 12px;
    padding: 12px 0;
    /* Improve touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .video-carousel video {
    max-width: 280px;
    min-width: 250px;
    /* Add scroll snapping for better mobile experience */
    scroll-snap-align: start;
  }
}

/* Video carousel scroll snap for better UX on all devices */
.video-carousel {
  scroll-snap-type: x proximity;
}

.video-carousel video {
  scroll-snap-align: start;
}

/* Ensure videos don't get cut off on small screens */
@media (max-width: 480px) {
  .video-carousel video {
    max-width: 240px;
    min-width: 220px;
  }
}

/* General video styles for blog posts */
.post-content video {
  max-height: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 16px 0;
  transition: box-shadow 0.2s ease;
  /* make sure the video is on top and receives clicks */
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.post-content video:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Video fallback message styling */
.post-content video p {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  margin: 8px 0;
  text-align: center;
  color: #6c757d;
}

.post-content video a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.post-content video a:hover {
  text-decoration: underline;
}

/* Admin page specific styles */
.media-uploader {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}
.carousel-generator {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}
.form-text {
  color: #6c757d;
  font-size: 0.875em;
  margin-top: 0.25rem;
}
.btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-success {
  background-color: #198754;
  border-color: #198754;
}
.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}
.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
}
.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}
.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}
.btn-outline-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}
.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #5a6268;
}
.btn-dark {
  background-color: #212529;
  border-color: #212529;
}
.btn-dark:hover {
  background-color: #1a1d20;
  border-color: #1a1d20;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 6px;
}
.form-control {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}
.h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}
hr {
  border: 0;
  height: 1px;
  background: #dee2e6;
  margin: 2rem 0;
}
section {
  margin-bottom: 2rem;
}
