/* =========================================================
   MUHAMMAD YOUSAF PORTFOLIO
   COMPLETE STYLE SHEET
========================================================= */


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

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;

    --background: #ffffff;
    --background-alt: #f8fafc;

    --surface: #ffffff;
    --surface-2: #f1f5f9;

    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    --border: #e2e8f0;

    --success: #16a34a;
    --warning: #f59e0b;

    --shadow-sm:
        0 4px 15px rgba(15, 23, 42, 0.06);

    --shadow:
        0 15px 40px rgba(15, 23, 42, 0.10);

    --shadow-lg:
        0 25px 70px rgba(15, 23, 42, 0.15);

    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1180px;

    --transition:
        all 0.3s ease;

}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {

    --background: #020617;
    --background-alt: #0f172a;

    --surface: #111827;
    --surface-2: #1e293b;

    --text: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;

    --border: #334155;

    --shadow-sm:
        0 4px 15px rgba(0, 0, 0, 0.25);

    --shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, 0.45);

}


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

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    font-family:
        "Inter",
        Arial,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;

    transition:
        background 0.3s ease,
        color 0.3s ease;

}


body.menu-open {

    overflow: hidden;

}


img {

    max-width: 100%;

    display: block;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea,
select {

    font: inherit;

}


button {

    cursor: pointer;

    border: none;

}


ul {

    list-style: none;

}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;

}


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

.section {

    padding: 100px 0;

}


.section-alt {

    background: var(--background-alt);

}


.section-heading {

    max-width: 700px;

    margin: 0 auto 60px;

    text-align: center;

}


.section-label {

    display: inline-block;

    margin-bottom: 10px;

    color: var(--primary);

    font-size: 0.85rem;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.section-heading h2 {

    margin-bottom: 15px;

    font-size: clamp(
        2rem,
        5vw,
        3rem
    );

    line-height: 1.15;

    font-weight: 800;

}


.section-heading p:not(.section-label) {

    color: var(--text-light);

}


/* =========================================================
   PRELOADER
========================================================= */

#preloader {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--background);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;

}


#preloader.hide {

    opacity: 0;

    visibility: hidden;

}


.loader {

    width: 55px;

    height: 55px;

    border-radius: 50%;

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

    border-top-color: var(--primary);

    animation:
        spin 0.8s linear infinite;

}


@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}


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

.header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        color-mix(
            in srgb,
            var(--background) 88%,
            transparent
        );

    backdrop-filter: blur(18px);

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

}


.nav-container {

    min-height: 75px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


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

.logo {

    display: inline-flex;

    align-items: center;

    font-size: 1.7rem;

    font-weight: 900;

    letter-spacing: -1px;

}


.logo span {

    color: var(--primary);

}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    display: flex;

    align-items: center;

    gap: 26px;

}


.nav-link {

    position: relative;

    padding: 26px 0;

    color: var(--text-light);

    font-size: 0.88rem;

    font-weight: 600;

    transition: var(--transition);

}


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

    color: var(--primary);

}


.nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 17px;

    width: 0;

    height: 2px;

    background: var(--primary);

    transition: var(--transition);

}


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

    width: 100%;

}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}


.icon-btn {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--surface-2);

    color: var(--text);

    transition: var(--transition);

}


.icon-btn:hover {

    background: var(--primary);

    color: white;

    transform: translateY(-2px);

}


.menu-btn {

    display: none;

}


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

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding-top: 130px;

    position: relative;

    overflow: hidden;

}


.hero::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    right: -200px;

    top: 100px;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.16),
            transparent 70%
        );

    pointer-events: none;

}


.hero-grid {

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    align-items: center;

    gap: 70px;

}


.hero-small {

    color: var(--primary);

    font-weight: 700;

    margin-bottom: 12px;

}


