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

:root {
  --primary-color: #e50914;
  --primary-color-dark: #bb0811;
  --secondary-color: #0e0c38;
  --white: #ffffff;
  --black: #000000;
  --max-width: 1200px;
}

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

.section__container {
    max-width: var(--max-width);
    margin: auto;
    padding: 5rem 1rem;
}

.btn {
    padding: 0.75rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    color: var(--white);
    background: var(--primary-color);
    border-radius: 16px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color-dark);
}

img {
    display: flex;
    width: 100%;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--secondary-color);
}

nav {
    position: fixed;
    isolation: isolate;
    width: 100%;
    z-index: 9;
}

.nav__bg-1 {
    display: none;
}

.nav__header {
    padding: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
}

.nav__logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav__menu__btn {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.nav__links {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--primary-color);
    transition: transform 0.5s;
    z-index: -1;
}

.nav__links.open {
    transform: translateY(100%);
}

.nav__links a {
    font-weight: 500;
    color: var(--white);
    white-space: nowrap;
}

.nav__links a:hover {
    color: var(--secondary-color);
}

header {
    padding-top: 5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

header::before {
    position: absolute;
    content: "";
    height: 100%;
    max-width: 30rem;
    aspect-ratio: 1;
    top: 50%;
    left: -5rem;
    transform: translateY(-50%);
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.025);
    z-index: -1;
}

.header__container {
    display: grid;
    gap: 2rem;
}

.header__image img {
    max-width: 500px;
    margin-inline: auto;
}

.header__content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    text-align: center;
}

.header__content h1 {
    margin-bottom: 1rem;
    font-size: 5rem;
    color: var(--white);
    line-height: 6.5rem;
    text-align: center;
}

.header__content p {
    margin-bottom: 2rem;
    color: var(--white);
    text-align: center;
}

.header__passion {
    font-size: 1.3rem;
    font-weight: 600;
    min-height: 40px;
}

.header__passion .typewriter {
    color: var(--primary-color);
    font-weight: 700;
    border-right: 3px solid var(--white);
    padding-right: 5px;
    display: inline-block;
    animation: typewriter-blink 0.7s infinite;
}

@keyframes typewriter-blink {
    0%, 49% {
        border-right-color: var(--white);
    }
    50%, 100% {
        border-right-color: transparent;
    }
}

.header__content p span {
    color: var(--primary-color);
}

.header__content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
}

.socials {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.socials a {
    font-size: 1.5rem;
    color: var(--white);
}

.socials a:hover {
    color: var(--primary-color);
}

.header__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header__btns .btn:nth-child(2) {
    background-color: transparent;
    border-color: var(--white);
}

.header__btns .btn:nth-child(2):hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.header__bg-1 {
    position: absolute;
    max-width: 20rem;
    right: -10rem;
    bottom: 0;
    z-index: -1;
    opacity: 0.1;
}

@media (width > 768px) {
    nav{
        position: relative;
        padding-inline: 1rem;
        max-width: var(--max-width);
        margin-inline: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav__bg-1 {
        display: flex;
        max-width: 30rem;
        position: absolute;
        left: 50%;
        top: -20rem;
        transform: translateX(-50%);
        opacity: 0.1;
        z-index: -2;
    }

    .nav__header {
        flex :1;
        padding: 0;
        background-color: transparent;
    }

    .nav__logo a {
        font-size: 1.75rem;
    }

    .nav__logo a span {
        color: var(--primary-color);
    }

    .nav__menu__btn {
        display: none;
    }

    .nav__links {
        position: static;
        width: fit-content;
        flex-direction: row;
        gap: 0;
        padding: 0;
        background-color: transparent;
        transform: none !important;
    }

    .nav__links a {
        display: inline-block;
        position: relative;
        isolation: isolate;
        padding: 2rem 1rem;
    }

    .nav__links li:not(:nth-child(4)) a::before {
        position: absolute;
        content: "";
        top: -100%;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        transition: 0.3s;
        z-index: -1;
    }

    .nav__links li a:hover::before {
        top: 0;
    }

    .nav__links a:hover {
        color: var(--white);
    }

    .nav__links li:nth-child(4) a {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        margin-left: 1rem;
        border: 1px solid var(--white);
        border-radius: 2rem;
    }

    .nav__links li:nth-child(4) a:hover {
        color: var(--white);
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    header {
        padding-top: 0;
    }

    .header__container {
        padding-block: 0;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        isolation: isolate;
    }

    .header__image {
        position: relative;
        height: 100%;
    }

    .header__image img {
        position: absolute;
        width: unset;
        max-width: unset;
        height: 100%;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: -1;
    }

    .header__content {
        padding-block: 5rem;
        grid-area: 1/1/2/2; 
    }

    .header__content :is(h2, h1, p, h4) {
        text-align: left;
    }

    .header__content h1 {
        font-size: 6rem;
    }

    .socials,
    .header__btns {
        justify-content: flex-start;
    }
}

@media (width > 1024px) {
    .header__content {
        padding-block: 6rem;
    }
}

/* About Section */
.about {
    background-color: var(--secondary-color);
    padding: 5rem 0;
}

.about__container {
    text-align: center;
}

.section__title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
}

.about__description {
    color: var(--white);
    font-size: 1.1rem;
    max-width: 1500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about__card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.1));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.about__card:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--black);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2);
}

