/* ===========================
   Import Fonts
=========================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;700&family=Libre+Baskerville:wght@700&display=swap");

/* ===========================
   Root Variables
=========================== */
:root {
  --h-title-color: #4c507a;
  --main-text-color: #171c1f;
  --subtitle-color: #4c507a;
}

/* ===========================
   Body Text
=========================== */
body, p {
  font-family: "Inter", sans-serif;
  font-weight: 300;      /* Light */
  font-size: 1rem;       /* 16px */
  line-height: 1.6;
  color: var(--main-text-color);
}

/* ===========================
   Headings h1–h6
=========================== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Inter", sans-serif !important;
  font-weight: 700;
  color: var(--subtitle-color);
  line-height: 1.2;
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

h1 { font-size: 2rem; }   
h2 { font-size: 1.75rem; } 
h3 { font-size: 1.5rem; }   
h4 { font-size: 1.25rem; }
h5 { font-size: 1.00rem; } 
h6 { font-size: 0.75rem; }

/* ===========================
   Navbar Title
=========================== */
#page-top-title {
  font-family: "Inter", sans-serif !important;
  font-weight: 350 !important;   /* making the weight 350; was 700 */
  font-size: 1.5rem !important;
  color: var(--subtitle-color) !important;
}

/* ===========================
   Top Section
=========================== */
.top-section {
  position: relative;
  padding: 10rem 0;
  background-position: center;
  background-size: cover;
  height: 25rem;
  overflow: hidden; 
}

.top-section:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.top-section .top-section-content {
  position: relative;
  z-index: 1;
}

/* Extra Large Top Heading */
#top-section-bg-text {
  font-family: "Inter", sans-serif !important;
  font-weight: 700;
  font-size: 4rem;       /* ~64px */
  line-height: 1.1;
  color: var(--h-title-color);
}

/* ===========================
   Subtitles
=========================== */
.home-subtitle,
#home-subtitle,
.subtitle {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 3rem;    /* ~48px */
  line-height: 1.3;
  color: var(--subtitle-color);
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
}

/* ===========================
   Section Headers Override
=========================== */
section header h2 {
  font-family: "Libre Baskerville", serif !important;
  font-weight: 700;
  font-size: 2.25rem;  
  line-height: 1.2;
  color: var(--h-title-color);
}

/* ===========================
   Main Body Inside Sections
=========================== */
section .main-body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--main-text-color);
}

/* ===========================
   Gradients & Backgrounds
=========================== */
.bg-gradient-primary-to-secondary-light {
  background: linear-gradient(45deg, #fcfcfc, #ffffff) !important;
}

.bg-gradient-primary-to-secondary-gray {
  background: linear-gradient(45deg, #f0f0f0, #f1f1f1) !important;
}

.on-top {
  position: relative;
  z-index: 10000;
}

.top-bg {
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.top-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

/* ===========================
   Avatar
=========================== 
#avatar {
  position: relative;
  height: 0;
  top: min(-65px, max(-100px, calc(-1*100vw/12)));
  max-width: 55em;
  margin: 0 1.5rem 0 0;
  float: right;
  z-index: 9000;
}

#avatar img {
  height: max(130px, min(200px, calc(100vw/6)));
  box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
  
}

@media screen and (max-width: 991px) {
  #avatar {
    margin: 0;
  }
}

*/

/* ===========================
   Avatar (Fixed on Banner)
=========================== */
#avatar {
  position: absolute;
  top: 0;
  left: 75%;
  height: 25rem;              /* same as banner height */
  transform: translateX(-50%);
  z-index: 32;
}

#avatar img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.25);
}






/* Style all navbar links */
.nav-link {
  font-family: 'Inter', sans-serif; /* or whichever font you want */
  font-weight: 350 !important;   
  font-size: 1.5rem !important;
  color: var(--subtitle-color) !important; /* override Bootstrap's gray */
  text-transform: none;    /* change to uppercase/lowercase if you want */
  letter-spacing: 0.5px;
  transition: color 0.2s ease-in-out;
}

/* Active link style */
.nav-link.active {
  color: #7a80c2 !important;
  font-weight: 700;
}

/* --- Modal styles --- */

/* Fake textbox (click trigger) */
.fake-textbox {
  display: inline-block;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 500px;
  /*width: fit-content; */
  width: 350px;    /* pick a size that fits your content */
  height: 340px;   /* consistent height */
  cursor: pointer;
  background-color: #fff;
  font-size: 2rem;
  font-weight: bold;
  color: var(--subtitle-color);   /* change this to any color */
}
.fake-textbox:hover {
  background-color: #f0f0f0;
}

/* Modal background */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Modal box */
.custom-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh; /* Keeps popup from exceeding the screen's height */
  overflow-y: auto; /* Enables scroll inside the popup */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
}

.custom-modal-content img {
  max-width: 100%;   /* never overflow container width */
  height: auto;      /* keep proportions */
  display: block;
  margin: 1em auto;  /* center with spacing */
}

/* ===========================
   Modal Title -- NEW ADDITION
=========================== */
.custom-modal-content h1,
.custom-modal-content h2,
.custom-modal-content h3,
.custom-modal-content h4,
.custom-modal-content h5,
.custom-modal-content h6 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ===========================
   Modal Body Text (Strict Center Justified) 
=========================== */
.custom-modal-content p {
  text-align: justify;
  max-width: 600px;        /* controls line length */
  margin: 0 auto 1rem;     /* center block + add bottom spacing */
  line-height: 1.6;
  font-size: 1rem;
}

.custom-modal-content p::after {
  content: "";
  display: inline-block;
  width: 100%;
}

/* ends here */ 

/* Close button */
.modal-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}
.modal-close:hover {
  color: #000;
}

/* ===========================
   Figures & Captions
=========================== */
figure {
  text-align: center;      /* center image + caption */
  margin: 1.5em 0;         /* space above and below */
}

figcaption {
  font-family: "Inter", sans-serif;
  font-weight: 300;        /* light like body text */
  font-size: 0.9rem;       /* slightly smaller than body */
  line-height: 1.4;
  color: var(--main-text-color);
  margin-top: 0.5em;
  font-style: italic;      /* optional, makes it feel "captiony" */
}


/* Skills inside fake-textbox buttons */
.fake-textbox .skills {
  margin-top: 8px;
}

.fake-textbox .skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fake-textbox .skills li {
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--main-text-color);
  white-space: nowrap;
}

.fake-textbox .thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 images side-by-side */
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.fake-textbox .thumbs img {
    width: 100%;
    height: 180px; /* fixed image size */
    border-radius: 6px;
    object-fit: cover;
}

.fake-textbox .title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--subtitle-color);
}

/* Stack images vertically on smaller screens */
@media (max-width: 600px) {
  .fake-textbox .thumbs {
    grid-template-columns: 1fr;
  }
}

/* PDF BACKGROUND CHANGING */ 
iframe {
  background: white; /* or any color */
}

/* FOOTER TEXT */ 
.custom-footer {
  color: #4c507a !important;  /* your custom text color */
}

.custom-footer a {
  color: #4c507a !important;       /* make links the same color */
  text-decoration: none; /* optional: remove underline */
}

