:root {
    --primary-color: #6c63ff;
    --secondary-color: #5848cc;
    --text-color: #333;
    --background-color: #fff;
    --subtitle-color: rgb(108, 99, 255);
    --profile-bg-color: #f3f3f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.first {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links .bg-changer {
    cursor: pointer;
}

.nav-links a.active,
.nav-links a:hover,
.nav-links .bg-changer:hover {
    color: var(--primary-color);
}

@media (max-width: 425px) {
    .first {
        padding: 10px 0;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 10px 0;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .bg-changer {
        margin-top: 10px;
    }
}


/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5% 0;
}

.hero-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10%;
    flex-wrap: wrap;
}

.social {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.social a {
    color: var(--text-color);
    text-decoration: none;
}

.social a:hover {
    color: var(--secondary-color);
}

.text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--subtitle-color);
    margin-bottom: 20px;
}

.text p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.btn {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Image Section */

.image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--profile-bg-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic img {
    width: 100%;
    height: auto;
}

/* Scroll Down */
.scroll-down {
    text-align: center;
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 1rem;
    animation: bounce 2s infinite;
}

.scroll-down a {
    text-decoration: none;
    color: var(--primary-color);
}

.scroll-down span {
    font-size: 2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}
@media (max-width: 600px) {
    .social {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .text h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .text p {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .profile-pic {
        width: 250px;
        height: 250px;
    }

    .scroll-down {
        font-size: 0.9rem;
    }

    .scroll-down span {
        font-size: 1.5rem;
    }
}


/* About Section*/

.about {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 4% 0;
}

.image2 {
    width: 280px;
    height: 280px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    border-radius: 5%;
}

.image2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.para1 {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    padding: 1rem;
    box-sizing: border-box;
}
.para1 .new1 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.seg {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.seg1,
.seg2 {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .container2 {
        flex-direction: column;
        align-items: center;
    }

    .para1 {
        width: 100%;
        padding: 1rem 0.5rem;
    }

    .image2 {
        width: 200px;
        height: 200px;
    }

    
}

/* Skills section */

.skills {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.skillset {
    padding: 5% 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ch1 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.languages {
    margin: 20px auto;
}

.box1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}
.skill-logo {
    color: var(--secondary-color);
}
.arrow {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 500;
}

.box2 {
    width: 100%;
    height: 4px;
    background-color: rgba(108,96,255,0.5);
    border-radius: 2px;
    position: relative;
    z-index: -1;
}
.cent {
    width: 80%;
    height: 4px;
    background-color: rgba(108,96,255,1);
    border-radius: 2px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
.cent0 {
    width: 90%;
}
.cent1 {
    width: 80%;
}
.cent2 {
    width: 70%;
}
.cent3 {
    width: 60%;
}
.cent4 {
    width: 50%;
}
.cent5 {
    width: 40%;
}
.cent6 {
    width: 30%;
}

/* Projects section */
.projects {
    padding: 4rem 1rem;
    text-align: center;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-inline: auto;
}

.project-card {
    border: 2px solid #d2c9c9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(70, 66, 66, 0.08);
    overflow: hidden;
    padding-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-title {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem;
}

.project-desc {
    padding: 0 1rem;
    font-size: 0.95rem;
    color: #555;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-links a {
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #333;
    color: white;
}


/* Services Button */

.services {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.srvbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.service-box {
    width: 200px;
    height: 200px;
    border: 2px solid var(--text-color);
    padding: 50px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20%;
}

.services a {
    text-decoration: none;
    color: var(--text-color);
}

.service-box:hover {
    border-inline-color: var(--primary-color);
}

.icon1 {
    color: var(--secondary-color);
}

/*Poster */

.idea {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    flex-wrap: wrap;
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 40px;
}

.share-idea {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.btn3 {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    color: #f3f3f3;
    background-color: var(--priary-color);
}

.btn3:hover {
    background-color: var(--secondary-color);
}

.image3 {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
}
.image3 img {
    width: 100%;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.heading3 {
    text-align: center;
    margin-bottom: 20px;
}

.heading3 h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-color);
}

.heading3 p {
    font-size: 1rem;
    color: var(--text-color);
}

.contact-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.part1 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.part1 div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.part1 div h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
}

.part1 div p {
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
}

.part1 div p a {
    text-decoration: none;
    color: var(--text-color);
}

.part1 div p a:hover {
    color: var(--primary-color);
}

.part2 {
    width: 400px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input, 
form textarea, 
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
}

form input:focus, 
form textarea:focus, 
form select:focus {
    border-color: #6c63ff;
    outline: none;
}

form textarea {
    height: 100px;
    resize: none;
}

.submit-button {
    padding: 10px 15px;
    background-color: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-button:hover {
    background-color: #574bd7;
}

/* Footer Section */
.footer {
    background: #6c63ff;
    color: #fff;
    margin-top: 40px;
    padding: 30px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin: 0;
}

.footer-logo p {
    font-size: 1rem;
    margin: 5px 0 0;
    color: #e4e4e4;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-nav ul li {
    display: inline;
}

.footer-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-nav ul li a:hover {
    color: #dcdcdc;
}

.footer-social a {
    margin: 0 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #dcdcdc;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    font-size: 0.9rem;
    color: #e4e4e4;
}

.footer-bottom p {
    margin: 0;
}

/* Up to 1200px */
@media (min-width: 800px) and (max-width: 1200px) {
    .hero-content,
    .idea,
    .contact-main,
    .skillset,
    .srvbtn {
        justify-content: center;
        align-items: center;
        gap: 50px;
    }

    .image3 {
        margin: 40px auto;
    }

    .idea {
        padding: 30px;
    }
}

/* Up to 1045px */
@media (max-width: 1045px) {
    .image {
        margin: 2% auto;
    }

    .idea,
    .srvbtn {
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    .image3 {
        margin: 40px auto;
    }
}

/* Up to 800px */
@media (max-width: 800px) {
    .skillset,
    .contact-main,
    .srvbtn {
        justify-content: center;
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Up to 630px */
@media (max-width: 630px) {
    .container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .languages {
        margin: 40px auto;
    }

    .idea,
    .image3,
    .contact-main {
        padding: 20px;
        margin: 20px auto;
        justify-content: center;
        align-items: center;
    }

    .srvbtn {
        justify-content: center;
        gap: 40px;
    }
}

/* Up to 425px */
@media (max-width: 425px) {
    .first {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .logo {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .bg-changer {
        margin-top: 10px;
    }

    .social {
        display: none;
    }

    .hero-content {
        gap: 30px;
        flex-direction: column;
    }

    .text h1 {
        font-size: 2rem;
    }

    .profile-pic {
        width: 200px;
        height: 200px;
    }
}

/* Up to 350px */
@media (max-width: 350px) {
    .image,
    .image2 {
        margin: 10px auto;
    }

    .ch1 {
        margin-top: 20px;
    }

    .image3 img {
        border-radius: 50%;
    }

    .idea {
        padding: 10px;
    }
}
