:root {
    --red: #ed0000;
    --dark-gray: #222;
    --gray: #333;
    --light-gray: #e5e5e5;
    --white: #fff;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: poppins, sans-serif;
    text-decoration: none;
}

body {
    overflow-x: hidden;
}

.hero-header {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: var(--dark-gray);
}

.wrapper {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 40px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.logo i {
    height: 45px;
    width: 45px;
    background-color: var(--red);
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 10px;
    margin-right: 5px;
    cursor: pointer;
    text-align: center;
}

.logo .logo-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
    margin-left: 10px;
}

nav .togglebtn {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 45px;
    right: 3%;
    z-index: 5;
    cursor: pointer;
    display: none;
}

nav .togglebtn span {
    display: block;
    background-color: var(--red);
    margin: 5px 0;
    width: 100%;
    height: 3px;
    transition: 0.3s;
    transition-property: transform, opacity;
}

/* Menu Links */
nav .navlinks {
    list-style-type: none;
    display: flex;
    gap: 1.5rem;
}

nav .navlinks li {
    display: inline-block;
}

nav .navlinks li a {
    color: var(--light-gray);
    text-decoration: none;
}

section {
    scroll-margin-top: 100px;
}

.padd-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    position: relative;
}

.section .container {
    padding-top: 60px;
    padding-bottom: 70px;
}

.section-title {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 40px;
    color: var(--light-gray);
    font-weight: 700;
    position: relative;
}

.section-title h2::before, .section-title h2::after {
    content: '';
    height: 4px;
    background-color: var(--light-gray);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.section-title h2::before {
    width: 50px;
}

.section-title h2::after {
    width: 25px;
    margin-top: 8px;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 4rem;
}

.container .hero-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid var(--red);
    box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
}

.hero-pic img {
    height: 100%;
    width: 100%;
    transition: 0.5s;
}

.hero-pic img:hover {
    transform: scale(1.2);
}

.hero-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.hero-text h5 {
    color: var(--light-gray);
    font-size: 14px;
}

.hero-text h5 span {
    color: var(--red);
    font-size: 16px;
}

.hero-text h1 {
    color: var(--red);
    font-size: 3rem;
    margin-top: 10px;
}

.hero-text p {
    color: var(--light-gray);
    margin-top: 10px;
}

.hero-portfolio h2 {
    margin-top: 120px;
    color: var(--light-gray);
}

.btn-group {
    margin: 45px 0;
}

.btn-group .btn {
    border-color: var(--light-gray);
    color: var(--white);
    background-color: var(--gray);
    padding: 12px 25px;
    margin: 5px 0;
    margin-right: 7px;
    border-radius: 30px;
    border: 2px solid var(--light-gray);
    box-shadow: 0 10px 10px -8px rgb(0 0 0 / 78%);
}

.btn.active {
    border-color: var(--red);
}

.hero-text .social i {
    color: var(--light-gray);
    font-size: 18px;
    margin-right: 10px;
    transition: 0.5s;
}

.hero-text .social i:hover {
    color: var(--red);
    transform: rotate(360deg);
}

.portfolio-item {
    width: 100%;
    margin-bottom: 30px;
}

.portfolio-item-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    background-color: var(--gray);
    border: 8px solid var(--gray);
    border-radius: 15px;
}

.portfolio-img img {
    width: 250px;
    height: auto;
    border-radius: 8px;
}

.portfolio-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.portfolio-content h3, .portfolio-content p {
    margin: 10px 0;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}

.tech {
    border: 2px solid var(--red);
    color: var(--light-gray);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.tech:hover {
    background-color: var(--red);
    color: var(--light-gray);
    transform: scale(1.05);
}

.github-button {
    display: inline-block;
    border: 2px solid var(--red);
    color: var(--light-gray);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    background-color: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
}

.github-button:hover {
    background-color: var(--red);
    color: var(--light-gray);
    transform: scale(1.05);
}

.portfolio .portfolio-heading {
    text-align: center;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.portfolio-heading h2 {
    color: var(--red);
    margin-bottom: 30px;
    text-align: center;
}

.portfolio {
    color: var(--light-gray);
}

.portfolio-section {
    margin-top: 130px;
    color: var(--light-gray);
}

.resume-section {
    margin-top: 130px;
    color: var(--light-gray);
}

.resume-heading h2 {
    color: var(--red);
    margin-bottom: 30px;
    text-align: center;
}

.resume-item {
    flex: 1;
    max-width: 45%;
    margin: 15px;
}

.resume-item-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: var(--gray);
    border: 8px solid var(--gray);
    border-radius: 15px;
    padding: 20px;
}

.resume-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.resume-content h3 {
    margin: 10px 0;
    font-size: 24px;
}

.row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
}

