/* Default */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
  --first-navy: #1E3A8A;
  --second-orange: #FFB347;
  --third-gray: #717171;
}

/* Body Section */
body{
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Blank Sections */
.blank-section {
  height: 50px;
  width: 100%;
  background: linear-gradient(to bottom, var(--third-gray), #ffffff);
}


/* Navigation Section */
.navbar-logo {
  height: 70px;
  width: auto;
  margin: 10px;
}

.navbar {
  background-color: var(--first-navy);
}

.navbar-brand {
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.navbar-logo {
  height: 60px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: rotate(-5deg);
}


.navbar a{
  font-size: 1.5rem;
  margin-left: 20px;
}

.navbar-brand {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 1rem;
}

.navbar-brand:hover {
  color: var(--second-orange) !important;
}

.nav-link.active {
  color: var(--second-orange) !important;
}

.navbar-nav .nav-link {
  color: #FFFFFF;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--second-orange);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--second-orange);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-collapse {
  transition: max-height 0.4s ease;
}

@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    padding: 0.75rem 0;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 0.4s ease forwards;
  }

  .navbar-nav .nav-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .navbar-nav .nav-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .navbar-nav .nav-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  .navbar-nav .nav-item:nth-child(4) {
    animation-delay: 0.4s;
  }

  .navbar-nav .nav-item a {
    display: block;
    color: var(--text-color, white);
    transition: color 0.3s ease, transform 0.3s ease;
  }

  .navbar-nav .nav-item a:hover {
    color: var(--second-orange);
    transform: scale(1.05);
  }
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home Section */
#home-1 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4rem;
  padding: 3rem 9.5rem;
  background: linear-gradient(to bottom, #717171, #ffffff);
  flex-wrap: wrap;
}

#home-1 {
  position: relative;
  display: flex;
}

#home-1 img {
  width: 400px;
  height: auto;
  border-radius: 1rem;
  border: 6px solid transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background:
    linear-gradient(white, white) padding-box,
    repeating-linear-gradient(
      90deg,
      var(--second-orange) 0 10px,
      transparent 10px 20px
    ) border-box;
  animation: waveBorder 3s infinite alternate ease-in-out;
}

@keyframes waveBorder {
  0% {
    background-position: 0 0, 0 0;
  }
  20% {
    background-position: 0 0, 12px 6px;
  }
  40% {
    background-position: 0 0, 25px -4px;
  }
  60% {
    background-position: 0 0, 18px 8px;
  }
  80% {
    background-position: 0 0, 35px -6px;
  }
  100% {
    background-position: 0 0, 40px 0;
  }
}

#home-1 div:nth-child(2) {
  max-width: 1400px;
  flex: 1;
}

#home-1 h1 {
  font-size: 6rem;
  color: #111827;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#home-1 p {
  font-size: 1.125rem;
  color: #374151;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: justify;
  line-height: 1.75;
}

#home-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3rem 9.5rem;
  background-color: var(--first-navy);
  flex-wrap: wrap;
}

#home-2 .custom-list {
  list-style: disc;
  flex: 1;
  margin: 0;
  padding-left: 1.5rem;
}
#home-2 .custom-list li {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  color: white;
}

#home-2 div:last-child {
  display: flex;
  gap: 1rem;
}

#home-2 div:last-child a {
  color: #ffffff;
  font-size: 4rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

#home-2 div:last-child a:hover {
  transform: scale(1.2);
  color: var(--second-orange);
}

@media (max-width: 991.98px) {
  #home-1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
  }

  #home-1 img {
    width: 350px;
    margin-bottom: 0;
  }

  #home-1 h1 {
    font-size: 2.5rem;
    margin-top: 0;
    font-weight: bold;
  }

  #home-1 p {
    font-size: 1rem;
  }

  #home-2 {
    flex-direction: column;
    align-items: stretch;
  }

  #home-2 .custom-list {
    margin: 0 0 3rem 0;
    padding-left: 0;
    list-style-position: inside;
    max-width: 800px;
  }

  #home-2 div:last-child {
    justify-content: center;
    margin-bottom: 3rem;
    width: 100%;
  }
}


@media (max-width: 575.98px) {
  #home-1 img {
    width: 100%;
    max-width: 350px;
  }

  #home-1 h1 {
    font-size: 2.5rem;
    font-weight: bold;
  }

  #home-2 div:last-child a {
    font-size: 3rem;
  }
}

/* Education Section */
#education {
  background-color: var(--first-navy);
}

#education .card {
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  overflow: visible;
  transition: none;
  width: 25rem;
  height: 25rem;
  margin: 0 auto;
  color: #fff;
}

#education .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

#education .card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

#education .card-title {
  font-size: 1rem;
  font-weight: 300;
  margin-top: 10px;
  color: white;
  text-align: left;
}

#education .card-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: white !important;
  text-align: left;
}

#educationCarousel .carousel-control-prev,
#educationCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--second-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

