/* =====================================================
   AYUUB.NET
   ===================================================== */

:root {
    --bg: #fbf6f4;
    --bg-deep: #f3e8e5;

    --text: #181313;
    --muted: #746866;

    --red: #982d2d;
    --red-dark: #641d1d;

    --line: #ddcfcc;

    --max-width: 1240px;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.5;

    overflow-x: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--red);
    color: var(--bg);
}


/* =====================================================
   BACKGROUND TEXTURE
   ===================================================== */

.noise {
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: 0.22;

    z-index: -2;

    background-image:
        linear-gradient(
            rgba(152, 45, 45, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(152, 45, 45, 0.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}

.cursor-glow {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(152, 45, 45, 0.08),
            rgba(152, 45, 45, 0) 68%
        );

    transform: translate(-50%, -50%);

    z-index: -1;

    opacity: 0;

    transition: opacity 0.3s ease;
}


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

.nav {
    width: min(var(--max-width), calc(100% - 64px));

    height: 86px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

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

    position: relative;

    z-index: 20;
}

.logo {
    font-size: 22px;
    font-weight: 900;

    letter-spacing: -0.06em;

    width: fit-content;
}

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

.nav-links {
    display: flex;

    gap: 32px;
}

.nav-links a,
.nav-resume {
    position: relative;

    color: var(--muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;

    transition: color 0.2s ease;
}

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

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--red);

    transition: width 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

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

.nav-resume {
    justify-self: end;

    color: var(--text);
}

.nav-resume:hover {
    color: var(--red);
}


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

.hero {
    width: min(var(--max-width), calc(100% - 64px));

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

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 48px 0 30px;
}

.hero-meta {
    display: flex;

    justify-content: space-between;

    align-items: center;

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.availability {
    display: flex;

    align-items: center;

    gap: 9px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--red);

    box-shadow: 0 0 0 5px rgba(152, 45, 45, 0.08);

    animation: pulse 2.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(152, 45, 45, 0.08);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(152, 45, 45, 0);
    }
}


.hero-main {
    display: grid;

    grid-template-columns: 190px 1fr;

    align-items: end;

    gap: 40px;

    margin: auto 0;
}

.hero-side {
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.1em;

    line-height: 1.8;

    margin: 0 0 16px;
}

.hero-title {
    max-width: 970px;

    margin: 0;

    font-size: clamp(62px, 8.2vw, 128px);

    font-weight: 900;

    line-height: 0.85;

    letter-spacing: -0.075em;
}

.hero-title span {
    display: block;

    color: var(--red);

    font-style: italic;

    font-weight: 500;
}


.hero-bottom {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 50px;

    padding-top: 40px;

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

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

    margin: 0;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.7;
}

.hero-actions {
    display: flex;

    gap: 12px;

    flex-shrink: 0;
}


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

.button {
    min-height: 52px;

    padding: 0 21px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 24px;

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

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border 0.25s ease,
        transform 0.25s ease;
}

.button span {
    font-size: 17px;

    transition: transform 0.25s ease;
}

.button-primary {
    background: var(--text);
    color: var(--bg);
}

.button-primary:hover {
    background: var(--red);
    border-color: var(--red);

    transform: translateY(-3px);
}

.button-primary:hover span {
    transform: translateY(3px);
}

.button-secondary:hover {
    border-color: var(--red);
    color: var(--red);

    transform: translateY(-3px);
}

.button-secondary:hover span {
    transform: translate(3px, -3px);
}


/* =====================================================
   SCROLL INDICATOR
   ===================================================== */

.scroll-indicator {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.14em;
}

.scroll-line {
    width: 50px;
    height: 1px;

    overflow: hidden;

    background: var(--line);

    position: relative;
}

.scroll-line::after {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 1px;

    background: var(--red);

    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {

    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}


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

.content-section {
    width: min(var(--max-width), calc(100% - 64px));

    margin: 0 auto;

    padding: 130px 0;

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

.section-label {
    display: flex;

    gap: 15px;

    margin-bottom: 70px;

    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.section-label span:first-child {
    color: var(--muted);
}

.section-statement {
    max-width: 730px;

    margin: 0;

    font-size: clamp(42px, 5.4vw, 76px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.055em;
}

.section-statement span {
    color: var(--red);
}


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

.about-layout {
    display: grid;

    grid-template-columns: 1.25fr 0.75fr;

    gap: 100px;

    align-items: start;
}

.about-copy {
    padding-top: 8px;
}

.about-copy p {
    margin: 0 0 24px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.75;
}


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

.projects-header {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 50px;

    margin-bottom: 60px;
}

.projects-header h2 {
    margin: 0;

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

    line-height: 0.95;

    letter-spacing: -0.06em;
}

.projects-header p {
    max-width: 350px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


.project-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.project-card {
    position: relative;

    min-height: 570px;

    padding: 26px;

    overflow: hidden;

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

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

    display: flex;

    flex-direction: column;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.project-card:hover {
    border-color: var(--red);

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

    transform: translateY(-7px);
}

.project-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    color: var(--muted);

    font-size: 11px;

    position: relative;

    z-index: 2;
}

.project-arrow {
    font-size: 20px;

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

.project-card:hover .project-arrow {
    color: var(--red);

    transform: translate(4px, -4px);
}


.project-visual {
    height: 245px;

    margin: 34px 0;

    background: var(--bg-deep);

    border: 1px solid rgba(152, 45, 45, 0.12);

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: transform 0.4s ease;
}

.project-card:hover .project-visual {
    transform: scale(0.985);
}


.project-info {
    margin-top: auto;
}

.project-tech {
    margin: 0 0 9px;

    color: var(--red);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.project-info h3 {
    margin: 0 0 13px;

    font-size: 28px;

    letter-spacing: -0.035em;
}

.project-info > p:last-child {
    max-width: 500px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.65;
}


/* CLOUD VISUAL */

.cloud-visual {
    gap: 14px;
}

.cloud-visual span {
    color: var(--red-dark);

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.08em;
}

.visual-line {
    width: 55px;
    height: 1px;

    background: var(--red);

    position: relative;
}

.visual-line::after {
    content: "";

    position: absolute;

    right: -3px;
    top: -3px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--red);
}


/* SECURITY VISUAL */

.security-visual {
    position: relative;
}

.target-ring {
    position: absolute;

    border: 1px solid rgba(152, 45, 45, 0.38);

    border-radius: 50%;
}

.ring-one {
    width: 190px;
    height: 190px;
}

.ring-two {
    width: 125px;
    height: 125px;
}

.ring-three {
    width: 60px;
    height: 60px;
}

.target-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--red);

    box-shadow: 0 0 0 10px rgba(152, 45, 45, 0.08);
}


/* STORAGE VISUAL */

.storage-visual {
    flex-direction: column;

    gap: 9px;
}

.drive {
    width: 65%;
    height: 43px;

    border: 1px solid rgba(152, 45, 45, 0.42);

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 7px;

    padding-right: 15px;
}

.drive span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--red);
}


/* DOMAIN VISUAL */

.domain-visual {
    flex-direction: column;

    gap: 35px;
}

.domain-text {
    color: var(--red-dark);

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

    font-weight: 900;

    letter-spacing: -0.05em;
}

.domain-nodes {
    display: flex;

    gap: 9px;
}

.domain-nodes span {
    padding: 7px 11px;

    border: 1px solid rgba(152, 45, 45, 0.32);

    color: var(--red);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.1em;
}


/* =====================================================
   EXPERIENCE
   ===================================================== */

.experience-header h2 {
    margin: 0 0 60px;

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

    letter-spacing: -0.06em;

    line-height: 1;
}

.experience-item {
    display: grid;

    grid-template-columns: 180px 1fr 150px;

    gap: 40px;

    padding: 38px 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.experience-date,
.experience-location {
    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.experience-location {
    text-align: right;
}

.experience-main h3 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -0.03em;
}

.experience-role {
    margin: 4px 0 22px;

    color: var(--red);

    font-size: 13px;
}

.experience-description {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


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

.skills-layout {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;
}

.skills-list {
    border-top: 1px solid var(--line);
}

.skill-row {
    display: grid;

    grid-template-columns: 40px 140px 1fr;

    align-items: center;

    gap: 20px;

    padding: 25px 0;

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

    transition: padding-left 0.25s ease;
}

.skill-row:hover {
    padding-left: 10px;
}

.skill-number {
    color: var(--red);

    font-size: 9px;
    font-weight: 800;
}

.skill-row h3 {
    margin: 0;

    font-size: 15px;
}

.skill-row p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
}


/* =====================================================
   EDUCATION
   ===================================================== */

.education-list {
    border-top: 1px solid var(--line);
}

.education-item {
    display: grid;

    grid-template-columns: 180px 1fr 150px;

    gap: 40px;

    padding: 35px 0;

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

    align-items: start;
}

.education-year,
.education-location {
    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.1em;
}

.education-location {
    text-align: right;
}

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

    font-size: 21px;

    letter-spacing: -0.025em;
}

.education-degree {
    margin: 0;

    color: var(--red);

    font-size: 13px;
}

.education-extra {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 12px;
}

.cert-badge {
    justify-self: end;

    padding: 7px 10px;

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

    color: var(--red);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.1em;
}


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

.contact-section {
    width: min(var(--max-width), calc(100% - 64px));

    min-height: 80vh;

    margin: 0 auto;

    padding: 130px 0;

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

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.contact-label {
    margin: 0 0 70px;

    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.contact-heading {
    max-width: 1050px;

    margin: 0;

    font-size: clamp(58px, 8vw, 115px);

    line-height: 0.88;

    letter-spacing: -0.075em;
}

.contact-heading span {
    display: block;

    color: var(--red);

    font-style: italic;

    font-weight: 500;
}

.contact-bottom {
    display: flex;

    justify-content: space-between;

    align-items: end;

    gap: 50px;

    margin-top: 90px;
}

.contact-email {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    padding-bottom: 7px;

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

    font-size: clamp(20px, 3vw, 34px);

    font-weight: 700;

    letter-spacing: -0.03em;

    transition: color 0.2s ease;
}

.contact-email span {
    transition: transform 0.2s ease;
}

.contact-email:hover {
    color: var(--red);
}

.contact-email:hover span {
    transform: translate(5px, -5px);
}

.contact-bottom p {
    max-width: 360px;

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


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

footer {
    padding: 35px 32px 0;

    background: var(--text);

    color: var(--bg);

    overflow: hidden;
}

.footer-top {
    width: min(var(--max-width), 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding-bottom: 50px;

    color: #c8bdbc;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.footer-links {
    display: flex;

    gap: 30px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-top > p:last-child {
    justify-self: end;
}

.footer-name {
    width: 100%;
    margin: 30px 0 18px;

    text-align: center;

    color: var(--bg);

    font-size: clamp(70px, 12.5vw, 195px);

    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.085em;

    white-space: nowrap;

    transform: translateX(-2%);
}


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

.reveal {
    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


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

@media (max-width: 950px) {

    .nav,
    .hero,
    .content-section,
    .contact-section {
        width: min(100% - 40px, var(--max-width));
    }

    .nav {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .hero-main {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .about-layout,
    .skills-layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 520px;
    }

    .experience-item,
    .education-item {
        grid-template-columns: 140px 1fr;
    }

    .experience-location,
    .education-location,
    .cert-badge {
        display: none;
    }
}


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

@media (max-width: 650px) {

    .nav {
        height: 72px;
    }

    .logo {
        font-size: 19px;
    }

    .nav-resume {
        font-size: 10px;
    }


    .hero {
        min-height: calc(100svh - 72px);

        padding-top: 30px;
    }

    .hero-meta {
        font-size: 8px;
    }

    .hero-meta > span:first-child {
        display: none;
    }

    .hero-meta {
        justify-content: flex-end;
    }

    .hero-title {
        font-size: clamp(54px, 17vw, 85px);

        line-height: 0.88;
    }

    .hero-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

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

    .hero-actions {
        width: 100%;

        flex-direction: column;
    }

    .button {
        width: 100%;

        justify-content: space-between;
    }


    .content-section,
    .contact-section {
        padding: 90px 0;
    }

    .section-label {
        margin-bottom: 45px;
    }

    .section-statement {
        font-size: 45px;
    }


    .projects-header {
        flex-direction: column;

        align-items: flex-start;

        margin-bottom: 40px;
    }

    .projects-header h2,
    .experience-header h2 {
        font-size: 52px;
    }

    .project-card {
        min-height: 510px;

        padding: 20px;
    }

    .project-visual {
        height: 210px;
    }


    .experience-item,
    .education-item {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .skill-row {
        grid-template-columns: 30px 1fr;

        gap: 12px;
    }

    .skill-row p {
        grid-column: 2;
    }


    .contact-section {
        min-height: auto;
    }

    .contact-heading {
        font-size: clamp(52px, 16vw, 80px);
    }

    .contact-bottom {
        flex-direction: column;

        align-items: flex-start;

        margin-top: 65px;
    }


    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .footer-top > p:last-child {
        justify-self: start;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-name {
        font-size: 15.5vw;
        margin-bottom: 0;
    }


    .cursor-glow {
        display: none;
    }
}


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

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
