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

:root {
    --background: #050505;
    --background-light: #090909;
    --card: #0d0d0d;

    --green: #00e676;
    --dark-green: #008f49;

    --white: #ffffff;
    --grey: #a3a3a3;

    --border: rgba(255, 255, 255, 0.12);
    --header-height: 75px;
}

/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    overflow-x: hidden;

    background: var(--background);
    color: var(--white);

    font-family: "Poppins", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    font: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    position: relative;

    min-height: 100vh;
    padding: 110px 0;
}

/* LOADING SCREEN */

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #030303;

    transition:
        opacity 600ms ease,
        visibility 600ms ease;
}

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

.loading-logo {
    margin-bottom: 20px;

    font-size: 2.4rem;
    font-weight: 800;

    animation: loadingLogo 900ms ease infinite alternate;
}

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

.loading-line {
    overflow: hidden;

    width: 180px;
    height: 4px;

    border-radius: 100px;

    background: #171717;
}

.loading-progress {
    width: 0;
    height: 100%;

    background: var(--green);

    box-shadow: 0 0 15px var(--green);

    animation: loadingProgress 1.3s ease forwards;
}

/* NAVIGATION */

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    border-bottom: 1px solid transparent;

    background: rgba(5, 5, 5, 0.75);

    backdrop-filter: blur(15px);

    transform: translateY(-100%);

    transition:
        transform 700ms ease,
        background 250ms ease,
        border-color 250ms ease;
}

body.page-loaded .header {
    transform: translateY(0);
}

.header.scrolled {
    border-bottom-color: var(--border);

    background: rgba(5, 5, 5, 0.96);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;

    list-style: none;
}

.nav-link {
    position: relative;

    font-size: 0.82rem;
    font-weight: 600;

    transition: color 200ms ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;

    width: 0;
    height: 2px;
    margin: auto;

    background: var(--green);

    content: "";

    transition: width 200ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-button {
    display: none;

    width: 43px;
    height: 43px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--card);
    color: var(--white);

    font-size: 1.1rem;
}

/* SHARED */

.section-heading {
    margin-bottom: 60px;

    text-align: center;
}

.left-heading {
    margin-bottom: 28px;

    text-align: left;
}

.section-label {
    margin-bottom: 7px;

    color: var(--green);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

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

.heading-line {
    width: 70px;
    height: 3px;
    margin: 10px auto 0;

    background: var(--green);

    box-shadow: 0 0 15px var(--green);
}

.left-heading .heading-line {
    margin-left: 0;
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 145px;
    min-height: 46px;
    padding: 10px 24px;

    border: 1px solid var(--green);
    border-radius: 5px;

    background: var(--green);
    color: #00180c;

    font-size: 0.85rem;
    font-weight: 700;

    transition:
        background 250ms ease,
        color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.main-button:hover {
    background: transparent;
    color: var(--green);

    box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);

    transform: translateY(-3px);
}

/* HOME */

.home {
    display: flex;
    align-items: center;

    padding-top: calc(var(--header-height) + 50px);
}

.home-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 100px;
}

.home-image-wrapper {
    position: relative;

    width: min(390px, 100%);
    margin-inline: auto;

    aspect-ratio: 1;
}

.image-glow {
    position: absolute;
    inset: -8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 20px var(--green),
        0 0 45px rgba(0, 230, 118, 0.65),
        0 0 85px rgba(0, 230, 118, 0.3);

    animation: imagePulse 3s ease-in-out infinite;
}

.home-image {
    position: relative;

    width: 100%;
    height: 100%;

    border: 6px solid #050505;
    border-radius: 50%;

    object-fit: cover;
    object-position: center;
}

.page-slide-left {
    opacity: 0;
    transform: translateX(-100px);
}

.page-slide-right {
    opacity: 0;
    transform: translateX(100px);
}

body.page-loaded .page-slide-left,
body.page-loaded .page-slide-right {
    opacity: 1;
    transform: translateX(0);

    transition:
        opacity 900ms ease 250ms,
        transform 900ms ease 250ms;
}

