@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: auto;
    background-color: black;
    overflow-x: clip;
}

section {
    scroll-margin-top: 10vh;
}

/* Custom Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #b74b4b;
    border-radius: 12px;
    transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #b74b4b;
}

/* Navbar */
nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2%;
    padding-right: 5vw;
}

.logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: #b74b4b;
    text-shadow: 0 0 10px #b74b4b;
}

.hamburg, .cancel {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links {
    display: flex;
    width: 50%;
    justify-content: flex-start;
    gap: 3vw;
}

.nav-container .links a {
    position: relative;
    font-size: 1.2rem;
    color: white;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #b74b4b;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.nav-container .links a:hover {
    color: #b74b4b;
}

.dropdown {
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a {
    display: flex;
    color: white;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover {
    background-color: #b74b4b;
}

/* Home Section */
section {
    min-height: 90vh;
    width: 100%;
}

.main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 100px;
    padding-right: calc(3vw + 100px);
}

.main-container .image {
    width: 500px;
    height: 72vh;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 35px #b74b4b;
}

.main-container .image img {
    width: 100%;
}

.main-container .image:hover {
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
    0% { scale: 1; }
    50% { scale: 1.05; }
    100% { scale: 1; }
}

.main-container .content {
    color: white;
    width: 50%;
}

.content h1 {
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span {
    color: #b74b4b;
    text-shadow: 0 0 10px #b74b4b;
}

.content .typewriter {
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 600;
}

.content .typewriter-text {
    color: #b74b4b;
    text-shadow: 0 0 10px #b74b4b;
}

.content p {
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links {
    display: inline-flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 25px;
}

.social-links a i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    border-radius: 50%;
    color: #b74b4b;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links a i:hover {
    scale: 1.3;
    color: black;
    background-color: #b74b4b;
    filter: drop-shadow(0 0 10px #b74b4b);
}

.content .btn button {
    width: calc(12rem + 90px);
    max-width: 100%;
    height: 6vh;
    background-color: #b74b4b;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
    margin-top: 0;
    cursor: pointer;
}

.content .btn button:hover {
    scale: 1.1;
    color: #b74b4b;
    border: 2px solid #b74b4b;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #b74b4b;
}

/* About Section */
#about {
    margin-top: 50px;
}

section .title {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

section .title span {
    color: white;
    font-size: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

section .title span::before, section .title span::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: #b74b4b;
    left: 0;
    bottom: 0;
}

section .title span::after {
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translateX(-50%);
}

.about .about-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
}

.about .about-details .left {
    width: 45%;
}

.about .about-details .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.about-details .right {
    width: 55%;
    color: white;
}

.about-details .right .topic {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-details .right p {
    text-align: justify;
}

.about-details .right .button {
    margin: 16px 0;
}

.about-details .right .button button {
    outline: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 25px;
    font-weight: 400;
    background: #b74b4b;
    color: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.about-details .right .button button:hover {
    border-color: #b74b4b;
    background-color: #fff;
    color: #b74b4b;
}

/* Skills Section */
#skills {
    background: black;
    padding: 40px 0;
}

.skills .content {
    width: 80%;
    margin: 0 auto;
}

.skills .skills-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skills-details .text {
    width: 50%;
    color: white;
}

.skills-details .text .topic {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.skills-details .text p {
    text-align: justify;
}

.skills-details .experience {
    display: flex;
    align-items: center;
    margin: 20px 10px;
}

.skills-details .experience .num {
    color: white;
    font-size: 80px;
}

.skills-details .experience .exp {
    color: white;
    margin-left: 20px;
    font-size: 18px;
    font-weight: 500;
    margin-top: 10px;
}

.skills-details .boxes {
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.skills-details .box {
    width: calc(100% / 2 - 20px);
    margin: 20px 0;
}

.skills-details .boxes .topic {
    font-size: 20px;
    color: #b74b4b;
    font-weight: 600;
}

.skills-details .boxes .per {
    font-size: 60px;
    color: #b74b4b;
    font-weight: 500;
}

/* Projects Section */
#projects {
    padding: 40px 0;
}

.projects .content {
    width: 80%;
    margin: 0 auto;
}

.projects .boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.projects .boxes .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    width: calc(100% / 3 - 20px);
    text-align: center;
    border-radius: 12px;
    padding: 30px 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    cursor: default;
    transition: all 0.4s ease;
}

.projects .boxes .box:hover {
    background: #b74b4b;
    color: #fff;
}

.projects .boxes .box .icon {
    height: 50px;
    width: 50px;
    background: #b74b4b;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
    margin: 0 auto 10px auto;
    transition: all 0.4s ease;
}

.projects .boxes .box:hover .icon {
    background: #fff;
    color: #b74b4b;
}

.projects .boxes .box .topic {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.projects .boxes .box:hover .topic {
    color: #fff;
}

.projects .boxes .box p {
    color: white;
    transition: all 0.4s ease;
}

.projects .boxes .box .project-btn {
    display: inline-block;
    margin-top: auto;
    padding: 8px 20px;
    background-color: #b74b4b;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.projects .boxes .box:hover .project-btn {
    background-color: white;
    color: #b74b4b;
}

.projects .boxes .box:hover .project-btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Glowing Line */
.glowing-line {
    width: 60%;
    height: 1px;
    background-color: #b74b4b;
    margin: 40px auto;
    box-shadow: 0 0 10px rgba(183, 75, 75, 0.8), 0 0 20px rgba(183, 75, 75, 0.5);
}

/* Contact Section */
#contact {
    padding: 40px 0 20px 0;
    min-height: auto;
}

.contact .text {
    margin: 0 auto;
    text-align: center;
    width: 80%;
}

.contact .text .topic {
    font-size: 25px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.contact .text p {
    color: white;
    margin: 0 auto;
}

.contact .text .button {
    margin: 30px 0;
}

.contact .text .button button {
    outline: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 25px;
    font-weight: 400;
    background: #b74b4b;
    color: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.contact .text .button button:hover {
    scale: 1.1;
    color: #b74b4b;
    border: 2px solid #b74b4b;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #b74b4b;
}

/* Footer */
footer {
    background: black;
    padding: 15px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

footer .text span {
    font-size: 17px;
    font-weight: 400;
    color: #fff;
}

footer .text span a {
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

footer .text span a:hover {
    text-decoration: underline;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    width: 100%;
    margin-top: -60px;
    margin-bottom: 60px;
    z-index: 10;
    position: relative;
}

.scroll-indicator a {
    color: #b74b4b;
    font-size: 2rem;
    line-height: 0.6;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(183, 75, 75, 0.8), 0 0 20px rgba(183, 75, 75, 0.5);
    animation: gentle-bounce 2s infinite ease-in-out;
    display: inline-block;
    text-decoration: none;
}

@keyframes gentle-bounce {
    0%, 100% { 
        transform: translateY(0); 
        text-shadow: 0 0 10px rgba(183, 75, 75, 0.8), 0 0 20px rgba(183, 75, 75, 0.5); 
    }
    50% { 
        transform: translateY(10px); 
        text-shadow: 0 0 15px rgba(183, 75, 75, 1), 0 0 30px rgba(183, 75, 75, 0.8); 
    }
}

/* Responsive */
@media (max-width: 1000px) {
    .nav-container .links {
        display: none;
    }
    .hamburg, .cancel {
        opacity: 1;
        pointer-events: visible;
    }
    .main-container {
        flex-direction: column;
        padding: 100px 5% 0 5%;
    }
    .main-container .content {
        width: 80%;
        margin-top: 20px;
        text-align: center;
    }
    .content .btn button {
        width: calc(12rem + 90px);
        max-width: 100%;
    }
    .about .about-details {
        flex-direction: column;
    }
    .about .about-details .left {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .about .about-details .right {
        width: 90%;
        margin: 40px 0;
    }
    .skills .skills-details {
        flex-direction: column;
    }
    .skills-details .text {
        width: 90%;
        margin-bottom: 40px;
    }
    .skills-details .boxes {
        width: 90%;
    }
    .projects .boxes .box {
        width: calc(100% / 2 - 20px);
    }
}

@media (max-width: 500px) {
    .main-container .image {
        width: 250px;
        height: 250px;
    }
    .about .about-details .left img {
        height: 250px;
        width: 250px;
    }
    .projects .boxes .box {
        width: 100%;
    }
}
