/* =========================================================
   MOHAMMAD SINA JALILIAN
   PREMIUM PERSONAL PORTFOLIO
   PROFESSIONAL EDITION
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

:root {

    --background: #030811;
    --background-2: #07111d;
    --background-3: #0a1725;

    --primary: #4da3ff;
    --primary-light: #8dcbff;
    --primary-dark: #2478c9;

    --cyan: #55dcff;

    --white: #ffffff;
    --text: #f5f9ff;
    --text-light: #c4d0de;
    --text-muted: #8291a4;

    --glass: rgba(255,255,255,.045);
    --glass-strong: rgba(255,255,255,.07);
    --glass-hover: rgba(255,255,255,.085);

    --border: rgba(255,255,255,.075);
    --border-strong: rgba(255,255,255,.13);

    --blue-border: rgba(77,163,255,.25);

    --shadow:
        0 25px 80px rgba(0,0,0,.35);

    --shadow-soft:
        0 15px 45px rgba(0,0,0,.22);

    --radius: 22px;

    --container: 1200px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {

    font-family:
        "Tahoma",
        "Arial",
        sans-serif;

    color: var(--text);

    line-height: 1.8;

    overflow-x: hidden;

    background:

        radial-gradient(
            circle at 85% 0%,
            rgba(48,145,255,.13),
            transparent 28%
        ),

        radial-gradient(
            circle at 0% 45%,
            rgba(0,190,255,.045),
            transparent 25%
        ),

        linear-gradient(
            180deg,
            #030811 0%,
            #050c17 48%,
            #030811 100%
        );

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   BACKGROUND GRID
   ========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    z-index: -2;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(255,255,255,.015) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.015) 1px,
            transparent 1px
        );

    background-size: 75px 75px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            transparent 75%
        );
}


/* =========================================================
   AMBIENT LIGHT
   ========================================================= */

body::after {

    content: "";

    position: fixed;

    width: 650px;
    height: 650px;

    top: 25%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(77,163,255,.035),
            transparent 68%
        );

    filter: blur(60px);

    pointer-events: none;

    z-index: -1;

    animation:
        ambientBody
        15s
        ease-in-out
        infinite
        alternate;
}


/* =========================================================
   GENERAL
   ========================================================= */

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--primary);
    color: #04101d;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {

    width:
        min(
            calc(100% - 40px),
            var(--container)
        );

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    z-index: 1000;

    background:
        rgba(3,8,17,.62);

    backdrop-filter:
        blur(24px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(160%);

    border-bottom:
        1px solid
        rgba(255,255,255,.055);

    transition:
        .35s ease;

    animation:
        headerDown
        .7s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.header.scrolled {

    background:
        rgba(3,8,17,.88);

    border-bottom-color:
        rgba(255,255,255,.085);

    box-shadow:
        0 12px 40px
        rgba(0,0,0,.28);
}

.nav-container {

    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {

    position: relative;

    font-size: 26px;

    font-weight: 950;

    letter-spacing: -1.5px;

    transition:
        transform .3s ease;
}

.logo span {

    color: var(--primary);

    text-shadow:
        0 0 25px
        rgba(77,163,255,.45);
}

.logo::before {

    content: "";

    position: absolute;

    width: 40px;
    height: 40px;

    right: -10px;
    top: 50%;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(77,163,255,.15),
            transparent 70%
        );

    filter: blur(8px);

    pointer-events: none;
}

.logo:hover {
    transform: translateY(-2px);
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {

    display: flex;

    align-items: center;

    gap: 32px;
}

.nav a {

    position: relative;

    color: var(--text-light);

    font-size: 14px;

    font-weight: 700;

    transition:
        color .25s ease,
        transform .25s ease;
}

.nav a:hover {

    color: var(--white);

    transform:
        translateY(-2px);
}

.nav a::before {

    content: "";

    position: absolute;

    right: 50%;

    bottom: -10px;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 14px
        rgba(77,163,255,.8);

    opacity: 0;

    transform:
        translateX(50%)
        scale(.4);

    transition:
        .25s ease;
}

.nav a::after {

    content: "";

    position: absolute;

    right: 50%;

    bottom: -7px;

    width: 0;
    height: 1px;

    transform:
        translateX(50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--primary),
            transparent
        );

    transition:
        width .3s ease;
}

.nav a:hover::before {

    opacity: 1;

    transform:
        translateX(50%)
        scale(1);
}

.nav a:hover::after {
    width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-button {

    display: none;

    width: 44px;
    height: 44px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        rgba(255,255,255,.04);

    color:
        var(--text);

    font-size: 21px;

    cursor: pointer;

    transition:
        .3s ease;
}

.menu-button:hover {

    background:
        rgba(77,163,255,.09);

    border-color:
        var(--blue-border);

    transform:
        translateY(-2px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding-top: 78px;

    overflow: hidden;
}

.hero::before {

    content: "";

    position: absolute;

    width: 720px;
    height: 720px;

    top: -360px;
    right: -200px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(48,149,255,.17),
            rgba(48,149,255,.04) 42%,
            transparent 72%
        );

    filter: blur(10px);

    pointer-events: none;

    animation:
        ambientLight
        12s
        ease-in-out
        infinite
        alternate;
}

.hero::after {

    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    bottom: -350px;
    left: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0,198,255,.065),
            transparent 70%
        );

    pointer-events: none;

    animation:
        ambientLight
        15s
        ease-in-out
        infinite
        alternate-reverse;
}