.small-heading {
    margin-bottom: 5px;

    font-size: 1.05rem;
    font-weight: 700;
}

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

.home-content h1 {
    min-height: 82px;
    margin-bottom: 17px;

    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.12;
}

.typing-wrapper {
    color: transparent;

    -webkit-text-stroke: 1.5px var(--green);

    text-shadow:
        0 0 8px rgba(0, 230, 118, 0.55),
        0 0 25px rgba(0, 230, 118, 0.25);
}

.typing-cursor {
    display: inline-block;

    color: var(--green);

    -webkit-text-stroke: 0;

    animation: cursorBlink 700ms infinite;
}

.home-description {
    max-width: 620px;
    margin-bottom: 24px;

    color: var(--grey);

    font-size: 0.9rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 13px;

    margin-bottom: 25px;
}

.social-links a {
    display: grid;

    width: 40px;
    height: 40px;

    place-items: center;

    border: 2px solid var(--green);
    border-radius: 50%;

    color: var(--green);

    transition:
        background 250ms ease,
        color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.social-links a:hover {
    background: var(--green);
    color: #00180c;

    box-shadow: 0 0 18px var(--green);

    transform: translateY(-4px);
}

.background-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}

.glow-one {
    top: 12%;
    left: -100px;

    width: 300px;
    height: 300px;

    background: rgba(0, 230, 118, 0.09);
}

.glow-two {
    right: -100px;
    bottom: 10%;

    width: 350px;
    height: 350px;

    background: rgba(0, 230, 118, 0.07);
}

.scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;

    display: flex;
    align-items: center;
    gap: 9px;

    color: var(--grey);

    font-size: 0.75rem;

    animation: scrollBounce 2s infinite;
}

/* ABOUT */

.about {
    background: var(--background-light);
}

.about-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 80px;
}

.about-image-wrapper {
    width: min(470px, 100%);
    margin-inline: auto;

    overflow: hidden;

    border: 2px solid var(--green);
    border-radius: 10px;

    box-shadow:
        0 0 20px rgba(0, 230, 118, 0.35),
        20px 20px 0 rgba(0, 230, 118, 0.08);

    transition:
        box-shadow 300ms ease,
        transform 300ms ease;
}

.about-image-wrapper:hover {
    box-shadow:
        0 0 35px rgba(0, 230, 118, 0.45),
        14px 14px 0 rgba(0, 230, 118, 0.12);

    transform: translateY(-7px);
}

.about-image {
    width: 100%;
    height: 350px;

    object-fit: cover;
    object-position: 15% center;

    transition:
        transform 300ms ease,
        filter 300ms ease;
}

.about-image-wrapper:hover .about-image {
    filter: brightness(1.08);

    transform: scale(1.04);
}

.about-content > p {
    margin-bottom: 15px;

    color: var(--grey);

    font-size: 0.9rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;

    margin: 28px 0;
}

.detail {
    display: flex;
    flex-direction: column;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--card);

    transition:
        border-color 250ms ease,
        transform 250ms ease;
}

.detail:hover {
    border-color: var(--green);

    transform: translateY(-4px);
}

.detail span {
    margin-bottom: 4px;

    color: var(--green);

    font-size: 0.72rem;
    font-weight: 700;
}

.detail strong {
    font-size: 0.86rem;
}

/* SKILLS */

.skills-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 80px;
}

.skills-description h3 {
    margin-bottom: 15px;

    font-size: 1.6rem;
}

.skills-description p {
    margin-bottom: 28px;

    color: var(--grey);

    font-size: 0.9rem;
    line-height: 1.8;
}

.experience {
    display: flex;
    align-items: center;
    gap: 15px;
}

.experience strong {
    color: var(--green);

    font-size: 4rem;
    line-height: 1;
}

.experience span {
    color: var(--grey);

    font-size: 0.85rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill-card {
    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--card);

    transition:
        border-color 250ms ease,
        transform 250ms ease,
        box-shadow 250ms ease;
}

