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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #000000;
    --text-color: #e5e5e5; 
    --highlight-color: #fed700; 
    --secondary-color: #302f2f; 
    --btn-bg-color: #333; 
}

/*---------------------------Global Styles---------------------------*/
#particles-js {
    position: fixed;         
    top: 0;                  
    left: 0;                
    width: 100%;             
    height: 100%;            
    background-color: #000000;  
    pointer-events: none;   
    z-index: -1;              
}



html,
body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);  
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    line-height: 24px;
    background-color: var(--bg-color);
    padding-top: 70px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: auto;
    padding: 0 15px;
}

.container,
section {
    max-width: 100%;
}

/*---------------------------Header Section---------------------------*/
.header-area {
    position: fixed;        
    top: 0;                 
    left: 0;                 
    width: 100%;            
    z-index: 9999;           
    background-color: rgba(11, 11, 11, 0.9);  
    backdrop-filter: blur(8px);  
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: padding 0.3s ease-in-out, background-color 0.3s ease-in-out;
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

/* Navbar Default (Desktop View) */
.navbar {
    display: flex;
    align-items: center;
    list-style: none;
  }
  
  .navbar li {
    margin: 0 10px;
  }
  
  .navbar li a {
    text-transform: capitalize;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .navbar li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
  }
  
  /* Hover and Active Link */
  .navbar li a:hover,
  .navbar li a.active {
    color: var(--highlight-color);
    transform: scale(1.1);
  }
  
  .navbar li a:hover::after {
    width: 100%;
  }

/*---------------------------HomePage--------------------------*/

.FirstElement {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.FirstElement.adjusted-padding {
    padding-top: 40px;
}

.FirstElement .profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 15px solid var(--secondary-color);
    box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.profile-photo img:hover {
    transform: scale(1.2);
}

.profile-text {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-text h5 {
    color: var(--text-color);
    font-size: 14px;
}

.profile-text h1 {
    color:  var(--highlight-color) ;
    font-size: 3rem;
}

.profile-text p {
    color: var(--text-color);
    text-align: justify;
}

.profile-text .social i {
    color: var(--text-color);
    font-size: 18px;
    margin-right: 10px;
    transition: 0.5s;
}

.profile-text .social i:hover {
    color:  var(--highlight-color) ;
    transform: rotate(360deg);
}

#name {
    color:  var(--highlight-color) ;
    font-size: 3rem;
    min-height: 3.6rem;
    display: inline-block;
    overflow: hidden;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

/*---------------------------About Section---------------------------*/

.about-area {
    padding-top: 3rem;
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.about-content {
    flex-basis: 60%;
}

.about-content h4 {
    color:  var(--highlight-color) ;
    font-size: 40px;
    line-height: 70px;
    text-transform: capitalize;
}

.about-content ul {
    color: var(--text-color);
    text-align: justify;
}

.about-content ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.about-skills {
    flex-basis: 35%;
}

.about-skills ul li {
    border-bottom: 1px dashed var(--text-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 18px;
}

.about-skills ul li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}


/*---------------------------Button of Header Section---------------------------*/

.btn-group {
    margin: 45px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group .btn {
    border-color: #d5d5d5;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 12px 25px;
    margin: 5px 7px;
    border-radius: 30px;
    border: 2px solid var(--text-color);
    box-shadow: 0 10px 10px -8px rgb(0 0 0 / 78%);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.active {
    border-color:  var(--highlight-color) ;
}

.btn:hover,
.btn.active:hover {
    background-color:  var(--highlight-color) ;
    color: var(--btn-bg-color);
}

/*---------------------------Education & Internship Section---------------------------*/
.timeline {
    background-color:  var(--bg-color);
}

.education-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.education-content .title {
    color:  var(--highlight-color) ;
    font-size: 40px;
    line-height: 70px;
    text-transform: capitalize;
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.education-content .row .education,
.education-content .row .internship {
    color: var(--text-color);
    flex: 1 1 45%;
    margin-bottom: 30px;
}

.education-content .row .education {
    margin-right: 5%;
}

.education-content .row .internship {
    margin-left: 5%;
}

.education-content h3.title {
    font-size: 30px;
    line-height: 40px;
    color:  var(--highlight-color) ;
    margin-bottom: 20px;
}


.education-content .timeline {
    padding: 30px 15px;
    border: 1px solid var(--text-color);
    border-radius: 10px;
    position: relative;
}

.education-content .timeline-item {
    position: relative;
    padding-left: 37px;
    padding-bottom: 20px;
}

.education-content .timeline-item:last-child {
    padding-bottom: 0;
}

.education-content .timeline-item::before {
    content: "";
    width: 1px;
    position: absolute;
    height: 100%;
    left: 7px;
    top: 0;
    background-color:  var(--highlight-color) ;
}

.education-content .circle-dot {
    position: absolute;
    left: 0;
    top: 0;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: var(--text-color);
}

.education-content .timeline-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.education-content .timeline-text {
    line-height: 25px;
    font-size: 16px;
    text-align: justify;
}

/*---------------------------Projects Section---------------------------*/
.project-title {
    margin-bottom: 60px;
    text-align: center;
}

.project-title h4 {
    font-size: 40px;
    line-height: 40px;
    color:  var(--highlight-color) ;
    margin-bottom: 20px;
}

.project-title p {
    color: var(--text-color);
}

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

.project {
    color: var(--text-color);
    border: 2px solid var(--text-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    flex: 1 1 calc(33% - 20px); 
    margin: 10px;
    background-color:  var(--bg-color);
    transition: .3s;
}

.project i {
    background-color:  var(--highlight-color) ;
    width: 60px;
    height: 60px;
    color: var(--btn-bg-color);
    font-size: 26px;
    line-height: 60px;
    border-radius: 50%;
}

.project h4 {
    font-size: 26px;
    text-transform: capitalize;
    margin: 20px 0;
}

.project p {
    text-align: justify; 
    margin: 0; 
    padding: 0; 
    letter-spacing: normal; 
    word-spacing: normal; 
}

.project:hover {
    border-color:  var(--highlight-color) ;
}

/* ----------------------------------- My Skills Section ----------------------------- */

#skills {
    text-align: center;
    padding: 2rem;
}

#skills .title {
    color:  var(--highlight-color) ;
    font-size: 40px;
    line-height: 70px;
    text-transform: capitalize;
}

#skills .listProject {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

#skills .item {
    background-color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


#skills .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}


#skills .item img {
    width: 100%;
    height: auto;
    display: block;
}


#skills .name {
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--btn-bg-color);
    text-align: center;
}


.item i {
    font-size: 50px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--bg-color);
}


.item p {
    color: var(--btn-bg-color);
    padding: 15px;
}

#tailwind-css {
    font-size: 50px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--bg-color);
}

