body {
  background-color: white!important;
  font-family: 'Overpass', sans-serif!important;
  color: #3A3A3A!important;
}

#header {
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 98%, rgb(255, 255, 255) 100%),
            url(/images/White-Background-89.jpg);
  background-size: cover;
  background-position: center;
}

#about {
  padding: 80px 0;
  color: white;
}

.about-container{
  margin-top: 175px;
}

.row{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1{
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
  height: 400px;
  margin-bottom: 30px;
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); /* base shadow */
}

.about-col-2{
  flex-basis: 60%!important;
}

.tab-titles{
  display: flex;
  margin: 20px 0 20px
}

.tab-links{
  margin-right: 50px;
  font-size: 25px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after{
  content: '';
  width: 0;
  height: 3px;
  background: #004870;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents ul {
  padding-left: 0!important;
}

.tab-contents ul li{
  list-style: none;
  font-size: 16px;
  margin: 10px 0;
}

.tab-contents ul li span{
  color: #004870;
  font-size: 20px;
}

.tab-contents{
  display: none;

}

.tab-contents.active-tab{
  display: block;
}

h3 {
  font-size: 3rem!important;
  font-family: 'Overpass', sans-serif!important;
}

.blur-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px; /* Adjust the height of the blur effect */
  background: inherit;
  filter: blur(10px);
}

.projects {
  color: white!important;
}

.card {
  width: 400px;
  margin: 10px auto;
  padding: 5px;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.35);
}

.list-inline {
  list-style: none;
  padding-left: 0px;
}

.list-inline > li {
  display: inline-block;
  font-size: 40px;
  padding: 0 10px;
  color: black;
}

.name-logo {
  font-family: Fasthand;
  font-size: 40px;
}

.nav-linked {
  color: #4C6085;
  margin-right: 50px;
}

.card {
  margin-top: 200px;
}

/* Navbar container */
:root { --nav-h: 64px; }

.navbar {
  position: sticky;   /* you already do this inline, move it to CSS */
  top: 0;
  z-index: 10000;     /* 👈 ensures it sits above transformed images */
  background: #e8e8e8; /* solid bg so content doesn’t show through */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;           /* centers children vertically */
  height: var(--nav-h);
  padding: 0 20px;
  background: #e8e8e8;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;                     /* use gap instead of margins */
}

.navbar a {
  display: inline-flex;          /* let text align vertically */
  align-items: center;
  height: var(--nav-h);          /* full clickable area */
  padding: 0 8px;
  text-decoration: none;
  line-height: 1.1;
  color: #004870;
  font-size: 20px;            /* stable line box for text */
}

.logo-link {
  padding: 0;                    /* no extra padding around logo */
}

.navbar-logo {
  display: block;                /* removes baseline gap */
  height: calc(var(--nav-h) - -30px); /* logo fits inside navbar */
  width: auto;
  object-fit: contain;
}


/* Navbar link hover effect */
.navbar a:hover {
  color: #004870;
  transform: translateY(-5px);
  text-decoration: none;
}

/* Animation: sliding in from the sides */
.navbar a:nth-child(odd) {
  animation: slideInLeft 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.navbar a:nth-child(even) {
  animation: slideInRight 0.5s ease-out forwards;
  animation-delay: 0.4s;
}

/* Sliding animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating effect for navbar links */
.navbar a {
  animation: floatUp 2s infinite alternate;
}

@keyframes floatUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}


/* .navbar {
  position: sticky!important;
  top: 0;
  width: 100%;
} */

.header-text{
  padding-top: 28%;
  font-size: 30px!important;
}

.header-text p {
  font-size: 40px;
  color: #3A3A3A;
}

.header-text h1{
  font-size: 80px!important;
  color: #3A3A3A;
  margin-top: 20px;
}

.copyright a {
  color: #004870!important;
}

.header-text h1 span{
  color: #004870;
}

.avatar {
  width: 200px;
  height: 180px;
  border-radius: .5rem;
  z-index: initial;
}


.links i {
  font-size: 40px;
  margin-right: 10px;
  margin-left: 10px;
  color: rgb(205, 205, 205);
  transition: ease .2s;
  padding-top: 50px;
}

