body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

/* Color Scheme */
:root {
  --deep-purple: #4a148c;
  --deep-purple-dark: #311b92;
  --deep-purple-light: #6a1b9a;
  --purple-glow: rgba(74, 20, 140, 0.3);
}

/* Navigation */
.navbar.bg-primary {
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--deep-purple-light) 100%);
  box-shadow: 0 4px 15px rgba(74, 20, 140, 0.4);
}

nav.navbar.sticky-top {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 1);
}

.navbar-home-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(18, 18, 18, 0.58);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.navbar-home-overlay .container {
  max-width: 1140px;
}

@media (max-width: 991.98px) {
  .navbar-home-overlay .navbar-collapse {
    background: rgba(18, 18, 18, 0.9);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
}

.navbar-nav .nav-link {
  transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
  border-bottom: 2px solid #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.navbar-nav .nav-link:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

@media (max-width: 575.98px) {
  .navbar-logo {
    height: 30px;
  }
}

.language-switcher-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.75) 0%, rgba(49, 27, 146, 0.75) 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.language-switcher-btn:hover,
.language-switcher-btn:focus,
.language-switcher-btn:active,
.language-switcher .show > .language-switcher-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.95) 0%, rgba(49, 27, 146, 0.95) 100%);
  box-shadow: 0 6px 18px rgba(74, 20, 140, 0.45);
}

.language-switcher-btn::after {
  margin-left: 0.5rem;
}

.language-switcher-menu {
  background: rgba(29, 21, 51, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  min-width: 12rem;
}

.language-switcher-item {
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0.55rem;
  padding: 0.45rem 0.65rem;
  font-weight: 500;
}

.language-switcher-item:hover,
.language-switcher-item:focus {
  color: #fff;
  background: rgba(106, 27, 154, 0.45);
}

.language-switcher-item.active,
.language-switcher-item:active {
  color: #fff;
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--deep-purple-light) 100%);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--deep-purple-light) 100%);
  border: none;
  box-shadow: 0 4px 15px var(--purple-glow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--deep-purple-dark) 0%, var(--deep-purple) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 20, 140, 0.5);
}

/* Hero Section Styles */
.hero-section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: visible;
}
.hero-section {
  height: 100vh;
}
.hero-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 3rem;
  padding-bottom: 3rem;
  pointer-events: none;
}
.hero-text-bg {
  background: rgba(0,0,0,0.55);
  max-width: 520px;
  pointer-events: auto;
}

/* Scroll Down Arrow - Positioned between sections */
.scroll-down-arrow {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  color: white;
  font-size: 2rem;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
  background: var(--deep-purple);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px var(--purple-glow);
}
.scroll-down-arrow:hover {
  color: white;
  background: var(--deep-purple-dark);
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(74, 20, 140, 0.5);
}

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

/* Section Separator */
.section-separator {
  height: 50px;
  background: linear-gradient(to bottom, transparent 0%, #f5f7fa 100%);
  width: 100%;
  margin-left: 0;
}

/* Sticky Navigation */
.navbar.sticky-top {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Jumbotron Section */
.jumbotron-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
  width: 100%;
  margin-left: 0;
  padding: 4rem 0;
}
.feature-box {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(74, 20, 140, 0.15);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(74, 20, 140, 0.3);
  border-color: var(--deep-purple);
}
.feature-box i {
  display: block;
  color: var(--deep-purple);
  filter: drop-shadow(0 2px 8px var(--purple-glow));
  transition: all 0.3s ease;
}
.feature-box:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px var(--purple-glow));
}

/* Bio Section */
.bio-profile-img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(74, 20, 140, 0.22);
}

/* Loading Skeleton */
.skeleton-portrait {
  width: 220px;
  height: 280px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 32px;
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

#bioContent {
  animation: fadeIn 0.5s ease-in;
}

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

/* Tablet Responsive */
@media (max-width: 991.98px) {
  .hero-img {
    min-height: 60vh;
    max-height: 60vh;
    height: 60vh;
  }
  .hero-overlay {
    padding-left: 1.5rem;
    padding-bottom: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* iPad / tablet layout fixes */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-section,
  .hero-img {
    min-height: 70vh;
    max-height: 70vh;
    height: 70vh;
  }

  .hero-img {
    object-position: center center;
  }

  .hero-overlay {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero-text-bg {
    max-width: 620px;
  }

  #bioContent,
  #bioLoading {
    row-gap: 1rem;
  }

  #bioContent .col-md-3,
  #bioContent .col-md-7,
  #bioLoading .col-md-3,
  #bioLoading .col-md-7 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  #bioContent .col-md-7 p {
    margin-left: auto;
    margin-right: auto;
    max-width: 44rem;
  }

  .bio-profile-img,
  .skeleton-portrait {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
  /* Reduce hero height on mobile */
  .hero-section,
  .hero-img {
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
  }
  
  /* Center the text overlay on mobile */
  .hero-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
  
  /* Make text box more compact on mobile */
  .hero-text-bg {
    max-width: 100%;
    padding: 1.5rem !important;
  }
  
  .hero-text-bg h1 {
    font-size: 1.5rem !important;
  }
  
  .hero-text-bg p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-text-bg .btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  /* Keep arrow inside on mobile since hero is full height */
  .scroll-down-arrow {
    bottom: 4rem;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
  
  /* Hide overflow on mobile to prevent horizontal scroll */
  .hero-section {
    overflow: hidden;
  }
  
  /* Smaller separator on mobile */
  .section-separator {
    height: 40px;
  }

  .bio-profile-img,
  .skeleton-portrait {
    width: 200px;
    height: 250px;
  }

  #bioContent h2 {
    text-align: center;
    margin-top: 0.75rem;
  }

  #bioContent .col-md-7 {
    text-align: center;
  }

  #bioContent p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%);
  border-top: 3px solid var(--deep-purple);
}

.footer h5 {
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--deep-purple);
}

.footer a:link,
.footer a:visited {
  color: #ffffff;
}

.footer a:hover,
.footer a:focus,
.footer a:active {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer .bi {
  color: #ffffff;
}

.footer .text-white-50 {
  color: #ffffff !important;
}

.footer hr {
  opacity: 0.3;
}

/* Mobile footer adjustments */
@media (max-width: 767.98px) {
  .footer h5 {
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
    color: #ffffff;
  }
  
  .footer h5:first-child {
    margin-top: 0;
  }

  .footer p,
  .footer .text-center,
  .footer ul,
  .footer li {
    text-align: center;
  }

  .footer h5::after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--deep-purple);
  }

  .footer .bi {
    color: #ffffff;
  }

  .footer a:hover,
  .footer a:focus,
  .footer a:active {
    color: #ffffff;
  }
}
