/* =========================================================
   MUA GREATNESS PORTFOLIO
   Modern Dark Portfolio
   ========================================================= */


/* ================= GOOGLE FONT ================= */

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


/* ================= VARIABLES ================= */

:root {

    --bg: #05070d;
    --bg-secondary: #080b14;
    --card: #0d111d;
    --card-hover: #12182a;

    --white: #ffffff;
    --text: #e7e9ef;
    --muted: #9ca3b4;

    --purple: #6c2cff;
    --purple-light: #914cff;
    --purple-dark: #4b16c7;

    --border: rgba(255,255,255,0.08);

    --shadow:
        0 20px 60px rgba(0,0,0,0.4);

    --transition: 0.3s ease;

}


/* ================= RESET ================= */

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


html {
    scroll-behavior: smooth;
}


body {

    font-family: 'Poppins', sans-serif;

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(108,44,255,0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 50%,
            rgba(108,44,255,0.07),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;

}


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


button,
input,
textarea {
    font-family: inherit;
}


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


/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 20px;
}


/* ================= HEADER ================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 75px;

    padding: 0 7%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(5,7,13,0.88);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);

    z-index: 1000;

}


/* ================= LOGO ================= */

.logo {

    font-size: 1.4rem;

    font-weight: 700;

    letter-spacing: -0.5px;

}


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


/* ================= NAVIGATION ================= */

.navbar {

    display: flex;

    align-items: center;

    gap: 35px;

}


.nav-link {

    position: relative;

    color: var(--muted);

    font-size: 0.9rem;

    transition: var(--transition);

}


.nav-link:hover,
.nav-link.active {

    color: var(--white);

}


.nav-link::after {

    content: '';

    position: absolute;

    left: 0;
    bottom: -27px;

    width: 0;
    height: 2px;

    background: var(--purple-light);

    transition: var(--transition);

}


.nav-link:hover::after,
.nav-link.active::after {

    width: 100%;

}


/* ================= HEADER ACTIONS ================= */

.header-actions {

    display: flex;

    align-items: center;

    gap: 18px;

}


.theme-btn,
.menu-btn {

    background: transparent;

    border: none;

    color: white;

    cursor: pointer;

    font-size: 1.1rem;

}


.menu-btn {
    display: none;
}


.cv-btn {

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-light)
        );

    padding: 11px 18px;

    border-radius: 7px;

    font-size: 0.85rem;

    font-weight: 600;

    display: flex;

    gap: 8px;

    align-items: center;

    box-shadow:
        0 8px 25px rgba(108,44,255,0.25);

    transition: var(--transition);

}


.cv-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(108,44,255,0.4);

}


/* ================= SECTIONS ================= */

.section {

    padding: 110px 7% 80px;

}


.section-heading {

    margin-bottom: 45px;

}


.section-heading span {

    color: var(--purple-light);

    font-size: 0.75rem;

    font-weight: 600;

    letter-spacing: 1.5px;

}


.section-heading h2 {

    color: var(--white);

    font-size: 2rem;

    margin-top: 5px;

}


/* ================= HERO ================= */

.hero {

    min-height: 100vh;

    padding: 120px 7% 60px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 40px;

    position: relative;

    overflow: hidden;

}


/* Decorative dots */

.hero::before {

    content: '';

    position: absolute;

    width: 200px;
    height: 200px;

    right: 38%;
    top: 25%;

    background-image:
        radial-gradient(
            var(--purple-light) 1px,
            transparent 1px
        );

    background-size: 12px 12px;

    opacity: 0.35;

}


/* ================= HERO CONTENT ================= */

.hero-content {

    position: relative;

    z-index: 2;

}


.small-title {

    color: var(--purple-light);

    font-size: 1rem;

    margin-bottom: 8px;

}


.hero h1 {

    font-size: clamp(3rem, 6vw, 5.5rem);

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -3px;

    margin-bottom: 15px;

}


.hero h1 span {

    color: var(--purple-light);

}


.hero h2 {

    font-size: 1.5rem;

    margin-bottom: 20px;

}


.hero-description {

    max-width: 580px;

    color: var(--muted);

    font-size: 0.95rem;

    margin-bottom: 10px;

}


/* ================= HERO BUTTONS ================= */

.hero-buttons {

    display: flex;

    gap: 15px;

    margin-top: 30px;

}


.primary-btn,
.secondary-btn,
.outline-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 13px 25px;

    border-radius: 7px;

    font-size: 0.9rem;

    font-weight: 600;

    transition: var(--transition);

    cursor: pointer;

}


.primary-btn {

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-light)
        );

    color: white;

    border: none;

    box-shadow:
        0 10px 30px rgba(108,44,255,0.25);

}


.primary-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(108,44,255,0.4);

}


.secondary-btn {

    border: 1px solid #404658;

    color: white;

    background: transparent;

}


.secondary-btn:hover {

    border-color: var(--purple-light);

    background: rgba(108,44,255,0.08);

}


.outline-btn {

    border: 1px solid var(--purple);

    color: var(--purple-light);

    margin-top: 20px;

}


