 /*------------ FONTS -------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/*------------ VERIABLES & DEFULTERS -------------*/
:root {
    --primery-color: #000000;
    --secondary-color: #FFFFFF;
    --second-background: #181818;
    --accent-color: #13bd46;
    --second-accent-color: #13bd46;

    --shadow-color: #13bd46;
    --shadow: 1px 4px 20px var(--shadow-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/*------------ CUSTOM SCROLLBAR -------------*/
::-webkit-scrollbar {
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track {
    background-color: #F1F1F1;
 }
::-webkit-scrollbar-thumb {
    background: var(--shadow-color);
    border-radius: 0;
}
::-webkit-slider-thumb:hover {
    background: var(--accent-color);
}

/*------------ CUSTOM TEXT HIGHLIGHT -------------*/
::selection {
    color: var(--secondary-color);
    background: var(--accent-color);
}

/*------------ PRELOADER -------------*/
.preloader::before {
    border: 1px solid var(--accent-color);
    animation: spin 2s linear infinite;
}
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/*------------ BUTTON DESIGN -------------*/
.btn {
    font-weight: 500;
    padding: 1rem 1.5rem;
    background: transparent;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
    border: .15em solid var(--accent-color);
    color: var(--secondary-color);
}
.btn > i {
    margin-left: 10px;
}
.btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 0 20px var(--accent-color);
    transform: scale(1.05);
}

/*------------ ICON DESIGN -------------*/
i {
    font-size: 16px;
}

/*------------ BASE -------------*/
body {
    background: var(--primery-color);
    overflow-x: hidden;
}
button, a {
    outline: none;
    text-decoration: none;
}
.container {
    width: 100%;
    position: relative;
}

/*------------ NAVBAR -------------*/
nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--primery-color);
    padding-inline: 9vw;
    transition: 2s;
    z-index: 100;
}
.nav-logo {
    position: relative;
    cursor: pointer;
    transition: 2s;
}
.nav-name {
    font-size: 30px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-left: 20%;
}
.nav-name span {
    color: var(--accent-color);
}
.nav-menu, .nav-menu-list {
    display: flex;
    z-index: 3;
}
.nav-menu, .nav-list {
    list-style: none;
    position: relative;
}
.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
    transition: all 3s;
    cursor: pointer;
}
.nav-link:hover {
    color: var(--accent-color);
}
.nav-menu-btn {
    color: var(--secondary-color);
    z-index: 5;
    display: none;
}
.nav-menu-btn i {
    font-size: 28px;
    cursor: pointer;
}
.active-link {
    position: relative;
    color: var(--accent-color);
}

/*------------ WRAPPER -------------*/
.wrapper {
    padding-inline: 95px;
    overflow: hidden;
}

/*------------ LANDING PAGE -------------*/
.landing-page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 3em 5%;
    gap: 70px;
}

/*------------ FEATURED TEXT -------------*/
.featured-text {
    color: var(--secondary-color);
}
.featured-name {
    font-size: 50px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-block: 20px;
}
.featured-name span {
    color: var(--accent-color);
}
.featured-text-info {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}
.featured-text-btn {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    margin-top: 2em;
}

/*------------ SOCIAL ICONS -------------*/
.social-icons {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px 0px var(--accent-color);
    cursor: pointer;
    transition: .2s;
    color: var(--accent-color);
}
.icon:hover {
    color: var(--secondary-color);
    background: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-color);
    transform: scale(1.2) translateY(-4px);
}

/*------------ PORTFOLIO IMAGE -------------*/
.profile-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20%;
}
.image {
    width: 330px;
    height: 330px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 25px var(--accent-color);
}
.image:hover {
    box-shadow: 0 0 25px var(--accent-color),
                0 0 50px var(--accent-color),
                0 0 65px var(--accent-color);
}
.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*------------ SCROLL BUTTON -------------*/
.scroll-btn {
    position: absolute;
    margin-top: 30%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    gap: 5px;
    cursor: pointer;
}
.scroll-btn i {
    position: relative;
    font-size: 25px;
    color: var(--accent-color);
    animation: hover 4s ease-in-out infinite;
}
@keyframes hover {
    50% {
        transform: translateY(1em);
    }
}

/*------------ MAIN BOX -------------*/
section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2em;
    padding: 3em  10%;
}