/* =========================================================
   HERO CONTAINER
   ========================================================= */

.hero-container {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1.08fr
        .92fr;

    align-items: center;

    gap: 70px;
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.hero-small-title {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--primary-light);

    font-size: 15px;

    font-weight: 850;

    margin-bottom: 16px;

    animation:
        fadeUp
        .7s
        .05s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.hero-small-title::before {

    content: "";

    width: 32px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(77,163,255,.4);
}

.hero h1 {

    max-width: 780px;

    font-size:
        clamp(
            52px,
            7vw,
            90px
        );

    line-height: 1.03;

    letter-spacing: -5px;

    font-weight: 950;

    margin-bottom: 20px;

    background:
        linear-gradient(
            135deg,
            #ffffff 5%,
            #e8f3ff 45%,
            #82c5ff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    filter:
        drop-shadow(
            0 12px 30px
            rgba(0,0,0,.2)
        );

    animation:
        fadeUp
        .8s
        .12s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.hero h2 {

    font-size:
        clamp(
            24px,
            3vw,
            38px
        );

    line-height: 1.35;

    color:
        var(--primary);

    font-weight: 900;

    margin-bottom: 22px;

    text-shadow:
        0 0 35px
        rgba(77,163,255,.2);

    animation:
        fadeUp
        .8s
        .22s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.hero-description {

    max-width: 620px;

    color:
        var(--text-light);

    font-size: 16px;

    line-height: 2.15;

    margin-bottom: 34px;

    animation:
        fadeUp
        .8s
        .32s
        cubic-bezier(.2,.8,.2,1)
        both;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 13px;

    flex-wrap: wrap;

    animation:
        fadeUp
        .8s
        .42s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 55px;

    padding: 0 28px;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 850;

    overflow: hidden;

    cursor: pointer;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn:active {
    transform: translateY(-1px) scale(.98);
}


/* PRIMARY */

.primary-btn {

    color:
        #03101c;

    background:
        linear-gradient(
            135deg,
            #82c7ff,
            #358ee7
        );

    border:
        1px solid
        rgba(255,255,255,.25);

    box-shadow:
        0 14px 38px
        rgba(45,140,235,.22);
}

.primary-btn::before {

    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 75%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.4),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left .7s ease;
}

.primary-btn:hover::before {
    left: 140%;
}

.primary-btn:hover {

    box-shadow:
        0 20px 50px
        rgba(45,140,235,.32);
}


/* SECONDARY */

.secondary-btn {

    color:
        var(--text);

    background:
        rgba(255,255,255,.04);

    border:
        1px solid
        var(--border-strong);

    backdrop-filter:
        blur(14px);
}

.secondary-btn:hover {

    background:
        rgba(255,255,255,.07);

    border-color:
        rgba(77,163,255,.3);

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.2);
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-image {

    position: relative;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    height: 100%;

    transform:
        translateY(-18px);

    animation:
        fadeLeft
        1s
        .18s
        cubic-bezier(.2,.8,.2,1)
        both;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-wrapper {

    position: relative;

    width:
        min(
            455px,
            82vw
        );

    aspect-ratio: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    isolation: isolate;

    animation:
        scaleIn
        .9s
        .2s
        cubic-bezier(.16,1,.3,1)
        both;
}


/* OUTER RING */

.profile-wrapper::before {

    content: "";

    position: absolute;

    inset: 3%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(77,163,255,.08),
            transparent 65%
        );

    border:
        1px solid
        rgba(127,193,255,.22);

    box-shadow:
        0 0 90px
        rgba(77,163,255,.1),

        inset 0 0 80px
        rgba(77,163,255,.035);

    animation:
        profileGlow
        4s
        ease-in-out
        infinite;
}


/* ROTATING RING */

.profile-wrapper::after {

    content: "";

    position: absolute;

    inset: -6%;

    border-radius: 50%;

    border:
        1px dashed
        rgba(127,193,255,.12);

    animation:
        profileRotate
        28s
        linear
        infinite;
}


/* PROFILE IMAGE */

.profile-image {
    position: relative;
    z-index: 3;

    width: 82%;
    height: 82%;

    object-fit: cover;
    border-radius: 50%;

    border: 5px solid rgba(255, 255, 255, 0.10);

    background: var(--background-2);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.50),
        0 0 45px rgba(77, 163, 255, 0.14),
        0 0 100px rgba(77, 163, 255, 0.08);

    animation:
        profileFloat
        6s
        ease-in-out
        infinite;

    transition:
        transform .5s ease,
        box-shadow .5s ease,
        border-color .5s ease;
}

.profile-wrapper:hover .profile-image {

    transform:
        scale(1.025);

    box-shadow:
        0 42px 100px
        rgba(0,0,0,.5),

        0 0 105px
        rgba(77,163,255,.17);
}


/* =========================================================
   ORBIT DOTS
   ========================================================= */

.profile-wrapper .orbit-dot {

    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        var(--primary);

    box-shadow:
        0 0 18px
        rgba(77,163,255,.85);

    z-index: 5;
}

.profile-wrapper .orbit-dot:nth-child(1) {

    top: 9%;
    right: 22%;

    animation:
        dotPulse
        2.5s
        ease-in-out
        infinite;
}

.profile-wrapper .orbit-dot:nth-child(2) {

    bottom: 18%;
    left: 13%;

    animation:
        dotPulse
        3s
        .5s
        ease-in-out
        infinite;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {

    position: relative;

    padding:
        130px 0;
}

.section::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 80%;
    height: 1px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(77,163,255,.08),
            transparent
        );
}


/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {

    position: relative;

    text-align: center;

    margin-bottom: 62px;
}

.section-title span {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--primary);

    font-size: 13px;

    font-weight: 900;

    margin-bottom: 11px;

    animation:
        fadeUp
        .7s
        ease
        both;
}

.section-title span::before,
.section-title span::after {

    content: "";

    width: 30px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--primary)
        );
}

