body {
    font-family: Arial, sans-serif;
    color: white;
    background: radial-gradient(circle at top, #0f172a 0%, #020617 90%, #000000 100%);
    height: 100%;
    width: 100%;
}


.nav-head {
    margin-left: 15%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 210px;
}

.logo-khizar {
    font-size: 30px;
    font-weight: bold;
    color: #ffb703;
    text-transform: uppercase;
    text-shadow: 0 0 10px #ffb703;
}

.logo-khan {
    font-size: 30px;
    font-weight: bold;
    color: #38bdf8;
    font-style:oblique;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #38bdf8;
    transition: 0.3s;
}

.nav-link:hover {
    color: #38bdf8 !important;
}

.nav-link:hover::after {
    width: 100%;
}


.hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
}

.text {
    font-style: italic;
}

.para {
    max-width: 500px;
    margin: auto;
    margin-bottom: 20px;
}

.mybtn {
    padding: 2px 25px 2px 25px;
    border: none;
    outline: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    height: 45px;
    width: 160px;
    text-align: center;
    margin: 10px;


}

.mybtn::after {
    content: "";
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #302194;
    border-radius: 10px;
}

.mybtn::before {
    content: "";
    background: linear-gradient(45deg,
            #0f172a 0%,
            #1e293b 15%,
            #302194 30%,
            #4338ca 45%,
            #6366f1 60%,
            #22d3ee 75%,
            #0ea5e9 90%,
            #2563eb 100%);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 13s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.mybtn:hover::before {
    opacity: 1;
}

.mybtn:hover::after {
    background-color: transparent;
    opacity: 1;

}

.mybtn:active {
    color: #000;
    font-weight: bold;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.01);
}

.about {
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: center;
}


.about-text h1 {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-text {
    max-width: 1000px;
    margin: auto;
    margin-bottom: 20px;
    color: white;
}

.about-text p {
    color: rgb(174, 174, 174);
    font-size: 20px;
    font-weight: 500;
}

.my-skills {
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.my-skills h2 {
    font-size: 38px;
    margin-bottom: 50px;
    color: #ffb703;
    font-weight: bold;
}
.skills {
    width: 90%;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 0 10px #302194;
    overflow: hidden;
    margin-bottom: 30px;
}
.skills h3 {
    color: #ffb703;
    font-weight: bold;
    margin-bottom: 20px;
}
.skills-container {
    display: flex;
    gap: 25px;
    width: max-content;
}
.scroll-left {
    animation: scrollLeft 18s linear infinite;
    will-change: transform;
}
.scroll-right {
    animation: scrollRight 18s linear infinite;
    will-change: transform;
}
@keyframes scrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}
@keyframes scrollRight {
    0%   { transform: translateX(-33.33%); }
    100% { transform: translateX(0); }
}
.skill-card {
    width: 220px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
    background-color: #30219482;
    cursor: pointer;
}
.skill-card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
    background-color: #302194;
    position: relative;
    z-index: 1;
}
.skill-card h3 {
    margin-bottom: 10px;
    color: rgb(212, 236, 78);
}
.skill-card p {
    color: #cbd5e1;
    font-size: 14px;
}
.projects {
    font-size: 44px;
    margin-bottom: 50px;
    color: #ffb703;
    font-weight: bold;
    text-align: center;
    text-transform: capitalize;
}

.container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    backdrop-filter: blur(10px) !important;
    width: 300px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: 0.3s ease;
}

.card img:hover {
    transform: scale(1.02);
}

.card h1 {
    font-size: 30px;
    color: #c5d644;
    font-weight: bold;
    margin: 10px 20px;
    text-transform: capitalize;
}

.card p {
    color: #cbd5e1;
    font-size: 14px;
}

.card a {
    padding: 5px;
    color: #c5d644;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: capitalize;
    text-decoration: none;
    transition: 0.3s ease;

}

.card a:hover {
    width: 150px;
    font-weight: bold;
    margin-bottom: 20px;
    background-color: #302194;
    border-radius: 5px;
    transform: scale(1.1);

}

.contact {
    display: flex;
    justify-content: space-evenly;
    gap: 25px;

}

.contact-section h1 {
    font-size: 44px;
    margin-top: 50px;
    color: #ffb703;
    font-weight: bold;
    text-align: center;
    text-transform: capitalize;
}

