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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --body-color: #0f051e;
    --gradient-bg: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --special-color: linear-gradient(to right, #2563eb, #7c3aed);
    --text-color: #f3f1f4;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: capitalize;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 10px;
}

.primary-btn {
    background: var(--gradient-bg);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

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

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title h2 span {
    background: var(--special-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width:992px) {
    .section-title h2 {
        font-size: 30px;
    }
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-bg);
    margin: 0 auto;
    border-radius: 2px;
}

/* ================>>> Header <<<================ */
header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    background-color: rgba(15, 5, 30, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background-color: rgba(15, 5, 30, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo a {
    font-size: 30px;
    font-weight: 700;
    background: var(--special-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: var(--transition);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative;

    &::before {
        content: '';
        position: absolute;
        width: 0%;
        height: 3px;
        background-color: var(--primary-color);
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 15px;
        transition: var(--transition);
    }

    &:hover,
    &.active {
        a {
            color: var(--primary-color);
        }

        &::before {
            width: 80%;
        }
    }
}

nav ul li a {
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a i {
    font-size: 16px;
}

.iconMenu {
    width: 26px;
    height: 24px;
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.iconMenu span {
    width: 100%;
    height: 3px;
    position: absolute;
    background-color: #fff;
    transition: var(--transition);

    &:first-of-type {
        top: 0;
    }

    &:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    &:last-of-type {
        bottom: 0;
    }
}

.open span {
    width: 100%;
    height: 3px;
    position: absolute;
    background-color: #fff;

    &:first-of-type {
        transform: translateY(10px)rotateZ(45deg);
    }

    &:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
        display: none;
    }

    &:last-of-type {
        transform: translateY(-11px)rotateZ(-45deg);
    }
}


/* Mobile Menu */
@media (max-width: 992px) {
    .iconMenu {
        display: block;
    }

    nav {
        position: fixed;
        top: 100%;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        padding: 30px 30px 30px;
    }

    nav.active {
        right: 0;
    }

    nav ul li {

        &:hover,
        &.active {
            a {
                color: var(--primary-color);
                background: rgba(37, 99, 235, 0.2);
                padding-left: 25px;
            }

            &::before {
                content: none;
            }
        }
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li a {
        padding: 12px 20px;
        border-radius: 5px;
    }

    nav ul li a:hover {
        background: rgba(37, 99, 235, 0.2);
        padding-left: 25px;
    }
}

/* ================>>> Home Section <<<================ */
.home {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.person-info {
    width: calc(var(--w) * 1%);
}

.person-info h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.person-info h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.person-info h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--gray-color);
}

.person-info h2 .typed-text {
    color: var(--text-color);
    background: var(--special-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.person-info p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--gray-color);
    max-width: 600px;
}

.person-image {
    width: calc(var(--w) * 1%);
    display: flex;
    justify-content: center;
}

.person-image .image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient-bg);
    padding: 8px;
}

.person-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--body-color);
}

@media (max-width: 992px) {
    .home {
        padding-top: 114px;
    }

    .home .container {
        flex-direction: column-reverse;
    }

    .person-info {
        width: 100% !important;
        text-align: center;

        p {
            margin: 25px auto;
        }

        h1 {
            font-size: 30px;
        }

        h2 {
            font-size: 20px;
        }
    }

    .person-image {
        margin-top: 50px;
        width: 100% !important;
        text-align: center;
    }
}

@media (max-width:768px) {
    .person-image .image-wrapper {
        width: 280px;
        height: 280px;
    }
}

/* ================>>> About Section <<<================ */
.about-content {
    gap: 40px;
}

.about-image {
    width: calc(var(--w) * 1%);
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.about-info {
    width: calc(var(--w) * 1%);
}

.about-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.personal-info {
    margin: 25px 0;
}

.about-info p {
    color: var(--gray-color);
}

.info-item {
    display: flex;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 25px;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-image,
    .about-info {
        width: 100% !important;
    }
}


/* ================>>> Skills Section <<<================ */

.skills-content .skill-category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .skills-content .skill-category {
        grid-template-columns: 1fr;
    }
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-bg);
    border-radius: 4px;
}

/* ================>>> Projects Section <<<================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tech span {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

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

/* ================>>> Contact Section <<<================ */
.contact-content {
    gap: 40px;
}

.contact-info {
    width: calc(var(--w) * 1%);
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray-color);
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.contact-form {
    width: calc(var(--w) * 1%);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 992px) {

    .contact-info,
    .contact-form {
        width: 100% !important;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width:768px) {
    .social-links {
        justify-content: center;
    }
}

/* ================>>> Footer <<<================ */
footer {
    background-color: rgba(15, 5, 30, 0.9);
    padding: 20px 0;
    text-align: center;
}

footer p {
    color: var(--gray-color);
    font-size: 14px;
}

/* ================>>> Animation Design <<<================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    opacity: 0;
}

.section.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.section:nth-child(1).animated {
    animation-delay: 0.1s;
}

.section:nth-child(2).animated {
    animation-delay: 0.2s;
}

.section:nth-child(3).animated {
    animation-delay: 0.3s;
}

.section:nth-child(4).animated {
    animation-delay: 0.4s;
}

.section:nth-child(5).animated {
    animation-delay: 0.5s;
}