.hero-content h1 {

    font-size: clamp(
        3rem,
        7vw,
        5.8rem
    );

    line-height: 0.95;

    letter-spacing: -4px;

    font-weight: 900;

    margin-bottom: 20px;

}


.hero-content h1 span {

    display: block;

    color: var(--primary);

}


.hero-content h2 {

    font-size: clamp(
        1.4rem,
        3vw,
        2rem
    );

    margin-bottom: 20px;

    color: var(--text-light);

}


.hero-description {

    max-width: 650px;

    color: var(--text-light);

    font-size: 1.05rem;

    margin-bottom: 32px;

}


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

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

}


.btn {

    min-height: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 0 22px;

    border-radius: 10px;

    font-weight: 700;

    font-size: 0.92rem;

    transition: var(--transition);

}


.btn-primary {

    background: var(--primary);

    color: white;

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.22);

}


.btn-primary:hover {

    background: var(--primary-dark);

    transform: translateY(-3px);

    box-shadow:
        0 15px 30px
        rgba(37, 99, 235, 0.3);

}


.btn-outline {

    background: transparent;

    color: var(--text);

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

}


.btn-outline:hover {

    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-3px);

}


.btn-small {

    min-height: 42px;

    padding: 0 16px;

    font-size: 0.85rem;

}


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

.hero-socials {

    display: flex;

    gap: 12px;

    margin-top: 28px;

}


.hero-socials a {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

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

    border-radius: 50%;

    color: var(--text-light);

    transition: var(--transition);

}


.hero-socials a:hover {

    color: white;

    background: var(--primary);

    border-color: var(--primary);

    transform: translateY(-3px);

}


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

.hero-image {

    position: relative;

    min-height: 520px;

    display: grid;

    place-items: center;

}


.profile-circle {

    width: min(
        390px,
        75vw
    );

    aspect-ratio: 1;

    position: relative;

    overflow: hidden;

    border-radius: 50%;

    border:
        10px solid var(--surface);

    box-shadow:
        0 0 0 2px var(--primary),
        0 25px 70px
        rgba(37, 99, 235, 0.22);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

}


.profile-circle img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.profile-placeholder {

    position: absolute;

    inset: 0;

    display: grid;

    place-items: center;

    color: white;

    font-size: 5rem;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

}


.profile-circle img[src=""] + .profile-placeholder {

    display: grid;

}


.profile-circle img:not([src=""]) + .profile-placeholder {

    display: none;

}


/* =========================================================
   FLOATING SKILL CARDS
========================================================= */

.floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 16px;

    border-radius: 12px;

    background: var(--surface);

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

    box-shadow: var(--shadow);

    font-weight: 700;

    animation:
        floating 4s ease-in-out infinite;

}


.floating-card i {

    font-size: 1.3rem;

}


.card-one {

    top: 15%;

    left: 3%;

}


.card-one i {

    color: #e34f26;

}


.card-two {

    right: 2%;

    top: 40%;

    animation-delay: 0.8s;

}


.card-two i {

    color: #1572b6;

}


.card-three {

    bottom: 15%;

    left: 8%;

    animation-delay: 1.5s;

}


.card-three i {

    color: #f7df1e;

}


@keyframes floating {

    0%,
    100% {

        transform: translateY(0);

    }

    50% {

        transform: translateY(-12px);

    }

}


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

.about-grid {

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    gap: 60px;

    align-items: center;

}


.about-text p {

    color: var(--text-light);

    margin-bottom: 18px;

}


.about-info {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 30px;

}


.about-info div {

    padding: 18px;

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

    border-radius: 12px;

    background: var(--surface);

}


.about-info strong,
.about-info span {

    display: block;

}


.about-info strong {

    margin-bottom: 5px;

    font-size: 0.85rem;

    color: var(--primary);

}


.about-info span {

    font-weight: 600;

}


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

.about-card {

    padding: 40px;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-2)
        );

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

    box-shadow: var(--shadow);

}


