* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    list-style: none;
    text-decoration: none;
}

 :root {
    --bg-color: #1f1f21;
    --text-color: #fff;
    --main-color: #ffae00;
    --big-font: 7rem;
    --p-font: 1.1rem;
}

body {
    background-color: #f2f2f2;
    color: var(--text-color);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background-color: #2d2d2d;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 15%;
    transition: all ease .45s;
}

.logo {
    color: var(--text-color);
    font-size: 25px;
    font-weight: 600;
}

.logo span {
    color: var(--main-color);
}

.navbar {
    display: flex;
    background-color: #2d2d2d;
}

.navbar a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 25px;
    transition: all ease .50s;
}

.navbar a:hover {
    color: var(--main-color);
}

.navbar a.active {
    color: var(--main-color);
}

.menu-btn {
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    padding: 10px 20px;
    border-radius: 100px;
    display: none;
    align-items: center;
    cursor: pointer;
}

#menu-icon {
    font-size: 28px;
    margin-left: 5px;
    z-index: 6;
}

section {
    padding: 0 15%;
}

.home {
    background: var(--bg-color);
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.home-img {
    width: 730px;
    height: 730px;
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-text span {
    padding: 5px 25px;
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    border-radius: 100px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}

.home-text h1 {
    font-size: var(--big-font);
    margin: 23px 0;
}

.home-text p {
    font-size: var(--p-font);
    font-weight: 400;
    color: #c3c3c3;
    line-height: 30px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.6s ease-in-out;
}

.btn:hover {
    transform: translateY(-5px);
    background: transparent;
    color: var(--main-color);
}

.two {
    background: #141414;
    border: 2px solid #141414;
    color: var(--text-color);
    margin-left: 25px;
}

.two:hover {
    color: #141414;
    background: var(--text-color);
    border: 2px solid var(--text-color);
}

.share {
    position: absolute;
    bottom: 3rem;
    left: 15%;
    display: flex;
    align-items: center;
}

.share p {
    font-size: 17px;
    color: var(--text-color);
    margin-right: 25px;
}

.social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    background: linear-gradient(130.08deg, #383528 0%, #191919 100%);
    box-shadow: 0px 20px 40px #00000070;
    border: 1px solid #3b3b3b;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 20px;
    margin: 0 7px;
    transition: all 0.6s ease-in-out;
}

.social i:hover {
    transform: translateY(-10px);
}

.home-img img {
    animation: img 2s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes img {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
    100% {
        transform: translateY(0);
    }
}

.about {
    padding-top: 30px;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background-color: #f2f2f2;
}

.about-grid {
    display: grid;
    grid-template-areas: 'img-area info-area info-area me-area me-area me-area' 'skills-area skills-area skills-area me-area me-area me-area';
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 50px;
}

.about-img {
    width: 200px;
    height: 200px;
    border: 1px solid black;
    grid-area: img-area;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-info {
    grid-area: info-area;
}

.about-info table {
    font-size: var(--p-font);
    font-weight: 400;
    color: #191919;
    line-height: 10px;
    margin-bottom: 30px;
}

.about-info table,
th,
td {
    padding: 15px;
    border-spacing: 500px;
    color: #191919;
    border-collapse: collapse;
    text-align: left;
}

.about-me {
    grid-area: me-area;
}

.about-me h5 {
    color: #191919;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 900;
}

.about-me p {
    color: #191919;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
}

.about-skills {
    grid-area: skills-area;
}

.skill-container {
    width: 95%;
    background-color: #4d4d4d;
    margin: 0px 10px;
}

.heading {
    color: #191919;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 900;
}

.p1 {
    color: #191919;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    padding: 5px 5px;
}

.skill {
    text-align: right;
    padding-top: 3px;
    padding-bottom: 5px;
    color: white;
}

.c {
    width: 90%;
    background-color: #007bff;
}

.cpp {
    width: 70%;
    background-color: #007bff;
}

.java {
    width: 50%;
    background-color: #007bff;
}

.python {
    width: 30%;
    background-color: #007bff;
}

.html {
    width: 80%;
    background-color: #007bff;
}

.css {
    width: 50%;
    background-color: #007bff;
}

.javascript {
    width: 30%;
    background-color: #007bff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.project {
    padding-top: 30px;
    color: #2d2d2d;
    background-color: #f2f2f2;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-title {
    color: #2d2d2d;
    text-align: center;
}

.project-section {
    background-color: #f2f2f2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-grid {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-grid img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.project-grid h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.project-grid p {
    color: #666;
    margin-bottom: 15px;
}

.project-grid a {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.project-grid a:hover {
    background-color: #0056b3;
}

@media (max-width: 1850px) {
    header {
        padding: 15px 8%;
        transition: .2s;
    }
    section {
        padding: 0 8%;
        transition: .2s;
    }
    .share {
        left: 8%;
        transition: .2s;
    }
}

@media (max-width: 1370px) {
    header {
        padding: 15px 4%;
        transition: .2s;
    }
    section {
        padding: 0 4%;
        transition: .2s;
    }
    .share {
        left: 4%;
        transition: .2s;
    }
     :root {
        --big-font: 5.5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 1020px) {
    .navbar a {
        margin: 0 15px;
    }
     :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 950px) {
    .share {
        display: none;
    }
    section {
        padding: 70px 4%;
    }
    header {
        padding: 11px 4%;
    }
    .home-text {
        order: 2;
    }
    .home-img {
        margin: auto;
        height: auto;
        width: auto;
    }
    .home-img img {
        max-width: 450px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 850px) {
    .navbar {
        position: fixed;
        width: 100%;
        height: 100vh;
        padding: 40px 50px;
        top: 0;
        right: 0;
        bottom: 0;
        left: -100%;
        display: flex;
        flex-direction: column;
        background: #2d2d2d;
        transition: all 0.4s ease-in-out;
    }
    .navbar a {
        display: block;
        color: #c3c3c3;
        padding: 0px;
        margin: 0px 0px 40px;
        font-size: 2rem;
        font-weight: 400;
    }
    .navbar.open {
        left: 0;
    }
    .menu-btn {
        display: block;
    }
    .home {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        width: 100vw;
        min-height: 100vh;
        align-items: center;
        justify-content: space-between;
        background: var(--bg-color);
        background-size: 100%;
        margin-right: 50px;
    }
    .home-text {
        font-size: 50%;
    }
    .home-img {
        margin: auto;
        height: auto;
        width: auto;
    }
    .home-img img {
        max-width: 450px;
        width: 100%;
        height: auto;
    }
}


/* Add this CSS for the contact section */


/* CSS for the contact section */

.contact-section {
    padding-top: 30px;
    background-color: #4a90e2;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-areas: 'form-area form-area form-area info-area info-area info-area' 'form-area form-area form-area message-area message-area message-area';
    grid-gap: 20px;
}

.message-form {
    padding: 20px;
    grid-area: form-area;
}

.contact-info {
    padding: 20px;
    grid-area: info-area;
}

.contact-message {
    padding: 20px;
    grid-area: message-area;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.social-icons {
    margin-bottom: 30px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #fff;
    color: #4a90e2;
    font-size: 20px;
    border-radius: 50%;
    margin: 0 10px;
    transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    background-color: #357ebd;
    color: #fff;
}

.message-form form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

button[type="submit"] {
    padding: 12px 24px;
    background-color: #fff;
    color: #4a90e2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #357ebd;
}

@media (max-width: 500px) {
     :root {
        --big-font: 4rem;
        --p-font: 15px;
        transition: .2s;
    }
    .btn {
        padding: 9px 28px;
    }
    .home {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        width: 100vw;
        min-height: 100vh;
        align-items: center;
        justify-content: space-between;
        background: var(--bg-color);
        background-size: 100%;
        margin-right: 50px;
    }
    .home-text {
        font-size: 90px;
    }
    .home-img {
        margin: auto;
        height: auto;
        width: auto;
    }
    .home-img img {
        max-width: 450px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 1850px) {
    .about {
        width: 100%;
        height: 100%;
        gap: 30px;
    }
    .about-grid {
        grid-template-areas: 'img-area info-area info-area me-area me-area me-area' 'skills-area skills-area skills-area me-area me-area me-area';
    }
    .about-img {
        width: 200px;
        height: 200px;
    }
    .about-img img {
        width: 100%;
        height: 100%;
    }
    .about-info table,
    th,
    td {
        padding: 15px;
        border-spacing: 500px;
    }
    .about-me {
        width: 100%;
        height: 100%;
    }
    /* :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    } */
}

@media (max-width: 1370px) {
    .about {
        width: 100%;
        height: 100%;
        gap: 50px;
    }
    .about-grid {
        grid-template-areas: 'img-area info-area info-area me-area me-area me-area' 'skills-area skills-area skills-area me-area me-area me-area';
    }
    .about-img {
        width: 180px;
        height: 180px;
    }
    .about-img img {
        width: 100%;
        height: 100%;
    }
    .about-info table,
    th,
    td {
        margin-top: -10px;
        padding: 15px;
        border-spacing: 300px;
    }
    .about-me {
        width: 95%;
        height: 95%;
    }
}

@media (max-width: 1020px) {
    .about-grid {
        grid-template-areas: 'img-area img-area img-area info-area info-area info-area' 'skills-area skills-area skills-area skills-area skills-area skills-area' 'me-area me-area me-area me-area me-area me-area';
    }
     :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
    .about-skills {
        width: 100%;
        height: 100%;
        padding: 10px 10px 10px 10px;
    }
    .about-me {
        padding: 10px 10px 10px 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (max-width: 950px) {
    .about-grid {
        grid-template-areas: 1fr;
    }
     :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 850px) {
    .about-grid {
        grid-template-areas: 1fr;
    }
     :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 500px) {
    .about-grid {
        grid-template-areas: 1fr;
    }
     :root {
        --big-font: 5rem;
        --p-font: 1rem;
        transition: .2s;
    }
}