/* Custom theme overrides and project-specific styles */

/* Restore brand palette from original theme */
:root {
  --bs-primary: #1e30f3;
  --bs-primary-rgb: 30, 48, 243;
  --bs-secondary: #e21e80;
  --bs-secondary-rgb: 226, 30, 128;
  --bs-link-color: #1e30f3;
  --bs-link-hover-color: #1826c2;
  --bs-code-color: #e21e80;
}

/* Normalize list spacing within project/resume cards */
.experience-description {
  padding-left: 1rem;
}
.experience-description li {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 1rem;
}

/* Buttons - match original styles */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1e30f3;
  --bs-btn-border-color: #1e30f3;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1a29cf;
  --bs-btn-hover-border-color: #1826c2;
  --bs-btn-focus-shadow-rgb: 64, 79, 245;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1826c2;
  --bs-btn-active-border-color: #1724b6;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1e30f3;
  --bs-btn-disabled-border-color: #1e30f3;
}

.btn-secondary {
  --bs-btn-color: #000;
  --bs-btn-bg: #e21e80;
  --bs-btn-border-color: #e21e80;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #e64093;
  --bs-btn-hover-border-color: #e5358d;
  --bs-btn-focus-shadow-rgb: 192, 26, 109;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #e84b99;
  --bs-btn-active-border-color: #e5358d;
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #e21e80;
  --bs-btn-disabled-border-color: #e21e80;
}

.btn-outline-primary {
  --bs-btn-color: #1e30f3;
  --bs-btn-border-color: #1e30f3;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1e30f3;
  --bs-btn-hover-border-color: #1e30f3;
  --bs-btn-focus-shadow-rgb: 30, 48, 243;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1e30f3;
  --bs-btn-active-border-color: #1e30f3;
  --bs-btn-disabled-color: #1e30f3;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #1e30f3;
}

.btn-outline-secondary {
  --bs-btn-color: #e21e80;
  --bs-btn-border-color: #e21e80;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #e21e80;
  --bs-btn-hover-border-color: #e21e80;
  --bs-btn-focus-shadow-rgb: 226, 30, 128;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #e21e80;
  --bs-btn-active-border-color: #e21e80;
  --bs-btn-disabled-color: #e21e80;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #e21e80;
}

/* Micro-interactions */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.2);
}

/* Scroll reveal */
.reveal {
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .reveal {
    transition: none !important;
    transform: none !important;
  }
}

body,
html {
  height: 100%;
}