.about-card-icon {

    width: 65px;

    height: 65px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    background: rgba(37, 99, 235, 0.1);

    color: var(--primary);

    font-size: 1.6rem;

    margin-bottom: 22px;

}


.about-card h3 {

    margin-bottom: 12px;

    font-size: 1.4rem;

}


.about-card > p {

    color: var(--text-light);

}


.mini-stats {

    display: grid;

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

    gap: 10px;

    margin-top: 30px;

}


.mini-stats div {

    text-align: center;

    padding: 14px 8px;

    border-radius: 10px;

    background: var(--background);

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

}


.mini-stats strong,
.mini-stats span {

    display: block;

}


.mini-stats strong {

    font-size: 0.9rem;

}


.mini-stats span {

    color: var(--text-muted);

    font-size: 0.72rem;

}


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

.skills-grid {

    display: grid;

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

    gap: 18px;

}


.skill-card {

    padding: 28px 18px;

    text-align: center;

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

    border-radius: 16px;

    background: var(--surface);

    transition: var(--transition);

}


.skill-card:hover {

    transform: translateY(-7px);

    border-color: var(--primary);

    box-shadow: var(--shadow);

}


.skill-card > i {

    font-size: 2.4rem;

    color: var(--primary);

    margin-bottom: 14px;

}


.skill-card h3 {

    font-size: 1rem;

    margin-bottom: 5px;

}


.skill-card p {

    color: var(--text-muted);

    font-size: 0.8rem;

}


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

.services-grid {

    display: grid;

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

    gap: 20px;

}


.service-card {

    padding: 30px;

    background: var(--surface);

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

    border-radius: var(--radius);

    transition: var(--transition);

}


.service-card:hover {

    transform: translateY(-7px);

    border-color: var(--primary);

    box-shadow: var(--shadow);

}


.service-icon {

    width: 55px;

    height: 55px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    background:
        rgba(37, 99, 235, 0.1);

    color: var(--primary);

    font-size: 1.3rem;

    margin-bottom: 20px;

}


.service-card h3 {

    margin-bottom: 10px;

    font-size: 1.1rem;

}


.service-card p {

    color: var(--text-light);

    font-size: 0.9rem;

}


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

.projects-grid {

    display: grid;

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

    gap: 25px;

}


.project-card {

    overflow: hidden;

    background: var(--surface);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

}


.project-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);

}


.project-image {

    position: relative;

    height: 230px;

    overflow: hidden;

    background: var(--surface-2);

}


.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.project-card:hover
.project-image img {

    transform: scale(1.06);

}


.project-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(15, 23, 42, 0.65);

    opacity: 0;

    transition: var(--transition);

}


.project-card:hover
.project-overlay {

    opacity: 1;

}


.project-view {

    width: 55px;

    height: 55px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: white;

    color: var(--primary);

    font-size: 1.1rem;

    transition: var(--transition);

}


.project-view:hover {

    transform: scale(1.1);

}


.project-content {

    padding: 25px;

}


.project-category {

    color: var(--primary);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.project-content h3 {

    margin:
        7px 0 10px;

    font-size: 1.25rem;

}


.project-content > p {

    color: var(--text-light);

    font-size: 0.88rem;

    margin-bottom: 18px;

}


.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;

}


.project-tech span {

    padding: 5px 9px;

    border-radius: 6px;

    background: var(--surface-2);

    color: var(--text-light);

    font-size: 0.7rem;

    font-weight: 700;

}


/* =========================================================
   PROJECT RATINGS
========================================================= */

.project-rating {

    padding: 14px;

    margin-bottom: 18px;

    border-radius: 12px;

    background: var(--background-alt);

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

}


.rating-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 7px;

}


.rating-top span {

    color: var(--text-light);

    font-size: 0.75rem;

    font-weight: 600;

}


.rating-value {

    color: var(--warning);

    font-size: 1rem;

}


.stars {

    display: flex;

    gap: 3px;

}


