* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
    /* 1rem = 10px on standard desktop */
    scroll-padding-top: 80px;
    /* Prevents sticky header from covering section titles */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

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

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

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

/* Scroll Reveal Animations */
section .heading {
    opacity: 0;
    transform: translateY(-3rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

section .about-container,
section .education-row,
section .skills-container,
section .project-box,
section .contact-info-container,
section .contact-form {
    opacity: 0;
    transform: translateY(5rem);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

section.show-animate .about-container,
section.show-animate .education-row,
section.show-animate .skills-container,
section.show-animate .project-box,
section.show-animate .contact-info-container,
section.show-animate .contact-form {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

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

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

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background: var(--main-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

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

.navbar a:hover::before,
.navbar a.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar a.nav-btn {
    display: inline-block;
    padding: .8rem 2rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.5rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    text-decoration: none;
    font-weight: 600;
    transition: .5s ease;
    border: .2rem solid transparent;
}

.navbar a.nav-btn:hover {
    background: transparent;
    color: var(--main-color);
    border-color: var(--main-color);
    box-shadow: none;
}

.navbar a.nav-btn::before {
    display: none;
}

/* Hero Section */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.home-content {
    max-width: 60rem;
}

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

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

.text-highlight {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: .4rem;
    height: 5rem;
    background-color: var(--main-color);
    margin-left: .5rem;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.home-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

/* Social Media */
.social-media {
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    text-decoration: none;
    transition: .5s ease;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    text-decoration: none;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

/* Home Image */
.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box {
    width: 35rem;
    height: 35rem;
    border-radius: 50%;
    padding: 1rem;
    border: .5rem solid var(--main-color);
    box-shadow: 0 0 2.5rem var(--main-color),
        inset 0 0 2.5rem var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: center 45%;
}

/* About Section */
.about {
    background: var(--second-bg-color);
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    max-width: 120rem;
    margin: 0 auto;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: 2rem;
    padding: 6rem;
    box-shadow: 0 0 2rem var(--main-color);
    transition: .5s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.about-img i {
    font-size: 15rem;
    color: var(--main-color);
    filter: drop-shadow(0 0 1rem var(--main-color));
}

.about-text-content {
    flex: 1.5;
    text-align: left;
}

.about-text-content h3 {
    font-size: 2.6rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    line-height: 1.6;
    color: #a0a0b0;
}

.about-details-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1.5rem;
    border: .1rem solid var(--main-color);
    flex: 1;
    transition: .4s ease;
}

.detail-card:hover {
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: translateY(-.5rem);
}

.detail-card i {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.detail-card h4 {
    font-size: 1.8rem;
    margin-bottom: .5rem;
}

.detail-card span {
    font-size: 1.4rem;
    color: #a0a0b0;
}

/* Education Section */
.education {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
    width: 100%;
    max-width: 90rem;
}

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

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

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

.education-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -1.2rem;
    width: 2.1rem;
    height: 2.1rem;
    background: var(--main-color);
    border: .4rem solid var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 0 .5rem var(--main-color);
}

.content {
    position: relative;
    background: var(--second-bg-color);
    padding: 3rem;
    border-radius: 2rem;
    border: .1rem solid rgba(0, 171, 240, 0.2);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    transition: .4s ease;
}

.content:hover {
    border-color: var(--main-color);
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: translateY(-.5rem);
}

.content .year {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--main-color);
    background: rgba(0, 171, 240, 0.1);
    padding: .5rem 1.5rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.content h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

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

.content p {
    font-size: 1.6rem;
    color: #a0a0b0;
    display: flex;
    align-items: center;
    gap: .8rem;
}

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

/* Skills Section */
.skills {
    background: var(--second-bg-color);
}

.skill-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

.skill-card {
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: .5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-card:hover {
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: translateY(-1rem);
}

.skill-card i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-tags i {
    font-size: 2.5rem;
}

.skill-tags span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-direction: column;
    background: var(--second-bg-color);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    border: .1rem solid rgba(0, 171, 240, 0.3);
    transition: .3s ease;
    cursor: default;
}

.skill-tags span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
}

/* Projects Section */
.projects {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-box .btn {
    margin-top: 20px;
}

.project-box {
    background: var(--second-bg-color);
    padding: 4rem;
    border-radius: 2rem;
    border: .2rem solid var(--main-color);
    max-width: 80rem;
    text-align: center;
    transition: .5s ease;
    margin-bottom: 30px;
}

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

.project-info i {
    font-size: 5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.project-info h3 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.project-info p {
    font-size: 1.6rem;
}

/* Contact Section */
.contact {
    background: var(--second-bg-color);
}

.contact-info-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-card {
    background: var(--bg-color);
    padding: 4rem 3rem;
    border-radius: 2rem;
    border: .2rem solid var(--main-color);
    text-align: center;
    flex: 1 1 30rem;
    transition: .5s ease;
}

.contact-card:hover {
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: scale(1.02);
}

.contact-card i {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.6rem;
}

.contact-form {
    max-width: 70rem;
    margin: 5rem auto 0;
    text-align: center;
}

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

.contact-form .input-box input,
.contact-form .input-box-full input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: 1rem 0;
    border: .1rem solid var(--main-color);
    outline: none;
    transition: .3s ease;
}

.contact-form .input-box input:focus,
.contact-form .input-box-full input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 1rem var(--main-color);
}

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

.contact-form textarea {
    resize: none;
    height: 20rem;
}

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

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 9%;
    background: var(--bg-color);
    gap: 2rem;
    position: relative;
}

.footer .social-media {
    margin-bottom: 0;
}

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

.footer-iconTop {
    position: absolute;
    right: 9%;
    top: 50%;
    transform: translateY(-50%);
}

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

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

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--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) {
    .home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .home-content h1 {
        font-size: 3.5rem;
        justify-content: center;
    }

    .social-media {
        justify-content: center;
    }

    .img-box {
        width: 30rem;
        height: 30rem;
        margin-top: 3rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text-content {
        text-align: center;
    }

    .about-details-grid {
        flex-direction: column;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

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

    .navbar a.nav-btn {
        display: block;
        width: max-content;
        margin: 3rem auto;
        padding: 1rem 3rem;
    }

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

    .footer {
        padding-bottom: 7rem;
    }

    .footer-iconTop {
        top: auto;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
    }
}

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