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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: 0.3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--bg-color);
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: var(--main-color);
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.9;        
    margin-top: 2.5rem;       
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    animation: floatImage 4s ease-in-out infinite;
    object-fit: cover;
    object-position: center 25%;
    aspect-ratio: 1/1;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.5s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 2rem var(--main-color);
}

.btn i {
    margin-right: 0.5rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 35vw;
    border-radius: 2rem;
    box-shadow: 0 0 25px var(--main-color);
    object-fit: cover;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
    color: var(--main-color);
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.8;
}

.info-row {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
}

.info-item i {
    color: var(--main-color);
    font-size: 2rem;
}

/* Skills Section */
.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--bg-color);
}

.skills h2 {
    margin-bottom: 5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.skills-container .skills-box {
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid var(--main-color);
    transition: 0.5s ease;
}

.skills-container .skills-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
    box-shadow: 0 0 2rem var(--main-color);
}

.skills-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.skills-box h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.skills-box p {
    font-size: 1.6rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.6;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
}

/* Education Section */
.education {
    min-height: auto;
    padding-bottom: 10rem;
    background: var(--second-bg-color);
}

.education h2 {
    margin-bottom: 3rem;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-box {
    border-left: 0.2rem solid var(--main-color);
}

.education-content {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 4rem;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.content {
    position: relative;
    padding: 1.5rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    background: var(--bg-color);
}

.content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: 0.5rem;
}

.content .year i {
    padding-right: 0.5rem;
}

.content h3 {
    font-size: 2rem;
}

.content p {
    font-size: 1.6rem;
    padding-top: 0.5rem;
}

/* Projects Section */
.projects {
    background: var(--bg-color);
    min-height: auto;
    padding-bottom: 7rem;
}

.projects h2 {
    margin-bottom: 4rem;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px;
    margin-top: 40px;
}

.project-box {
    background: #2b2f3a;
    border: 2px solid var(--main-color);
    border-radius: 16px;
    padding: 24px;
    min-height: 320px;
    display: flex;
    align-items: stretch;
    transition: transform 0.3s ease;
    width: 395px;
    max-width: 100%;
}

.project-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 2rem var(--main-color);
}

.project-box h3 {
    font-size: 26px;
    margin-bottom: 14px;
    color: var(--main-color);
}

.project-box p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--main-color);
    color: var(--bg-color);
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    transition: 0.3s ease;
    width: fit-content;
}

.project-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.project-btn i {
    font-size: 1.4rem;
}   

/* Contact Section */
.contact {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.contact h2 {
    margin-bottom: 3rem;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: 0.2rem solid var(--main-color);
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 2rem;
    cursor: pointer;
}

.contact-info {
    max-width: 70rem;
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
}

.contact-info-item i {
    color: var(--main-color);
    font-size: 2.5rem;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}





/* Responsive */

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

@media (max-width: 991px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    header {
        padding: 1.5rem 5%;
    }
    
    #menu-icon {
        display: block;
        font-size: 2.5rem;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 5%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 1.8rem;
        margin: 2rem 0;
        text-align: center;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding: 10rem 5% 5rem;
        gap: 3rem;
    }

    .home-content h3 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .home-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .home-content p {
        font-size: 1.4rem;
        line-height: 1.6;
        margin: 1.5rem 0;
    }

    .home-img img {
        width: 60vw;
        height: 60vw;
        max-width: 300px;
        max-height: 300px;
        margin: 2rem auto 0;
    }

    .social-media {
        justify-content: center;
        margin: 2rem 0;
    }

    .social-media a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.8rem;
        margin: 0 0.8rem 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }

    .about {
        flex-direction: column-reverse;
        padding: 8rem 5% 5rem;
    }

    .about-img img {
        width: 60vw;
        margin: 2rem auto 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 48%;
    }
    
    .home-content h1 {
        font-size: 3rem;
    }
    
    .home-content h3 {
        font-size: 2rem;
    }
    
    .home-img img {
        width: 70vw;
        height: 70vw;
    }
    
    .social-media a {
        width: 3.2rem;
        height: 3.2rem;
        font-size: 1.6rem;
        margin: 0 0.6rem 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 1.3rem;
    }

    .contact form .input-box input,
    .contact form textarea {
        width: 100%;
    }
    
    section {
        padding: 8rem 5% 4rem;
    }
}





/* Scroll Animation */
.animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Image Upload Instructions */
.image-placeholder {
    background: linear-gradient(135deg, var(--second-bg-color) 0%, var(--bg-color) 100%);
    border: 2px dashed var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 1.4rem;
    text-align: center;
    padding: 2rem;
}


/* Success Popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: #1f242d;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.popup-content h3 {
    color: #0ef;
}

.popup-content button {
    margin-top: 15px;
    padding: 8px 20px;
    border: none;
    background: #0ef;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}