.section-title span::after {
    transform: rotate(180deg);
}

.section-title h2 {

    font-size:
        clamp(
            30px,
            4vw,
            48px
        );

    line-height: 1.3;

    font-weight: 950;

    letter-spacing: -1.5px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #b9dbff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    animation:
        fadeUp
        .8s
        .08s
        ease
        both;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,.012),
            transparent
        );
}

.about-content {

    position: relative;

    max-width: 900px;

    margin: 0 auto;

    padding: 44px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015)
        );

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow-soft);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    overflow: hidden;
}

.about-content::before {

    content: "";

    position: absolute;

    top: 0;
    right: 15%;

    width: 180px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--primary),
            transparent
        );

    box-shadow:
        0 0 20px
        rgba(77,163,255,.3);
}

.about-content::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    border-radius: 50%;

    background:
        rgba(77,163,255,.065);

    filter:
        blur(35px);

    pointer-events: none;
}

.about-text p {

    color:
        var(--text-light);

    font-size: 16px;

    line-height: 2.2;

    margin-bottom: 18px;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SKILLS
   ========================================================= */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.skill-card {

    position: relative;

    padding:
        34px 27px;

    overflow: hidden;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.014)
        );

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.12);

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

.skill-card::before {

    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: -85px;
    right: -75px;

    border-radius: 50%;

    background:
        rgba(77,163,255,.09);

    filter:
        blur(25px);

    transition:
        transform .5s ease;
}