.links i:hover {
  color: white;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skills i {
  font-size: 100px;
  margin-right: 10px;
  margin-left: 10px;
  color: 		#5ae124;
  transition: ease .2s;
  margin-right: 15px;
}

.skills i:hover {
  color: white;
  /* #5ae124 */
}

.btn-grad {
  background-image: linear-gradient(to right, #314755 0%, #26a0da  51%, #314755  100%);
  margin: 10px;
  padding: 5px 25px;
  text-align: center;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 20px #eee;
  border-radius: 10px;
  display: block;
  text-decoration: none;
  border: none;
}

.btn-grad:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

div > button {
  text-align: right;
}


.btn-projects {
  background-image: linear-gradient(to right, #004870 0%, #17cac7  51%, #004870 100%);
  margin: 10px;
  text-decoration: none;
  padding: 10px 40px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 7px #eee;
  border-radius: 70px;
  display: block;
  text-decoration: none;
  font-family: 'Overpass', sans-serif;
  border: 0;
  font-size: 20px;
}

.button {
  padding: 1.3em 3em;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 45px;
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  text-decoration: none!important;
  outline: none;
}

a .button {
  display: inline-block;
  text-align: center;
  margin-top: 20px;
  text-decoration: none!important;
}

.button:hover {
  background-color: #004870;
  box-shadow: 0px 15px 20px rgba(1, 22, 70, 0.4);
  color: #fff;
  transform: translateY(-7px);
}

.button:active {
  transform: translateY(-1px);
}

.btn-projects:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none!important;
}

.btn-projects-link {
  background-image: linear-gradient(to right, #004870 0%, #17cac7  51%, #004870  100%);
  margin: 10px;
  padding: 5px 30px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 7px #eee;
  border-radius: 70px;
  display: block;
  text-decoration: none;
  font-family: 'Overpass', sans-serif;
  border: 0;
  font-size: 20px;
  text-transform: capitalize;
}

.btn-projects-link:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
  text-decoration: none!important;
}

.btn-projects-send {
  padding: 1.3em 3em;
  font-size: 20px; /* Keeping your original size */
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  border: none;
  border-radius: 70px; /* Keeping your original roundness */
  box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  cursor: pointer;
  outline: none;
  display: block;
  text-align: center;
  margin: 20px auto; /* Centering the button */
  width: fit-content;
}

.btn-projects-send:hover {
  background-color: #004870;
  box-shadow: 0px 15px 20px rgba(42, 107, 81, 0.4);
  color: #fff;
  transform: translateY(-7px);
}

.btn-projects-send:active {
  transform: translateY(-1px);
}


.btn-projects-contact-me{
  background-image: linear-gradient(to right, #004870 0%, #17cac7  51%, #004870  100%);
  margin: 10px;
  padding: 2px 25px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 7px #eee;
  border-radius: 70px;
  display: block;
  text-decoration: none;
  font-family: 'Overpass', sans-serif;
  border: 0;
  font-size: 20px;
  text-transform: capitalize;
  margin-left: 0;
  margin-top: 5px;
}

.btn-projects-contact-me:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
  text-decoration: none!important;
}

.about-section {
  padding-top: 50px;
  background-color: 	#1C1C1C;
}

.project-section {
  padding-top: 100px;
  background-color: 	white;
}

.contact-section {
  padding-top: 100px;
  background-color: 	white;
}


.small-bar {
  height: 5px;
  width: 3rem;
  border-radius: 5px;
  background-color: #004870;
  margin: 0 auto;
  margin-top: 7px;
  margin-bottom: 7px;
}

.list-unstyled i {
  color: black;
  font-size: 40px;
}

.copyright {
  font-size: 12px;
}

.copyright > a {
  text-decoration: none!important;
  font-size: 13px;
  color: white;
  transition: ease .2s;
}

.copyright > a:hover {
  color: white;
}

.form-control:focus {
  border-color: #004870!important;
  box-shadow: 0 0 0 0.2rem  #2d6e90!important;
}

#about-me {
  -webkit-transition: all 0.5s ease;
}

.justify {
  text-align: justify;
  text-justify: inter-word;
}

html {
	scroll-behavior: smooth;
}

@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 10px;
  }

  .navbar a {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .card {
    width: 90%;
    margin: 10px auto;
  }

  .container {
    padding: 10px 10%;
  }
}

.form-control {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-section .container {
  max-width: 800px; /* Adjust width as needed */
  margin: auto; /* Centers the form */
}

#contact-form {
  width: 100%;
}

#contact-form .row {
  margin: 0; /* Removes unnecessary margins */
}

.md-form {
  width: 100%;
}

.md-form label {
  margin-bottom: 5px;
}

.md-form input, .md-form textarea {
  margin-bottom: 15px;
}


.md-form {
  padding-top: 0;
}

.btn-projects-send {
  width: 100%;
  padding: 10px 0;
  text-align: center;
}

#portefolio {
  padding: 5px 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 equal-width columns */
  gap: 50px; /* modern syntax, same as grid-gap */
  margin-top: 50px;
  align-items: stretch;
}

.project {
  border-radius: 15px;
  position: relative;
  overflow: hidden; /* keep for the overlay layer */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); /* base shadow */
}

.project img {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  display: block;
  transition: transform 0.5s;
}


.project h3{
    color: white;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 25px!important;
    font-family: 'Overpass', sans-serif;
}

.project p{
  color: white;
  font-size: 15px;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0,0,0,0.6), #004870);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
  text-align: center;
  font-size: 12px;
  transition: height 0.5s;
  box-sizing: border-box;
}

.layer a{
  margin-top: 20px;
  color: #2dd254;
  font-size: 24px;
  text-decoration: none;
  line-height: 60px;
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center!important;
}

.project:hover img {
  transform: scale(1.05) translateY(-10px); /* pops forward */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* deeper shadow */
}

.project:hover .layer{
  height: 100%;
}

.project {
  position: relative; z-index: 0;
}
.project img {
  display: block; z-index: 0;
}

.layer {
  position: absolute; z-index: 1;
}