/* -------------------------------------- Contact Page ------------------------------------ */

.contact-section {
    padding: 50px 0;
    z-index: 1;
    position: relative;
}

.contact-header {
    text-align: center;
    margin-bottom: 20px;
}

.contact-header h1 {
    color:  var(--highlight-color) ;
    font-size: 40px;
    line-height: 70px;
    text-transform: capitalize;
}

p {
    color: var(--text-color);
}

.contact-in {
    width: 100%;
    max-width: 950px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px #666;
    justify-content: space-between;
    align-items: flex-start;
    background-color:  var(--bg-color);
}

.contact-map,
.contact-form {
    width: 100%;
    max-width: 48%;
    min-width: 300px;
    margin-bottom: 20px;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    padding-top: 5rem;
    margin-bottom: 2rem;
}

.contact-form {
    margin-top: 40px;
    padding: 50px;
    text-align: center;
}

.contact-form-txt {
    width: 100%;
    height: 40px;
    color: var(--bg-color);
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    outline: none;
    margin-bottom: 20px;
    padding: 15px;
    box-sizing: border-box;
}

.contact-form-txt::placeholder {
    color: #aaa;
}

.contact-form-textarea {
    width: 100%;
    height: 130px;
    color: var(--bg-color);
    border: 1px solid #bcbcbc;
    border-radius: 10px;
    outline: none;
    margin-bottom: 20px;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.contact-form-textarea::placeholder {
    color: #aaa;
}

.contact-form-btn {
    width: 70%;
    border: none;
    outline: none;
    border-radius: 50px;
    background:  var(--highlight-color) ;
    color: var(--bg-color);
    padding: 10px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: background 0.3s ease;
}

.contact-form-btn:hover {
    transform: scale(1.1);
}

.contact {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.contact li {
    width: 50px;
    height: 50px;
    margin: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    transition: 0.5s;
}

.contact li:hover {
    background-image: var(--gradient-bg);
    color: var(--text-color);
}

/* -------------------------------- Footer Section ------------------------- */

.footer {
    position: relative;
    width: 100%;
    padding: 15px 0 26px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Pseudo-element for the border */
.footer::before {
    content: '';
    position: absolute;
    left: 3rem;
    right: 3rem;
    top: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
}


.footer .message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.copyright {
    font-size: 12px;
}

/* --------------------------Back to top Button ------------------------------- */

#back-to-top {
    display: none;
    position: fixed;
    transition: background-color 0.3s ease, transform 0.3s ease;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color:  var(--highlight-color) ;
    color: black;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

#back-to-top:hover {
    transform: scale(1.1);
}

/*------------------- Responsive Design on small screen -------------------*/

/* Medium layout */
@media only screen and (min-width: 1000px) and (max-width: 1200px) {
    .container {
        max-width: 970px;
    }

}

@media (max-width: 1050px) {
    .FirstElement {
        flex-direction: column;
        padding-top: 2rem;
    }

    .profile-text {
        padding: 40px 0px;
        align-items: center;
        text-align: center;
    }

}

@media (min-width: 1024px) {
    .about {
        padding: 2rem;
    }

    .education-content {
        padding: 2rem;
    }

    .project-content {
        padding: 2rem;
    }


}

/* Tablet layout */
@media only screen and (min-width: 768px) and (max-width: 999px) {
    .container {
        max-width: 750px;
    }

    .education-content .row .education,
    .education-content .row .internship {
        flex: 1 1 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .project {
        flex: 1 1 45%;
    }

    #skills .item {
        width: calc(45% - 40px);
    }
}

/* Mobile Layout */
@media only screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .header .menu_icon {
        display: block;
    }

    .header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--bg-color);
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header ul.show {
        display: flex;
    }

    .header i {
        color: var(--text-color);
    }

    .profile-text h1 {
        font-size: 2.5rem;
    }

    #name {
        min-height: 3rem;
    }

    .profile-text {
        width: 100%;
        padding: 20px;
        align-items: center;
        text-align: center;
    }

    .FirstElement .profile-text p {
        text-align: justify;
    }

    .about {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .about-content h4 {
        text-align: center;
    }

    .about-content,
    .about-skills {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    .education-content .row {
        flex-direction: column;
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .education-content .row .education,
    .education-content .row .internship {
        flex: 1 1 100%;
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .projects {
        flex-direction: column;
        align-items: center;
    }

    .project {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }

    #skills {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
        padding: 0;
        flex-direction: column;
        align-items: center;
    }

    #skills .item {
        width: 100%;
        max-width: 500px;
        flex: 1 1 auto;
        margin: 0;
        box-sizing: border-box;
    }

    .contact-in {
        flex-direction: column;
        align-items: center;
    }

    .contact-map {
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-form {
        width: 100%;
        padding: 20px;
        margin-top: 5px;
    }

    .contact-map iframe {
        height: 300px;
    }


    .contact-header h1 {
        font-size: 32px;
        line-height: 50px;
    }

    .contact-form-btn {
        width: 90%;
    }
}

/* Navbar Responsive (Mobile View) */
@media (max-width: 767px) {
    .navbar {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(32, 32, 32, 0.95);
        padding: 15px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .navbar.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar li {
        margin: 10px 0;
        text-align: center;
    }

    .navbar li a {
        color: var(--text-color);
        font-size: 16px;
        padding: 10px;
    }

    .navbar li a:hover,
    .navbar li a.active {
        color:  var(--highlight-color) ;
    }

    .menu_icon {
        display: block;
        font-size: 24px;
        color: var(--text-color);
        cursor: pointer;
    }
}

@media (min-width: 768px) {
    .navbar {
        display: flex;
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
        box-shadow: none;
    }

    .menu_icon {
        display: none;
    }
}