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

:root {
    --bg: #050505;
    --bg-soft: rgba(0, 0, 0, 0.55);
    --green: #33ff66;
    --green-strong: #00e05a;
    --text: #f2fff6;
    --shadow: rgba(0, 255, 100, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 10%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.75), rgba(0, 90, 0, 0.85), rgba(0, 0, 0, 0.75));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: 'Oxanium', 'Poppins', sans-serif;
    font-size: 25px;
    color: var(--green);
    text-shadow: 0 0 12px var(--shadow);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar a {
    position: relative;
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0;
    animation: slideTop 0.5s ease forwards;
    animation-delay: calc(0.2s * var(--i));
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: var(--green);
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--green);
    text-shadow: 0 0 12px var(--shadow);
}

.home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding: 90px 10% 40px;
}

.home-content {
    max-width: 620px;
    padding: 20px 0;
}

.home-content h1 {
    font-family: 'Oxanium', 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.mu {
    margin-top: 50px;
}

.home-content h1,
.home-content h3 {
    text-shadow: 0 0 18px var(--shadow);
}

.home-content h3 span {
    color: var(--green);
}

.home-content p {
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    max-width: 56ch;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 2px solid var(--green);
    border-radius: 50%;
    font-size: 20px;
    color: var(--green);
    text-decoration: none;
    margin: 26px 14px 30px 0;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-sci a:hover {
    background: var(--green);
    color: var(--bg);
    box-shadow: 0 0 20px var(--green);
    transform: translateY(-2px);
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: var(--green);
    border-radius: 40px;
    font-size: 16px;
    color: var(--bg);
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 5px var(--green),
        0 0 25px var(--green),
        0 0 50px var(--green),
        0 0 100px var(--green),
        0 0 200px var(--green);
}

.home-img {
    width: 410px;
    height: 410px;
    position: relative;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2.1s, 3.1s;
}

.home-img .glowing-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img .glowing-circle::after {
    content: '';
    position: absolute;
    inset: 16px;
    background-color: var(--bg);
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    inset: 0;
    background: linear-gradient(black, rgba(0, 128, 0, 0.45));
    border-radius: 50%;
    animation: circleRotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(12px);
}

.glowing-circle .image {
    position: relative;
    width: 86%;
    height: 86%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-1 a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 50px;
    text-align-last: center;
}

.navbar-1 a.active,
.navbar-1 a:hover {
    color: var(--green);
    text-shadow: 0 0 12px var(--shadow);
}

canvas {
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    z-index: -1;
    pointer-events: none;
}

/* ---------------------------About----------------------- */

.about {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding: 100px 10% 40px;
}

.about-img img {
    width: min(320px, 70vw);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.2);
}

.about-content {
    max-width: 620px;
}

.about-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.about-content p {
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

/* ---------------------------Skills----------------------- */

.skills {
    min-height: 100vh;
    padding: 120px 10% 60px;
    background: transparent;
}

.skills-content {
    max-width: 1200px;
    margin: 0 auto;
}

.heading {
    font-family: 'Oxanium', 'Poppins', sans-serif;
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 12px var(--shadow);
}

.heading span {
    color: var(--green);
}

.skills-category {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.category-title {
    color: var(--green);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 128, 0, 0.3);
}

.skill-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 128, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-box:hover {
    transform: translateX(10px);
    border-color: var(--green);
}

.skill-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.skill-bar {
    height: 1rem;
    width: 100%;
    background: rgba(0, 128, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.skill-percentage {
    height: 100%;
    background: linear-gradient(90deg, rgb(0, 100, 0), var(--green));
    border-radius: 0.5rem;
    position: relative;
    animation: fillBar 1.5s ease forwards;
}

.skill-percentage span {
    position: absolute;
    right: 0;
    top: -1.8rem;
    color: var(--green);
    font-weight: 600;
}

/* Animation */
@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

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

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

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

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .header {
        padding: 16px 6%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 18px;
    }

    .home {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        padding: 120px 6% 40px;
    }

    .home-content {
        padding: 0;
    }

    .home-img {
        width: 320px;
        height: 320px;
        align-self: center;
    }

    .home-content h1 {
        font-size: 44px;
    }

    .home-content h3 {
        font-size: 26px;
    }

    .about {
        flex-direction: column;
        min-height: auto;
        padding: 120px 6% 40px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 14px 5%;
    }

    .navbar a {
        font-size: 16px;
    }

    .home {
        padding: 110px 6% 40px;
    }

    .home-content h1 {
        font-size: 36px;
    }

    .home-content h3 {
        font-size: 22px;
    }

    .home-sci a {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .home-img {
        width: 260px;
        height: 260px;
    }

    .btn-box {
        padding: 10px 22px;
        font-size: 14px;
    }

    .heading {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .skill-box {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