.skills {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0;
    width: 100%;
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

.skill {
    position: relative;
    font-size: 16px;
    margin: 5px 0;
    padding-left: 10px;
}

.skill::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--red);
    font-size: 20px;
    line-height: 1;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--red);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--red);
    color: var(--light-gray);
    transform: scale(1.1);
}

footer {
    background-color: var(--gray);
    color: var(--light-gray);
    text-align: center;
    padding: 20px 10px;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 930px) {
    nav .togglebtn {
        display: initial;
    }

    nav .navlinks {
        position: absolute;
        top: 110px;
        right: -100%;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-gray);
        z-index: 3;
        box-shadow: 5px 13px 30px rgba(0, 0, 0, 0.1);
        transition: 0.5s;
        padding: 25px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    nav .navlinks.open {
        right: 0;
    }

    nav .navlinks li {
        display: block;
        margin-bottom: 20px;
    }

    nav .navlinks li a {
        display: block;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.2rem;
    }

    .click {
        top: 45px;
    }

    .click span {
        position: absolute;
        margin-top: 12px;
    }

    .click span:first-child {
        transform: rotate(-40deg);
    }

    .click span:nth-child(2) {
        opacity: 0;
        margin: 0;
    }

    .click span:last-child {
        transform: rotate(45deg);
        top: 0;
    }

    nav .navlinks {
        position: absolute;
        top: 110px;
        right: -100%;
        bottom: 0;
        width: 60%;
        height: 100vh;
        background-color: var(--dark-gray);
        z-index: 3;
        box-shadow: 5px 13px 30px rgba(0, 0, 0, 0.1);
        transition: 0.5s;
        padding: 25px 0;
    }

    nav .navlinks li {
        display: block;
    }

    nav .navlinks li a {
        display: block;
        margin-bottom: 15px;
        text-align: center;
    }

    nav .navlinks.open {
        right: 0;
    }

    .resume-item {
        max-width: 100%;
    }

    .skills {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }

    .portfolio-item-inner {
        flex-direction: column;
    }

    .portfolio-img img {
        width: 100%;
    }

    .portfolio-content {
        text-align: center;
        align-items: center;
    }

    .social-icons {
        gap: 12px;
    }
    
    p {
        font-size: 0.85rem;
    }
}

.typing-effect {
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }

    50% {
        border-color: black;
    }
}

@media (max-width: 768px) {
    nav .navlinks {
        display: block;
        text-align: center;
    }

    nav .navlinks li {
        margin-bottom: 20px;
    }

    nav .navlinks li a {
        font-size: 1.2rem;
    }

    .container {
        flex-direction: column;
        padding-top: 2rem;
        align-items: center;
    }

    .hero-pic, .portfolio-img img {
        width: 200px;
        height: auto;
    }

    .hero-text {
        padding: 20px 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p, .resume-content h3, .portfolio-content h3 {
        font-size: 1rem;
    }

    .hero-text h5 {
        font-size: 10px;
    }

    .btn-group .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .portfolio-content p {
        font-size: 12px;
    }

    p {
        font-size: 0.8rem;
    }

    footer {
        padding: 15px 5px;
    }

    .footer-content p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    nav .navlinks {
        display: block;
        text-align: center;
    }

    nav .navlinks li {
        margin-bottom: 20px;
    }

    nav .navlinks li a {
        font-size: 1rem;
    }

    .container {
        flex-direction: column;
        padding-top: 2rem;
        align-items: center;
    }

    .hero-pic, .portfolio-img img {
        width: 200px;
        height: auto;
    }

    .hero-text {
        padding: 20px 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p, .resume-content h3, .portfolio-content h3 {
        font-size: 1rem;
    }

    .hero-text h5 {
        font-size: 10px;
    }

    .btn-group .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .portfolio-content p {
        font-size: 12px;
    }

    p {
        font-size: 0.8rem;
    }

    footer {
        padding: 15px 5px;
    }

    .footer-content p {
        font-size: 12px;
    }
}
