/* =====================================================
   TEMUR SHUHRATOVICH
   PERSONAL WEBSITE
   RESPONSIVE FINAL CSS
===================================================== */


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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;

    background: #f7f7f5;
    color: #111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1240px, calc(100% - 60px));
    margin: 0 auto;
}


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

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 18px 30px;

    background: rgba(247, 247, 245, 0.82);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav {
    width: min(1240px, 100%);

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


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

.logo {
    display: inline-block;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: -1px;

    white-space: nowrap;
}

.logo span {
    color: #b99a5b;
}


/* =====================================================
   DESKTOP NAV
===================================================== */

.nav-links {
    display: flex;

    align-items: center;

    gap: 32px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.nav-links a {
    position: relative;

    color: #555;

    font-size: 14px;

    transition:
        color 0.3s ease;
}

.nav-links a:hover {
    color: #111;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: #b99a5b;

    transition:
        width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


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

.nav-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 100px;

    background: #111;

    color: #fff;

    font-size: 13px;

    white-space: nowrap;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15);
}


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

.mobile-menu {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #111;

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;
}


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

.hero {
    min-height: 100vh;

    padding:
        150px 30px
        90px;
}

.hero-grid {
    width: min(1240px, 100%);

    min-height:
        calc(100vh - 240px);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    align-items: center;

    gap: 80px;
}


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

.hero-label {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 25px;

    color: #666;

    font-size: 14px;
}

.status {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #4caf50;

    box-shadow:
        0 0 0 5px rgba(76, 175, 80, 0.1);

    animation:
        statusPulse 2s infinite;
}

@keyframes statusPulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(76, 175, 80, 0.30);
    }

    70% {
        box-shadow:
            0 0 0 8px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(76, 175, 80, 0);
    }
}


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

.hero h1 {
    margin: 0 0 40px;

    font-size:
        clamp(70px, 10vw, 150px);

    line-height: 0.85;

    letter-spacing: -7px;

    font-weight: 800;
}

.hero h1 .muted {
    color: #888;

    font-weight: 500;
}


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

.hero-description {
    max-width: 560px;

    margin: 0 0 35px;

    color: #666;

    font-size: 18px;

    line-height: 1.7;
}


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

.hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding:
        14px 22px;

    border-radius: 100px;

    font-size: 14px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.primary-btn {
    background: #111;

    color: #fff;
}

.secondary-btn {
    background: #fff;

    color: #111;

    border:
        1px solid #ddd;
}

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

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}


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

.hero-card {
    position: relative;

    width: min(100%, 480px);

    aspect-ratio: 4 / 5;

    justify-self: end;

    overflow: hidden;

    border-radius: 30px;

    background: #dededb;

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

    transition:
        transform 0.6s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card:hover {
    transform:
        translateY(-5px);
}

.hero-card-inner {
    position: absolute;

    inset: 0;
}

.profile-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    opacity: 0;

    animation:
        profileShow
        1s
        ease
        0.1s
        forwards;

    transition:
        transform 0.8s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card:hover .profile-image {
    transform: scale(1.03);
}

@keyframes profileShow {

    from {
        opacity: 0;

        transform:
            scale(1.05);
    }

    to {
        opacity: 1;

        transform:
            scale(1);
    }
}

.photo-placeholder {
    position: absolute;

    inset: 0;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 12px;

    letter-spacing: 2px;
}


/* =====================================================
   HERO CARD INFO
===================================================== */

.hero-card-info {
    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 5;

    display: flex;

    flex-direction: column;

    gap: 3px;

    padding: 18px;

    border-radius: 18px;

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

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);
}

.hero-card-info strong {
    font-size: 15px;
}

.hero-card-info span {
    color: #666;

    font-size: 12px;
}


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

.section {
    padding:
        130px 30px;
}

.section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 65px;
}

.section-number {
    margin-bottom: 20px;

    color: #999;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 2px;
}

.section-title {
    margin: 0;

    font-size:
        clamp(45px, 6vw, 80px);

    line-height: 0.95;

    letter-spacing: -4px;
}

.section-subtitle {
    max-width: 330px;

    margin: 0;

    color: #777;

    font-size: 15px;
}


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

/*
   MUHIM:
   Default holatda opacity 1.
   JavaScript ishlamasa ham sayt ko‘rinadi.
*/

