/* =======================
   FONT IMPORTS
======================= */
@font-face {
  font-family: 'NeutralFace';
  src: url('../fonts/NeutralFace.woff2') format('woff2'),
       url('../fonts/NeutralFace.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AllegrettoScriptOne';
  src: url('../fonts/AllegrettoScriptOne.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
}

/* =======================
   GLOBAL STYLES
======================= */
body {
  background-color: #efe4d1;
  font-family: 'Montserrat', sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: 'NeutralFace', sans-serif;
}

/* =======================
   NAVBAR
======================= */
.navbar {
  background-color: #efe4d1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  color: #2E355E;
  font-weight: bold;
  display: flex;           
  align-items: center;     
  gap: 8px;                
}

.navbar-brand img {
  height: 50px;
  vertical-align: middle;
}

  .navbar-nav .nav-item {
    margin-left: 15px;
    margin-right: 15px;
  }

.nav-link {
  color: #2E355E !important;
  font-weight: 600;
}

.nav-link:hover {
  color: #b6000F !important;
}

  /* Style for Contact button */
  .navbar-nav .nav-item:last-child .nav-link {
    background-color: #36436f;
    color: #fff !important; 
    border: 1px solid #000;
    border-radius: 4px; /* optional: rounded corners */
    padding: 8px 16px; /* optional: add some padding to make it button-like */
    transition: background-color 0.3s ease;
  }

  /* Hover effect */
  .navbar-nav .nav-item:last-child .nav-link:hover {
    background-color: #b6000f;
    color: #fff; /* ensure text stays white on hover */
  }

/* =======================
   HERO SECTION
======================= */
.hero-title {
  font-family: 'AllegrettoScriptOne', cursive;
  font-size: 4rem;
  color: #b6000F;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  color: #36436f;
  margin-top: -10px;
  line-height: 1.2;
}

/* ✅ Font enforcement for hero letters */
.hero-title span {
  font-family: 'Montserrat' !important;
  font-weight: 400;
  line-height: 1;
}

.hero-title span.script {
  font-family: 'AllegrettoScriptOne' !important;
  display: inline-block;
  margin-left: -20px;
  line-height: 1;
}

  /* Make hero carousel images smaller and centered */
  #workCarousel {
    max-width: 1400px; /* adjust width as needed */
    margin: 0 auto; /* center carousel horizontally */
  }

  #workCarousel img {
    width: 100%;
    height: auto;
    border-radius: 50px;
  }

  /* Optional: spacing above/below carousel */
  .hero-title + p + #workCarousel {
    margin-top: 20px;
    margin-bottom: 20px;
  }

/* =======================
   CUSTOM BUTTON STYLE
======================= */
.btn-custom {
  background-color: #36436F;
  border-color: #36436F;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #2E355E;
  border-color: #2E355E;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(54, 67, 111, 0.3);
}

/* =======================
   ABOUT SECTION
======================= */
#about {
  padding: 80px 0;
}

.about-h2 {
  text-align: right;
}

.about-h2 span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1;
}

.about-h2 span.script {
  font-family: 'AllegrettoScriptOne', cursive;
  display: inline-block;
  margin-left: -20px;
}

#about p {
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
}

.about-section img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

/* =======================
   EDUCATION & SKILLS
======================= */
.education, .skills {
  background-color: #b6000F;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #000; /* thin black border */
}

.skills {
  background-color: transparent !important;
  color: #36436f;
  text-align: left !important;
  border: none; /* removes border from the transparent box */
}

/* Skill tags styling */
.skills span {
  background-color: #b6000F;
  color: #fff;
  padding: 5px 10px;
  margin: 5px;
  display: inline-block;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #000; /* thin black border around each tag */
}

/* App icons under skills */
.app-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.app-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.app-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Section titles */
h3 {
  font-family: 'Montserrat', sans-serif;
  color: #36436f;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Accordion styles */
#educationAccordion {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
}

#educationAccordion .accordion-button {
  background-color: #b6000F;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  border: 1px solid #000; /* black border on header */
}

#educationAccordion .accordion-button:hover {
  background-color: #99000d;
  color: #fff;
  box-shadow: 0 4px 10px rgba(54, 67, 111, 0.3);
}

#educationAccordion .accordion-button:not(.collapsed) {
  background-color: #7d000b;
  color: #fff;
  box-shadow: inset 0 -2px 0 #fff;
}

#educationAccordion .accordion-body {
  background-color: #7d000b;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid #000; /* separate content area */
}

#educationAccordion .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #000; /* outline each accordion box */
}



/* =======================
   Accordion Arrow Color — White
======================= */
#educationAccordion .accordion-button::after {
  filter: brightness(0) invert(1); /* makes the arrow white */
  transition: transform 0.3s ease;
}

#educationAccordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1); /* keep arrow white when open */
  transform: rotate(-180deg); /* rotate arrow up when expanded */
}



/* =======================
   WORKS SECTION
======================= */
#works-h2 {
  text-align: left;
  line-height: 1;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}

#works-h2 span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1;
  margin-right: 10px;
}

#works-h2 span.script {
  font-family: 'AllegrettoScriptOne', cursive;
  display: inline-block;
  margin-left: -10px;
  margin-right: 2px;
  position: relative;
}

#works-h2 span.script:first-child {
  position: relative;
  top: 25px; /* move 'M' down — adjust (20–30px) to taste */
}

#workCarousel .carousel-item {
  min-height: 400px;
  padding: 40px 0;
}

#workCarousel h3 {
  color: #36436f;
}

#workCarousel p {
  color: #36436f;
  font-size: 1rem;
}

#workCarousel img {
  border-radius: 12px;
  object-fit: cover;
}

/* =======================
   WORKS SECTION — CAROUSEL ONLY
======================= */
#works-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

#works-section #worksCarousel {
  max-width: 1100px; /* makes it thinner */
  width: 100%;
  margin: 0 auto;
  position: relative; /* ensures buttons stay within bounds */
}

/* Circle background buttons — scoped to works section only */
#works-section #worksCarousel .carousel-control-prev,
#works-section #worksCarousel .carousel-control-next {
  width: 60px;
  height: 60px;
  background-color: rgba(54, 67, 111, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 5; /* ensures they're clickable */
}

/* Hover animation */
#works-section #worksCarousel .carousel-control-prev:hover,
#works-section #worksCarousel .carousel-control-next:hover {
  background-color: #36436f;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* White arrow icons */
#works-section #worksCarousel .carousel-control-prev-icon,
#works-section #worksCarousel .carousel-control-next-icon {
  filter: brightness(0) invert(1);
  width: 25px;
  height: 25px;
}

/* Button spacing */
#works-section #worksCarousel .carousel-control-prev {
  left: -80px;
}

#works-section #worksCarousel .carousel-control-next {
  right: -80px;
}



/* =======================
   CONTACT SECTION
======================= */
#contact {
  background-color: #b6000F;
  color: white;
  padding: 60px 0;
  font-family: 'Montserrat', sans-serif;
}

#contact h2 {
  font-weight: 700; /* makes "Contact Me" bold */
}

#contact a {
  color: white;
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* Loading Screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #efe4d1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-logo {
  width: 180px;
  height: auto;
}

.progress-container {
  width: 300px;
  height: 10px;
  background-color: #ddd;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #000;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #36436f;
  transition: width 0.1s linear;
}

#loading-text {
  margin-top: 10px;
  font-size: 1.2rem;
  color: #36436f;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
