@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");

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

body {
    font-family: "Poppins", sans-serif;
}

header {
    background-color: #2a2a72;
    height: 100vh;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
}

/* ////........Navbar.......//// */

.navbar {
    position: sticky;
    width: 100%;
    z-index: 500;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.menu-items {
    display: flex;
    padding-left: 1000px;
}

.menu-items li {
    list-style: none;
    padding: 1rem;
}

.menu-items a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.01rem;
}

.menu-items a:hover {
    border-bottom: 2px solid #ffa400;
}

.navbar .logo {
    order: 1;
    color: #f0f0e6;
    font-size: 2rem;
}

/* ////........Home Content........//// */

.home-content .name {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    width: 100%;
    text-align: center;
}

.home-content .name h1 {
    font-size: 2.2rem;
    text-align: center;
}

.home-content .name p {
    color: #f0f0f0;
    font-size: 1.5rem;
}

/* ////........About Me........//// */
/* General Section Styling */
.about-me {
    background-color: #2a2a72;
    padding: 60px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

/* About Me */
.about-heading,
.skills-heading {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.about-content img {
    height: 200px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 25px;
    color: #ffffff;
    text-align: center;
    max-width: 700px;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    margin-top: 60px;
}

.skills-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.skill-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}

.skill-item span {
    color: black;
    font-size: 1rem;
    font-weight: 600;
}

.skills-subheading {
    font-size: 1.8rem;
    color: #f3eded;
    margin: 30px 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}


/* ////.....Portfolio......///// */

.portfolio-section {
    padding: 60px 20px;
    background-color: #2a2a72;
}

.section-title {
    text-align: center;
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    flex: 1 1 calc(30% - 20px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.project-card img {
    width: 100%;
    height: 200px;
    /* Ensures consistent size */
    object-fit: contain;
    border-radius: 8px;
}

.tech-icons {
    margin: 10px 0;
    font-size: 1.9rem;
}

.project-tech i {
    font-size: 1.5rem;
    margin: 0 5px;
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 10px 15px;
    background-color: #ffa400;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #cc8300;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .project-card {
        flex: 1 1 100%;
    }
}

/* ////......Contact......///// */

.contact {
    padding: 50px 20px;
    background-color: #2a2a72;
    color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-content p {
    margin: 10px 0;
    font-size: 1rem;
    word-wrap: break-word;
}

.contact-content a {
    color: #ffa400;
    text-decoration: none;
    margin-left: 8px;
}

.contact-content a:hover {
    text-decoration: underline;
}

.contact-content i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 10px;
}

.social-links a {
    color: #ffa400;
    font-size: 1.6rem;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 600px) {
    .social-links a {
        font-size: 1.4rem;
    }
}

/* Responsive layout */
@media (max-width: 600px) {
    .contact {
        padding: 40px 10px;
    }

    .contact h2 {
        font-size: 1.5rem;
    }

    .contact-content p {
        font-size: 1rem;
    }

    .contact-content i {
        font-size: 1rem;
    }
}

/* ////......Media query......//// */

@media (max-width: 500px) {
    html {
        font-size: 60%;
    }

    .about-content p {
        font-size: 13px;
    }

    .about-content .left-content {
        flex-basis: 100%;
        text-align: center;
    }

    .menu-items {
        display: flex;
        padding-left: 70px;
    }

    .about-content .right-content {
        flex-basis: 100%;
    }

    .skills {
        width: 100%;
    }

    .skills-bar .bar .progress-line {
        width: 100%;
    }

    .menu-items a {
        text-decoration: none;
        color: #ffffff;
        font-size: 1.2rem;
        padding: 0.1rem;
    }

    .right-content h1 {
        margin-top: 3.2rem;
    }

    .contact-content p {
        margin: 10px 0;
        font-size: 1.5rem;
        word-wrap: break-word;
    }

    .contact-content i {
        margin-right: 8px;
        font-size: 1.8rem;
    }

    .contact-content {
        width: 100%;
    }
}

@media (min-width: 501px) and (max-width: 768px) {
    html {
        font-size: 65%;
    }

    .about-content .left-content {
        flex-basis: 100%;
        text-align: center;
    }

    .about-content .right-content {
        flex-basis: 100%;
    }

    .skills {
        width: 100%;
    }

    .skills-bar .bar .progress-line {
        width: 100%;
    }

    .right-content h1 {
        margin-top: 3.2rem;
    }

    .contact-content {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    html {
        font-size: 70%;
    }

    .about-content .left-content {
        flex-basis: 100%;
        text-align: center;
    }

    .about-content .right-content {
        flex-basis: 100%;
    }

    .skills {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .left-content h1 {
        margin-top: 3.2rem;
        text-align: center;
    }

    .right-content h1 {
        margin-top: 3.2rem;
        text-align: center;
    }

    .contact-content {
        width: 100%;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .header {
        height: 90vmax;
    }
}