/* Gradient utility - do not impose size or layout */
.bg-gradient-primary-to-secondary {
  background: linear-gradient(135deg, #1e30f3 0%, #e21e80 100%);
  border-radius: 20px;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.text-gradient {
  background: -webkit-linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rounded-4 {
  border-radius: 1rem !important;
}

/* Feature icon sizing should remain square */
.feature {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  font-size: 1.5rem;
}

.profile {
  position: relative;
  height: 75vw;
  width: 75vw;
  border-radius: 5vw;
  margin-top: 5vw;
  max-height: 40rem;
  max-width: 40rem;
}
.profile .profile-img {
  height: 80vw;
  max-height: 45rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 576px) {
  .profile {
    height: 60vw;
    width: 60vw;
  }
  .profile .profile-img {
    height: 65vw;
  }
}

@media (min-width: 768px) {
  .profile {
    height: 50vw;
    width: 50vw;
  }
  .profile .profile-img {
    height: 55vw;
  }
}
@media (min-width: 992px) {
  .profile {
    height: 40vw;
    width: 40vw;
  }
  .profile .profile-img {
    height: 45vw;
  }
}
@media (min-width: 1200px) {
  .profile {
    height: 35vw;
    width: 35vw;
  }
  .profile .profile-img {
    height: 40vw;
  }
}

@media (max-width: 768px) {
  .card-body {
      padding: 12px;
  }

  .bg-light.p-3 {
      padding: 10px;
  }

  .experience-description {
      padding: 10px;
      font-size: 14px;
  }

  .education-description {
    padding: 10px;
    font-size: 14px;
  }

  .col-lg-4, .col-md-5 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 15px;
  }

  .col-lg-8, .col-md-7 {
    padding-left: 0;
    padding-right: 0;
  }

  .row.align-items-center {
      margin-left: 0;
      margin-right: 0;
  }

  .col-12 {
      padding-left: 0;
      padding-right: 0;
  }

  .card {
      margin-bottom: 14px;
  }

  .fw-bolder {
      font-size: 16px;
  }

  .display-3 {
      font-size: 3rem;
      font-weight: 700;
  }

  .bg-light.p-3 {
    padding: 8px;
  }

  .row-cols-1.row-cols-md-3 .col {
      margin-bottom: 10px;
  }

  .d-flex.align-items-center.mb-4 {
      margin-bottom: 10px;
  }

  .mb-5, .mb-4, .mb-md-0 {
      margin-bottom: 10px !important;
  }
}

@media (max-width: 768px) {
  .btn.btn-primary {
      padding: 8px 16px;
      font-size: 14px;
  }
}

.inline-gif {
  height: 1em;
  vertical-align: middle;
}

/* Awards Section */
.awards-section .awards-title {
  color: rgb(130, 51, 173);
  font-weight: bolder;
  margin-bottom: 1.5rem;
}

.awards-section .award-title {
  color: rgb(130, 51, 173);
  font-weight: bolder;
  margin-bottom: 0.5rem;
}

.awards-section .card-body {
  padding: 1.5rem;
}

.awards-section .bg-light {
  background-color: #f8f9fa !important;
  padding: 1.25rem;
  border-radius: 15px;
}

.awards-section .card {
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.awards-section .fw-bolder {
  font-weight: bolder;
}

.awards-section .small {
  font-size: 0.875rem;
  color: #6c757d;
}

.awards-section .awards-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .awards-section .container {
      padding-left: 1rem;
      padding-right: 1rem;
  }

  .awards-section .awards-card {
      margin-left: auto;
      margin-right: auto;
      max-width: 100%;
      width: 100%;
  }

  .awards-section .card-body {
      padding: 1.25rem;
  }

  .awards-section .bg-light {
      padding: 1rem;
  }

  .awards-section .awards-title {
      font-size: 1.75rem;
      text-align: center;
  }

  .awards-section .award-title {
      font-size: 1.25rem;
  }
}

.d-flex.align-items-center.bg-light {
  color: #000000;
}

.intro-text {
  color: #000000;
  font-size: 1.75rem;
  font-weight: bold;
}

.intro-description {
  color: #000000;
  font-size: 1.1rem;
}

.fixed-size {
  font-size: 2.5rem;
}

.large-text {
  font-size: 1.3rem;
}

@media (max-width: 768px) {
  .bg-gradient-primary-to-secondary {
      padding: 2rem 1rem;
  }
  .bg-gradient-primary-to-secondary .container {
      padding-left: 15px;
      padding-right: 15px;
  }
  .bg-gradient-primary-to-secondary h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
  }
  .bg-gradient-primary-to-secondary .btn {
      padding: 1rem 2rem;
      font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .bg-gradient-primary-to-secondary {
      padding: 3rem 2rem;
  }
  .bg-gradient-primary-to-secondary h2 {
      font-size: 2.5rem;
  }
  .bg-gradient-primary-to-secondary .btn {
      padding: 1.25rem 3rem;
      font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  #carouselExampleIndicators img {
      height: 250px;
  }
}

.carousel-inner {
  position: relative;
  overflow: hidden;
}

.carousel-inner img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .carousel-inner img {
      aspect-ratio: 4 / 3;
  }
}

@media (max-width: 768px) {
  section.py-5.bg-gradient-primary-to-secondary {
      max-width: 90%;
  }
}

/* Custom images */
.img-fluid {
  max-width: 100%;
  width: auto;
  height: auto;
}

.img-project {
  max-width: 300px;
  height: auto;
} 

/* Navbar sizing */
.navbar-brand {
  font-size: 1.5rem; /* default 1.25rem → 1.5rem */
}
.navbar-nav .nav-link {
  font-size: 1.05rem; /* slightly larger nav links */
}
@media (min-width: 992px) {
  .navbar-brand {
    font-size: 1.75rem;
  }
  .navbar-nav .nav-link {
    font-size: 1.1rem;
  }
} 

/* ===== About Page Components ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(30, 48, 243, 0.08);
  color: #000;
  font-weight: 600;
  border: 1px solid rgba(30, 48, 243, 0.15);
}

/* Horizontal photo strip */
.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.photo-strip::-webkit-scrollbar {
  height: 6px;
}
.photo-strip::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
}
.strip-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.strip-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Drag scroll helper */
.drag-scroll {
  cursor: grab;
}
.drag-scroll:active {
  cursor: grabbing;
}

