/* =========================================================
   AHSAN MASHRAFI — RETRO PERSONAL WEBSITE
   ========================================================= */


/* ---------------------------------------------------------
   1. FONTS
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');


/* ---------------------------------------------------------
   2. VARIABLES
   --------------------------------------------------------- */

:root {
    --cream: #f4e8cf;
    --paper: #fff7e7;
    --ink: #17130f;
    --orange: #e85d2a;
    --yellow: #f2c84b;
    --blue: #2455a4;
}


/* ---------------------------------------------------------
   3. RESET
   --------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--ink);

    font-family: "Space Grotesk", sans-serif;

    overflow-x: hidden;
}


/* ---------------------------------------------------------
   4. RETRO PAPER / GRAIN EFFECT
   --------------------------------------------------------- */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 100;

    opacity: 0.10;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.5'/%3E%3C/svg%3E");

    mix-blend-mode: multiply;
}


/* ---------------------------------------------------------
   5. NAVIGATION
   --------------------------------------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 5vw;

    background: rgba(244, 232, 207, 0.95);

    border-bottom: 3px solid var(--ink);

    backdrop-filter: blur(8px);
}


.logo {
    font-family: "Archivo Black", sans-serif;

    font-size: 1.15rem;

    letter-spacing: -1px;

    text-transform: uppercase;
}


.nav-links {
    display: flex;
    gap: 28px;
}


.nav-links a {
    color: var(--ink);

    text-decoration: none;

    font-weight: 700;

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


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


/* ---------------------------------------------------------
   6. HERO
   --------------------------------------------------------- */

.hero {
    position: relative;

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

    display: flex;
    align-items: center;

    padding: 8vh 5vw;

    border-bottom: 3px solid var(--ink);

    overflow: hidden;
}


.hero-content {
    position: relative;

    width: 100%;
    max-width: 1150px;

    margin: 0 auto;

    z-index: 2;
}


/* Small yellow label */

.stamp {
    display: inline-block;

    padding: 8px 14px;

    margin-bottom: 28px;

    background: var(--yellow);

    border: 3px solid var(--ink);

    box-shadow: 5px 5px 0 var(--ink);

    font-family: "DM Mono", monospace;

    font-size: 0.85rem;

    font-weight: 500;

    transform: rotate(-2deg);
}


/* Main heading */

.hero h1 {
    max-width: 1050px;

    font-family: "Archivo Black", sans-serif;

    font-size: clamp(4.5rem, 13vw, 11rem);

    line-height: 0.78;

    letter-spacing: -0.08em;

    text-transform: uppercase;
}


.hero h1 span {
    display: block;

    color: var(--orange);
}


/* Hero paragraph */

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

    margin: 45px 0 30px;

    font-size: clamp(1.05rem, 2vw, 1.35rem);

    line-height: 1.55;
}


/* ---------------------------------------------------------
   7. HERO BUTTONS
   --------------------------------------------------------- */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}


