/* ==========================================================================
   Blitz — One Piece themed portfolio + contact
   Discord-inspired styling
   ========================================================================== */

/* Discord-like typeface. "Nunito Sans" is a free, geometric humanist sans
   that closely echoes Discord's "gg sans" / Whitney feel. */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900&display=swap');

:root {
    /* Discord palette */
    --blurple: #5865F2;
    --blurple-hover: #4752c4;
    --bg-darkest: #16171b;
    --bg-dark: #1e2124;
    --bg-panel: #2b2d31;
    --bg-panel-2: #313338;
    --bg-input: #1e1f22;
    --stroke: #3a3d44;
    --text: #f2f3f5;
    --text-muted: #b5bac1;
    --text-faint: #949ba4;
    --green: #23a559;
    --green-hover: #1e8a4b;

    /* One Piece accents */
    --straw: #f4c542;   /* straw hat gold */
    --red: #d84343;     /* straw hat band red */

    --radius: 30px;
    --radius-sm: 18px;
    --radius-pill: 999px;
    --maxw: 1080px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --font: "Nunito Sans", "gg sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

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

img { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------- Nav bar -------------------------------- */
.nav {
    position: sticky;
    top: 16px;
    z-index: 50;
    background: transparent;
    margin-top: 16px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(24, 26, 30, 0.42);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 20px; }

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--straw);
    box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.15);
}

.brand span { color: var(--text); }
.brand .dot { color: var(--straw); }

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 15px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover { background: var(--bg-panel); color: var(--text); }
.nav-links a.active { background: var(--blurple); color: #fff; }

.nav-cta {
    background: var(--blurple);
    color: #fff !important;
}
.nav-cta:hover { background: var(--blurple-hover) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* -------------------------------- Buttons ------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    font-family: var(--font);
    transition: transform 0.14s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blurple); color: #fff; box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35); }
.btn-primary:hover { background: var(--blurple-hover); }

.btn-ghost { background: var(--bg-panel); color: var(--text); }
.btn-ghost:hover { background: var(--bg-panel-2); }

/* Translucent "glass" button — lets the background show through */
.btn-glass {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.20); border-color: rgba(255, 255, 255, 0.4); }

.btn svg { width: 18px; height: 18px; }
.btn-icon-r svg { order: 2; }

.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(35, 165, 89, 0.32); }
.btn-green:hover { background: var(--green-hover); }

.btn-block { width: 100%; justify-content: center; }

/* --------------------------------- Hero --------------------------------- */
.hero {
    position: relative;
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/op_hero_bg.png') center/cover no-repeat;
    transform: scale(1.06);
    animation: slowpan 24s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(15,16,20,0.35) 0%, rgba(15,16,20,0.78) 70%, rgba(15,16,20,0.95) 100%);
}

@keyframes slowpan {
    from { transform: scale(1.06) translateY(0); }
    to   { transform: scale(1.12) translateY(-14px); }
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 22px;
    border: 3px solid var(--straw);
    box-shadow: 0 0 0 6px rgba(244, 197, 66, 0.12), var(--shadow);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 800;
    color: var(--straw);
    margin-bottom: 14px;
    background: rgba(244, 197, 66, 0.12);
    border: 1px solid rgba(244, 197, 66, 0.3);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
}

.hero h1 { font-size: clamp(44px, 8vw, 82px); font-weight: 900; line-height: 1.02; }
.hero h1 .accent { color: var(--straw); }

.hero .subtitle {
    margin-top: 16px;
    font-size: clamp(16px, 2.4vw, 21px);
    color: var(--text-muted);
    font-weight: 600;
}

.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -------------------------------- Socials ------------------------------- */
.socials { margin-top: 40px; display: flex; justify-content: center; gap: 20px; }

.social {
    width: 68px;
    height: 68px;
    background: rgba(43, 45, 49, 0.6);
    border: 1px solid var(--stroke);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.social:hover { transform: translateY(-5px) scale(1.05); background: var(--blurple); border-color: var(--blurple); }
.social img { width: 32px; height: 32px; }
.social .plus { color: var(--text); font-size: 30px; font-weight: 700; }

/* -------------------------------- Sections ------------------------------ */
.section { position: relative; padding: 84px 0; }

.section-map {
    background: url('../images/op_section_bg.png') center/cover fixed no-repeat;
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}
.section-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 20, 0.72);
}
.section-map .wrap { position: relative; z-index: 2; }