.stars button {

    padding: 1px;

    background: transparent;

    color: var(--border);

    font-size: 1.3rem;

    transition: var(--transition);

}


.stars button:hover,
.stars button.active {

    color: var(--warning);

    transform: scale(1.12);

}


.rating-count {

    display: block;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 0.7rem;

}


.project-actions {

    display: flex;

    justify-content: flex-start;

}


/* =========================================================
   WHY HIRE
========================================================= */

.why-grid {

    display: grid;

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

    gap: 20px;

}


.why-card {

    padding: 30px;

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

    border-radius: var(--radius);

    background: var(--surface);

    transition: var(--transition);

}


.why-card:hover {

    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow: var(--shadow);

}


.why-card > i {

    color: var(--primary);

    font-size: 1.5rem;

    margin-bottom: 18px;

}


.why-card h3 {

    margin-bottom: 9px;

    font-size: 1.1rem;

}


.why-card p {

    color: var(--text-light);

    font-size: 0.88rem;

}


/* =========================================================
   PACKAGES
========================================================= */

.packages-grid {

    display: grid;

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

    gap: 25px;

    align-items: stretch;

}


.package-card {

    position: relative;

    padding: 38px 30px;

    background: var(--surface);

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

    border-radius: var(--radius-lg);

    transition: var(--transition);

}


.package-card:hover {

    transform: translateY(-7px);

    box-shadow: var(--shadow);

}


.package-card.featured {

    border:
        2px solid var(--primary);

    transform: scale(1.03);

    box-shadow:
        0 20px 50px
        rgba(37, 99, 235, 0.15);

}


.package-card.featured:hover {

    transform:
        scale(1.03)
        translateY(-7px);

}


.popular-badge {

    position: absolute;

    top: 0;

    right: 25px;

    transform: translateY(-50%);

    padding: 6px 12px;

    border-radius: 20px;

    background: var(--primary);

    color: white;

    font-size: 0.7rem;

    font-weight: 800;

}


.package-icon {

    width: 60px;

    height: 60px;

    display: grid;

    place-items: center;

    border-radius: 15px;

    background:
        rgba(37, 99, 235, 0.1);

    color: var(--primary);

    font-size: 1.4rem;

    margin-bottom: 20px;

}


.package-card h3 {

    font-size: 1.35rem;

    margin-bottom: 10px;

}


.package-description {

    min-height: 65px;

    color: var(--text-light);

    font-size: 0.88rem;

    margin-bottom: 20px;

}


.package-card ul {

    margin-bottom: 30px;

}


.package-card li {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 12px 0;

    color: var(--text-light);

    font-size: 0.88rem;

}


.package-card li i {

    color: var(--success);

}


.package-btn {

    width: 100%;

}


/* =========================================================
   GITHUB SECTION
========================================================= */

.github-section {

    padding-top: 70px;

    padding-bottom: 70px;

}


.github-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 45px;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            var(--surface-2),
            var(--surface)
        );

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

}


.github-card h2 {

    margin-bottom: 8px;

    font-size: 2rem;

}


.github-card p:not(.section-label) {

    color: var(--text-light);

}


/* =========================================================
   FAQ
========================================================= */

.faq-container {

    max-width: 850px;

    margin: auto;

}


.faq-item {

    margin-bottom: 12px;

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

    border-radius: 12px;

    overflow: hidden;

    background: var(--surface);

}


.faq-question {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    background: transparent;

    color: var(--text);

    text-align: left;

    font-weight: 700;

}


.faq-question i {

    color: var(--primary);

    transition: var(--transition);

}


.faq-item.active
.faq-question i {

    transform: rotate(45deg);

}


.faq-answer {

    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.3s ease;

}


.faq-answer p {

    overflow: hidden;

    padding:
        0 20px;

    color: var(--text-light);

    font-size: 0.9rem;

}