.reveal {
    opacity: 1;

    transform:
        translateY(0);

    filter:
        blur(0);

    transition:
        opacity 0.9s
        cubic-bezier(0.22, 1, 0.36, 1),

        transform 0.9s
        cubic-bezier(0.22, 1, 0.36, 1),

        filter 0.9s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;

    transform:
        translateY(0);

    filter:
        blur(0);
}


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

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.7fr)
        minmax(0, 1.3fr);

    gap: 100px;
}

.about-big {
    max-width: 500px;

    font-size:
        clamp(28px, 4vw, 48px);

    line-height: 1.2;

    letter-spacing: -1.5px;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    margin: 0 0 25px;

    color: #666;

    font-size: 17px;

    line-height: 1.8;
}


/* =====================================================
   FACTS
===================================================== */

.about-facts {
    display: flex;

    align-items: flex-start;

    gap: 70px;

    margin-top: 55px;
}

.fact {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.fact strong {
    font-size: 25px;
}

.fact span {
    color: #888;

    font-size: 13px;
}


/* =====================================================
   WORK
===================================================== */

.work-list {
    border-top:
        1px solid #d8d8d4;
}

.work {
    display: grid;

    grid-template-columns:
        80px
        minmax(0, 1fr)
        180px
        50px;

    align-items: center;

    gap: 25px;

    padding: 35px 0;

    border-bottom:
        1px solid #d8d8d4;

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        padding 0.4s ease;
}

.work:hover {
    transform:
        translateX(10px);

    padding-left: 15px;
    padding-right: 15px;

    background:
        rgba(255, 255, 255, 0.5);
}

.work-number {
    color: #999;

    font-size: 13px;
}

.work-name {
    font-size: 30px;

    font-weight: 600;

    letter-spacing: -1px;
}

.work-type {
    color: #777;

    font-size: 14px;
}

.work-arrow {
    color: #111;

    font-size: 28px;

    transition:
        transform 0.3s ease;
}

.work:hover .work-arrow {
    transform:
        translate(4px, -4px);
}


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

.projects {
    display: grid;

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

    gap: 20px;
}

.project {
    position: relative;

    min-height: 420px;

    padding: 30px;

    overflow: hidden;

    border-radius: 24px;

    background: #111;

    color: #fff;

    transform-style: preserve-3d;

    transition:
        transform 0.45s
        cubic-bezier(0.22, 1, 0.36, 1),

        box-shadow 0.45s ease;
}

.project:hover {
    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, 0.18);
}

.project-top {
    position: relative;

    z-index: 5;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: #999;

    font-size: 11px;

    letter-spacing: 1.5px;
}

.project-content {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 30px;

    z-index: 5;
}

.project-content h3 {
    margin: 0 0 10px;

    font-size:
        clamp(28px, 3vw, 42px);

    line-height: 1;

    letter-spacing: -2px;
}

.project-content p {
    max-width: 330px;

    margin: 0;

    color: #aaa;

    font-size: 14px;
}

.project-decoration {
    position: absolute;

    width: 320px;
    height: 320px;

    right: -130px;
    top: 70px;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    transition:
        transform 1s
        cubic-bezier(0.22, 1, 0.36, 1);
}

.project:hover .project-decoration {
    transform:
        scale(1.3)
        rotate(25deg);
}


/* =====================================================
   TIMELINE
===================================================== */

.timeline {
    border-top:
        1px solid #d8d8d4;
}

.timeline-item {
    display: grid;

    grid-template-columns:
        200px
        minmax(0, 1fr);

    gap: 50px;

    padding: 35px 0;

    border-bottom:
        1px solid #d8d8d4;
}

.timeline-date {
    color: #999;

    font-size: 12px;

    letter-spacing: 1px;
}

.timeline-item h3 {
    margin: 0 0 5px;

    font-size: 26px;
}

.timeline-item p {
    margin: 0;

    color: #777;
}


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

.contact-box {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(250px, 0.7fr);

    gap: 80px;

    padding: 70px;

    overflow: hidden;

    border-radius: 30px;

    background: #111;

    color: #fff;
}

.contact-box h2 {
    max-width: 650px;

    margin: 0 0 25px;

    font-size:
        clamp(45px, 6vw, 75px);

    line-height: 0.95;

    letter-spacing: -4px;
}

.contact-box > p {
    max-width: 520px;

    margin: 0;

    color: #999;
}

.contact-links {
    display: flex;

    flex-direction: column;

    justify-content: center;
}