.contact-section p {
    font-size: 20px;
    text-align: center;
    color: #c5d644;
    margin-bottom: 50px;
    text-transform: capitalize;
}

.addres {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 15px;
    color: #c5d644;
    transition: 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.addres-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.addres h3 {
    font-size: 30px;
    color: #38bdf8;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.addres a {
    font-size: 20px;
    color: #c5d644;
    margin-bottom: 10px;
    text-transform: capitalize;
    text-decoration: none;
    transition: 0.3s ease;
}

.addres p {
    font-size: 20px;
    color: #c5d644;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.addres i {
    width: 70px;
    height: 70px;
    font-size: 40px;
    color: #c5d644;
    margin: 10px 0px 10px 0px;
    padding: 10px;
    background-color: #2f2f31;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;

}

.form {
    width: 35%;
    background-color: #2f2f31;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 10px #302194;
}

.form-text h1 {
    font-size: 30px;
    color: #ffffff;
    font-weight: bold;
    margin: 10px 20px;
    text-transform: capitalize;
}

.form form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    outline: none;
    background-color: transparent;
    border-bottom: 2px solid #ffffff;
    color: #ffffff;


}

form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: transparent;
    border-bottom: 2px solid #ffffff;
    color: #ffffff;
}

form button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    outline: none;
    background-color: #ff4f00;
    color: #ffffff;
    cursor: pointer;
}

form button:hover {
    background-color: #8a591a;
}

.resume-section {
    text-align: center;
    padding: 50px 20px;
    color: #fff;
}

.resume-section h2 {
    color: #ffb703;
    margin-bottom: 30px;
    font-size: 44px;
    font-weight: bold;
}

.resume-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

.resume-card:hover {
    transform: translateY(-5px);
}

.resume-info h3 {
    margin: 0;
}

.resume-info p {
    margin: 5px 0;
    color: #38bdf8;
}

.resume-info span {
    font-size: 12px;
    color: #94a3b8;
}

.resume-btns a {
    text-decoration: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.view-btn {
    background: #38bdf8;
    color: #000;
}

.download-btn {
    background: #22c55e;
    color: #000;
}

.myfooter {
    background: radial-gradient(circle at top, #0f172a 0%, #020617 90%, #000000 100%) !important;
    color: #c5d644 !important;
}




@media (max-width: 991px) {
    .nav-head {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile Toggle Dropdown Menu Styling */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98); 
        backdrop-filter: blur(15px);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 8px 32px rgba(48, 33, 148, 0.4);
        border: 1px solid rgba(56, 189, 248, 0.1);
    }

    .nav-link::after {
        display: none; 
    }

    .navbar-nav .nav-item {
        margin: 8px 0;
    }

    /* Hero Section Tablet Layout */
    .hero {
        flex-direction: column-reverse; 
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .hero-image img {
        max-width: 300px;
        margin: auto;
    }

    /* Contact Section Layout */
    .contact {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .form {
        width: 80%; 
    }
}

/* 2. Mobile Phones ke liye (Max-width: 576px) */
@media (max-width: 576px) {
    .logo-khizar, .logo-khan {
        font-size: 29px; 
    }

    .about-text h1, 
    .my-skills h2, 
    .projects, 
    .contact-section h1, 
    .resume-section h2 {
        font-size: 32px !important;
        margin-bottom: 30px;
    }

    .about-text p {
        font-size: 16px;
        line-height: 1.6;
    }

    .skills {
        width: 100%;
        padding: 30px 15px; /* Skill section ki spacing adjust ki */
    }

    /* Project Cards Fix (Fixed Height ko Overwrite kiya) */
    .card {
        width: 100% !important;
        max-width: 320px;
        height: auto !important; /* Fixed 100px height khatam taaki content fit ho */
        padding: 20px 15px;
    }

    .card img {
        height: 180px; /* Mobile screen ke mutabiq perfect image height */
    }

    /* Contact Form & Address Fix */
    .form {
        width: 100% !important; /* Form mobile par full container cover karega */
        padding: 20px 15px;
    }

    .addres-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .addres i {
        margin: 0 0 10px 0; /* Icon top par center ho jayega */
    }

    /* Resume Card Layout Mobile Fix */
    .resume-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .resume-btns {
        display: flex;
        gap: 12px;
        margin: 0;
    }
    
    .resume-btns a {
        margin: 0;
        padding: 10px 20px;
    }
}