.outline-btn:hover {

    color: white;

    background: var(--purple);

}


/* ================= SOCIAL ================= */

.social-links {

    display: flex;

    gap: 12px;

    margin-top: 28px;

}


.social-links a {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #111621;

    color: #c8ccd7;

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

    transition: var(--transition);

}


.social-links a:hover {

    background: var(--purple);

    color: white;

    transform: translateY(-4px);

}


/* ================= HERO IMAGE ================= */

.hero-image {

    position: relative;

    min-height: 550px;

    display: flex;

    justify-content: center;

    align-items: flex-end;

}


.hero-image::before {

    content: '';

    position: absolute;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(108,44,255,0.6),
            rgba(108,44,255,0.05) 70%
        );

    filter: blur(5px);

}


.hero-image img {

    position: relative;

    z-index: 2;

    max-height: 560px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 35px rgba(0,0,0,0.7)
        );

}


.code-icon {

    position: absolute;

    right: 8%;

    top: 30%;

    z-index: 4;

    width: 60px;
    height: 60px;

    border-radius: 12px;

    background: #0b0e18;

    border: 1px solid rgba(108,44,255,0.5);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--purple-light);

    font-size: 1.6rem;

    box-shadow: var(--shadow);

}


/* ================= ABOUT ================= */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 70px;

    align-items: center;

}


.about-text p {

    color: var(--muted);

    font-size: 0.95rem;

    margin-bottom: 18px;

}


.about-cards {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

}


.info-card {

    background:
        linear-gradient(
            145deg,
            #0d111d,
            #0a0d15
        );

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

    border-radius: 10px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 15px;

    transition: var(--transition);

}


.info-card:hover {

    transform: translateY(-5px);

    border-color:
        rgba(108,44,255,0.45);

}


.info-icon {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: var(--purple-light);

    background:
        rgba(108,44,255,0.12);

    font-size: 1.2rem;

}


.info-card span {

    color: var(--purple-light);

    font-size: 0.7rem;

}


.info-card h3 {

    font-size: 0.9rem;

    margin: 2px 0;

}


.info-card p {

    color: var(--muted);

    font-size: 0.75rem;

}


/* ================= SKILLS ================= */

.skills {

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    background: rgba(255,255,255,0.01);

}


.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(8, 1fr);

    gap: 12px;

}


.skill-card {

    min-height: 110px;

    padding: 15px;

    background: #0c101a;

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

    border-radius: 9px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    transition: var(--transition);

}


.skill-card:hover {

    transform: translateY(-5px);

    border-color:
        rgba(108,44,255,0.5);

    background: #111627;

}


.skill-card i {

    font-size: 1.8rem;

    margin-bottom: 8px;

    color: var(--purple-light);

}


.skill-card h3 {

    font-size: 0.75rem;

}


.skill-card p {

    color: var(--muted);

    font-size: 0.65rem;

}


/* ================= SERVICES ================= */

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.service-card {

    background:
        linear-gradient(
            145deg,
            #0d111d,
            #080b13
        );

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

    padding: 35px 30px;

    border-radius: 12px;

    transition: var(--transition);

}


.service-card:hover {

    transform: translateY(-8px);

    border-color:
        rgba(108,44,255,0.5);

}


.service-icon {

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: var(--purple-light);

    background:
        rgba(108,44,255,0.12);

    font-size: 1.4rem;

    margin-bottom: 20px;

}


.service-card h3 {

    margin-bottom: 12px;

}


.service-card p {

    color: var(--muted);

    font-size: 0.85rem;

    margin-bottom: 20px;

}


.service-card a {

    color: var(--purple-light);

    font-size: 0.8rem;

    font-weight: 600;

}


.service-card a i {

    margin-left: 5px;

}


/* ================= PROJECTS ================= */

.projects-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

}


.view-all {

    color: var(--purple-light);

    font-size: 0.8rem;

}


.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}


.project-card {

    background: #0c101a;

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

    border-radius: 12px;

    overflow: hidden;

    transition: var(--transition);

}


.project-card:hover {

    transform: translateY(-7px);

    border-color:
        rgba(108,44,255,0.5);

}


.project-image {

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 4rem;

    color: rgba(255,255,255,0.85);

}


.project-one {

    background:
        linear-gradient(
            135deg,
            #141c35,
            #30106b
        );

}


.project-two {

    background:
        linear-gradient(
            135deg,
            #121a2d,
            #24104e
        );

}


.project-three {

    background:
        linear-gradient(
            135deg,
            #131a25,
            #3a185d
        );

}


.project-content {

    padding: 22px;

}


.project-number {

    color: var(--purple-light);

    font-size: 0.7rem;

}


.project-content h3 {

    margin: 5px 0 8px;

}


.project-content p {

    color: var(--muted);

    font-size: 0.8rem;

}


.tags {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 15px;

}


.tags span {

    padding: 5px 9px;

    border-radius: 5px;

    background: rgba(108,44,255,0.1);

    color: #bba3ff;

    font-size: 0.65rem;

}


/* ================= CONTACT ================= */

.contact-container {

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

}