.skill-card:hover {
    border-color: var(--green);

    box-shadow: 0 0 18px rgba(0, 230, 118, 0.1);

    transform: translateY(-5px);
}

.skill-information {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 9px;
}

.skill-information span {
    font-size: 0.88rem;
    font-weight: 600;
}

.skill-information strong {
    color: var(--green);

    font-size: 1.5rem;
}

.skill-bar {
    overflow: hidden;

    width: 100%;
    height: 7px;

    border-radius: 100px;

    background: #171717;
}

.skill-progress {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background: var(--green);

    box-shadow: 0 0 12px var(--green);

    transition: width 1.3s ease;
}

/* SERVICES */

.services {
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;

    overflow: hidden;

    min-height: 230px;
    padding: 30px 24px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #080808;

    text-align: center;

    transition:
        background 300ms ease,
        border-color 300ms ease,
        box-shadow 300ms ease,
        transform 300ms ease;
}

.service-card::before {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        transparent,
        rgba(0, 230, 118, 0.18)
    );

    content: "";

    opacity: 0;

    transition: opacity 300ms ease;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: var(--green);

    background: var(--dark-green);

    box-shadow: 0 0 25px rgba(0, 230, 118, 0.35);

    transform: translateY(-8px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    display: grid;

    width: 48px;
    height: 48px;
    margin: 0 auto 17px;

    place-items: center;

    border-radius: 50%;

    background: var(--green);
    color: #00180c;

    font-size: 1.1rem;
}

.service-card h3 {
    margin-bottom: 13px;

    font-size: 1rem;
}

.service-card p {
    color: var(--grey);

    font-size: 0.78rem;
    line-height: 1.7;
}

/* PAST WORKS */

.past-works {
    background: var(--background);
}

.past-work-category {
    margin-bottom: 60px;
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--card);

    transition:
        border-color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.past-work-category:last-child {
    margin-bottom: 0;
}

.past-work-category:hover {
    border-color: rgba(0, 230, 118, 0.45);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);

    transform: translateY(-4px);
}

.past-work-heading {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 25px;
}

.past-work-icon {
    display: grid;

    flex-shrink: 0;

    width: 55px;
    height: 55px;

    place-items: center;

    border-radius: 50%;

    background: rgba(0, 230, 118, 0.12);
    color: var(--green);

    font-size: 1.3rem;
}

.past-work-heading h3 {
    margin-bottom: 4px;

    font-size: 1.45rem;
}

.past-work-heading p {
    color: var(--grey);

    font-size: 0.83rem;
}

.youtube-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.youtube-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;

    padding: 17px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #080808;

    transition:
        border-color 250ms ease,
        background 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.youtube-link:hover {
    border-color: var(--green);

    background: rgba(0, 230, 118, 0.06);

    box-shadow: 0 0 18px rgba(0, 230, 118, 0.13);

    transform: translateX(5px);
}

.youtube-number {
    color: var(--green);

    font-size: 0.78rem;
    font-weight: 700;
}

.youtube-link-text {
    display: flex;
    flex-direction: column;
}

.youtube-link-text strong {
    font-size: 0.85rem;
}

.youtube-link-text span {
    color: var(--grey);

    font-size: 0.7rem;
}

.youtube-link > i {
    color: #ff0033;

    font-size: 1.45rem;

    transition: transform 250ms ease;
}

.youtube-link:hover > i {
    transform: scale(1.15);
}

/* CONTACT */

.contact {
    background: var(--background-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 70px;
}

.contact-text h3 {
    margin-bottom: 15px;

    font-size: 2rem;
}

.contact-text p {
    color: var(--grey);

    line-height: 1.8;
}

.contact-links {
    display: grid;
    gap: 18px;
}

.contact-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--card);

    transition:
        border-color 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.contact-card:hover {
    border-color: var(--green);

    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);

    transform: translateX(8px);
}

