@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth; 
    background-color: #f8f9fa;
    overflow-x: hidden;
}
/*------- navbar design ----------------*/
.navbar-toggler.custom-toggler {
    border: none; 
    font-size: 1.5rem; 
    color: #fff;
    padding: 0; 
    outline: none;
    margin-right: 67px;
    margin-top: 15px; 
}

.navbar.scrolled {
    background: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12); 
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar-brand {
    margin-left: 67px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    color: #007bff !important; 
}

#navbarNav {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    background-color:rgba(0,0,0,0.95);  
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    transform: translateY(-100%);
    opacity: 0;
}

#navbarNav.show {
    transform: translateY(0); 
    opacity: 1;
}

.overlay-menu {
    list-style: none;
    padding: 0;
    margin-top: -100px;
    text-align: center;
}

.overlay-menu .nav-item {
    margin: 5px 0;
}

.overlay-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important; 
    font-weight: 200;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.overlay-menu .nav-link:hover,
.overlay-menu .nav-link.active {
    color: #007bff !important;
}

body.menu-open {
    overflow: hidden;
}
.close-overlay {
    transition: color 0.2s;
}
.close-overlay:hover {
    color: #007bff;
}

.nav-link {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-link:hover {
    color: #fff !important;
}
/*------- hero section design ----------------*/
#hero {
    min-height: 100vh;
    width: 100vw;
    padding-top: 80px;
    background-image: linear-gradient(rgba(93, 90, 90, 0.4), rgba(93, 92, 92, 0.2)), url(./img/banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed; 
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#contact .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s;
}

#contact .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.lead {
    text-align: justify;
}

.about .img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 10px;
}
.skill-card {
    min-height: 200px;
    padding: 30px;
    margin-bottom: 20px;
    color: #ffffff; 
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px); 
}
.card-blue { background-color: #00c4ff; } 
.card-gray { background-color: #6C7A89; } 
.card-teal { background-color: #00c4ff } 

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-blue .card-icon {
    font-size: 0;
}
.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}
.card-image {
    width: 55px; 
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.card2{
  background-color: #fb8a2e;
}
.card h3{
  font-size: 15px;
}

.card h5{
  font-size: 23px;
}
.card p{
  font-size: 14px;
  color: #ddd;
}

 .education-info h4 {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
  font-size: 35px;
  text-transform: uppercase;
  text-align: center;
}
.education-info {
  padding: 13em 0em;
}




/* Responsive Design */
@media screen and (max-width: 980px) {
   #about .img {
      width: 100%;
      height: auto;
      margin-right: 50px;
  }
  #about h2 {
    font-size: 30px;
  }
  #about h3 {
    font-size: 30px;
  }
  #about p {
    font-size: 15px;
  }
  .verstion {
    margin-top: 22px;
  }
}

@media screen and (max-width: 480px) {
    .navbar-brand {
        margin-left: 50px;
        font-size: 1rem;
    }
    .navbar-toggler.custom-toggler {  
        font-size: 1rem; 
        margin-right: 70px; 
    }
    #hero h1 {
        font-size: 30px;
    }
    #hero p {
        font-size: 17px;
    }
    #hero .btn-lg {
        font-size: 0.70rem;
    }
    #about .img {
        width: 100%;
        height: auto;
        padding: 25px;
        border-radius: 40px;
    }
    #about h2, #about h3 {
        text-align: center;
    }
    #about .lead, #about p {
        text-align: justify;
    }
    #about .btn {
        display: flex;
        justify-content: center;
        margin: 20px auto;
        font-size: 0.90rem;
    }
}

@media screen and (max-width: 768px) {
   #about .img {
      width: 100%;
      height: auto;
  }
  #about h3 {
    font-size: 15px;
  }
  #about h3 {
    font-size: 14px;

  }
  #about .lead {
    font-size: 12px;
  }
  #about p {
    font-size: 12px;
  }
  #about .btn {
    margin-bottom: 10px;
    font-size: 0.70rem;   
    padding: 6px 14px;
  }

}

@media screen and (max-width: 360px) {
    .navbar-brand {
        margin-left: 30px;
    }
    .navbar-toggler.custom-toggler {   
        margin-right: 60px; 
    }
    #about .img {
        width: 100%;
        height: auto;
    }
    #about h3 {
        font-size: 20px;
    }
    #about .lead {
        font-size: 10px;
    }
    #about p {
        font-size: 13px;
    }
    #about .btn {
        margin: 20px auto;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}