.faq-item.active
.faq-answer {

    grid-template-rows: 1fr;

}


.faq-item.active
.faq-answer p {

    padding:
        0 20px 20px;

}


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

.contact-grid {

    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 60px;

    align-items: start;

}


.contact-info {

    display: grid;

    gap: 15px;

}


.contact-card {

    display: flex;

    align-items: center;

    gap: 16px;

    padding: 20px;

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

    border-radius: 13px;

    background: var(--surface);

}


.contact-icon {

    flex: 0 0 48px;

    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background:
        rgba(37, 99, 235, 0.1);

    color: var(--primary);

}


.contact-card span {

    display: block;

    color: var(--text-muted);

    font-size: 0.75rem;

    margin-bottom: 2px;

}


.contact-card a,
.contact-card strong {

    font-size: 0.9rem;

    font-weight: 700;

    word-break: break-word;

}


.contact-card a:hover {

    color: var(--primary);

}


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

.contact-form {

    padding: 35px;

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

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

}


.form-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

}


.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 0.82rem;

    font-weight: 700;

}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 13px 15px;

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

    border-radius: 9px;

    outline: none;

    background: var(--background);

    color: var(--text);

    transition: var(--transition);

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, 0.1);

}


.form-group textarea {

    resize: vertical;

    min-height: 150px;

}


.form-submit {

    width: 100%;

}


.form-note {

    margin-top: 12px;

    text-align: center;

    color: var(--text-muted);

    font-size: 0.72rem;

}


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

.footer {

    padding: 50px 0 20px;

    background:
        var(--surface-2);

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

}


.footer-main {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding-bottom: 35px;

}


.footer-logo {

    margin-bottom: 8px;

}


.footer-main p {

    font-weight: 700;

}


.footer-main span {

    color: var(--text-muted);

    font-size: 0.8rem;

}


.footer-socials {

    display: flex;

    gap: 10px;

}


.footer-socials a {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

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

    border-radius: 50%;

    color: var(--text-light);

    transition: var(--transition);

}


.footer-socials a:hover {

    color: white;

    background: var(--primary);

    border-color: var(--primary);

}


.footer-bottom {

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 20px;

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

    color: var(--text-muted);

    font-size: 0.75rem;

}


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

.floating-contact {

    position: fixed;

    right: 20px;

    bottom: 25px;

    z-index: 900;

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.floating-contact a {

    width: 52px;

    height: 52px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: white;

    box-shadow: var(--shadow);

    transition: var(--transition);

}


.floating-contact a:hover {

    transform: scale(1.1);

}


.floating-email {

    background: #2563eb;

}


.floating-whatsapp {

    background: #22c55e;

}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {

    position: fixed;

    right: 20px;

    bottom: 145px;

    z-index: 890;

    width: 45px;

    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--primary);

    color: white;

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: var(--transition);

    box-shadow: var(--shadow);

}


.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.back-to-top:hover {

    transform:
        translateY(-4px);

}


/* =========================================================
   TOAST
========================================================= */

.toast {

    position: fixed;

    right: 20px;

    bottom: 25px;

    z-index: 9999;

    display: flex;

    align-items: center;

    gap: 10px;

    max-width: 340px;

    padding: 14px 18px;

    border-radius: 10px;

    background: var(--text);

    color: var(--background);

    box-shadow: var(--shadow-lg);

    transform:
        translateX(130%);

    transition:
        transform 0.35s ease;

    font-size: 0.85rem;

}


.toast.show {

    transform:
        translateX(0);

}


.toast i {

    color: #22c55e;

}


