
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

header {
    background-color: #1c1c1c;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

nav h1 {
    color: #ffffff;
    font-size: 1.8rem;
    transition: transform 0.3s ease-in-out;
}

nav h1:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

nav ul li a {
    text-decoration: none;
    color: #ccc;
    padding: 0.5rem 1rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 0%;
    height: 2px;
    background: #00bcd4;
    transition: width 0.4s ease-in-out;
}

nav ul li a:hover {
    color: #fff;
}

nav ul li a:hover::after {
    width: 80%;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    background: linear-gradient(to right, #ffffff, #5292c0);
    min-height: 100vh;
    overflow: hidden;
    animation: fadeIn 1s ease-in;
}

.hero .content {
    flex: 1 1 400px;
    max-width: 600px;
    padding: 1rem;
    animation: slideInLeft 1s ease forwards;
}

.hero .content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #222;
}

.content h3 {
    font-weight: 200;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #111827;
    line-height: 1.1;
  }

  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #421919;
    color: #fce5e5;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
  }
  .social-icon:hover {
    background-color: yellow;
  }
  .social-icon i {
    margin: auto;
  }
  

.hero .image {
    flex: 1 1 250px;
    text-align: center;
    padding: 1rem;
    animation: slideInRight 1s ease forwards;
}

.hero .image img {
    width: 60%;
    max-width: 340px;
    min-width: 260px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}


.hero .image img:hover {
    transform: scale(1.03);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }
    
    nav ul.show {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transition: all 0.4s ease-in-out;
    }
    
    .hero {
        flex-direction: column-reverse;
        padding: 2rem;
        text-align: center;
    }

    .hero .image {
        flex: 1 1 100%;
        padding: 1rem 0;
        margin-top: 2rem;
    }

    .hero .image img {
        width: 90%;
        max-width: 320px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }
    .hero .content h2 {
        font-size: 2rem;
    }

    .hero .buttons {
        justify-content: center;
    }
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color:white;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        transition: max-height 0.3s ease;
        overflow: hidden;
        max-height: 0;
    }
    
    nav ul.show {
        max-height: 300px;
    }
    

    nav ul li {
        margin: 0.6rem 0;
    }

    nav ul li a {
        font-size: 1.1rem;
    }
}


.about {
    padding: 40px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about.show {
    opacity: 1;
    transform: translateY(0);
}

  
   .about h2 {
    font-size: 2.7em;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
   }
  
   .about ul {
    list-style: none;
    padding: 0;
   }
  
   .about li {
    margin-bottom: 18px;
   }
  
   .about strong {
    font-weight: 600;
    color: #777;
    margin-right: 8px;
   }
  
   .about h3 {
    font-size: 2.1em;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 35px;
    margin-bottom: 18px;
   }
  
   .about h3 + ul {
    padding-left: 20px;
   }
  
   .about a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
   }
  
   .about a:hover {
    color: #2980b9;
   }
   
   .skills {
    padding: 50px 20px;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
  }
  
  .skills.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .skills h2 {
    font-size: 2.5em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .skill-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  @media (min-width: 600px) {
    .skill-list {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  .skill {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  }
  
  .skill:hover {
    transform: translateY(-5px);
  }
  
  .skill h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: 500;
  }
  
  .progress {
    background-color: #e0e0e0;
    border-radius: 25px;
    height: 20px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 100%;
    border-radius: 25px;
    background-image: linear-gradient(90deg, #3498db, #2ecc71);
    color: #fff;
    text-align: right;
    padding-right: 10px;
    font-size: 0.9em;
    font-weight: 500;
    line-height: 20px;
    width: 0; /* Initial hidden width */
    transition: width 1.4s ease-in-out;
  }
  .contact {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    color: #2c3e50;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
  }
  
  .contact.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .contact h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #3498db;
    display: inline-block;
    padding-bottom: 10px;
  }
  
  .contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
  }
  
  .contact-info {
    flex: 1;
    min-width: 250px;
    font-size: 1.1em;
  }
  
  .contact-info p {
    margin: 12px 0;
  }
  
  .contact-info i {
    margin-right: 10px;
    color: #3498db;
  }
  
  .contact-info a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .contact-info a:hover {
    color: #2980b9;
  }
  
  .contact-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
  }
  
  .contact-form input,
  .contact-form textarea {
    margin-bottom: 15px;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border 0.3s ease;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #3498db;
    outline: none;
  }
  
  .contact-form button {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    font-weight: 500;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #2980b9;
  }
  .footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 30px 20px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease;
  }
  
  .footer.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .footer-container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .footer p {
    margin-bottom: 15px;
    font-size: 1em;
  }
  
  .footer-socials a {
    color: #ecf0f1;
    margin: 0 10px;
    font-size: 1.2em;
    transition: color 0.3s ease;
  }
  
  .footer-socials a:hover {
    color: #3498db;
  }
      

