
:root {
    --background: #faf9f6;
    --text: #292a35;
    --muted: #777784;
    --lavender: #ded9ef;
    --blue: #dce9f1;
    --sage: #e2eadd;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* Ambient Background */

.ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 14s ease-in-out infinite alternate;
}

.orb.one {
    background: var(--lavender);
    top: -200px;
    left: -120px;
}

.orb.two {
    background: var(--blue);
    right: -180px;
    top: 25%;
    animation-delay: -5s;
}

.orb.three {
    background: var(--sage);
    bottom: -280px;
    left: 30%;
    animation-delay: -9s;
}

@keyframes float {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(45px, 35px) scale(1.12);
    }
}

/* Navigation */

nav {
    max-width: 1200px;
    margin: auto;
    padding: 30px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: appear 1s ease forwards;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.8px;
}

.logo span {
    font-weight: 400;
    color: var(--muted);
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    padding: 11px 21px;
    border: 1px solid #dedde3;
    border-radius: 30px;
    transition: 0.3s ease;
}

.nav-link:hover {
    background: var(--text);
    color: white;
}

/* Hero Section */

.hero {
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 110px;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #898596;
    margin-bottom: 28px;
    animation: appear 1s ease 0.2s both;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.12;
    max-width: 850px;
    animation: rise 1.2s ease 0.3s both;
}

h1 span {
    color: #9b91bb;
    font-style: italic;
}

/* Main CTA Button */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
    padding: 15px 27px;
    border-radius: 40px;
    background: var(--text);
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: 0.35s ease;
    animation: rise 1.2s ease 0.7s both;
}

.cta:hover {
    background: #77708e;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #292a3520;
}

.arrow {
    transition: transform 0.3s ease;
}

.cta:hover .arrow {
    transform: translateX(5px);
}

/* Projects Section */

.projects {
    margin-top: 55px;
    display: flex;
    justify-content: center;
    width: 100%;
    animation: rise 1.2s ease 0.9s both;
}

/* Individual Project Card */

.project-card {
    width: 190px;
    aspect-ratio: 1 / 1;
    border-radius: 25px;
    background: #eeebf5;
    transition: all 0.4s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-7px);
    background: #e5e0f0;
    box-shadow: 0 15px 35px #292a3512;
}

.project-link {
    width: 100%;
    height: 100%;
    padding: 23px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text);
}

.project-icon {
    font-size: 28px;
    color: #9990b8;
}

.project-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.project-arrow {
    font-size: 18px;
    align-self: flex-end;
    transition: transform 0.3s ease;
}

.project-card:hover .project-arrow {
    transform: translate(4px, -4px);
}

/* Divider */

.divider {
    width: 85%;
    max-width: 1100px;
    height: 1px;
    background: #e7e5e4;
    margin: auto;
}

/* Footer */

.bottom {
    padding: 35px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.bottom .tagline {
    color: #8e87a7;
}

/* Animations */

@keyframes appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Design */

@media (max-width: 600px) {

    nav {
        padding: 25px 6%;
    }

    .logo {
        font-size: 18px;
    }

    .hero {
        min-height: 78vh;
        padding: 60px 22px 85px;
    }

    h1 {
        font-size: 52px;
        letter-spacing: -1.5px;
    }

    .orb {
        width: 300px;
        height: 300px;
    }

    .projects {
        margin-top: 45px;
    }

    .project-card {
        width: 175px;
    }

    .bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.projects {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}