.contact-info h3 {

    font-size: 1.5rem;

    margin-bottom: 15px;

}


.contact-info > p {

    color: var(--muted);

    max-width: 450px;

    font-size: 0.9rem;

    margin-bottom: 30px;

}


.contact-item {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

}


.contact-item > div {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: var(--purple-light);

    background:
        rgba(108,44,255,0.1);

}


.contact-item span {

    font-size: 0.85rem;

}


.contact-item small {

    display: block;

    color: var(--muted);

    font-size: 0.7rem;

}


/* ================= FORM ================= */

.contact-form {

    display: flex;

    flex-direction: column;

    gap: 15px;

}


.contact-form input,
.contact-form textarea {

    width: 100%;

    padding: 15px 18px;

    background: #0c101a;

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

    border-radius: 8px;

    outline: none;

    color: white;

    font-size: 0.85rem;

    resize: vertical;

    transition: var(--transition);

}


.contact-form input:focus,
.contact-form textarea:focus {

    border-color: var(--purple);

    box-shadow:
        0 0 0 3px rgba(108,44,255,0.08);

}


.contact-form button {

    width: fit-content;

}


/* ================= FOOTER ================= */

.footer {

    padding: 45px 7%;

    border-top: 1px solid var(--border);

    text-align: center;

    background: #03050a;

}


.footer > p {

    color: var(--muted);

    font-size: 0.75rem;

    margin: 8px 0 20px;

}


.footer-socials {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-bottom: 20px;

}


.footer-socials a {

    width: 35px;
    height: 35px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #111621;

    color: #cdd1dc;

    transition: var(--transition);

}


.footer-socials a:hover {

    background: var(--purple);

    color: white;

}


.copyright {

    font-size: 0.7rem !important;

}


/* ================= LIGHT MODE ================= */

body.light-mode {

    --bg: #f5f6fa;
    --bg-secondary: #ffffff;
    --card: #ffffff;

    --white: #10121a;
    --text: #20232d;
    --muted: #626978;

    --border: rgba(0,0,0,0.1);

    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(108,44,255,0.08),
            transparent 30%
        ),
        #f5f6fa;

}


body.light-mode .header {

    background: rgba(255,255,255,0.9);

}


body.light-mode .skill-card,
body.light-mode .info-card,
body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {

    background: white;

}


body.light-mode .footer {

    background: #e9ebf2;

}


body.light-mode .social-links a,
body.light-mode .footer-socials a {

    background: #e7e9f0;

    color: #333;

}


/* ================= SCROLL REVEAL ================= */

.section,
.hero-content,
.hero-image {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.show {

    opacity: 1;

    transform: translateY(0);

}


/* ================= RESPONSIVE ================= */


/* Tablets */

@media (max-width: 1100px) {

    .header {
        padding: 0 5%;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .skills-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

}


/* Mobile */

@media (max-width: 850px) {

    .header {
        height: 70px;
    }


    .navbar {

        position: fixed;

        top: 70px;
        right: -100%;

        width: 280px;

        height: calc(100vh - 70px);

        background: #080b13;

        border-left: 1px solid var(--border);

        padding: 35px 25px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 25px;

        transition: 0.4s ease;

    }


    .navbar.active {
        right: 0;
    }


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


    .menu-btn {
        display: block;
    }


    .cv-btn {
        display: none;
    }


    .hero {

        min-height: auto;

        padding-top: 130px;

        grid-template-columns: 1fr;

        text-align: center;

    }


    .hero-content {

        order: 1;

    }


    .hero-image {

        order: 2;

        min-height: 420px;

    }


    .hero-description {

        margin-left: auto;
        margin-right: auto;

    }


    .hero-buttons {

        justify-content: center;

        flex-wrap: wrap;

    }


    .social-links {

        justify-content: center;

    }


    .hero h1 {

        font-size: clamp(
            2.7rem,
            12vw,
            4rem
        );

    }


    .hero-image::before {

        width: 300px;
        height: 300px;

    }


    .about-grid {

        grid-template-columns: 1fr;

        gap: 35px;

    }


    .skills-grid {

        grid-template-columns:
            repeat(4, 1fr);

    }


    .services-grid,
    .projects-grid {

        grid-template-columns: 1fr;

    }


    .contact-container {

        grid-template-columns: 1fr;

        gap: 40px;

    }

}


/* Small phones */

@media (max-width: 500px) {

    .section {

        padding: 80px 5% 60px;

    }


    .section-heading h2 {

        font-size: 1.6rem;

    }


    .about-cards {

        grid-template-columns: 1fr;

    }


    .skills-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .hero {

        padding-left: 5%;
        padding-right: 5%;

    }


    .hero h1 {

        letter-spacing: -1.5px;

    }


    .hero-buttons {

        flex-direction: column;

    }


    .primary-btn,
    .secondary-btn {

        width: 100%;

    }


    .hero-image {

        min-height: 350px;

    }


    .hero-image::before {

        width: 250px;
        height: 250px;

    }


    .code-icon {

        right: 5%;

    }


    .projects-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 10px;

    }

}