.contact-link {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 0;

    color: #ccc;

    border-bottom:
        1px solid #333;

    transition:
        color 0.3s ease,
        padding 0.3s ease;
}

.contact-link:hover {
    padding-left: 10px;

    color: #fff;
}


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

.footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 30px 0;

    color: #888;

    font-size: 12px;

    border-top:
        1px solid #ddd;
}


/* =====================================================
   MOUSE GLOW
===================================================== */

.mouse-glow {
    position: fixed;

    left: 0;
    top: 0;

    width: 300px;
    height: 300px;

    pointer-events: none;

    z-index: 9998;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,

            rgba(185, 154, 91, 0.14)
            0%,

            rgba(185, 154, 91, 0.08)
            25%,

            rgba(185, 154, 91, 0.035)
            48%,

            transparent
            72%
        );

    filter:
        blur(8px);

    opacity: 0;

    will-change:
        transform,
        opacity;
}


/* =====================================================
   MOUSE DOT
===================================================== */

.mouse-dot {
    position: fixed;

    left: 0;
    top: 0;

    width: 7px;
    height: 7px;

    pointer-events: none;

    z-index: 9999;

    border-radius: 50%;

    background: #b99a5b;

    box-shadow:
        0 0 8px
        rgba(185, 154, 91, 0.7),

        0 0 20px
        rgba(185, 154, 91, 0.35);

    will-change:
        transform,
        width,
        height;

    transition:
        width 0.2s ease,
        height 0.2s ease;
}


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

