/* =========================================================
   AKMAL — PORTFOLIO
   Main Stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   1. DESIGN VARIABLES
   --------------------------------------------------------- */

:root {
    --navy-dark: #050b14;
    --navy: #081525;
    --navy-light: #102640;

    --gold: #d4af37;
    --gold-light: #f0cf68;

    --white: #f5f3ea;
    --text-muted: #9da9b8;

    --border: rgba(212, 175, 55, 0.25);

    --transition: 0.4s ease;
}


/* ---------------------------------------------------------
   2. RESET
   --------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(16, 38, 64, 0.5),
            transparent 40%
        ),
        var(--navy-dark);

    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}

/* Match the compact desktop composition without requiring browser zoom. */
@media (min-width: 901px) {
    body {
        zoom: 0.67;
    }
}

/* Persistent decorative 3D object behind the portfolio content */
.three-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.46;
}

#app {
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   3. HERO
   --------------------------------------------------------- */

.hero {
    position: relative;

    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;

    padding: 70px 8vw;

    gap: 8vw;

    overflow: hidden;
}


/* ---------------------------------------------------------
   4. HERO BACKGROUND DETAILS
   --------------------------------------------------------- */

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -200px;
    top: 50%;

    transform: translateY(-50%);

    background: rgba(212, 175, 55, 0.06);

    border-radius: 50%;

    filter: blur(80px);

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    left: 8vw;
    bottom: 50px;

    width: 80px;
    height: 1px;

    background: var(--gold);

    opacity: 0.7;
}


/* ---------------------------------------------------------
   5. PHOTO
   --------------------------------------------------------- */

.hero-photo {
    position: relative;

    width: min(40vw, 500px);

    aspect-ratio: 3 / 4;

    flex-shrink: 0;

    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--navy);
}


/* Gold frame */

.hero-photo::before {
    content: "";

    position: absolute;

    inset: 12px;

    border: 1px solid rgba(240, 207, 104, 0.35);

    z-index: 2;

    pointer-events: none;
}


/* Gold corner */

.hero-photo::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    right: -1px;
    bottom: -1px;

    border-right: 3px solid var(--gold);
    border-bottom: 3px solid var(--gold);

    z-index: 3;

    pointer-events: none;
}


.hero-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    filter: saturate(0.85) contrast(1.05);

    transform: scale(1.02);

    transition:
        transform 1s ease,
        filter 1s ease;
}


.hero-photo:hover img {
    transform: scale(1.06);

    filter:
        saturate(1)
        contrast(1.08);
}


/* ---------------------------------------------------------
   6. HERO CONTENT
   --------------------------------------------------------- */

.hero-content {
    position: relative;

    z-index: 5;

    flex: 1;

    max-width: 800px;
}


/* Small heading */

.hero-eyebrow {
    margin-bottom: 25px;

    color: var(--gold-light);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 5px;
}


/* ---------------------------------------------------------
   7. NAME
   --------------------------------------------------------- */

.hero-title {
    font-size: clamp(55px, 7vw, 120px);

    line-height: 0.88;

    letter-spacing: -5px;

    font-weight: 800;

    text-transform: uppercase;
}

.hero-title span {
    display: block;

    color: var(--white);
}


/* ---------------------------------------------------------
   8. ROLE
   --------------------------------------------------------- */

.hero-role {
    margin-top: 35px;

    color: var(--text-muted);

    font-size: 14px;

    letter-spacing: 4px;

    font-weight: 500;
}


/* ---------------------------------------------------------
   9. SCROLL INDICATOR
   --------------------------------------------------------- */

.hero-scroll {
    position: absolute;

    left: 0;
    bottom: -130px;

    display: flex;

    align-items: center;

    gap: 15px;

    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 3px;
}

.scroll-arrow {
    color: var(--gold);

    font-size: 20px;

    animation: scrollBounce 1.8s infinite;
}


/* ---------------------------------------------------------
   10. SCROLL ANIMATION
   --------------------------------------------------------- */

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


/* ---------------------------------------------------------
   11. TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .hero {
        padding: 60px 6vw;

        gap: 5vw;
    }

    .hero-photo {
        width: 42vw;
    }

    .hero-title {
        font-size: clamp(45px, 7vw, 75px);

        letter-spacing: -3px;
    }

    .hero-eyebrow {
        font-size: 11px;

        letter-spacing: 3px;
    }
}


/* ---------------------------------------------------------
   12. MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .three-background {
        opacity: 0.2;
    }

    .hero {
        min-height: auto;

        padding: 70px 7vw 100px;

        flex-direction: column-reverse;

        align-items: stretch;

        gap: 45px;
    }


    .hero-content {
        order: 1;
    }


    .hero-photo {
        order: 2;

        width: 100%;

        max-width: 430px;

        margin: 0 auto;
    }


    .hero-title {
        font-size: clamp(48px, 14vw, 80px);

        letter-spacing: -3px;

        line-height: 0.9;
    }


    .hero-eyebrow {
        margin-bottom: 20px;

        font-size: 10px;

        letter-spacing: 3px;
    }


    .hero-role {
        margin-top: 25px;

        font-size: 11px;

        line-height: 1.8;

        letter-spacing: 2px;
    }


    .hero-scroll {
        position: static;

        margin-top: 35px;
    }


    .hero::after {
        left: 7vw;

        bottom: 35px;

        width: 50px;
    }
}


/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about-section {
    position: relative;

    min-height: 100vh;

    padding: 140px 8vw;

    display: flex;
    flex-direction: column;

    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(5, 11, 20, 0.72),
            rgba(8, 21, 37, 0.72)
        );
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.about-header {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 80px;
}


.section-number {
    color: var(--gold);

    font-size: 13px;

    letter-spacing: 3px;
}


.section-label {
    color: var(--text-muted);

    font-size: 11px;

    letter-spacing: 4px;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.about-content {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10vw;

    align-items: center;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.about-title h2 {
    font-size: clamp(
        70px,
        10vw,
        160px
    );

    line-height: 0.8;

    letter-spacing: -7px;

    text-transform: uppercase;
}


.about-title h2 span {
    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px var(--gold);
}


/* ---------------------------------------------------------
   TEXT
   --------------------------------------------------------- */