.button {
    display: inline-block;

    padding: 14px 20px;

    border: 3px solid var(--ink);

    color: var(--ink);

    text-decoration: none;

    font-weight: 800;

    text-transform: uppercase;

    box-shadow: 5px 5px 0 var(--ink);

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


.button:hover {
    transform: translate(3px, 3px);

    box-shadow: 2px 2px 0 var(--ink);
}


.button-primary {
    background: var(--orange);
}


.button-secondary {
    background: var(--paper);
}


/* ---------------------------------------------------------
   8. SUN / DECORATION
   --------------------------------------------------------- */

.hero-decoration {
    position: absolute;

    top: 12%;
    right: 5%;

    width: min(28vw, 280px);

    aspect-ratio: 1;

    border-radius: 50%;

    background: var(--yellow);

    border: 3px solid var(--ink);

    z-index: 1;
}


/* Retro rays */

.hero-decoration::after {
    content: "";

    position: absolute;

    inset: -30px;

    background:
        repeating-conic-gradient(
            from 0deg,
            transparent 0deg 9deg,
            var(--ink) 9deg 11deg,
            transparent 11deg 18deg
        );

    -webkit-mask:
        radial-gradient(
            circle,
            transparent 0 58%,
            #000 59% 64%,
            transparent 65%
        );

    mask:
        radial-gradient(
            circle,
            transparent 0 58%,
            #000 59% 64%,
            transparent 65%
        );
}


/* ---------------------------------------------------------
   9. TICKER
   --------------------------------------------------------- */

.ticker {
    width: 100%;

    padding: 12px 0;

    overflow: hidden;

    white-space: nowrap;

    background: var(--blue);

    color: var(--cream);

    border-bottom: 3px solid var(--ink);

    font-family: "DM Mono", monospace;

    font-size: 0.9rem;

    font-weight: 500;
}


.ticker-content {
    display: inline-block;

    animation: ticker-scroll 20s linear infinite;
}


.ticker span {
    display: inline-block;

    margin: 0 28px;
}


@keyframes ticker-scroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* ---------------------------------------------------------
   10. GENERAL SECTIONS
   --------------------------------------------------------- */

.section {
    padding: 100px 5vw;

    border-bottom: 3px solid var(--ink);
}


.container {
    width: 100%;

    max-width: 1150px;

    margin: 0 auto;
}


/* Small section label */

.eyebrow {
    font-family: "DM Mono", monospace;

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


/* Big section heading */

.section h2 {
    margin: 15px 0 50px;

    font-family: "Archivo Black", sans-serif;

    font-size: clamp(3rem, 7vw, 6.5rem);

    line-height: 0.85;

    letter-spacing: -0.07em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   11. ABOUT
   --------------------------------------------------------- */

.about-grid {
    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    gap: 50px;
}


/* About text */

.about-text {
    font-size: 1.3rem;

    line-height: 1.6;
}


.about-text p + p {
    margin-top: 25px;
}


/* ---------------------------------------------------------
   12. FACTS BOX
   --------------------------------------------------------- */

.facts {
    background: var(--paper);

    border: 3px solid var(--ink);

    box-shadow: 8px 8px 0 var(--ink);
}


.fact {
    padding: 20px;

    border-bottom: 3px solid var(--ink);
}


.fact:last-child {
    border-bottom: none;
}


.fact-label {
    display: block;

    margin-bottom: 7px;

    font-family: "DM Mono", monospace;

    font-size: 0.75rem;

    text-transform: uppercase;
}


.fact strong {
    font-size: 1.05rem;
}


/* ---------------------------------------------------------
   13. INTEREST CARDS
   --------------------------------------------------------- */

.cards {
    display: grid;

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

    gap: 20px;
}


.card {
    min-height: 250px;

    padding: 25px;

    background: var(--paper);

    border: 3px solid var(--ink);

    box-shadow: 7px 7px 0 var(--ink);

    transition:
        transform 0.2s ease;
}


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


/* Different retro colors */

.card:nth-child(2) {
    background: var(--yellow);
}


.card:nth-child(3) {
    background: var(--orange);
}


/* Card number */

.card-number {
    font-family: "DM Mono", monospace;

    font-size: 0.8rem;
}


/* Card heading */

.card h3 {
    margin: 45px 0 15px;

    font-family: "Archivo Black", sans-serif;

    font-size: 2rem;

    line-height: 0.9;

    text-transform: uppercase;
}


/* Card paragraph */

.card p {
    line-height: 1.5;
}


/* ---------------------------------------------------------
   14. CONTACT
   --------------------------------------------------------- */

.contact-section {
    background: var(--blue);

    color: var(--cream);
}


.contact-section h2 {
    max-width: 850px;
}


.contact-button {
    background: var(--yellow);

    color: var(--ink);

    border-color: var(--cream);

    box-shadow: 5px 5px 0 var(--cream);
}


.contact-button:hover {
    box-shadow: 2px 2px 0 var(--cream);
}


/* ---------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------- */

.footer {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 25px 5vw;

    font-family: "DM Mono", monospace;

    font-size: 0.75rem;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   16. MOBILE
   --------------------------------------------------------- */

@media (max-width: 760px) {

    /* Navigation */

    .navbar {
        padding: 15px 4vw;
    }


    .nav-links {
        display: none;
    }


    /* Hero */

    .hero {
        min-height: calc(100vh - 60px);

        padding: 70px 4vw;
    }


    .hero-decoration {
        width: 190px;

        top: 18%;

        right: -20px;
    }


    .hero h1 {
        font-size: clamp(4rem, 20vw, 7rem);
    }


    .hero-description {
        margin-top: 35px;
    }


    /* Sections */

    .section {
        padding: 75px 4vw;
    }


    .section h2 {
        margin-bottom: 35px;
    }


    /* About */

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

        gap: 40px;
    }


    /* Cards */

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


    .card {
        min-height: auto;

        padding: 25px;
    }


    /* Footer */

    .footer {
        flex-direction: column;

        padding: 25px 4vw;
    }

}


/* ---------------------------------------------------------
   17. EXTRA SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 430px) {

    .stamp {
        font-size: 0.7rem;

        padding: 7px 10px;
    }


    .hero h1 {
        font-size: 4rem;
    }


    .hero-description {
        font-size: 1rem;
    }


    .button {
        width: 100%;

        text-align: center;
    }


    .hero-decoration {
        width: 150px;

        top: 15%;

        right: -45px;
    }

}