.skill-card::after {

    content: "";

    position: absolute;

    inset: 0;

    border-radius:
        inherit;

    border:
        1px solid
        transparent;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.04),
            transparent 35%
        );

    pointer-events: none;
}

.skill-card:hover {

    transform:
        translateY(-9px);

    background:
        var(--glass-hover);

    border-color:
        rgba(77,163,255,.28);

    box-shadow:
        0 28px 65px
        rgba(0,0,0,.28),

        0 0 28px
        rgba(77,163,255,.04);
}

.skill-card:hover::before {
    transform: scale(1.5);
}

.skill-card h3 {

    position: relative;

    z-index: 2;

    font-size: 21px;

    margin-bottom: 8px;

    font-weight: 900;
}

.skill-card p {

    position: relative;

    z-index: 2;

    color:
        var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects {

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.012),
            transparent
        );
}

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.project-card {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.06),
            rgba(255,255,255,.014)
        );

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        0 18px 55px
        rgba(0,0,0,.15);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        border-color .35s ease,
        box-shadow .4s ease;
}

.project-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(77,163,255,.5),
            transparent
        );

    opacity: 0;

    transition:
        opacity .35s ease;
}

.project-card:hover {

    transform:
        translateY(-11px);

    border-color:
        rgba(77,163,255,.28);

    box-shadow:
        0 32px 80px
        rgba(0,0,0,.32);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {

    width: 100%;

    aspect-ratio:
        16 / 9;

    object-fit: cover;

    background:
        var(--background-2);

    transition:
        transform .65s
        cubic-bezier(.2,.8,.2,1);
}

.project-card:hover .project-image {
    transform: scale(1.045);
}

.project-info {
    padding: 27px;
}

.project-info h3 {

    font-size: 21px;

    margin-bottom: 9px;

    font-weight: 900;
}

.project-info p {

    color:
        var(--text-muted);

    font-size: 13px;

    line-height: 1.95;

    margin-bottom: 18px;
}

.project-technologies {

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 19px;
}

.project-technologies span {

    padding:
        5px 10px;

    background:
        rgba(77,163,255,.065);

    border:
        1px solid
        rgba(77,163,255,.14);

    border-radius:
        8px;

    color:
        var(--primary-light);

    font-size: 10px;

    font-weight: 850;
}

.project-link {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--primary);

    font-size: 13px;

    font-weight: 850;

    transition:
        gap .25s ease,
        color .25s ease,
        transform .25s ease;
}

.project-link:hover {

    gap: 11px;

    transform:
        translateX(-3px);

    color:
        var(--primary-light);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-content {

    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.contact-content > p {

    color:
        var(--text-light);

    font-size: 15px;

    line-height: 2.15;

    margin-bottom: 36px;
}

.contact-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 13px;
}

.contact-links a {

    position: relative;

    min-width: 130px;

    padding:
        15px 23px;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid
        var(--border);

    border-radius:
        14px;

    color:
        var(--text-light);

    font-size: 13px;

    font-weight: 850;

    overflow: hidden;

    transition:
        transform .35s ease,
        background .35s ease,
        border-color .35s ease,
        color .35s ease,
        box-shadow .35s ease;
}

.contact-links a::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(77,163,255,.11),
            transparent 65%
        );

    opacity: 0;

    transition:
        opacity .35s ease;
}

.contact-links a:hover {

    transform:
        translateY(-5px);

    background:
        rgba(77,163,255,.065);

    border-color:
        rgba(77,163,255,.28);

    color:
        var(--primary-light);

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.2);
}

.contact-links a:hover::before {
    opacity: 1;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    position: relative;

    padding:
        34px 0;

    border-top:
        1px solid
        var(--border);

    text-align: center;

    background:
        rgba(0,0,0,.1);
}

.footer::before {

    content: "";

    position: absolute;

    top: -1px;
    left: 50%;

    width: 140px;
    height: 1px;

    transform:
        translateX(-50%);

    background:
        var(--primary);

    box-shadow:
        0 0 18px
        rgba(77,163,255,.4);
}

