/* --- Professional Animations --- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-8deg);
    }
    80% {
        opacity: 1;
        transform: scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.home-img img {
    animation: popIn 1.2s cubic-bezier(.68,-0.55,.27,1.55) 0.2s both;
}

.home-content > * {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
.home-content h1 { animation-delay: 0.2s; }
.home-content h3 { animation-delay: 0.4s; }
.home-content p { animation-delay: 0.6s; }
.social-icons { animation-delay: 0.8s; }
.btn { animation-delay: 1s; }

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}
.btn:active::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(183,75,75,0.25);
    border-radius: 100%;
    transform: translate(-50%, -50%);
    animation: ripple 0.5s linear;
    z-index: 2;
}
@keyframes ripple {
    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Social icon hover pulse */
.social-icons a:hover {
    animation: pulse 0.5s;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 #b74b4b55; }
    70% { box-shadow: 0 0 0 10px #b74b4b22; }
    100% { box-shadow: 0 0 0 0 #b74b4b00; }
}
/* Hamburger menu styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.8rem;
    color: #b74b4b;
    cursor: pointer;
    z-index: 200;
}

@media (max-width: 995px) {
    .nav-toggle {
        display: block;
        position: absolute;
        top: 2.5rem;
        right: 3rem;
    }
    nav {
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 70vw;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 2rem 2rem 2rem 2rem;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
        box-shadow: 0 8px 32px #00000033;
        z-index: 150;
    }
    nav.active {
        display: block;
    }
    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

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

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #0a0a0a;
    color: #f0f0f0;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

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

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    color: #f0f0f0;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    color: #f0f0f0;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    color: #ccc;
    font-size: 1.6rem;
    .home-content h1,
.home-content h3,
.home-content p {
    color: #f0f0f0;
}
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

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

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background: linear-gradient(90deg, #b74b4b 0%, #161616 100%);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    box-shadow: 0 4px 24px 0 rgba(183,75,75,0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s, box-shadow 0.3s, background 0.3s;
}
.btn:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, #b74b4b55 0%, transparent 80%);
    opacity: 0.7;
    transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    z-index: 0;
}
.btn:hover:before {
    transform: translate(-50%, -50%) scale(1);
}
.btn:hover {
    color: #b74b4b;
    background: #fff;
    box-shadow: 0 0 40px #b74b4b99;
    border-color: #b74b4b;
}
.btn i {
    margin-right: 0.7rem;
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}
.btn:hover i {
    transform: translateX(4px) scale(1.2) rotate(-8deg);
}
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "Software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Web Developer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Software Engineer";
    } 
    81%, 100%{
        content: "AI and ML Enthusiast"; 
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}
@media(max-width:600px){
    .home .home-content h1{
        font-size: 4rem;
    }

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

    .home-img img{
        width: 80vw;
    }

    .social-icons a{
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}
.contact {
    background-color: #0a0a0a;
    padding: 5rem 9%;
    text-align: center;
    color: #f0f0f0;
}

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

.contact span {
    color: #b74b4b;
}

.contact p {
    font-size: 1.6rem;
    margin: 1rem 0;
}

.contact-details p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.contact .btn {
    margin-top: 2rem;
}
.contact .btn:hover {
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}
.logo-img {
    height: 40px; /* Adjust size as needed */
    width: auto;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}
.logo span {
    font-size: 2.5rem; /* Adjust size as needed */
    color: #b74b4b;
    font-weight: 800;
}