
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

/* Navbar */ 
nav {
    background-color: #000;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

nav h1 {
    left: 100px;
    color: #fff;
    cursor: pointer;

}
.marquee {
    
    font-weight: bold;
    white-space: nowrap;  
    overflow: hidden;     
    position: relative;   
    animation: marquee-animation 5s linear infinite;  
}

@keyframes marquee-animation {

    0% {
        transform: translateX(-100%);  
    }
    100% {
        transform: translateX(100%); 
    }
}


nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}


/* Navigation Links Styling */
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

/* Link Styling */
.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover Effect: Slide and Color Change */
.nav-links li a:hover {
    color: #1E90FF;
}

/* Underline Slide Effect on Hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: rgb(153, 0, 255);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Fade-in Effect on Page Load */
@keyframes navLinksFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links li {
    animation: navLinksFadeIn 0.6s ease forwards;
    opacity: 0;
}

/* Staggered Delay for Each Link */
.nav-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-links li:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-links li:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-links li:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-links li:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-links li:nth-child(6) {
    animation-delay: 0.6s;
}

/* Home Section */
 .home-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 100px 20px;
    min-height: 100vh;
}


.home-section h2 {
    color: #ddd;
    animation-delay: 0.2s; 
}

.home-section h1 {
    font-size: 3rem;
    color: #fff;
    animation-delay: 0.4s; 
}


.home-section .profession span {
    color: rgb(222, 158, 8);
    animation-delay: 0.6s; /
}

/* Staggered delay for child elements */
.home-section .content > * {
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay, 0.4s); 
}

/* Keyframes for fade-in and slide-up effect */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Example media query for responsiveness */
@media (max-width: 768px) {
    .home-section h1 {
        font-size: 2rem; 
    }
}

/* Profile Picture Styling */
.profile-pic {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.profile-pic img {
    width: 550px;
    height: 550px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgb(56, 30, 207);
    transition: transform 0.3s ease;
   
}


.profile-pic img {
    max-width: 100%; 
    height: auto; 
    /* border-radius: 50%; */
    box-shadow: 0 0 20px rgb(229, 227, 238);
    transition: transform 0.3s ease;
}


/* Hover Effect for Scaling Animation */
.profile-pic img:hover {
    transform: scale(1.1);
    
    
}
.content h2 h1 p:hover{

    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}
/* Optional Animation on Page Load */
@keyframes profilePicAppear {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-pic img {
    animation: profilePicAppear 0.5s ease;
}



/* Home Section Styling */
#home {
    padding: 50px;
   
    color: #ffffff;
    border-radius: 15px;
    /* box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); */
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}


#home {
    animation: borderAnimation 3s infinite;
}





  
  
 
  /* About Section */
.about-section {
    padding: 4rem 2rem;
    background-color: #111;
    color: #fff;
}

.about-title {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out;
}

.about-title h2 {
    font-size: 2rem;
    color: #fff;
}

.about-title p {
    font-size: 1rem;
    color: #fff;
    margin-top: 0.5rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.profile-picture {
    flex: 1;
    max-width: 300px;
    animation: slideInLeft 0.8s ease-in-out;
}

.profile-picture img {
    width: 100%;
    border-radius: 10px;
}

.profile-details {
    flex: 2;
    animation: slideInRight 0.8s ease-in-out;
}

.profile-details h3 {
    font-size: 1.8rem;
    color: #fff;
}

.profile-summary {
    font-style: italic;
    margin: 1rem 0;
}

.profile-summary:hover,
.additional-info:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease, color 0.3s ease;
}

.details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem 0;
    justify-content: space-around;
}

.details-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-column li {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.details-column li strong {
    color: #fff;
    margin-right: 10px;
    padding: 0 5px;
    font-weight: bold;
}

.details-column li span {
    color: #ddd;
    padding: 0 5px;
    margin: 0;
}

.details-column li:hover {
    background-color: #2a2a2a;
    border-radius: 5px;
    padding-left: 10px;
}

.additional-info {
    margin-top: 1rem;
    line-height: 1.6;
}

/* Keyframes for Animations */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-section {
        padding: 3rem 1.5rem;
    }

    .about-title h2 {
        font-size: 1.8rem;
    }

    .about-title p {
        font-size: 0.9rem;
    }

    .profile-details h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-picture {
        max-width: 200px;
    }

    .details-container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 2rem 1rem;
    }

    .about-title h2 {
        font-size: 1.5rem;
    }

    .about-title p {
        font-size: 0.8rem;
    }

    .profile-picture {
        max-width: 150px;
    }

    .profile-details h3 {
        font-size: 1.4rem;
    }

    .details-column li {
        font-size: 0.9rem;
    }
}

  
/* skill section  */
.skills-section {
    text-align: center;
    padding: 20px;
    height: auto;
    /* background-color: #007bff; */
}

