/* =========================================================
   HABIBI LINKS
   Muhammad Habibi — Personal Link Page
========================================================= */

:root {
    --bg: #06130f;
    --bg-soft: #0a1d17;

    --green: #b9f4a5;
    --green-soft: #8bdc78;
    --green-dark: #143c2e;

    --white: #f4f7f5;
    --white-soft: rgba(244, 247, 245, 0.72);
    --white-muted: rgba(244, 247, 245, 0.46);

    --line: rgba(255, 255, 255, 0.12);
    --line-hover: rgba(185, 244, 165, 0.42);

    --card: rgba(255, 255, 255, 0.055);
    --card-hover: rgba(255, 255, 255, 0.09);

    --shadow:
        0 30px 90px rgba(0, 0, 0, 0.34);

    --radius-xl: 34px;
    --radius-lg: 25px;
    --radius-md: 20px;

    --font-heading: "Manrope", sans-serif;
    --font-body: "DM Sans", sans-serif;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;

    background: var(--bg);
}

body {
    margin: 0;
    padding: 0;

    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;

    font-family: var(--font-body);

    background: var(--bg);
    color: var(--white);

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;

    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;

    max-width: 100%;
}


/* =========================================================
   PAGE BACKGROUND
========================================================= */

.page-background {
    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #0b2019 0%,
            #071812 42%,
            #04100d 100%
        );
}


/* Optional background image */

.background-image {
    position: absolute;
    inset: -5%;

    background-image:
        url("../images/background.webp");

    background-size: cover;
    background-position: center;

    opacity: 0.12;

    filter:
        saturate(0.65)
        contrast(1.08);

    transform: scale(1.08);
}


/* Dark overlay */

.background-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3, 13, 10, 0.12) 0%,
            rgba(3, 13, 10, 0.45) 45%,
            rgba(3, 13, 10, 0.9) 100%
        );
}


/* Ambient glow */

.background-glow {
    position: absolute;

    border-radius: 50%;

    filter: blur(20px);

    opacity: 0.45;
}

.background-glow-one {
    width: 420px;
    height: 420px;

    top: -170px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(120, 230, 150, 0.28) 0%,
            rgba(120, 230, 150, 0) 70%
        );
}

.background-glow-two {
    width: 350px;
    height: 350px;

    right: -190px;
    top: 38%;

    background:
        radial-gradient(
            circle,
            rgba(65, 155, 115, 0.2) 0%,
            rgba(65, 155, 115, 0) 72%
        );
}


/* Very subtle texture */

.background-noise {
    position: absolute;
    inset: 0;

    opacity: 0.025;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.5) 0,
            rgba(255, 255, 255, 0.5) 1px,
            transparent 1px,
            transparent 3px
        );

    mix-blend-mode: overlay;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.link-page {
    position: relative;

    z-index: 1;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    padding:
        max(22px, env(safe-area-inset-top))
        16px
        max(34px, env(safe-area-inset-bottom));

    display: flex;
    justify-content: center;
}


/* =========================================================
   PROFILE CARD / CONTAINER
========================================================= */

.profile-card {
    position: relative;

    width: min(100%, 520px);

    padding: 4px 0 0;
}


/* =========================================================
   TOP BAR
========================================================= */

.top-bar {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 32px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.12em;
}

.brand-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px rgba(185, 244, 165, 0.08),
        0 0 22px rgba(185, 244, 165, 0.5);
}


/* Share */

.share-button {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 1px solid var(--line);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.055);
    color: var(--white);

    cursor: pointer;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.share-button svg {
    width: 18px;
    height: 18px;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.share-button:hover {
    transform: translateY(-2px);

    border-color: var(--line-hover);

    background: rgba(255, 255, 255, 0.09);
}

.share-button:active {
    transform: scale(0.95);
}


/* =========================================================
   PROFILE HEADER
========================================================= */

.profile-header {
    position: relative;

    margin-bottom: 35px;
}


/* =========================================================
   PROFILE PHOTO
========================================================= */

.profile-photo-wrap {
    position: relative;

    width: fit-content;

    margin: 0 auto 25px;
}

.profile-ring {
    position: relative;

    width: 116px;
    height: 116px;

    padding: 4px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(185, 244, 165, 0.9),
            rgba(255, 255, 255, 0.12) 42%,
            rgba(255, 255, 255, 0.06)
        );

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.28);
}

.profile-ring::after {
    content: "";

    position: absolute;
    inset: -9px;

    border: 1px solid rgba(185, 244, 165, 0.1);
    border-radius: 50%;

    pointer-events: none;
}

.profile-photo {
    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;

    border: 4px solid #0a1b15;

    background: var(--green-dark);
}


/* Verification */

.profile-status {
    position: absolute;

    right: 1px;
    bottom: 4px;

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    border: 4px solid #071812;

    background: var(--green);
    color: #062016;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25);
}