.footer p {

    color:
        var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity .8s
        cubic-bezier(.2,.8,.2,1),

        transform .8s
        cubic-bezier(.2,.8,.2,1);
}

.reveal.active {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   STAGGER
   ========================================================= */

.skill-card:nth-child(1),
.project-card:nth-child(1) {
    transition-delay: .05s;
}

.skill-card:nth-child(2),
.project-card:nth-child(2) {
    transition-delay: .10s;
}

.skill-card:nth-child(3),
.project-card:nth-child(3) {
    transition-delay: .15s;
}

.skill-card:nth-child(4),
.project-card:nth-child(4) {
    transition-delay: .20s;
}

.skill-card:nth-child(5),
.project-card:nth-child(5) {
    transition-delay: .25s;
}

.skill-card:nth-child(6),
.project-card:nth-child(6) {
    transition-delay: .30s;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform:
            translateY(30px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

@keyframes fadeLeft {

    from {
        opacity: 0;
        transform:
            translateX(35px);
    }

    to {
        opacity: 1;
        transform:
            translateX(0);
    }
}

@keyframes scaleIn {

    from {
        opacity: 0;
        transform:
            scale(.88);
    }

    to {
        opacity: 1;
        transform:
            scale(1);
    }
}

@keyframes headerDown {

    from {
        opacity: 0;
        transform:
            translateY(-100%);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

@keyframes profileFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-10px);
    }
}

@keyframes profileRotate {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes profileGlow {

    0%,
    100% {

        box-shadow:
            0 0 75px
            rgba(77,163,255,.07),

            inset 0 0 70px
            rgba(77,163,255,.025);
    }

    50% {

        box-shadow:
            0 0 115px
            rgba(77,163,255,.16),

            inset 0 0 90px
            rgba(77,163,255,.05);
    }
}

@keyframes dotPulse {

    0%,
    100% {

        transform:
            scale(.8);

        opacity:
            .6;
    }

    50% {

        transform:
            scale(1.25);

        opacity:
            1;
    }
}

@keyframes ambientLight {

    0% {
        transform:
            translate3d(0,0,0)
            scale(1);
    }

    50% {
        transform:
            translate3d(-25px,20px,0)
            scale(1.07);
    }

    100% {
        transform:
            translate3d(20px,-15px,0)
            scale(1.03);
    }
}

@keyframes ambientBody {

    from {
        transform:
            translate(-50%,-50%)
            scale(1);
    }

    to {
        transform:
            translate(-46%,-53%)
            scale(1.08);
    }
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background:
        var(--background);
}

::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            180deg,
            #35678f,
            #172f49
        );

    border-radius:
        20px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        var(--primary-dark);
}


/* =========================================================
   FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible {

    outline:
        2px solid
        var(--primary);

    outline-offset:
        4px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .container {
        width:
            min(
                calc(100% - 32px),
                900px
            );
    }

    .nav {
        gap: 20px;
    }

    .hero-container {

        grid-template-columns:
            1fr .8fr;

        gap: 40px;
    }

    .hero h1 {
        font-size: 64px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .section {
        padding: 105px 0;
    }
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 950px) {

    .container {

        width:
            min(
                calc(100% - 28px),
                600px
            );
    }

    .nav-container {
        height: 70px;
    }

    .logo {
        font-size: 24px;
    }

    .menu-button {
        display: block;
    }

    .nav {

        position: absolute;

        top: 70px;
        right: 14px;
        left: 14px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        padding: 10px;

        background:
            rgba(7,17,29,.95);

        border:
            1px solid
            var(--border);

        border-radius:
            18px;

        backdrop-filter:
            blur(22px);

        -webkit-backdrop-filter:
            blur(22px);

        box-shadow:
            0 20px 50px
            rgba(0,0,0,.35);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-10px);

        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s ease;
    }

    .nav.active {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }

    .nav a {

        padding:
            13px 16px;

        border-radius:
            11px;

        font-size: 14px;
    }

    .nav a:hover {

        background:
            rgba(77,163,255,.07);
    }

    .nav a::before,
    .nav a::after {
        display: none;
    }


    /* HERO */

    .hero {

        min-height: auto;

        padding-top: 125px;

        padding-bottom: 80px;
    }

    .hero-container {

        display: flex;

        flex-direction:
            column-reverse;

        gap: 48px;

        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-small-title {

        justify-content:
            center;

        font-size: 15px;
    }

    .hero h1 {

        font-size:
            clamp(
                48px,
                14vw,
                68px
            );

        letter-spacing:
            -2px;
    }

    .hero h2 {

        font-size:
            clamp(
                23px,
                7vw,
                32px
            );

        margin-bottom: 18px;
    }

    .hero-description {

        margin:
            0 auto 28px;

        max-width:
            520px;

        font-size:
            15px;

        line-height:
            2;
    }

    .hero-buttons {
        justify-content:
            center;
    }

    .btn {

        min-height:
            50px;

        padding:
            0 22px;
    }


    /* PROFILE */

    .hero-image {
        transform:
            translateY(-5px);
    }

    .profile-wrapper {

        width:
            min(
                300px,
                70vw
            );
    }


    /* SECTIONS */

    .section {
        padding:
            80px 0;
    }

    .section-title {
        margin-bottom:
            40px;
    }

    .section-title h2 {
        font-size:
            29px;
    }


    /* ABOUT */

    .about-content {
        padding:
            30px 22px;
    }

    .about-text p {

        font-size:
            15px;

        line-height:
            2;
    }


    /* SKILLS */

    .skills-grid {

        grid-template-columns:
            1fr;

        gap:
            13px;
    }

    .skill-card {

        padding:
            25px 20px;

        border-radius:
            18px;
    }


    /* PROJECTS */

    .projects-grid {

        grid-template-columns:
            1fr;

        gap:
            18px;
    }

    .project-card {
        border-radius:
            18px;
    }

    .project-info {
        padding:
            21px;
    }


    /* CONTACT */

    .contact-links {

        display:
            grid;

        grid-template-columns:
            repeat(2,1fr);

        gap:
            10px;
    }

    .contact-links a {

        min-width:
            0;

        padding:
            13px 10px;
    }


    /* FOOTER */

    .footer {
        padding:
            25px 0;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .container {

        width:
            calc(100% - 22px);
    }

    .nav-container {
        height: 64px;
    }

    .nav {
        top: 64px;
    }

    .hero {

        padding-top:
            105px;

        padding-bottom:
            65px;
    }

    .hero-container {
        gap:
            35px;
    }

    .profile-wrapper {
        width:
            230px;
    }

    .hero h1 {
        font-size:
            48px;
    }

    .hero h2 {
        font-size:
            23px;
    }

    .hero-description {
        font-size:
            14px;
    }

    .hero-buttons {

        width:
            100%;

        flex-direction:
            column;

        gap:
            10px;
    }

    .btn {
        width:
            100%;
    }

    .section {
        padding:
            65px 0;
    }

    .section-title {
        margin-bottom:
            32px;
    }

    .section-title h2 {
        font-size:
            26px;
    }

    .about-text p {
        font-size:
            14px;
    }

    .skill-card {
        padding:
            21px 16px;
    }

    .project-info {
        padding:
            18px;
    }

    .contact-links {
        grid-template-columns:
            1fr;
    }

    .contact-links a {
        width:
            100%;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 340px) {

    .hero h1 {
        font-size:
            42px;
    }

    .hero h2 {
        font-size:
            21px;
    }

    .profile-wrapper {
        width:
            200px;
    }

    .section-title h2 {
        font-size:
            23px;
    }

    .hero-description {
        font-size:
            13px;
    }
}


/* =========================================================
   LANDSCAPE PHONE
   ========================================================= */

@media (max-height: 550px) and (orientation: landscape) {

    .hero {

        padding-top:
            100px;

        padding-bottom:
            50px;
    }

    .hero-container {

        display:
            flex;

        flex-direction:
            row;

        text-align:
            right;

        align-items:
            center;
    }

    .profile-wrapper {
        width:
            220px;
    }

    .hero-buttons {
        justify-content:
            flex-start;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .skill-card:hover,
    .project-card:hover,
    .btn:hover,
    .contact-links a:hover {

        transform:
            none;
    }

    .project-card:hover .project-image {
        transform:
            none;
    }

    .profile-wrapper:hover .profile-image {
        transform:
            none;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation:
            none !important;

        transition:
            none !important;

        scroll-behavior:
            auto !important;
    }
}