
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-image: url('bg2.jpg');
    color: #ffffff;
    background-size: 100%;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
   
}

header {
   
    color: #ffffff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #e8491d 3px solid;
}

header .profile img {
    width: 100px;
    border-radius: 80%;
    border: 4px solid rgb(18, 31, 92);
    margin: 10px auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

header .profile img:hover{
    transform: scale(1.2);
}
header .contact-info ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

header .contact-info ul li {
    display: inline-block;
    padding: 0 10px;
}

header .contact-info ul li i {
    margin-right: 5px;
}

section {
    padding: 20px 0;
    border-bottom: 1px solid #e6e6e6;
}

section .container h2 {
    margin-bottom: 20px;
}

.container .skill-box{
    width: 100%;
    margin: 25px 0;
}

.skill-box .title{
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.skill-box .skill-bar{
    height: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.363);
}

.skill-bar .skill-per{
    position: relative;
    display: block;
    height: 100%;
    width: 90%;
    border-radius: 6px;
    background: #ffffff;
    animation: progress 2s ease-in-out forwards;
    opacity: 0;
}

.skill-per.css{
    width: 70%;
    animation-delay: 0.1s;
}

.skill-per.javascript{
    width: 50%;
    animation-delay: 0.2s;
}

.skill-per.nodejs{
    width: 30%;
    animation-delay: 0.3s;
}

@keyframes progress {
    0%{
        width: 0;
        opacity: 1;
    }
    100%{
        opacity: 1;
    }
}

.skill-per .tooltip{
    position: absolute;
    right: -14px;
    top: -28px;
    font-size: 9px;
    font-weight: 500;
    color: #394dae;
    padding: 2px 6px;
    border-radius: 3px;
    background: #ffffff;
    z-index: 1;
    display: none;
}

.tooltip::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    height: 10px;
    width: 10px;
    z-index: -1;
    background-color: #fcfdff;
    transform: translateX(-50%) rotate(45deg);
}

.about {
    text-align: center;
}

.about h2 {
    transition: color 0.3s ease, transform 0.3s ease;
}


.about p {
    font-size: 1.1em;
    line-height: 1.6;
    transition:  transform 0.3s ease;
}

.about p:hover {
    transform: scale(1.05); 
}

.experience ul, .education ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.experience ul li, .education ul li {
    margin-bottom: 20px;
}

.experience ul li .date, .education ul li .date {
    font-weight: bold;
    color: #9788db;
    margin-bottom: 5px;
}

.experience ul li .info h3, .education ul li .info h3 {
    margin-bottom: 5px;
}

.projects {
    padding: 20px 0;
}

.projects .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.project {
    width: 45%;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 10px;
    text-align: center;
}

.project img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.project p {
    color: #ffffff;
    font-size: 1em;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.project:hover img {
    transform: scale(1.05);
}

.hobbies ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.hobbies ul li {
    display: inline-block;
    padding: 0 15px;
    font-size: 1.2em;
}

.links ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.links ul li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.links ul li i {
    margin-right: 5px;
}

.contact .form-group {
    margin-bottom: 15px;
}

.contact label {
    display: block;
    font-weight: bold;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    color: #333;
}

.contact a {
    width: 30%;
    padding: 10px;
    margin-left:360px;
    background: #06487148;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.fade-in {
    transition: opacity 4s ease;
    opacity:0;
}

.fade-in.show {
    opacity: 1;
}


.contact a:hover {
    background: #23098a;
}

.resume a:hover {
    background-color: #0a0475;
}

footer {
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    border-top:#000 5px solid; 
    margin-top: 20px;
    border-radius: 205px 0 0 ;
    background-image:image-set("bg3.jpg");
    }


.skill-box:hover .skill-bar .skill-per {
    animation: none; 
    opacity: 1; /
}

.skill-box:hover .tooltip {
    display: block; 
}


header .profile img, .skill-box .skill-bar .skill-per, .tooltip, .resume a, footer {
    transition: transform 0.3s ease, background-color 0.3s ease; 
}

.resume a{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #0056b3;
    transition: background-color 0.3s, border-color 0.3s;
}
















/* =========================
   MOBILE RESPONSIVE ONLY
========================= */
@media (max-width: 768px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background-size: cover;
    padding: 10px;
  }

  .container {
    width: 95%;
    margin: auto;
  }

  /* HEADER */
  header {
    text-align: center;
    padding-top: 15px;
  }

  header .profile img {
    width: 80px;
  }

  header .contact-info ul li {
    display: block;
    padding: 5px 0;
  }

  /* SECTIONS */
  section {
    padding: 15px 0;
  }

  /* SKILLS */
  .skill-box {
    margin: 15px 0;
  }

  /* PROJECTS → STACK VERTICALLY */
  .projects .container {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    margin-bottom: 20px;
  }

  /* HOBBIES */
  .hobbies ul li {
    display: block;
    padding: 5px 0;
    font-size: 1em;
  }

  /* LINKS */
  .links ul li {
    font-size: 1em;
  }

  /* CONTACT FORM */
  .contact input,
  .contact textarea {
    width: 100%;
  }

  .contact a {
    width: 100%;
    margin-left: 0;
    font-size: 1em;
  }

  /* FOOTER */
  footer {
    border-radius: 0;
    padding: 15px;
  }
}