#educationCarousel .carousel-control-prev:hover,
#educationCarousel .carousel-control-next:hover {
  background-color: var(--first-navy);
  transform: translateY(-50%) scale(1.1);
}

#educationCarousel .carousel-control-prev {
  left: -70px;
}

#educationCarousel .carousel-control-next {
  right: -70px;
}

#educationCarousel .carousel-control-prev-icon,
#educationCarousel .carousel-control-next-icon {
  background-size: 100%, 100%;
  background-color: white;
  border-radius: 50%;
}

@media (max-width: 576px) {
  #education .card {
    width: 14rem;
  }

  #education .card img {
    height: 270px;
  }

  #educationCarousel .carousel-control-prev,
  #educationCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--second-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
  }

  #educationCarousel .carousel-control-prev:hover,
  #educationCarousel .carousel-control-next:hover {
    background-color: var(--first-navy);
    transform: translateY(-50%) scale(1.1);
  }

  #educationCarousel .carousel-control-prev {
    left: 30px;
  }

  #educationCarousel .carousel-control-next {
    right: 30px;
  }

  #educationCarousel .carousel-control-prev-icon,
  #educationCarousel .carousel-control-next-icon {
    background-size: 100%, 100%;
    background-color: white;
    border-radius: 50%;
  }
}

/* Project Section */
#projects {
  background-color: var(--first-navy);
  padding: 60px 20px;
}

#project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 0 auto;
  max-width: 1200px;
}

#project-cards .card {
  background: var(--first-navy);
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#project-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

#project-cards .card h3{
  text-align: right;
  margin-top: 15px;
  margin-right: 15px;
  font-weight: 200;
  font-size: .9rem;
  color: white;
}

#project-cards .card h4{
  text-align: left;
  margin-left: 15px;
  font-weight: 400;
  font-size: 1rem;
  color: white;
  font-weight: bold;
}

#project-cards .card h5{
  text-align: left;
  margin-left: 15px;
  font-weight: 200;
  font-size: .9rem;
  color: white;
}

#project-cards .card img{
  margin: 15px;
  height: 250px;
}

.arrow-btn{
  font-size: 30px;
  line-height: 1;
  padding: 8px 12px;
  border: none;
  background: var(--first-navy);
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  color: white;
  cursor: pointer;
}

.arrow-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.arrow-btn:focus{
  outline: 2px solid black;
  outline-offset: 2px;
}

#project-details {
  background: var(--first-navy);
  padding-top: 30px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  width: 81%;
}

#project-details:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

#project-details h3 {
  font-weight: 600;
  font-size: 2rem;
  color: white;
  text-align: left;
  margin-left: 15px;
}

#project-details p {
  font-size: 1rem;
  font-weight: 400;
  text-align: justify;
  margin-left: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
  color: white;
}

/* Technical Skills Section */
#technical-skills {
  background-color: var(--first-navy);
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.circle-menu {
  width: 400px;
  height: 400px;
  background: var(--first-navy);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

.circle-menu h6 {
  margin: 5px 0;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}

.circle-menu h6.active {
    color: var(--second-orange);
}

.circle-menu h6:hover {
  color: var(--first-navy);
}

#infoPanel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 450px;
  display: none;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1;
  transition: opacity  0.3s ease;
  overflow: hidden;
}

#infoPanel.left {
  left: 50%;
  transform: translate(-100%, -50%);
}

#infoPanel.right {
  right: 50%;
  transform: translate(100%, -50%);
}

#infoPanel.left .icons-container {
  justify-content: flex-start;
}

#infoPanel.right .icons-container {
  justify-content: flex-end;
}

.icons-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 500px;
  height: 400px;
  margin: 0 auto;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-auto-flow: row;
  gap: 25px;
  justify-items: center;
  align-items: center;
}

.icon-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-item:hover img {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.icon-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -28px;
  background: var(--first-navy);
  color: var(--second-orange);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translateY(5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.icon-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  #technical-skills {
    padding: 30px 15px;
    flex-direction: column;
    align-items: center;
  }

  .circle-menu {
    width: 250px;
    height: 250px;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  #infoPanel {
    position: static !important;
    transform: none !important;
    width: 90% !important;
    padding: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  #infoPanel.left .icons-container,
  #infoPanel.right .icons-container {
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .icons-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
  }

  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    justify-items: center;
  }

  .icon-item img {
    width: 45px;
    height: 45px;
  }

  .icon-item::after {
    font-size: 12px;
    bottom: -18px;
  }
}

/* Footer Section */
footer {
  background-color: var(--first-navy);
  display: flex;
  align-items: center;
  padding: 25px 40px;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

footer .left-footer img {
  width: 250px;
  margin: 50px;
  height: auto;
  object-fit: contain;
}

footer .right-footer h4 {
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 500;
  color: #aaa;
}

footer .right-footer h2 {
  margin-bottom: 15px;
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
}

footer .right-footer h6 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  color: #ccc;
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
  }

  footer .left-footer img {
    margin-bottom: 15px;
  }
}