.profile-status svg {
    width: 13px;
    height: 13px;

    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   PROFILE COPY
========================================================= */

.profile-copy {
    position: relative;
}

.profile-eyebrow {
    margin: 0 0 9px;

    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.2em;

    color: var(--green);
}

.profile-copy h1 {
    margin: 0;

    max-width: 420px;

    font-family: var(--font-heading);
    font-size: clamp(40px, 11vw, 58px);
    line-height: 0.96;

    font-weight: 700;

    letter-spacing: -0.055em;

    color: var(--white);
}

.profile-copy h1 span {
    display: block;

    color: var(--green);
}

.profile-description {
    margin: 17px 0 0;

    font-size: 13px;
    line-height: 1.6;

    letter-spacing: 0.015em;

    color: var(--white-muted);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 11px;

    margin-bottom: 28px;
}

.social-link {
    position: relative;

    width: 100%;
    min-height: 79px;

    display: grid;
    grid-template-columns: 48px 1fr 36px;
    align-items: center;

    gap: 14px;

    padding: 14px 15px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);

    overflow: hidden;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 0.35s cubic-bezier(.2, .8, .2, 1),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


/* Shine */

.social-link::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    top: 50%;
    right: -120px;

    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(185, 244, 165, 0.11),
            transparent 68%
        );

    opacity: 0;

    transition:
        right 0.45s ease,
        opacity 0.45s ease;

    pointer-events: none;
}

.social-link:hover {
    transform: translateY(-3px);

    border-color: var(--line-hover);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.16);
}

.social-link:hover::before {
    right: -65px;

    opacity: 1;
}

.social-link:active {
    transform: scale(0.985);
}


/* Icon */

.link-icon {
    position: relative;

    z-index: 1;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.055);

    color: var(--white);
}

.link-icon svg {
    width: 22px;
    height: 22px;

    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-icon .icon-fill {
    fill: currentColor;
    stroke: none;
}


/* Text */

.link-copy {
    position: relative;

    z-index: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.link-label {
    font-size: 10px;
    font-weight: 400;

    letter-spacing: 0.05em;

    color: var(--white-muted);
}

.link-copy strong {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;

    letter-spacing: -0.015em;

    color: var(--white);
}


/* Arrow */

.link-arrow {
    position: relative;

    z-index: 1;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-size: 15px;

    color: var(--white-muted);

    transition:
        transform 0.35s ease,
        color 0.35s ease,
        background 0.35s ease;
}

.social-link:hover .link-arrow {
    transform:
        translate(2px, -2px);

    color: var(--green);

    background:
        rgba(185, 244, 165, 0.07);
}


/* =========================================================
   COMPANY CARD
========================================================= */

.company-card {
    position: relative;

    width: 100%;
    min-height: 245px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 22px;

    border: 1px solid rgba(185, 244, 165, 0.19);
    border-radius: var(--radius-lg);

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(29, 86, 63, 0.68) 0%,
            rgba(13, 49, 37, 0.72) 50%,
            rgba(8, 31, 24, 0.9) 100%
        );

    box-shadow:
        var(--shadow);

    isolation: isolate;

    transition:
        transform 0.4s cubic-bezier(.2, .8, .2, 1),
        border-color 0.4s ease;
}


/* Ambient company glow */

.company-card::before {
    content: "";

    position: absolute;

    width: 270px;
    height: 270px;

    right: -100px;
    bottom: -130px;

    z-index: -1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(185, 244, 165, 0.25),
            rgba(185, 244, 165, 0) 68%
        );

    transition:
        transform 0.5s ease;
}


/* Decorative line */

.company-card::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 1px;

    right: -55px;
    top: 105px;

    z-index: -1;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(185, 244, 165, 0.35),
            transparent
        );

    transform: rotate(-38deg);
}

.company-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(185, 244, 165, 0.4);
}

.company-card:hover::before {
    transform: scale(1.15);
}


/* Company top */

.company-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-number {
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(--green);
}

.company-arrow {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;

    color: var(--white);

    transition:
        transform 0.35s ease,
        background 0.35s ease;
}

.company-card:hover .company-arrow {
    transform:
        translate(2px, -2px);

    background:
        rgba(255, 255, 255, 0.07);
}


/* Company content */

.company-content {
    margin:
        45px
        0
        42px;
}

.company-content p {
    margin: 0 0 8px;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.52);
}

.company-content h2 {
    margin: 0;

    max-width: 360px;

    font-family: var(--font-heading);
    font-size: clamp(29px, 8vw, 39px);
    line-height: 0.98;

    font-weight: 650;

    letter-spacing: -0.05em;
}

.company-content h2 span {
    display: block;

    color: var(--green);
}


/* Company footer */

.company-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 12px;

    font-family: var(--font-heading);
    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.12em;

    color: rgba(255, 255, 255, 0.42);
}

.company-line {
    width: 100%;
    height: 1px;

    background:
        rgba(255, 255, 255, 0.1);
}


/* =========================================================
   FOOTER
========================================================= */

.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 9px;

    padding:
        30px
        5px
        5px;

    text-align: center;

    font-size: 9px;
    line-height: 1.5;

    letter-spacing: 0.04em;

    color: rgba(255, 255, 255, 0.32);
}