.about-text {
    max-width: 560px;
}


.about-lead {
    margin-bottom: 30px;

    color: var(--white);

    font-size: clamp(
        22px,
        2.2vw,
        32px
    );

    line-height: 1.3;
}


.about-text p:not(.about-lead) {
    margin-bottom: 25px;

    color: var(--text-muted);

    font-size: 16px;

    line-height: 1.9;
}


/* ---------------------------------------------------------
   DECORATION
   --------------------------------------------------------- */

.about-decoration {
    position: absolute;

    right: 8vw;
    bottom: 70px;

    display: flex;

    gap: 8px;
}


.about-decoration span {
    display: block;

    width: 4px;
    height: 4px;

    background: var(--gold);

    border-radius: 50%;
}


.about-decoration span:nth-child(2) {
    opacity: 0.5;
}


.about-decoration span:nth-child(3) {
    opacity: 0.2;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .about-section {
        min-height: auto;

        padding: 110px 7vw;
    }


    .about-header {
        margin-bottom: 60px;
    }


    .about-content {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .about-title h2 {
        font-size: clamp(
            65px,
            20vw,
            110px
        );

        letter-spacing: -4px;
    }


    .about-lead {
        font-size: 22px;
    }


    .about-text p:not(.about-lead) {
        font-size: 15px;

        line-height: 1.8;
    }


    .about-decoration {
        display: none;
    }

}


/* =========================================================
   HOBBIES SECTION
   ========================================================= */

.hobbies-section {
    position: relative;

    min-height: 100vh;

    padding: 140px 8vw;

    background: rgba(5, 11, 20, 0.72);

    overflow: hidden;
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.hobbies-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 80px;
}


.hobbies-header > div {
    display: flex;

    align-items: center;

    gap: 20px;
}


.hobbies-header h2 {
    font-size: clamp(
        60px,
        9vw,
        140px
    );

    line-height: 0.8;

    letter-spacing: -6px;

    text-transform: uppercase;
}


.hobbies-header h2 span {
    color: transparent;

    -webkit-text-stroke:
        1px var(--gold);
}


/* ---------------------------------------------------------
   HOBBY GRID
   --------------------------------------------------------- */

.hobbies-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

    border:
        1px solid rgba(212, 175, 55, 0.2);
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.hobby-card {
    position: relative;

    min-height: 300px;

    padding: 40px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    background: rgba(8, 21, 37, 0.92);

    border: 1px solid rgba(212, 175, 55, 0.12);

    overflow: hidden;

    transition:
        background 0.5s ease,
        transform 0.5s ease;
}


.hobby-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -80px;
    top: -80px;

    border:
        1px solid var(--gold);

    border-radius: 50%;

    opacity: 0;

    transform: scale(0.5);

    transition:
        opacity 0.5s ease,
        transform 0.7s ease;
}


.hobby-card:hover {
    background:
        linear-gradient(
            135deg,
            rgba(16, 38, 64, 0.98),
            rgba(53, 43, 17, 0.94)
        );

    border-color: rgba(212, 175, 55, 0.6);

    transform: translateY(-5px);

    z-index: 2;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}


.hobby-card:hover::before {
    opacity: 0.25;

    transform: scale(1.2);
}


/* ---------------------------------------------------------
   NUMBER
   --------------------------------------------------------- */

.hobby-number {
    position: absolute;

    top: 35px;
    left: 40px;

    color: var(--gold);

    font-size: 11px;

    letter-spacing: 3px;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.hobby-card h3 {
    position: relative;

    margin-bottom: 15px;

    font-size: clamp(
        30px,
        4vw,
        55px
    );

    letter-spacing: -2px;
}


/* ---------------------------------------------------------
   DESCRIPTION
   --------------------------------------------------------- */

.hobby-card p {
    position: relative;

    max-width: 400px;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.8;
}


/* ---------------------------------------------------------
   ARROW
   --------------------------------------------------------- */

.hobby-arrow {
    position: absolute;

    right: 35px;
    bottom: 35px;

    color: var(--gold);

    font-size: 28px;

    transition:
        transform 0.4s ease;
}


.hobby-card:hover .hobby-arrow {
    transform:
        translate(6px, -6px);
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .hobbies-section {
        min-height: auto;

        padding: 110px 7vw;
    }


    .hobbies-header {
        display: block;

        margin-bottom: 60px;
    }


    .hobbies-header > div {
        margin-bottom: 50px;
    }


    .hobbies-header h2 {
        font-size: 18vw;

        letter-spacing: -4px;
    }


    .hobbies-grid {
        grid-template-columns: 1fr;
    }


    .hobby-card {
        min-height: 260px;

        padding: 30px;
    }


    .hobby-number {
        top: 25px;

        left: 30px;
    }


    .hobby-arrow {
        right: 25px;

        bottom: 25px;
    }

}

/* ---------------------------------------------------------
   SITE HEADER
   --------------------------------------------------------- */

.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 64px;
    backdrop-filter: blur(6px);
    background: rgba(5,11,20,0.55);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    z-index: 9999;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
}

.site-nav a {
    color: var(--text-muted);
    margin-left: 18px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--gold);
}

/* ensure main content not hidden under header */
main#app {padding-top: 80px}