/* ==========================
   VARIABLES
========================== */

:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --card-hover: #ffffff;

    --text: #18181b;
    --text-muted: #71717a;

    --accent: #6366f1;
    --accent-hover: #4f46e5;

    --border: #e4e4e7;

    --radius: 16px;
}

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

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

html {
    scroll-behavior: smooth;
}

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

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

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

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

.container {
    width: min(1100px, 90%);
    margin: auto;
}

/* ==========================
   HEADER
========================== */

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

    padding: 32px 0;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
}

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

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-muted);
    font-size: 14px;

    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

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

.hero {
    padding: 110px 0 140px;
    max-width: 760px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #eef2ff;
    border: 1px solid #e0e7ff;

    border-radius: 30px;

    padding: 7px 14px;

    font-size: 12px;
    color: #4f46e5;

    margin-bottom: 28px;
}

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

    background: #22c55e;
    border-radius: 50%;

    box-shadow: 0 0 0 3px #dcfce7;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.15;
    letter-spacing: -2px;

    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    max-width: 600px;

    color: var(--text-muted);
    font-size: 17px;

    margin-bottom: 35px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    background: var(--accent);
    color: white;

    padding: 12px 20px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 4px 12px #6366f126;

    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.hero-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);

    box-shadow: 0 6px 18px #6366f133;
}

/* ==========================
   PROJECT SECTION
========================== */

.projects {
    padding-bottom: 120px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 35px;
}

.section-label {
    color: var(--accent);

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

    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 30px;
    letter-spacing: -1px;

    margin-top: 8px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================
   PROJECT GRID
========================== */

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 300px), 1fr));

    gap: 20px;
}

/* ==========================
   PROJECT CARD
========================== */

.project-card {
    background: var(--card);

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

    padding: 28px;

    display: flex;
    flex-direction: column;

    min-height: 270px;

    box-shadow: 0 2px 8px #00000005;

    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;
}

.project-card:hover {
    transform: translateY(-5px);

    border-color: #c7d2fe;

    box-shadow:
        0 12px 30px #0000000a,
        0 4px 10px #00000005;
}

.project-icon {
    width: 45px;
    height: 45px;

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

    background: #eef2ff;
    color: var(--accent);

    border-radius: 12px;

    font-size: 22px;

    margin-bottom: 22px;
}

.project-card h3 {
    font-size: 19px;
    font-weight: 650;

    margin-bottom: 10px;
}

.project-description {
    color: var(--text-muted);
    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 25px;
}

.card-bottom {
    margin-top: auto;

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

    gap: 10px;
}

.project-tag {
    font-size: 11px;

    color: #52525b;

    background: #f4f4f5;

    padding: 5px 10px;

    border: 1px solid #e4e4e7;
    border-radius: 6px;
}

/* ==========================
   PROJECT BUTTON
========================== */

.button-wrapper {
    position: relative;
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: transparent;
    color: var(--accent);

    border: none;
    cursor: pointer;

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

    padding: 8px 0;

    transition: color 0.2s;
}

.project-button:hover {
    color: var(--accent-hover);
}

.project-button:focus-visible,
.hero-button:focus-visible,
nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ==========================
   COMING SOON POPOVER
========================== */

.popover {
    position: absolute;

    bottom: calc(100% + 12px);
    right: 0;

    width: max-content;
    max-width: min(240px, 80vw);

    padding: 12px 15px;

    background: #ffffff;
    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 10px;

    font-size: 12px;
    line-height: 1.5;

    box-shadow:
        0 10px 30px #00000014,
        0 2px 8px #00000008;

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s,
        transform 0.2s,
        visibility 0.2s;

    pointer-events: none;

    z-index: 10;
}

.popover.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.popover::after {
    content: "";

    position: absolute;

    top: 100%;
    right: 22px;

    border: 7px solid transparent;
    border-top-color: #ffffff;
}

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

footer {
    border-top: 1px solid var(--border);

    padding: 30px 0;

    display: flex;
    justify-content: space-between;

    gap: 15px;

    color: var(--text-muted);
    font-size: 12px;
}

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

@media (max-width: 700px) {

    .header {
        padding: 24px 0;
    }

    nav {
        gap: 18px;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .section-heading {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }

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

    footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}/* ==========================
   CENTERED LAYOUT
========================== */

/* Header */

.header {
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    text-align: center;
}

nav {
    justify-content: center;
}

/* Hero */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 850px;
    margin: 0 auto;

    text-align: center;
}

.hero h1 {
    text-align: center;
}

.hero p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Projects Heading */

.section-heading {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;
    text-align: center;
}

.section-heading h2 {
    text-align: center;
}

.section-heading p {
    text-align: center;
}

/* Project Grid */

.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
}

/* Project Cards */

.project-card {
    flex: 0 1 340px;

    align-items: center;
    text-align: center;
}

.project-icon {
    margin-left: auto;
    margin-right: auto;
}

.project-description {
    text-align: center;
}

/* Card Footer */

.card-bottom {
    width: 100%;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;
}

/* Footer */

footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    gap: 6px;
}

/* Mobile */

@media (max-width: 700px) {

    .hero {
        padding: 75px 0 95px;
    }

    .project-card {
        flex: 1 1 100%;
        max-width: 420px;
    }

    .section-heading {
        align-items: center;
    }

}