.about__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about__card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about__card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Skills Section */
.skills {
    background-color: var(--secondary-color);
    padding: 5rem 0;
}

.skills__container {
    text-align: center;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.skill__category {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.1));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill__category:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--black);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.2);
}

.skill__category h3 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.skills__list {
    list-style: none;
}

.skills__list li {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.skills__list span {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress__bar {
    height: 100%;
    background-color: var(--primary-color-dark);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--secondary-color);
    padding: 5rem 0;
}

.portfolio__container {
    text-align: center;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio__card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(15, 52, 96, 0.2));
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio__card:hover {
    transform: translateY(-15px);
    border-color: var(--black);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.3);
}

.portfolio__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(0, 212, 255, 0.1));
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio__card:hover .portfolio__image img {
    transform: scale(1.1);
}

.portfolio__content {
    padding: 2rem;
    text-align: left;
}

.portfolio__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--primary-color-dark);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.portfolio__content h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.portfolio__content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio__link:hover {
    gap: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--secondary-color);
    padding: 5rem 0;
}

.contact__container {
    text-align: center;
}

.contact__description {
    color: var(--white);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact__item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.contact__item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact__item p {
    color: rgba(255, 255, 255, 0.7);
}

.contact__item a {
    color: rgba(255, 255, 255, 0.7);
}

.contact__item a:hover {
    text-decoration: underline;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__form input,
.contact__form textarea {
    padding: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(168, 85, 247, 0.05));
    color: var(--white);
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--black);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.1));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Footer */

.footer {
    background: rgba(10, 14, 28, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
}

/* Layout container */
.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 2rem;
    padding: 3rem 1rem;
    align-items: start;
}

/* Brand section */
.footer__brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.footer__brand span {
    color: var(--primary-color);
}

.footer__tagline {
    margin-top: 0.2rem;
    font-size: 0.65rem;
    line-height: 1.6;
    color: #9ca3af;
}

/* Section headings */
.footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

/* Links */
.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    font-size: 0.95rem;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer__links a:hover {
    color: var(--primary-color);
    gap: 1rem;
}

/* Tech stack */
.footer__tech p {
    font-size: 0.95rem;
    color: #9ca3af;
}

/* Social icons */
.footer__icons {
    display: flex;
    gap: 0.75rem;
}

.footer__icons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    font-size: 1.15rem;
}

.footer__icons a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Bottom bar */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.2rem 1rem;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.65rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Responsive behavior */
@media (max-width: 900px) {
    .footer__container {
        grid-template-columns: 1fr 1fr;
        row-gap: 2rem;
    }
}

@media (max-width: 560px) {
    .footer__container {
        grid-template-columns: 1fr;
    }

    .footer__icons {
        justify-content: flex-start;
    }
}

