@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;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
    padding-top: 80px;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

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

.logo:hover{
    color: #b74b4b;
}

nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #b74b4b;
    font-size: 2.8rem;
    cursor: pointer;
    z-index: 200;
    transition: 0.3s ease;
}

.nav-toggle:hover {
    color: #b74b4b;
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8rem;
    background-color: black;
    flex-wrap: wrap;
    padding-top: 2rem;
    min-height: 100vh;
    animation: fadeInUp 0.8s ease-out;
    flex-direction: row;
}

.home .home-content h1{
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #00000055;
}

.home .home-content h1 span {
    color: #b74b4b;
    font-weight: 900;
    letter-spacing: 2px;
}

span{
    color: #b74b4b;
}

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

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

.home-img {
    width: 300px !important;
    height: 300px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0 0 25px #b74b4b;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    order: 1;
    margin-top: 0;
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
    border-radius: 50%;
}

.home-content {
    flex: 1 1 350px;
    max-width: 600px;
    background: none;
    padding: 0;
    box-shadow: none;
    z-index: 1;
    position: relative;
    order: 2;
}

.home-desc-box {
    background: rgba(22,22,22,0.85);
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 0 15px #b74b4b33;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.home-desc {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 0;
    word-break: break-word;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

.home-desc-box .social-icons {
    margin-top: 0;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-desc-box .btn {
    width: auto;
    align-self: flex-start;
}

.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%;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover{
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text {
    font-size: 2.8rem;
    min-width: auto;
}

.typing-text span{
    position: relative;
    color: #b74b4b;
}

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

.skills{
    padding-bottom: 10rem;
    animation: fadeInUp 0.8s ease-out;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.skills-box {
    flex: 1 1 300px;
    min-width: 250px;
    max-width: 350px;
    height: 300px;
    background-color: #161616;
    padding: 5rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid #b74b4b;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.skills-box:hover{
    box-shadow: 0 0 25px #b74b4b;
}

.skills-box i, .skills-box svg {
    font-size: 7rem;
    color: #b74b4b;
}

.skills-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skills-box svg {
    width: 7rem;
    height: 7rem;
    margin-bottom: 1rem;
    color: white;
}

.services {
    padding-bottom: 8rem;
    animation: fadeInUp 0.8s ease-out;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 3rem;
}

.services-box {
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 250px;
    background-color: #161616;
    padding: 4rem 2rem 3rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid #b74b4b;
    transition: 0.3s ease;
    box-shadow: 0 0 20px #b74b4b33;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.services-box i {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.services-box h3 {
    font-size: 2rem;
    margin-top: 1rem;
    color: #fff;
}

.services-box p {
    font-size: 1.4rem;
    margin: 1.2rem 0 2rem;
    color: #fff;
}

.service-fee {
    font-size: 1.5rem;
    color: #b74b4b;
    font-weight: 600;
    margin-top: auto;
}

.service-contact-btn {
    display: block;
    margin: 1.2rem auto 0 auto;
    width: fit-content;
    text-align: center;
}

.education-content, .experience-content{
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 3rem;
}

.education-box, .experience-box{
    flex: 1 1 30rem;
    background-color: #161616;
    padding: 3rem 2rem 2.5rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid #b74b4b;
    transition: 0.3s ease;
    box-shadow: 0 0 20px #b74b4b33;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.education-box:hover, .experience-box:hover{
    box-shadow: 0 0 25px #b74b4b;
}

.education-box h3, .experience-box h3{
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #b74b4b;
    font-weight: 600;
}

.education-box p, .experience-box p{
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
}

.education-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px #b74b4b33;
}

.projects {
    padding-bottom: 10rem;
    animation: fadeInUp 0.8s ease-out;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
}

.project-box {
    flex: 1 1 300px;
    max-width: 350px;
    min-width: 250px;
    background-color: #161616;
    padding: 5rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.2rem solid #b74b4b;
    transition: 0.3s ease;
    box-shadow: 0 0 25px #b74b4b;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-box:hover {
    box-shadow: 0 0 35px #b74b4b;
}

.project-box i {
    font-size: 7rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.project-box h3 {
    font-size: 2.6rem;
    margin-top: 1rem;
}

.project-box p {
    font-size: 1.6rem;
    margin: 1.5rem 0 3rem;
}

.project-box .btn {
    margin-top: 0;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.project-image-box {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    border-radius: 1.2rem;
    background: #222;
    box-shadow: 0 2px 16px #b74b4b55;
}
.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
    display: block;
}

.footer {
    width: 100%;
    background: #161616;
    color: #fff;
    padding: 2rem 0 1rem 0;
    text-align: center;
    border-top: 2px solid #b74b4b;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social a {
    color: #b74b4b;
    font-size: 2.2rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #fff;
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    html {
        font-size: 65%;
    }
    
    .home {
        gap: 10rem;
    }
    
    .home-img {
        width: 350px !important;
        height: 350px !important;
    }
    
    .home .home-content h1 {
        font-size: 4.5rem;
    }
    
    .home-content h3 {
        font-size: 4.5rem;
    }
    
    .typing-text {
        font-size: 4.5rem;
        min-width: auto;
    }
    
    .heading {
        font-size: 9rem;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    html {
        font-size: 62.5%;
    }
    
    .home {
        gap: 6rem;
    }
    
    .home-img {
        width: 280px !important;
        height: 280px !important;
    }
    
    .typing-text {
        font-size: 4rem;
        min-width: auto;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    html {
        font-size: 60%;
    }
    
    header {
        padding: 1rem 5%;
    }
    
    section {
        padding: 4rem 5% 4rem;
    }
    
    .home {
        flex-direction: column;
        gap: 4rem;
        align-items: center;
        padding-top: 1rem;
        justify-content: center;
    }
    
    .home-img {
        width: 250px !important;
        height: 250px !important;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .home-content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .home-desc-box {
        align-items: center;
        padding: 2rem 1.5rem;
    }
    
    .home-desc-box .social-icons {
        justify-content: center;
    }
    
    .home-desc-box .btn {
        align-self: center;
    }
    
    .home .home-content h1 {
        font-size: 3rem;
    }
    
    .home-content h3 {
        font-size: 3.5rem;
    }
    
    .typing-text {
        font-size: 3.5rem;
        min-width: auto;
    }
    
    .heading {
        font-size: 6rem;
        margin-bottom: 4rem;
    }
    
    .skills-container,
    .services-container,
    .education-content,
    .experience-content,
    .projects-container {
        gap: 2rem;
    }
    
    .skills-box,
    .services-box,
    .project-box {
        flex: 1 1 280px;
        max-width: 320px;
    }
}

@media (max-width: 767px) and (min-width: 481px) {
    html {
        font-size: 55%;
    }
    
    header {
        padding: 1rem 3%;
    }
    
    section {
        padding: 3rem 3% 3rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        position: absolute;
        left: 0;
        top: 100%;
        border-radius: 0 0 1rem 1rem;
        border-top: 2px solid #b74b4b;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }
    
    header nav.nav-open {
        display: flex;
    }
    
    header nav a {
        margin: 1rem 0;
        font-size: 2rem;
        text-align: center;
        padding: 1rem 2rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    header nav a:hover,
    header nav a.active {
        background: #b74b4b;
        color: black;
        border-bottom: none;
    }
    
    .home {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        padding-top: 1rem;
        justify-content: center;
    }
    
    .home-img {
        width: 250px !important;
        height: 250px !important;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .home-content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .home .home-content h1 {
        font-size: 2.2rem;
    }
    
    .home-content h3 {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 3rem;
        min-width: auto;
    }
    
    .home-desc-box {
        align-items: center;
        padding: 2rem 1.5rem;
    }
    
    .home-desc {
        font-size: 1.4rem;
    }
    
    .home-desc-box .social-icons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .home-desc-box .btn {
        align-self: center;
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
    
    .heading {
        font-size: 5rem;
        margin-bottom: 3rem;
    }
    
    .skills-container,
    .services-container,
    .education-content,
    .experience-content,
    .projects-container {
        gap: 2rem;
    }
    
    .skills-box,
    .services-box,
    .project-box {
        flex: 1 1 250px;
        max-width: 300px;
        min-width: 200px;
    }
    
    .education-box,
    .experience-box {
        flex: 1 1 25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }
    
    body {
        padding-top: 70px;
    }
    
    header {
        padding: 1rem 3%;
    }
    
    section {
        padding: 3rem 3% 3rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        position: absolute;
        left: 0;
        top: 100%;
        border-radius: 0 0 1rem 1rem;
        border-top: 2px solid #b74b4b;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }
    
    header nav.nav-open {
        display: flex;
    }
    
    header nav a {
        margin: 1rem 0;
        font-size: 2rem;
        text-align: center;
        padding: 1rem 2rem;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }
    
    header nav a:hover,
    header nav a.active {
        background: #b74b4b;
        color: black;
        border-bottom: none;
    }
    
    .home {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        padding-top: 1rem;
        justify-content: center;
    }
    
    .home-img {
        width: 250px !important;
        height: 250px !important;
        margin-bottom: 2rem;
        order: 1;
    }
    
    .home-content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .home .home-content h1 {
        font-size: 2.2rem;
    }
    
    .home-content h3 {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 3rem;
        min-width: auto;
    }
    
    .home-desc-box {
        align-items: center;
        padding: 2rem 1.5rem;
    }
    
    .home-desc {
        font-size: 1.4rem;
    }
    
    .home-desc-box .social-icons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .home-desc-box .btn {
        align-self: center;
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
    
    .heading {
        font-size: 5rem;
        margin-bottom: 3rem;
    }
    
    .skills-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .skills-box {
        flex: 1 1 48%;
        max-width: 48%;
        min-width: 120px;
        margin-bottom: 0.5rem;
        padding: 1rem 0.5rem 0.8rem;
        box-sizing: border-box;
    }
    .skills-box i,
    .skills-box svg {
        font-size: 3rem;
    }
    .skills-box h3 {
        font-size: 1.2rem;
    }
    
    .services-container,
    .education-content,
    .experience-content,
    .projects-container {
        gap: 2rem;
    }
    
    .services-box,
    .project-box {
        flex: 1 1 250px;
        max-width: 300px;
        min-width: 200px;
    }
    
    .education-box,
    .experience-box {
        flex: 1 1 25rem;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 45%;
    }
    
    body {
        padding-top: 60px;
    }
    
    header {
        padding: 0.8rem 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .nav-toggle {
        right: 1.5rem;
        top: 1.2rem;
        font-size: 2.2rem;
    }
    
    section {
        padding: 1.5rem 1.5rem 1.5rem;
    }
    
    .home {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        padding-top: 0.5rem;
        justify-content: center;
    }
    
    .home-img {
        width: 150px !important;
        height: 150px !important;
        margin-bottom: 1rem;
        order: 1;
    }
    
    .home-content {
        max-width: 100%;
        text-align: center;
        order: 2;
    }
    
    .home .home-content h1 {
        font-size: 2.8rem;
    }
    
    .home-content h3 {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 2rem;
        min-width: auto;
    }
    
    .home-desc-box {
        align-items: center;
        padding: 1rem 0.8rem;
    }
    
    .home-desc {
        font-size: 1.2rem;
    }
    
    .home-desc-box .social-icons {
        justify-content: center;
        gap: 0.6rem;
    }
    
    .social-icons a {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    .home-desc-box .btn {
        align-self: center;
        padding: 0.6rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .heading {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
    
    .skills-container {
        gap: 0.3rem;
    }
    .skills-box {
        padding: 0.8rem 0.3rem 0.6rem;
        margin-bottom: 0.3rem;
    }
    .skills-box i,
    .skills-box svg {
        font-size: 3rem;
    }
    .skills-box h3 {
        font-size: 1.2rem;
    }
    
    .services-box i {
        font-size: 2.5rem;
    }
    
    .services-box h3 {
        font-size: 1.4rem;
    }
    
    .services-box p {
        font-size: 1.1rem;
    }
    
    .service-fee {
        font-size: 1.1rem;
    }
    
    .education-box,
    .experience-box {
        flex: 1 1 15rem;
        padding: 1.5rem 1rem 1.5rem;
    }
    
    .education-box h3,
    .experience-box h3 {
        font-size: 1.5rem;
    }
    
    .education-box p,
    .experience-box p {
        font-size: 1.1rem;
    }
    
    .education-logo {
        width: 40px;
        height: 40px;
    }
    
    .project-box {
        padding: 2rem 1rem 1.5rem;
    }
    
    .project-box i {
        font-size: 4rem;
    }
    
    .project-box h3 {
        font-size: 1.6rem;
    }
    
    .project-box p {
        font-size: 1.1rem;
        margin: 0.8rem 0 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 1rem 0 0.8rem 0;
    }
    
    .footer-content p {
        font-size: 1.1rem;
    }
    
    .footer-social {
        gap: 0.8rem;
    }
    
    .footer-social a {
        font-size: 1.5rem;
    }
}

@media (max-width: 319px) {
    html {
        font-size: 40%;
    }
    
    .home {
        justify-content: center;
    }
    
    .home-img {
        width: 120px !important;
        height: 120px !important;
        order: 1;
    }
    
    .home-content {
        order: 2;
    }
    
    .home .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content h3 {
        font-size: 1.8rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
        min-width: auto;
    }
    
    .heading {
        font-size: 2.5rem;
    }
    
    .skills-box,
    .services-box,
    .project-box {
        flex: 1 1 120px;
        max-width: 150px;
        min-width: 120px;
        padding: 1.5rem 0.8rem 1rem;
    }
    
    .skills-box {
        height: 180px;
    }
    
    .skills-box i,
    .skills-box svg {
        font-size: 3rem;
    }
    
    .skills-box svg {
        width: 3rem;
        height: 3rem;
    }
    
    .skills-box h3 {
        font-size: 1.2rem;
    }
    
    .services-box i {
        font-size: 2rem;
    }
    
    .services-box h3 {
        font-size: 1.2rem;
    }
    
    .services-box p {
        font-size: 1rem;
    }
    
    .service-fee {
        font-size: 1rem;
    }
    
    .education-box,
    .experience-box {
        flex: 1 1 12rem;
        padding: 1rem 0.8rem 1rem;
    }
    
    .education-box h3,
    .experience-box h3 {
        font-size: 1.3rem;
    }
    
    .education-box p,
    .experience-box p {
        font-size: 1rem;
    }
    
    .education-logo {
        width: 35px;
        height: 35px;
    }
    
    .project-box {
        padding: 1.5rem 0.8rem 1rem;
    }
    
    .project-box i {
        font-size: 3rem;
    }
    
    .project-box h3 {
        font-size: 1.4rem;
    }
    
    .project-box p {
        font-size: 1rem;
        margin: 0.6rem 0 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 1rem;
    }
    
    .footer-content p {
        font-size: 1rem;
    }
    
    .footer-social a {
        font-size: 1.3rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to sections */
.home {
    animation: fadeInUp 0.8s ease-out;
}

.skills {
    animation: fadeInUp 0.8s ease-out;
}

.education {
    animation: fadeInUp 0.8s ease-out;
}

.services {
    animation: fadeInUp 0.8s ease-out;
}

.experience {
    animation: fadeInUp 0.8s ease-out;
}

.projects {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #b74b4b;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .typing-text span::before,
    .typing-text span::after {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .skills-box,
    .services-box,
    .education-box,
    .experience-box,
    .project-box {
        border-width: 3px;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* Print styles */
@media print {
    header,
    .nav-toggle,
    .social-icons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        padding-top: 0 !important;
    }
    
    section {
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .skills-box,
    .services-box,
    .education-box,
    .experience-box,
    .project-box {
        background: white !important;
        border: 1px solid #ccc !important;
        color: black !important;
        box-shadow: none !important;
    }
}

.scroll-to-top {
    position: fixed !important;
    right: 2.5rem !important;
    bottom: 2.5rem !important;
    width: 50px !important;
    height: 50px !important;
    background: #b74b4b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 12px #00000044 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.2rem !important;
    cursor: pointer !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    transition: opacity 0.3s, background 0.3s !important;
    visibility: hidden !important;
}
.scroll-to-top:hover {
    background: #fff;
    color: #b74b4b;
    border: 2px solid #b74b4b;
}
.scroll-to-top.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.activity-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}
.activity-box {
    background: #161616;
    border: 0.2rem solid #b74b4b;
    border-radius: 1.2rem;
    box-shadow: 0 0 15px #b74b4b33;
    padding: 2.5rem 2rem;
    min-width: 220px;
    max-width: 350px;
    flex: 1 1 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.activity-box h3 {
    font-size: 2rem;
    margin: 1rem 0 0.5rem 0;
}
.activity-box p {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
}
.activity-date {
    color: #b74b4b;
    font-size: 1.1rem;
    margin-top: auto;
}