.skills-section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.skills-section h2 span {
    color: #5314d1;
    margin-top: 30px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}


.skills-containers{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 70px;

}

.skill-card {
    width: 250px;
    padding: 20px;
    background-color: #112240;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    cursor: pointer;
    opacity: 1;
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.skill-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

/* Staggered delay for each skill card */
#skills .skill-card:nth-child(1) { animation-delay: 0.1s; }
#skills .skill-card:nth-child(2) { animation-delay: 0.2s; }
#skills .skill-card:nth-child(3) { animation-delay: 0.3s; }
#skills .skill-card:nth-child(4) { animation-delay: 0.4s; }

/* Active class to trigger animation */
.skill-card.active {
    opacity: 1;
    transform: translateY(20px) scale(20px);
}
.progress {
    margin-top: 10px;
}

.skill {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
}

.progress-bar-wrap {
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    background-color: #00d9ff;
    width: 0;
    transition: width 1s ease;
}


@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-containers {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-card {
        width: 80%;
        max-width: 300px;
        
    }
}

.skill-card:hover {
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.5);
    transform: scale(1.1) translateY(-10px); 
   
   
}

/* Section Styling */
section {
    padding: 100px 20px;
    text-align: center;
}

h2 span {
    color: rgb(69, 33, 197);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* About Section */
.about-section {
    padding: 80px 20px;
    text-align: center;
}

.about-section h2 span {
    color: rgb(80, 27, 203);
}

/* Responsive */
@media (max-width: 768px) {
    .home-section {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: none;
    }
}

/* project section  */
.projects-section {
    padding: 40px 20px;
    background-color: #111;
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    color: #f4f4f4;
    margin-top: 70px;
}

.projects-section h2 span {
    color: #007bff; 
}

.project {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #112240;
    padding: 20px;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-info {
    padding: 20px;    
    cursor: pointer;
   
}
.project-info  p:hover,
.project-info h3:hover{
    transform: scale(1.05);
   
        transition: transform 0.3s ease, color 0.3s ease; 
    }
/* Styling for project images */
.project-pic img {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Hover effect for projects */
.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Hover effect for images */
.project:hover .project-pic img {
    transform: scale(1.1);
}

/* Styling for project titles */
.project h3 {
    font-size: 1.8rem;
    color: #f4f4f4;;
    margin-top: 15px;
}

/* Styling for project descriptions */
.project p {
    font-size: 1rem;
    color: #f4f4f4;
    margin-top: 10px;
}

/* Responsive layout */
@media (max-width: 768px) {
    .project {
        flex-direction: column;
        align-items: center;
    }

    .project-pic img {
        max-width: 150px;
    }
}

/* Animation for the whole section */
.projects-section h2 {
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

.project {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    animation-delay: 1s;
}

.project:nth-child(2) {
    animation-delay: 1.2s;
}

.project:nth-child(3) {
    animation-delay: 1.4s;
}

/* Keyframe animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* contact me  */
.contact-container {
    display: flex;
    width: 90%;
    max-width: 1400px;
    background-color: #112240;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: auto;
    justify-content: space-between;
    color: #fff;

}

.contact-info {
    flex: 1;
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-info h2 span {
    color: #5226d4;
}

.contact-info h3 {
    font-weight: bold;
    margin-bottom: 15px;
    
}

.contact-info p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-details i {
    color:  #ffffff;
    margin-right: 8px;
}
.contact-details i:hover{
    font-size: 1.5rem;
    color:  #ffffff;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-icons i {
    font-size: 1.5rem;
    color:  #ffffff;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.social-icons i:hover {
    transform: scale(1.1);
    color: #3615d9;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 1rem;
    color: #000;
    background-color: #e0e0e0;
    border: none;
    border-radius: 5px;
    outline: none;
}

.contact-form textarea {
    resize: none;
    height: 100px;
}

.submit-btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #00d9ff;
    background-color: #112240;
    border: 2px solid #00d9ff;
    border-radius: 5px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 10px #0b0eac, 0 0 20px #450edd, 0 0 30px #34224b;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-container {
      flex-direction: column;
      padding: 20px;
      width: 90%;
    }
  
    .contact-info {
      padding-right: 0;
      margin-bottom: 20px;
      text-align: center;
      
    }
  
    .contact-info h2 {
      font-size: 1.8rem;
    }
  
    .contact-info p {
      font-size: 0.9rem;
    }
  
    .contact-details {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .social-icons  {
       justify-content: center;
     

      
    }
    
   
    
    .contact-form form {
      width: 100%;
    }
  
    .contact-form input,
    .contact-form textarea {
      font-size: 0.9rem;
    }
  
    .submit-btn {
      width: 100%;
    }
  }

  