/* Polaroid cards */
.polaroid {
  background: #fff;
  border-radius: 8px;
  padding: 12px 12px 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.polaroid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
}
.polaroid .caption {
  text-align: center;
  margin: 10px 0 0;
  font-weight: 700;
  color: #111;
}
.polaroid:hover {
  transform: translateY(-6px) rotate(-0.25deg);
  box-shadow: 0 24px 50px rgba(0,0,0,0.18);
}
.rotate-r { transform: rotate(1.5deg); }
.rotate-l { transform: rotate(-1.5deg); }

/* Masonry gallery */
.masonry {
  column-count: 1;
  column-gap: 16px;
}
.masonry-item {
  width: 100%;
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}
@media (min-width: 576px) { .masonry { column-count: 2; } }
@media (min-width: 992px) { .masonry { column-count: 3; } }

/* Lightbox */
.lightbox.hidden { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
  padding: 20px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-close i { font-size: 1.1rem; } 

@media (max-width: 768px) {
  /* Flatten experience bullets to em-dash lines and remove indentation */
  .experience-description {
      padding-left: 0;
      margin-left: 0;
      font-size: 14px;
  }
  .experience-description li {
      list-style: none;
      margin-left: 0;
      padding-left: 0;
      position: relative;
  }
  .experience-description li::before {
      content: "— ";
      color: #000;
      position: static;
      margin-right: 4px;
  }

  /* Tighten card container spacing on mobile */
  .col-lg-11.col-xl-9.col-xxl-8,
  .container.px-5.my-5 {
      padding-left: 10px !important;
      padding-right: 10px !important;
  }
} 

/* Mobile padding restore to prevent edge-to-edge content */
@media (max-width: 768px) {
  .container {
      padding-left: 14px !important;
      padding-right: 14px !important;
  }
  .col-12 {
      padding-left: 12px;
      padding-right: 12px;
  }
} 

/* Robust mobile gutters: never allow zero padding at narrow widths */
@media (max-width: 768px) {
  /* Ensure container keeps a base padding */
  .container, .container-fluid {
      padding-left: 14px !important;
      padding-right: 14px !important;
  }
  /* Set smaller but nonzero gutters on rows */
  .row {
      --bs-gutter-x: 1rem; /* ~16px total (8px each side) */
  }
  /* Enforce column padding using gutter variable, overriding earlier zero rules */
  .row > * {
      padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
      padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
  }
} 

/* About: casual hero image frame */
.profile-casual {
  position: relative;
  width: min(75vw, 28rem);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}
/* Optional soft gradient glow behind the image (no inner line) */
.profile-casual.glow::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(30,48,243,0.35), rgba(226,30,128,0.35));
  filter: blur(28px);
  z-index: -1;
}
.profile-casual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
} 