.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col {
    display: flex;
    width: 50%;
}
/*------------ HEADER -------------*/
.top-header {
    text-align: center;
    width: 100%;
}
.top-header h1{
    font-size: 2.5em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 10px;
}
.top-header h1 span{
    color: var(--accent-color);
}
.top-header span{
    color: var(--secondary-color);
}
h3{
    font-size:20px;
    font-weight: 600;
    color: var(--secondary-color);

}
/*------------ ABOUT -------------*/
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5%;
    width: 100%;
    flex-wrap: wrap;
    padding: 8px;
}

.about-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: 8px;
    margin-left: 8%;
    width: 100%;
    background: var(--primery-color);
    border: 2px solid var(--shadow-color);
    box-shadow: var(--shadow);
    border-radius: 20px;
    transition: .3s ease-out;
}
.about-info h3{
    padding-top: 10px;
    font-size: 24px;
    padding-top: 4%;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    padding: 5%;
    color: var(--secondary-color);
}
/*------------ SKILLS -------------*/
.skills{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
}
.skills > h3{
    font-size: 25px;
    font-weight: 600;
    padding: 2%;
}
.frontend{
    margin-left: 0;
}
.skills-header{
    font-size: 18px;
    margin-bottom: 10px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
}
.skills-list span{
    font-size: 14px;
    background: var(--second-accent-color);
    color: var(--secondary-color);
    padding: 2px 10px;
    border: 5px;
    border-radius: 5px;
    margin: 5px;
}

/*------------ PROJECTS -------------*/
.section {
    padding: 60px 40px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.top-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 19.20px;
}

.project-box {
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--accent-color);
}

.project-box i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.project-box h3 {
    margin: 10px 0 10px;
}

.project-box p {
    flex-grow: 1;
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.view-project-button {
    display: inline-block;
    text-align: center;
    padding: 10px;
    width: 50%;
    background-color: var(--second-accent-color);
    color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s ease;
}

.view-project-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}


/*------------ CONTACT -------------*/
.contact-section{
    display: flex;
    flex-direction: row;

}
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    margin-left: 2%;
    height: 310px;
    background: transparent;
    border-radius: 2px solid var(--accent-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info h2{
    color: var(--secondary-color);
    margin-top: 20%;
    transition: all .5s;
    font-size: 35px;
}

.contact-info p{
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    margin-top: 40px;
    transition: all .5;
    font-size: 20px;
}
.contact-social-icons{
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.contact-social-icons a{
    color: var(--secondary-color);
    margin: 5pc 0;
    transition: all .3s;
}
#contact .contact-info .contact-social-icons a:hover{
    color: var(--secondary-color);
    background-color: var(--accent-color);
}
/*------------ CONTACT FORM -------------*/
.form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-bottom: 30px;
    margin-right: 4%;
}

/* Name and Email inputs side by side */
.form-inputs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
}

.input-field {
    flex: 1;
    height: 55px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--second-background);
    border-radius: 15px;
    padding: 0 20px;
    outline: none;
    transition: 0.4s;
    caret-color: var(--secondary-color);
}

/* Hover and focus effect */
.input-field:hover,
.input-field:focus {
    border-color: var(--accent-color);
}
/* Message textarea full width */
.text-area textarea {
    width: 100%;
    height: 250px;
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--second-background);
    border-radius: 15px;
    padding: 15px 20px;
    outline: none;
    resize: none;
    transition: 0.4s;
}

.input-field:hover,
.input-field:focus,
.text-area textarea:hover,
.text-area textarea:focus {
    border-color: var(--accent-color);
}
/* Send button aligned to the left */
.form-button {
    display: flex;
    justify-content: flex-start;
}

.form-button .btn {
    padding: 12px 30px;
    color: var(--secondary-color);
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.form-button .btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 2em var(--accent-color);
}

.form-button i {
    font-size: 18px;
    rotate: -45deg;
}

/*------------ FOOTER -------------*/
footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-inline: 10vh;
    row-gap: 30px;
    background: var(--primary-color);
    padding-block: 40px 60px;
}
.top-footer{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer-menu-list{
    list-style: none;
    cursor: pointer;
}
.footer-menu-list a{
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0 20px;
    transition: .3s;
}
.footer-menu-list a:hover{
    color: var(--accent-color);
}
.buttom-footer{
    font-size: 14px;
    margin-top: 10px;
}
.bottom-footer p{
    color: var(--secondary-color);
}
.bottom-footer a{
    color: var(--accent-color);
}

/* FOOTER SCROLL BTN */
.F-scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    gap: 5px;
    cursor: pointer;
    margin-bottom: 15%;
}
.F-scroll-btn i {
    position: relative;
    font-size: 25px;
    color: var(--accent-color);
    animation: hover 4s ease-in-out infinite;
}
@keyframes hover {
    50% {
        transform: translateY(1em);
    }
}

