/*
    Styling for the website
*/

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

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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #22519F;
    --heading: #F0AFF2;
    --accent: #002564;
    --text: rgba(255, 255, 255, 0.85);
}

/* =========================
   BODY
   ========================= */

body {
    font-family: 'Canva Sans', 'Inter', sans-serif;

    overflow-x: hidden;

    background:
        radial-gradient(circle at top left,
        rgba(240,175,242,0.18),
        transparent 30%),

        radial-gradient(circle at bottom right,
        rgba(0,0,0,0.25),
        transparent 35%),

        linear-gradient(
            135deg,
            #22519F 0%,
            #173b78 100%
        );

    min-height: 100vh;
}

/* =========================
   FONTS
   ========================= */

@font-face {
    font-family: 'Horizon';
    src: url('/static/fonts/Horizon.otf') format('opentype');
}

@font-face {
    font-family: 'Horizon Outline';
    src: url('/static/fonts/Horizon_Outlined.otf') format('opentype');
}

/* =========================
   TYPOGRAPHY
   ========================= */

p {
    max-width: 700px;

    font-size: 18px;

    line-height: 1.9;

    color: var(--text);

    text-align: justified;

    margin: 0 auto;
}

h1,
h2,
h3 {
    font-family: 'Horizon', sans-serif;

    color: var(--heading);

    line-height: 0.85;

    letter-spacing: 1px;

    margin-bottom: 20px;

    transition: all 0.3s ease;

    overflow-wrap: break-word;
}

h2 {
    font-size: 2.6rem;

    position: relative;

    display: inline-block;
}

h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 50px;
    height: 3px;

    background: var(--heading);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);

    line-height: 0.9;

    letter-spacing: 1px;

    word-break: normal;

    overflow-wrap: normal;

    max-width: 12ch;

    color: var(--heading);

    margin-bottom: 30px;
}

.hero-title span {
    display: block;

    font-size: 0.55em;

    opacity: 0.7;

    color: var(--accent);

    transition: transform 0.3s ease;
}

.hero-title:hover span {
    transform: translateX(5px);
}

/* =========================
   LAYOUT
   ========================= */

section {
    width: min(100%, 1200px);

    margin: 0 auto;

    padding: 6rem 2rem;
}

.container {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;
}

.center {
    display: flex;

    justify-content: center;

    margin-top: 20px;
}

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

.hero {
    width: 100%;
}

.hero-grid {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 4rem;
}

.hero-title-block,
.hero-card {
    flex: 1;
}

/* =========================
   REVERSED DESKTOP LAYOUT
   ========================= */

.reverse .hero-grid {
    flex-direction: row-reverse;
}

/* =========================
   TITLE BLOCK
   ========================= */

.hero-title-block {
    display: flex;

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

.hero-title-block h2 {
    max-width: 100%;

    line-height: 0.9;
}

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

.hero-card {
    display: flex;

    flex-direction: column;

    gap: 2rem;
}

.hero-card p {
    max-width: 100%;
}

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

.button {
    display: inline-flex;

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

    width: fit-content;

    background: linear-gradient(
        90deg,
        #d9a6d6,
        #8b6bbd
    );

    color: var(--accent);

    padding: 12px 22px;

    border: none;

    border-radius: 12px;

    font-family: 'Horizon', sans-serif;

    font-size: 13px;

    letter-spacing: 1px;

    text-decoration: none;

    cursor: pointer;

    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);

    transition: all 0.2s ease;
}

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

    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
}

/* =========================
   GLASS CARD
   ========================= */

.glass-card {
    width: 100%;

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

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

    border-radius: 32px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 10px 40px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.05);

    padding: clamp(1.5rem, 4vw, 4rem);
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: sticky;

    top: 20px;

    width: fit-content;

    margin: 0 auto;

    padding: 0.75rem;

    z-index: 1000;
}

