/* Add this to your existing CSS */
.navbar-logo {
    height: 45px; /* Adjust as needed */
    width: auto;
    border-radius: 50%; /* Makes it circular, remove if you want square */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: rotate(15deg); /* Fun hover effect */
}

/* Adjust navbar brand alignment */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Navbar styles */
nav {
  width: 100%;
  background: rgba(0,0,0,0.7);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}
nav ul li {
  margin: 0 20px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2em;
  padding: 15px 0;
  display: block;
}
section {
  margin-top: 80px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
#contact {
  margin-top: 120px;
}
/* background video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none; /* So it doesn't block clicks */
  }
/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('pics/background.jpg') no-repeat center center; */
    /* background-size: cover; */
    padding-top: 80px;
}

.profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
}

/* Skills Section */
.skill-card {
    transition: transform 0.3s;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Progress Bar */
.progress {
    height: 10px;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 99;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .hero-section {
        padding-top: 60px;
    }
}

/* sword cursor */
body {
    cursor: url('pics/sword_cursor.png') 5 28, auto;
  }

#support-robin {
  z-index: 1100;
}

.support-img {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: auto;
  height: 64px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s, bottom 0.3s;
  background: none;
  padding: 0;
}
.support-img-above-top {
  bottom: 90px !important;
}
.support-img:hover {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

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

#about .container {
  max-width: 700px;
  padding: 24px 24px 16px 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.social-links a .fa-linkedin-in {
  color: #0077b5;
}
.social-links a .fa-github {
  color: #333;
}
.social-links a .fa-instagram {
  color: #e4405f;
}
.social-links a i {
  transition: transform 0.2s, filter 0.2s;
}
.social-links a:hover i {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.profile-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.carousel-card {
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.center-card {
  z-index: 2;
  transform: scale(1.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  opacity: 1;
}
.left-card, .right-card {
  z-index: 1;
  transform: scale(0.92);
  opacity: 0.7;
}
.card-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  background: #eee;
}
.center-card .card-img {
  width: 160px;
  height: 160px;
}
/* Make carousel arrows blue */
.carousel-arrow {
  color: var(--primary-color) !important;
  /* Remove background and other styles remain */
  background: none;
  border: none;
  outline: none;
  box-shadow: none !important;
  text-decoration: none !important;
}
.carousel-arrow:hover {
  color: var(--primary-color) !important;
  background: none;
  box-shadow: none !important;
  text-decoration: none !important;
}

#centerProfileImg {
  width: 220px;
  height: 220px;
  object-fit: cover;
}

.profile-carousel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}
.profile-carousel-row .carousel-card {
  align-self: center;
  transform: translateY(-120px);
}
.profile-carousel-row .hero-section {
  align-self: center;
}
.profile-carousel-row .carousel-arrow {
  transform: translateY(-120px);
}

#home.hero-section {
  margin-bottom: 50px;
}
#about {
  margin-top: 0px;
}

/* --- Responsive Fixes for Mobile Carousel and Background Video --- */
@media (max-width: 768px) {
  /* Background video: fill screen, crop if needed (like desktop) */
  .bg-video {
    object-fit: cover !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    left: 0;
    top: 0;
    background: #000;
  }

  /* Carousel: keep horizontal row, just scale down sizes */
  .profile-carousel-row {
    flex-direction: row !important;
    gap: 0.08rem; /* Reduce space between images */
    margin-bottom: 1rem;
    align-items: center !important;
  }
  .profile-carousel-row .carousel-card,
  .carousel-card {
    min-width: 60px;
    min-height: 60px;
    max-width: 70px;
    max-height: 70px;
    margin: 0 !important; /* Remove extra margin */
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  }
  .card-img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px;
  }
  .center-card .card-img,
  #centerProfileImg {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  }
  .profile-carousel-row .carousel-arrow {
    transform: translateY(-120px) !important;
    margin: 0 0.08rem !important;
    font-size: 1.2rem !important;
    align-self: center !important;
    display: flex;
    align-items: center;
    height: 60px;
    line-height: 60px;
    color: var(--primary-color) !important;
  }
  .hero-section,
  section,
  .container,
  .resume-container,
  .contact-glass {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }
  /* Prevent double padding for nested containers */
  .container > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  #academics > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }
  section {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

/* Remove blue underline from section-title on mobile */
@media (max-width: 768px) {
  .section-title::after {
    background-color: transparent !important;
  }
}

@media (max-width: 768px) {
  .container,
  .resume-container,
  .contact-glass,
  #academics > .container,
  #about .container,
  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }
  .container > .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 768px) {
  section,
  .resume-container,
  .contact-glass,
  #academics > .container,
  #about .container {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

@media (max-width: 768px) {
  .profile-carousel-row {
    gap: 0.01rem !important;
    margin-bottom: 0.5rem !important;
  }
  .profile-carousel-row .carousel-card,
  .carousel-card {
    margin: 0 1px !important;
  }
}

@media (max-width: 768px) {
  .profile-carousel-row {
    gap: 0 !important;
    margin-bottom: 0.3rem !important;
  }
  .profile-carousel-row .carousel-card,
  .carousel-card {
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  .profile-carousel-row {
    gap: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  .profile-carousel-row .carousel-card,
  .carousel-card,
  .center-card,
  .left-card,
  .right-card {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .profile-carousel-row > * {
    margin: 0 !important;
    padding: 0 !important;
  }
  .carousel-arrow.left-arrow,
  .carousel-arrow.right-arrow {
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 768px) {
  .profile-carousel-row .carousel-card,
  .carousel-card {
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 90px !important;
    max-height: 90px !important;
  }
  .card-img {
    width: 80px !important;
    height: 80px !important;
  }
  .center-card .card-img,
  #centerProfileImg {
    width: 120px !important;
    height: 120px !important;
  }
}

#muteBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#muteBtn:hover {
  background: rgba(13,110,253,0.9);
  transform: scale(1.08);
}