/* ===== THEME VARIABLES ===== */
:root {
    --bg: #0b0f19;
    --surface: rgba(255, 255, 255, 0.04);
    --card: rgba(255, 255, 255, 0.06);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.7);
    --line: rgba(255, 255, 255, 0.12);
    --brand: #60a5fa;
    --emerald: #10b981;
    --accent: #a78bfa;
    --shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

/* Light mode */
body.light {
    --bg: #f9fafb;
    --surface: rgba(0, 0, 0, 0.03);
    --card: rgba(255, 255, 255, 0.85);
    --text: #0b0f19;
    --muted: rgba(17, 24, 39, 0.75);
    --line: rgba(17, 24, 39, 0.12);
    --brand: #2563eb;
    --emerald: #059669;
    --accent: #7c3aed;
    --shadow: 0 10px 30px rgba(37, 99, 235, 0.18);
}

/* ===== GLOBAL ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--bg) 75%, transparent);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}
.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}
.logo {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text);
}
.logo span {
    color: var(--brand);
    transition: color 0.6s ease;
}
.logo:hover span {
    color: var(--accent);
}

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

.btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    width: fit-content;
    text-decoration: none;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--brand), var(--emerald), var(--accent));
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 0;
}
.btn:hover::before {
    opacity: 0.3;
    transform: scale(1);
}
.btn:hover {
    color: var(--text);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow);
}
.btn.primary {
    border: none;
    background: linear-gradient(90deg, var(--brand), var(--emerald));
    color: white;
    transition: transform 0.4s ease, box-shadow 0.5s ease, filter 0.4s ease;
}
.btn.primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
    filter: brightness(1.05);
}


/* ===== LINKS ===== */
.links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.links a {
    color: var(--muted);
    text-decoration: none;
    position: relative;
    transition: color 0.4s ease;
}
.links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, var(--brand), var(--accent));
    transition: width 0.4s ease;
}
.links a:hover {
    color: var(--text);
}
.links a:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: radial-gradient(1000px 400px at 10% -10%, color-mix(in oklab, var(--brand) 25%, transparent), transparent 60%),
    radial-gradient(800px 300px at 110% 10%, color-mix(in oklab, var(--emerald) 25%, transparent), transparent 65%);
    transition: background 0.5s ease;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    font-size: 12px;
}
.lede {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--muted);
    max-width: 60ch;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

/* Animated floating glow orbs */
.hero-art {
    position: relative;
    height: 280px;
}
.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.75;
    animation: float 8s ease-in-out infinite alternate;
}
.orb-emerald {
    width: 220px;
    height: 220px;
    right: 12%;
    top: 10%;
    background: color-mix(in oklab, var(--emerald) 55%, transparent);
}
.orb-blue {
    width: 160px;
    height: 160px;
    right: 30%;
    top: 45%;
    background: color-mix(in oklab, var(--brand) 60%, transparent);
}
@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(-20px); }
}

/* ===== CARDS & TILES ===== */
.card, .tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}
.card::before, .tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand), var(--emerald), var(--accent));
    opacity: 0;
    transform: scale(1.3);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 0;
}
.card:hover::before, .tile:hover::before {
    opacity: 0.15;
    transform: scale(1);
}
.card > *, .tile > * {
    position: relative;
    z-index: 1;
}
.card:hover, .tile:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.35);
}

/* ===== GRADIENT HEADING ===== */
.grad {
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== STATISTICS ===== */
.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-num {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--brand), var(--emerald));
    -webkit-background-clip: text;
    color: transparent;
}
.stat-label {
    color: var(--muted);
    font-weight: 600;
}

/* ===== LAYOUT ===== */
.wrap {
    width: min(1200px, 100% - 48px);
    margin-inline: auto;
}
.section {
    padding: 80px 0;
}
.grid {
    display: grid;
    gap: 18px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .grid.two, .grid.three { grid-template-columns: 1fr; }
}

/* ===== CHECKLIST ===== */
.checklist {
    padding-left: 0;
    list-style: none;
}
.checklist li {
    padding-left: 28px;
    position: relative;
    margin: 10px 0;
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--emerald));
    box-shadow: 0 2px 10px color-mix(in oklab, var(--brand) 40%, transparent);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0 60px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    transition: border-color 0.4s ease, color 0.4s ease;
}

/* ===== SMOOTH REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* === BACK TO PORTFOLIO BUTTON === */
/*.back-btn {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 6px;*/
/*    padding: 8px 14px;*/
/*    font-size: 14px;*/
/*    font-weight: 500;*/
/*    border-radius: 8px;*/
/*    text-decoration: none;*/
/*    color: var(--text, #e5e7eb);*/
/*    background: rgba(255, 255, 255, 0.08);*/
/*    border: 1px solid rgba(255, 255, 255, 0.15);*/
/*    backdrop-filter: blur(8px);*/
/*    transition: all 0.35s ease;*/
/*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);*/
/*}*/

/*.back-btn:hover {*/
/*    transform: translateY(-2px);*/
/*    background: linear-gradient(90deg, #3b82f6, #10b981);*/
/*    color: #fff;*/
/*    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);*/
/*}*/

/*!* === Light Mode Variant === *!*/
/*body.light-mode .back-btn {*/
/*    background: rgba(255, 255, 255, 0.9);*/
/*    color: #1e293b;*/
/*    border-color: rgba(0, 0, 0, 0.1);*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
/*}*/

/*body.light-mode .back-btn:hover {*/
/*    background: linear-gradient(90deg, #10b981, #3b82f6);*/
/*    color: #fff;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);*/
/*}*/
/*.back-btn {*/
/*    opacity: 0;*/
/*    animation: fadeIn 0.6s ease forwards;*/
/*    animation-delay: 0.3s;*/
/*}*/

/*@keyframes fadeIn {*/
/*    from { opacity: 0; transform: translateY(-5px); }*/
/*    to { opacity: 1; transform: translateY(0); }*/
/*}*/

/* === BACK TO PORTFOLIO BUTTON (Centered Below Footer) === */
.back-btn-container {
    text-align: center;
    /*margin: 2rem 0 4rem;*/
    animation: fadeInUp 0.8s ease forwards;
    bottom: 2rem;
    position: relative;
    padding-bottom: 25px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, #3b82f6, #10b981);
    color: #fff;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

/* === Light Mode Variant === */
body.light-mode .back-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

body.light-mode .back-btn:hover {
    background: linear-gradient(90deg, #10b981, #3b82f6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* === Subtle fade-in on page load === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