.navbar nav {
    display: flex;

    gap: 1rem;

    padding: 0.8rem 1rem;

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

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

    border-radius: 999px;

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

    box-shadow:
        0 8px 30px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.navbar a {
    display: flex;

    align-items: center;

    gap: 0.7rem;

    padding: 0.75rem 1.5rem;

    border-radius: 999px;

    color: rgba(255,255,255,0.75);

    text-decoration: none;

    font-family: 'Horizon', sans-serif;

    font-size: clamp(0.75rem, 1vw, 1rem);

    transition: all 0.3s ease;
}

.navbar a:hover {
    color: white;

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

    transform: translateY(-2px);
}

.navbar a.active {
    color: var(--heading);

    background: rgba(240,175,242,0.12);

    box-shadow:
        0 0 12px rgba(240,175,242,0.12);
}

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

.about-page {
    min-height: 100vh;

    display: flex;

    flex-direction: column;

    gap: 2rem;
}

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

.contact-page {
    min-height: 70vh;

    width: min(100%, 1100px);

    margin: 6rem auto;

    display: flex;

    flex-direction: column;

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

    gap: 2rem;

    text-align: center;
}

.contact-links {
    display: flex;

    gap: 1rem;

    flex-wrap: wrap;
}

.contact-button {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.7rem;

    padding: 14px 24px;

    border-radius: 12px;

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition: all 0.3s ease;
}

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

.email {
  background: #f5945c;
}

.whatsapp {
    background: #25D366;
}

.github {
    background: #3f4141;
}

.linkedin {
    background: #0763c1;
}

/* =========================
   CONSULTATION SECTION
   ========================= */

.consultation-section {
    margin-top: 6rem;

    text-align: center;
}

.consultation-section h2::after {
    content: none;
}

.consultation-section p {
    max-width: 750px;

    margin: 0 auto 2.5rem;
}

.consultation-buttons {
    display: flex;

    justify-content: center;

    gap: 1rem;

    flex-wrap: wrap;
}

.consultation-heading {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1rem;

    margin-bottom: 2rem;
}

.heading-line {
    width: 80px;
    height: 4px;

    background: var(--heading);

    border-radius: 999px;

    opacity: 0.8;
}

.consultation-heading h2 {
    font-size: clamp(1rem, 6vw, 1.5rem);
}

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

.footer {
    margin-top: 8rem;

    padding: 5rem 10% 2rem;

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

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

    backdrop-filter: blur(12px);
}

.footer-container {
    display: grid;

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

    gap: 4rem;

    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: clamp(1rem, 6vw, 3rem);

    line-height: 0.9;

    word-break: break-word;
}

.footer-brand p {
    max-width: 500px;
}

.footer-nav,
.footer-contact {
    display: flex;

    flex-direction: column;

    gap: 1rem;
}

.footer h4 {
    color: white;

    font-size: 1rem;

    text-transform: uppercase;
}

.footer a {
    width: fit-content;

    color: var(--text);

    text-decoration: none;

    transition: 0.3s ease;
}

.footer a:hover {
    color: var(--heading);

    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;

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

    text-align: center;
}

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

@media (max-width: 700px) {

    section {
        width: 100%;

        padding: 3rem 1.25rem;
    }

    p {
        font-size: 1rem;

        line-height: 1.7;
    }

    h1 {
        font-size: 2rem;

        line-height: 0.95;

        letter-spacing: 0.5px;
    }

    h2 {
        font-size: 1.6rem;

        line-height: 0.95;

        letter-spacing: 0.5px;

        max-width: 100%;
    }

    .hero-title {
    font-size: clamp(1.2rem, 7vw, 2.4rem);

    line-height: 0.9;

    letter-spacing: 0.5px;

    max-width: 100%;
}

    .hero-grid,
    .reverse .hero-grid {
        flex-direction: column;

        gap: 2rem;
    }

    .hero-title-block,
    .hero-card {
        width: 100%;
    }

    .hero-title-block {
        justify-content: flex-start;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .hero-card p {
        font-size: 1rem;

        line-height: 1.7;
    }

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

        text-align: center;
    }

    .footer-brand,
    .footer-nav,
    .footer-contact {
        align-items: center;

        text-align: center;
    }

    .consultation-buttons,
    .contact-links {
        flex-direction: column;
    }

    .button,
    .contact-button {
        width: 100%;
    }

    .contact-page,
    .about-page,
    .consultation-section {
        padding: 2rem 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    /* MOBILE NAV */

    .navbar {
        position: fixed;

        bottom: 20px;
        left: 50%;

        transform: translateX(-50%);

        top: unset;

        z-index: 9999;
    }

    .navbar nav {
        gap: 0.5rem;

        padding: 0.7rem;
    }

    .navbar a {
        width: 52px;
        height: 52px;

        justify-content: center;

        padding: 0;

        border-radius: 50%;
    }

    .navbar a span {
        display: none;
    }

    .navbar a i {
        font-size: 1rem;
    }
}