/*------------ RESPONSIVE DESIGN -------------*/

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  nav {
    padding-inline: 5vw;
  }
  .nav-name {
    margin-left: 0;
  }
  .wrapper {
    padding-inline: 40px;
  }
  .landing-page {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-image {
    order: -1;
    padding: 0;
    margin: 40px 0 0 0;
  }
  .image {
    width: 280px;
    height: 280px;
  }
  .featured-name {
    font-size: 40px;
  }
  .scroll-btn {
    margin-top: 80%;
  }
  .row {
    flex-direction: column;
    gap: 30px;
  }
  .col {
    width: 100%;
  }
  .about-info {
    margin: 0 5%;
  }
  .contact-section {
    flex-direction: column;
    align-items: center;
  }
  .contact-info {
    height: auto; /* Auto height better than fixed */
    width: 78vw;
  }
  .contact-social-icons {
    padding-bottom: 20%;
  }
  .form-inputs {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }
  .text-area {
    margin-bottom: 0;
    width: 100%;
  }
}

/*------------ MOBILE RESPONSIVE FIXES (max-width: 768px) -------------*/
@media (max-width: 768px) {
    /* General Reset */
    body {
        overflow-x: hidden;
    }
    nav {
        height: 70px;
        line-height: 70px;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        width: 100%;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .nav-list {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 18px 0;
        font-size: 20px;
        color: var(--secondary-color);
    }

    .nav-link.active-link {
        color: var(--accent-color);
        font-weight: 600;
    }

    .nav-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    /* Landing Page Fixes */
    .landing-page {
        grid-template-columns: 1fr !important;
        padding: 100px 20px 60px !important;
        gap: 40px !important;
        text-align: center;
        min-height: auto;
    }
    
    .profile-image {
        margin: 0 auto 30px !important;
        order: -1;
    }
    
    .image {
        width: 220px !important;
        height: 220px !important;
    }
    
    .featured-name {
        font-size: 32px !important;
        margin: 15px 0 !important;
    }
    
    .featured-text-btn {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* About Section Fixes */
    #about {
        padding: 40px 20px !important;
        margin-top: 0 !important;
    }
    
    .about-info {
        margin: 10px !important;
        width: 100% !important;
        padding: 20px 15px !important;
    }
    
    /* Skills Section Fixes */
    .col-skills-section {
        text-align: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .skills > h3 {
        text-align: center;
    }
    
    .skills-list {
        justify-content: center;
    }
    
    /* Projects Section Fixes */
    .project-container {
        grid-template-columns: 1fr !important;
        padding: 0 20px !important;
        gap: 25px;
    }
    
    .project-box {
        width: 100%;
    }
    
    .view-project-button {
        width: 100%;
    }
    
    /* Contact Section Complete Overhaul */
    .contact-section {
        flex-direction: column !important;
        padding: 40px 20px !important;
        gap: 40px;
    }
    
    .contact-info {
        width: 100% !important;
        margin: 0 !important;
        height: auto !important;
        padding: 30px 20px !important;
        box-sizing: border-box;
    }
    
    .contact-info h2 {
        margin-top: 0 !important;
        font-size: 28px !important;
        text-align: center;
    }
    
    .contact-info p {
        margin-top: 20px !important;
        font-size: 16px !important;
        justify-content: center;
    }
    
    .contact-social-icons {
        display: none !important;
    }
    
    .form {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .form-inputs {
        flex-direction: column !important;
        gap: 15px;
    }
    
    .input-field, .text-area textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .text-area textarea {
        height: 180px;
        margin-top: 10px;
    }
    
    .form-button {
        justify-content: center !important;
        margin-top: 20px;
    }
    
    .form-button .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Footer Fixes */
    footer {
        padding: 40px 20px !important;
    }
    
    .footer-menu-list a {
        display: none !important;
    }
    
    .F-scroll-btn {
        display: none !important;
    }
    
    /* General Section Spacing */
    section {
        padding: 40px 20px !important;
    }
    
    .top-header h1 {
        font-size: 2em !important;
    }
    
    /* Hide scroll buttons on mobile */
    .scroll-btn {
        display: none !important;
    }
    
    /* Ensure no horizontal overflow */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}