.page-footer p {
    margin: 0;
}

.footer-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        rgba(185, 244, 165, 0.65);
}


/* =========================================================
   SHARE TOAST
========================================================= */

.share-toast {
    position: fixed;

    left: 50%;
    bottom:
        max(25px, env(safe-area-inset-bottom));

    z-index: 100;

    padding:
        12px
        17px;

    border:
        1px solid rgba(185, 244, 165, 0.22);

    border-radius: 999px;

    background:
        rgba(7, 27, 20, 0.92);

    color: var(--white);

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    font-size: 11px;

    transform:
        translate(-50%, 25px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.share-toast.is-visible {
    transform:
        translate(-50%, 0);

    opacity: 1;

    visibility: visible;
}


/* =========================================================
   REVEAL ANIMATION
   JS will add .is-visible
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(20px);

    transition:
        opacity 0.75s cubic-bezier(.2, .8, .2, 1),
        transform 0.75s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {
    outline:
        2px solid var(--green);

    outline-offset: 4px;
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .link-page {
        padding-left: 13px;
        padding-right: 13px;
    }

    .top-bar {
        margin-bottom: 28px;
    }

    .profile-ring {
        width: 104px;
        height: 104px;
    }

    .profile-copy h1 {
        font-size: 39px;
    }

    .social-link {
        min-height: 74px;

        grid-template-columns:
            44px 1fr 31px;

        gap: 12px;

        padding: 13px;
    }

    .link-icon {
        width: 44px;
        height: 44px;

        border-radius: 14px;
    }

    .company-card {
        min-height: 230px;

        padding: 19px;
    }

    .company-content {
        margin:
            40px
            0
            38px;
    }
}


/* =========================================================
   TABLET / DESKTOP
========================================================= */

@media (min-width: 700px) {

    .link-page {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .profile-card {
        width: 520px;
    }

    .top-bar {
        margin-bottom: 39px;
    }

    .profile-ring {
        width: 126px;
        height: 126px;
    }

    .profile-header {
        margin-bottom: 40px;
    }

    .social-links {
        gap: 12px;
    }

    .social-link {
        min-height: 82px;

        padding:
            15px
            17px;
    }

    .company-card {
        min-height: 270px;

        padding: 25px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}

/* =========================================================
   CLICKABLE PROFILE PHOTO
========================================================= */

.profile-photo-button {
    border: 0;
    cursor: pointer;
    font: inherit;

    transition:
        transform 0.35s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.35s ease;
}

.profile-photo-button:hover {
    transform: scale(1.04);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.profile-photo-button:active {
    transform: scale(0.97);
}


/* View indicator */

.profile-view-hint {
    position: absolute;

    left: 50%;
    bottom: 10px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(5, 20, 15, 0.72);

    color: rgba(255, 255, 255, 0.9);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transform: translate(-50%, 5px);

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.profile-photo-button:hover .profile-view-hint {
    opacity: 1;

    transform: translate(-50%, 0);
}


/* =========================================================
   PROFILE LIGHTBOX
========================================================= */

.profile-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 22px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.profile-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}


/* Dark background */

.profile-lightbox-backdrop {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;

    background:
        rgba(1, 8, 6, 0.88);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    cursor: pointer;
}


/* Content */

.profile-lightbox-content {
    position: relative;

    z-index: 2;

    width: min(100%, 470px);

    transform:
        translateY(20px)
        scale(0.94);

    opacity: 0;

    transition:
        transform 0.45s cubic-bezier(.2, .8, .2, 1),
        opacity 0.35s ease;
}

.profile-lightbox.is-open
.profile-lightbox-content {
    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}


/* Close */

.profile-lightbox-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 5;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 50%;

    background:
        rgba(4, 18, 13, 0.65);

    color: #ffffff;

    font-size: 26px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.profile-lightbox-close:hover {
    transform: rotate(90deg);

    background:
        rgba(255, 255, 255, 0.12);
}


/* Large photo */

.profile-lightbox-image-wrap {
    position: relative;

    width: 100%;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 28px;

    background: #0a1b15;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);
}

.profile-lightbox-image {
    width: 100%;
    height: auto;

    max-height: 72svh;

    object-fit: contain;

    background: #071812;
}


/* Name */

.profile-lightbox-info {
    padding: 18px 5px 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.profile-lightbox-label {
    margin-bottom: 4px;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(--green);
}

.profile-lightbox-info strong {
    font-family: var(--font-heading);

    font-size: 17px;
    font-weight: 600;

    color: var(--white);
}

.profile-lightbox-info > span:last-child {
    font-size: 10px;

    color: var(--white-muted);
}


/* Prevent page scrolling */

body.lightbox-open {
    overflow: hidden;
}


/* Mobile */

@media (max-width: 600px) {

    .profile-lightbox {
        padding: 16px;
    }

    .profile-lightbox-image-wrap {
        border-radius: 23px;
    }

    .profile-lightbox-close {
        width: 39px;
        height: 39px;

        top: 11px;
        right: 11px;
    }
}