/* Themed page-header bands with their own Grand Line background */
.hero-band { position: relative; overflow: hidden; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.hero-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
}
.hero-band::after { content: ""; position: absolute; inset: 0; background: rgba(13, 14, 18, 0.74); }
.hero-band .wrap { position: relative; z-index: 2; }
.hero-band.islands::before { background-image: url('../images/op_islands_bg.png'); transform: scale(1.22); }
.hero-band.islands::after {
    background: linear-gradient(180deg, rgba(13, 14, 18, 0.12) 0%, rgba(13, 14, 18, 0.30) 100%);
}
.hero-band.islands .section-head h2,
.hero-band.islands .section-head p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-band.harbor::before { background-image: url('../images/op_harbor_bg.png'); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--straw); }
.section-head h2 { font-size: clamp(30px, 5vw, 44px); }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 17px; }

/* --------------------------------- Grid --------------------------------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--bg-panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--blurple); box-shadow: var(--shadow); }

.card .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--straw);
    margin-bottom: 12px;
    background: rgba(244, 197, 66, 0.12);
    border: 1px solid rgba(244, 197, 66, 0.28);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
}

/* Portfolio role cards: centered custom crest image */
.card-role { text-align: center; }
.card-role .chips { justify-content: center; }
.card-crest {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    border: 3px solid var(--straw);
    background: var(--bg-input);
    box-shadow: 0 0 0 6px rgba(244, 197, 66, 0.10), 0 10px 26px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}
.card-role:hover .card-crest { transform: translateY(-4px) rotate(-3deg) scale(1.04); }

/* Gentle floating motion */
.float { animation: float 5s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}
.card h3 { font-size: 21px; }
.card p { color: var(--text-muted); margin: 10px 0 0; font-size: 15px; }

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blurple), #7b84ff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; stroke: #fff; }

.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--stroke);
    padding: 5px 11px;
    border-radius: 999px;
}

/* --------------------------------- Stats -------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.stat { text-align: center; }
.stat .num { font-size: 40px; font-weight: 900; color: var(--straw); }
.stat .lbl { color: var(--text-muted); font-size: 14px; font-weight: 700; }

/* --------------------------- Contact / ticket --------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }

.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 30px;
}
.info-card h3 { font-size: 24px; }
.info-card > p { color: var(--text-muted); margin-top: 10px; }

.info-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex; align-items: center; justify-content: center;
}
.info-list .ico svg { width: 20px; height: 20px; stroke: var(--straw); }
.info-list .t { font-weight: 800; }
.info-list .s { color: var(--text-faint); font-size: 14px; }

.form-card {
    background: var(--bg-panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.field label .req { color: var(--red); }

.input, .select, .textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    padding: 12px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--blurple);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.28);
}
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; cursor: pointer; }

.form-note { margin-top: 14px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* Success ticket */
.ticket {
    display: none;
    text-align: center;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: rgba(35, 165, 89, 0.12);
    border: 1px solid rgba(35, 165, 89, 0.4);
    margin-bottom: 18px;
    color: #b9f6ca;
}
.ticket.show { display: block; animation: pop 0.3s ease; }
.ticket .tid { font-weight: 900; color: var(--green); }
.ticket.error {
    background: rgba(216, 67, 67, 0.12);
    border-color: rgba(216, 67, 67, 0.45);
    color: #ffb4b4;
}
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Discord username verify indicator */
.verify { margin-top: 8px; font-size: 13px; font-weight: 700; display: none; align-items: center; gap: 7px; }
.verify.show { display: flex; }
.verify.ok { color: var(--green); }
.verify.bad { color: var(--red); }
.verify.checking { color: var(--text-faint); }
.verify svg { width: 15px; height: 15px; flex: 0 0 auto; }

.error-text { color: var(--red); font-size: 13px; font-weight: 700; margin-top: 6px; display: none; }
.field.invalid .input,
.field.invalid .select,
.field.invalid .textarea { border-color: var(--red); }
.field.invalid .error-text { display: block; }

/* -------------------------------- Footer -------------------------------- */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--stroke);
    background: var(--bg-darkest);
    padding: 30px 0;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--text-faint); font-size: 14px; margin: 0; }
.footer .brand { font-size: 16px; }

/* ------------------------------ Animations ------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 860px) {
    .grid, .grid-2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }

    .nav-links {
        position: absolute;
        top: 74px; left: 8px; right: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(30, 33, 36, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: var(--radius);
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
        padding: 12px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}

@media (max-width: 520px) {
    .field.row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
}