.contact-icon {
    display: grid;

    width: 48px;
    height: 48px;

    place-items: center;

    border-radius: 50%;

    background: rgba(0, 230, 118, 0.12);
    color: var(--green);

    font-size: 1.25rem;
}

.contact-information {
    display: flex;
    flex-direction: column;
}

.contact-information span {
    color: var(--grey);

    font-size: 0.75rem;
}

.contact-information strong {
    font-size: 0.95rem;
}

.contact-card > i {
    color: var(--green);
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border);

    background: var(--background-light);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 95px;
}

.footer p {
    color: var(--grey);

    font-size: 0.8rem;
}

.back-to-top {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    border: 1px solid var(--green);
    border-radius: 4px;

    color: var(--green);
}

/* SCROLL ANIMATIONS */

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;

    transition:
        opacity 700ms ease,
        transform 700ms ease;

    will-change: opacity, transform;
}

.reveal {
    transform: translateY(55px);
}

.reveal-left {
    transform: translateX(-65px);
}

.reveal-right {
    transform: translateX(65px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;

    transform: translate(0, 0);
}

/* KEYFRAMES */

@keyframes cursorBlink {
    0%,
    45% {
        opacity: 1;
    }

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

@keyframes imagePulse {
    0%,
    100% {
        box-shadow:
            0 0 20px var(--green),
            0 0 45px rgba(0, 230, 118, 0.65),
            0 0 85px rgba(0, 230, 118, 0.3);
    }

    50% {
        box-shadow:
            0 0 30px var(--green),
            0 0 65px rgba(0, 230, 118, 0.75),
            0 0 110px rgba(0, 230, 118, 0.4);
    }
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }
}

@keyframes loadingLogo {
    from {
        opacity: 0.55;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loadingProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* TABLET */

@media (max-width: 900px) {
    .section {
        min-height: auto;
        padding: 95px 0;
    }

    .menu-button {
        display: grid;

        place-items: center;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 20px;
        left: 20px;

        display: flex;
        flex-direction: column;
        gap: 0;

        padding: 16px;

        border: 1px solid var(--border);
        border-radius: 8px;

        background: #080808;

        opacity: 0;
        pointer-events: none;

        transform: translateY(-15px);

        transition:
            opacity 250ms ease,
            transform 250ms ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;

        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;

        width: 100%;
        padding: 13px;

        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .home-container,
    .about-container,
    .skills-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .home-container {
        gap: 70px;

        text-align: center;
    }

    .home-image-wrapper {
        width: min(340px, 85%);
    }

    .home-description {
        margin-inline: auto;
    }

    .social-links {
        justify-content: center;
    }

    .about-container,
    .skills-container,
    .contact-container {
        gap: 55px;
    }

    .about-content,
    .skills-description,
    .contact-text {
        text-align: center;
    }

    .left-heading {
        text-align: center;
    }

    .left-heading .heading-line {
        margin-inline: auto;
    }

    .experience {
        justify-content: center;
    }

    .about-image {
        height: 330px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding: 80px 0;
    }

    .home {
        padding-top: 120px;
    }

    .home-content h1 {
        min-height: 130px;

        font-size: 2.6rem;
    }

    .typing-wrapper {
        display: block;
    }

    .scroll-down {
        display: none;
    }

    .about-image {
        height: 230px;

        object-position: 10% center;
    }

    .about-details,
    .skills-grid,
    .services-grid,
    .youtube-links {
        grid-template-columns: 1fr;
    }

    .about-details {
        text-align: left;
    }

    .past-work-category {
        padding: 21px;
    }

    .past-work-heading {
        align-items: flex-start;
    }

    .past-work-heading h3 {
        font-size: 1.2rem;
    }

    .youtube-link {
        padding: 15px;
    }

    .contact-card {
        gap: 12px;
        padding: 17px;
    }

    .contact-information strong {
        font-size: 0.8rem;
    }

    .footer-container {
        flex-direction: column;
        justify-content: center;
        gap: 15px;

        padding: 25px 0;

        text-align: center;
    }
}