@media (max-width: 1000px) {

    .hero-grid {
        gap: 45px;
    }

    .hero h1 {
        font-size:
            clamp(65px, 9vw, 100px);

        letter-spacing: -5px;
    }

    .about-grid {
        gap: 50px;
    }

    .projects {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .contact-box {
        gap: 50px;

        padding: 55px;
    }
}


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

@media (max-width: 850px) {

    html {
        scroll-padding-top: 80px;
    }

    body {
        width: 100%;

        overflow-x: hidden;
    }

    .container {
        width:
            calc(100% - 40px);
    }


    /* ---------------------------------------------
       HEADER
    --------------------------------------------- */

    .header {
        padding:
            15px 20px;
    }

    .nav {
        width: 100%;

        gap: 10px;
    }

    .logo {
        font-size: 21px;
    }

    .nav-button {
        display: none;
    }

    .mobile-menu {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    /* ---------------------------------------------
       MOBILE NAV
    --------------------------------------------- */

    .nav-links {
        display: none;

        position: absolute;

        top: 68px;

        left: 15px;
        right: 15px;

        z-index: 1001;

        width: auto;

        padding: 12px 20px;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        list-style: none;

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

        border:
            1px solid
            rgba(0, 0, 0, 0.07);

        border-radius: 18px;

        box-shadow:
            0 20px 50px
            rgba(0, 0, 0, 0.12);

        backdrop-filter:
            blur(20px);

        -webkit-backdrop-filter:
            blur(20px);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;

        width: 100%;

        padding: 13px 0;

        color: #222;

        font-size: 15px;

        border-bottom:
            1px solid
            rgba(0, 0, 0, 0.06);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }


    /* ---------------------------------------------
       HERO
    --------------------------------------------- */

    .hero {
        min-height: auto;

        padding:
            125px 20px 75px;
    }

    .hero-grid {
        width: 100%;

        min-height: auto;

        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero h1 {
        margin-bottom: 30px;

        font-size:
            clamp(58px, 17vw, 90px);

        line-height: 0.88;

        letter-spacing: -5px;
    }

    .hero-description {
        max-width: 100%;

        margin-bottom: 28px;

        font-size: 16px;

        line-height: 1.65;
    }

    .hero-actions {
        width: 100%;

        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        min-height: 48px;

        padding:
            13px 19px;

        font-size: 14px;
    }


    /* ---------------------------------------------
       HERO IMAGE
    --------------------------------------------- */

    .hero-card {
        width: 100%;

        max-width: 440px;

        justify-self: center;

        border-radius: 24px;

        box-shadow:
            0 25px 60px
            rgba(0, 0, 0, 0.12);
    }

    .hero-card:hover {
        transform: none;
    }

    .hero-card:hover .profile-image {
        transform: none;
    }


    /* ---------------------------------------------
       SECTIONS
    --------------------------------------------- */

    .section {
        padding:
            90px 20px;
    }

    .section-header {
        display: block;

        margin-bottom: 45px;
    }

    .section-number {
        margin-bottom: 15px;
    }

    .section-title {
        font-size:
            clamp(42px, 12vw, 65px);

        letter-spacing: -3px;
    }

    .section-subtitle {
        max-width: 100%;

        margin-top: 22px;

        font-size: 14px;
    }


    /* ---------------------------------------------
       ABOUT
    --------------------------------------------- */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-big {
        max-width: 100%;

        font-size:
            clamp(29px, 8vw, 42px);
    }

    .about-text {
        max-width: 100%;
    }

    .about-text p {
        font-size: 16px;

        line-height: 1.75;
    }

    .about-facts {
        display: grid;

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

        gap: 20px;

        margin-top: 40px;
    }

    .fact strong {
        font-size: 22px;
    }

    .fact span {
        font-size: 11px;
    }


    /* ---------------------------------------------
       WORK
    --------------------------------------------- */

    .work {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            30px;

        gap: 10px;

        padding: 25px 0;
    }

    .work:hover {
        transform: none;

        padding-left: 0;
        padding-right: 0;

        background: transparent;
    }

    .work-type {
        display: none;
    }

    .work-name {
        font-size:
            clamp(19px, 5.5vw, 26px);

        letter-spacing: -0.5px;
    }

    .work-arrow {
        font-size: 23px;
    }


    /* ---------------------------------------------
       PROJECTS
    --------------------------------------------- */

    .projects {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .project {
        min-height: 360px;

        padding: 25px;

        border-radius: 20px;
    }

    .project:hover {
        box-shadow: none;
    }

    .project-content {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .project-content h3 {
        font-size:
            clamp(28px, 9vw, 42px);
    }


    /* ---------------------------------------------
       TIMELINE
    --------------------------------------------- */

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 9px;

        padding: 28px 0;
    }

    .timeline-date {
        font-size: 11px;
    }

    .timeline-item h3 {
        font-size: 22px;
    }

    .timeline-item p {
        font-size: 14px;

        line-height: 1.6;
    }


    /* ---------------------------------------------
       CONTACT
    --------------------------------------------- */

    .contact-box {
        grid-template-columns: 1fr;

        gap: 45px;

        padding:
            40px 25px;

        border-radius: 24px;
    }

    .contact-box h2 {
        max-width: 100%;

        margin-bottom: 20px;

        font-size:
            clamp(40px, 12vw, 60px);

        letter-spacing: -3px;
    }

    .contact-box > p {
        font-size: 14px;

        line-height: 1.7;
    }

    .contact-link {
        padding: 16px 0;

        font-size: 14px;
    }


    /* ---------------------------------------------
       FOOTER
    --------------------------------------------- */

    .footer {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        padding:
            25px 0;
    }


    /* ---------------------------------------------
       MOUSE EFFECT OFF
    --------------------------------------------- */

    .mouse-glow,
    .mouse-dot {
        display: none !important;
    }
}


/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 480px) {

    .container {
        width:
            calc(100% - 32px);
    }

    .header {
        padding:
            14px 16px;
    }

    .hero {
        padding:
            115px 16px 65px;
    }

    .hero h1 {
        font-size:
            61px;

        letter-spacing:
            -4px;
    }

    .hero-label {
        font-size:
            12px;
    }

    .hero-description {
        font-size:
            15px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-card {
        border-radius:
            20px;
    }

    .section {
        padding:
            75px 16px;
    }

    .section-title {
        font-size:
            43px;
    }

    .about-big {
        font-size:
            30px;
    }

    .about-facts {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 25px;
    }

    .work {
        grid-template-columns:
            35px
            minmax(0, 1fr)
            25px;
    }

    .work-name {
        font-size:
            19px;
    }

    .project {
        min-height:
            330px;
    }

    .contact-box {
        padding:
            35px 22px;
    }

    .contact-box h2 {
        font-size:
            40px;
    }
}


/* =====================================================
   VERY SMALL PHONE
===================================================== */

@media (max-width: 360px) {

    .hero h1 {
        font-size:
            53px;
    }

    .hero-label {
        font-size:
            11px;
    }

    .about-facts {
        grid-template-columns:
            1fr 1fr;
    }

    .work-number {
        font-size:
            11px;
    }

    .work-name {
        font-size:
            18px;
    }
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

    .mouse-glow,
    .mouse-dot {
        display: none !important;
    }
}