/* =========================================================
   SCROLL ANIMATION
========================================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(30px);

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

}


.reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background: var(--primary);

    color: white;

}


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

::-webkit-scrollbar {

    width: 9px;

}


::-webkit-scrollbar-track {

    background: var(--background-alt);

}


::-webkit-scrollbar-thumb {

    background: var(--primary);

    border-radius: 10px;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {


    .navbar {

        gap: 16px;

    }


    .nav-link {

        font-size: 0.8rem;

    }


    .hero-grid {

        gap: 40px;

    }


    .skills-grid {

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

    }


    .services-grid {

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

    }


    .projects-grid {

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

    }


}


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

@media (max-width: 850px) {


    .menu-btn {

        display: grid;

    }


    .navbar {

        position: fixed;

        top: 75px;

        right: -100%;

        width: min(
            320px,
            85%
        );

        height:
            calc(100vh - 75px);

        padding: 30px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        overflow-y: auto;

        background: var(--surface);

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

        box-shadow:
            -15px 0 40px
            rgba(0, 0, 0, 0.12);

        transition:
            right 0.3s ease;

    }


    .navbar.open {

        right: 0;

    }


    .nav-link {

        padding: 16px 0;

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

    }


    .nav-link::after {

        display: none;

    }


    .hero-grid {

        grid-template-columns:
            1fr;

        text-align: center;

    }


    .hero-content {

        order: 1;

    }


    .hero-image {

        order: 2;

        min-height: 420px;

    }


    .hero-buttons,
    .hero-socials {

        justify-content: center;

    }


    .about-grid {

        grid-template-columns:
            1fr;

    }


    .contact-grid {

        grid-template-columns:
            1fr;

    }


    .github-card {

        flex-direction: column;

        text-align: center;

        align-items: center;

    }


}


/* =========================================================
   SMALL TABLETS
========================================================= */

@media (max-width: 700px) {


    .section {

        padding: 75px 0;

    }


    .container {

        width:
            min(
                calc(100% - 30px),
                var(--container)
            );

    }


    .hero {

        padding-top: 110px;

    }


    .hero-content h1 {

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

        letter-spacing: -2px;

    }


    .skills-grid {

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

    }


    .projects-grid {

        grid-template-columns:
            1fr;

    }


    .why-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .packages-grid {

        grid-template-columns:
            1fr;

    }


    .package-card.featured {

        transform: none;

    }


    .package-card.featured:hover {

        transform:
            translateY(-7px);

    }


    .footer-main {

        flex-direction: column;

        text-align: center;

    }


    .footer-bottom {

        flex-direction: column;

        text-align: center;

    }


}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 500px) {


    .nav-container {

        min-height: 68px;

    }


    .navbar {

        top: 68px;

        height:
            calc(100vh - 68px);

    }


    .hero {

        padding-top: 105px;

    }


    .hero-image {

        min-height: 340px;

    }


    .profile-circle {

        width: 280px;

    }


    .floating-card {

        padding: 8px 11px;

        font-size: 0.7rem;

    }


    .card-one {

        left: 0;

    }


    .card-two {

        right: 0;

    }


    .card-three {

        left: 2%;

    }


    .about-info {

        grid-template-columns:
            1fr;

    }


    .mini-stats {

        grid-template-columns:
            1fr;

    }


    .skills-grid {

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

    }


    .skill-card {

        padding: 22px 10px;

    }


    .skill-card > i {

        font-size: 2rem;

    }


    .services-grid {

        grid-template-columns:
            1fr;

    }


    .why-grid {

        grid-template-columns:
            1fr;

    }


    .form-row {

        grid-template-columns:
            1fr;

        gap: 0;

    }


    .contact-form {

        padding: 22px 17px;

    }


    .github-card {

        padding: 30px 20px;

    }


    .github-card h2 {

        font-size: 1.6rem;

    }


    .floating-contact {

        right: 14px;

        bottom: 15px;

    }


    .floating-contact a {

        width: 48px;

        height: 48px;

    }


    .back-to-top {

        right: 14px;

        bottom: 135px;

        width: 42px;

        height: 42px;

    }


    .toast {

        left: 15px;

        right: 15px;

        bottom: 15px;

        max-width: none;

    }


}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

    }

}