/* Self-hosted Inter (variable), privacy.html promises no font CDNs. */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0d1117;
    --card: rgba(26, 31, 46, 0.9);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.42);
    --accent: #4a90d9;
    --amber: #fca01a;
    --high: #69d84f;
    --low: #e06c75;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Big icon panel for project cards that don't have screenshots yet */
.project-glyph {
    width: 220px;
    max-width: 60vw;
    aspect-ratio: 1;
    border-radius: 28px;
    background:
        radial-gradient(300px 200px at 50% 20%, rgba(252, 160, 26, 0.18), transparent 70%),
        var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    font-size: 96px;
}

/* App-icon chip beside each project title. The source PNGs already sit on
   the site's dark background, so a rounded squircle with a hairline border
   and soft shadow reads like a native home-screen icon, subtle but sleek. */
.project-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    transition: transform 0.2s ease;
}
/* Gentle lift in sympathy with the card's own hover. */
.project-card:not(.border-dashed):hover .project-icon {
    transform: translateY(-1px) scale(1.03);
}

/* Typography & Links */
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }

.text-accent { color: var(--accent) !important; }
.text-muted-custom { color: var(--muted) !important; }
.border-custom { border-color: var(--border) !important; }
.hover-accent:hover { color: var(--accent) !important; }

/* Layout Elements */
.site-header {
    background: rgba(13, 17, 23, 0.85); /* Slightly transparent for blur */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.section-work {
    background-color: rgba(0, 0, 0, 0.15); /* Subtly darker section */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Consistent vertical rhythm for every main section, so the page
   doesn't "jump" between different paddings/margins section to section. */
.section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Shared eyebrow label (small accent pill above each section heading).
   Every section uses this so the header rhythm is identical throughout. */
.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    background-color: rgba(74, 144, 217, 0.15);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

/* Buttons */
.btn-custom {
    background-color: var(--text);
    color: var(--bg);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    transition: background 0.18s ease, transform 0.12s ease;
}
.btn-custom:hover {
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Bold primary CTA, used for "Visit Tideline NZ" */
.btn-tideline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 12px;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 22px rgba(74, 144, 217, 0.35);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.btn-tideline:hover {
    background-color: #5b9fe4;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(74, 144, 217, 0.45);
}
.btn-tideline i {
    font-size: 1.05rem;
    transition: transform 0.15s ease;
}
.btn-tideline:hover i {
    transform: translateX(3px);
}

.bg-accent-soft {
    background-color: rgba(74, 144, 217, 0.15); /* Tinted version of your accent */
}

/* Project Cards */
.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:not(.border-dashed):hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.border-dashed {
    border-style: dashed !important;
    border-color: var(--border) !important;
}

/* Badges */
.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(74, 144, 217, 0.15);
    color: var(--accent);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--muted);
    transition: all 0.15s ease;
}
.store-badge:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

/* Freshly launched store, brighter than its siblings until the news goes stale */
.store-badge-new {
    color: var(--text);
    border-color: rgba(105, 216, 79, 0.4);
}
.store-badge-new:hover {
    color: var(--text);
    border-color: var(--high);
}
.store-badge-flag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(105, 216, 79, 0.16);
    color: var(--high);
}

/* The Custom Phone Mockup */
.phone-showcase {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: start;
    padding: 24px 0 24px 24px;
    min-height: 380px;
}
.phone-mock {
    grid-area: 1 / 1;
    width: 190px;
    border-radius: 26px;
    overflow: hidden;
    border: 6px solid #000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    background: var(--bg);
}
.phone-mock img { display: block; width: 100%; height: auto; }
.phone-mock-back {
    transform: rotate(9deg) translate(44px, 20px);
    opacity: 0.7;
    filter: brightness(0.6);
    z-index: 1;
}
.phone-mock-front {
    transform: rotate(-7deg);
    z-index: 2;
}

@media (max-width: 768px) {
    .phone-showcase {
        width: 100%;
        max-width: 300px;
        min-height: 340px;
        padding: 16px 0 16px 16px;
        margin: 0 auto;
    }
}