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

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

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #f0f0f0;
    scroll-behavior: smooth;
}


#sakuraCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: #000;
    display: flex;
    align-items: center;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0 auto;
    padding: 0;
}

nav ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a.active {
    color: #d35b5b;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #d35b5b;
    transition: width 0.2s ease;
}

nav ul li a.active::after {
    width: 100%;
}


nav ul li a:hover {
    color: #d35b5b;
    background: none;
    box-shadow: none;
    transform: none;
}


/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #d35b5b;
    border-radius: 2px;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: #000;
        display: none;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        text-align: center;
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    nav ul.active {
        display: flex;
    }
}


/* Hero Section */
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 0 100px;
    margin-top: 80px;
    flex-wrap: wrap;
    gap: 40px;
    background: transparent;
}

.left h3 {
    font-size: 28px;
    font-weight: 300;
    color: #d0d0d0;
    animation: fadeInUp 1s ease forwards;
}

.left h1 {
    font-size: 60px;
    font-weight: 700;
    margin: 10px 0;
    color: #ffffff;
}

.left h2 {
    font-size: 32px;
    color: #c0c0c0;
}

.left p {
    margin-top: 20px;
    font-size: 20px;
    opacity: 0.85;
    max-width: 500px;
    animation: fadeInUp 1.6s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#typing-name::after,
#typing-job::after {
    content: "|";
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

/* Avatar */
.avatar-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    padding: 10px;
    border: 3px solid #000;
    background: radial-gradient(circle at top, #000, #000 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.avatar img {
    width: 92%;
    height: 92%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: auto;
        min-height: 130vh;
        padding: 120px 20px 60px;
        gap: 40px;
        text-align: center;
    }

    .left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .left p {
        max-width: 100%;
    }

    .avatar-wrapper {
        width: 260px;
        height: 260px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .avatar,
    .avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
}



/* Sections */
section {
    padding: 100px 50px;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

section h1 {
    font-size: 50px;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
}


/* About */
.about-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 50px auto;
    padding: 0 15px;
}

.about-card {
    background: linear-gradient(145deg, #1b1b1b, #2a2a2a);
    padding: 25px 30px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.about-card h3 {
    color: #d35b5b;
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.about-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.7;
    margin: 5px 0;
    max-width: 800px;
    font-size: 20px;
    opacity: 0.9;
    margin: 0 auto;
    line-height: 1.8;
    text-align: center;
}

.about-card p strong {
    color: #fff;
}


@media (max-width: 768px) {
    .about-card p {
        margin-bottom: 1em;
        line-height: 1.8;
    }
}



/* Skills */
.skills-group {
    margin: 40px 0;
    text-align: center;
}

.skills-group h2 {
    font-size: 26px;
    color: #d35b5b;
    margin-bottom: 20px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #1b1b1b, #2a2a2a);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill i {
    font-size: 20px;
    color: #d35b5b;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(211, 91, 91, 0.3);
}


/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto;
}

.project-card {
    background: linear-gradient(145deg, #1e1e1e, #2c0505);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(211, 91, 91, 0.5);
}

.project-card h3 {
    color: #d35b5b;
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.project-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-card a {
    display: inline-block;
    color: #fff;
    background: #c81414;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.project-card a:hover {
    background: #b84747;
    transform: scale(1.05);
}


/* Contact */
#contact {
    text-align: center;
    padding: 100px 20px;
}

#contact h1 {
    font-size: 40px;
    margin-bottom: 40px;
    color: #fff;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.contact-icons a {
    color: #3d3a3a;
    font-size: 70px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-icons a:hover {
    transform: scale(1.2);
    color: #d35b5b;
}


@media (max-width: 768px) {

    section {
        padding: 100px 20px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-cards {
        margin: 50px auto;
        padding: 0 10px;
        align-items: center;
    }

    .skills-container {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
        margin: 50px auto;
        max-width: 400px;
    }

    #contact {
        text-align: center;
        padding: 100px 20px;
    }

    .contact-icons {
        justify-content: center;
        flex-wrap: wrap;
    }
}
