/* ============================================
   Dwayne Perry — Personal Site v3
   Apple-clean + DAP IT Security brand
   ============================================ */

:root {
    /* DAP IT Brand Colors */
    --navy: #1c3243;
    --navy-deep: #131f2b;
    --navy-light: #243d52;
    --teal: #295866;
    --seafoam: #6cc0b8;
    --seafoam-dim: rgba(108, 192, 184, 0.15);
    --seafoam-glow: rgba(108, 192, 184, 0.08);
    --coral: #db544b;
    --coral-dim: rgba(219, 84, 75, 0.15);
    --amber: #fbb53a;
    --amber-dim: rgba(251, 181, 58, 0.12);

    /* Surfaces */
    --bg: #0e1a24;
    --bg-elevated: #142230;
    --bg-card: #1a2d3d;
    --bg-card-hover: #1f3548;
    --bg-glass: rgba(28, 50, 67, 0.6);

    /* Text */
    --text: #f0f4f7;
    --text-secondary: #8fa8b8;
    --text-tertiary: #4d6878;

    /* Utility */
    --border: rgba(108, 192, 184, 0.1);
    --border-hover: rgba(108, 192, 184, 0.2);
    --radius: 16px;
    --radius-sm: 10px;

    /* Fonts — Nunito Sans as Brandon Grotesque stand-in */
    --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Nunito Sans', -apple-system, sans-serif;
    --font-serif: 'Newsreader', Georgia, serif;
    --max-width: 1080px;
    --content-width: 720px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(108, 192, 184, 0.3);
    color: var(--text);
}

/* ---- Node pattern background ---- */
.node-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.node-bg canvas {
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 48px;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(14, 26, 36, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--seafoam);
}

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 100px;
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: var(--content-width);
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--seafoam);
    letter-spacing: 0.03em;
    margin-bottom: 28px;
}

.hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--seafoam);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(108, 192, 184, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(108, 192, 184, 0); }
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    color: var(--text);
}

.hero-headline em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--seafoam), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 400;
}

/* ---- Statement / Quote ---- */
.statement {
    padding: 120px 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.statement-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.statement-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.statement-quote::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--seafoam), var(--amber));
    margin-bottom: 32px;
    border-radius: 2px;
}

.statement-context {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 540px;
}

.statement-context strong {
    color: var(--seafoam);
    font-weight: 700;
}

/* ---- About (photo + quote) ---- */
.about {
    padding: 120px 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 3 / 4;
    filter: grayscale(10%);
    transition: filter 0.4s;
}

.about-photo img:hover {
    filter: grayscale(0%);
}

.about-photo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    pointer-events: none;
}

.about-text {
    max-width: 560px;
}

@media (max-width: 768px) {
    .about { padding: 80px 24px; }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-photo {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ---- Sections ---- */
.section {
    padding: 120px 48px;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-elevated);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--seafoam);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 64px;
}

/* ---- Experience Grid ---- */
.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.exp-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.exp-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.exp-card-featured {
    grid-column: 1 / -1;
    border-color: var(--border-hover);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(41, 88, 102, 0.12) 100%);
}

.exp-card-inner {
    padding: 40px;
}

.exp-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--seafoam);
    background: var(--seafoam-dim);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.exp-org {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
}

.exp-card-featured .exp-org {
    font-size: 2.4rem;
}

.exp-role {
    font-size: 0.88rem;
    color: var(--seafoam);
    font-weight: 600;
    margin-bottom: 16px;
}

.exp-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 560px;
}

.exp-domains {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.exp-domains span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.exp-card:hover .exp-domains span {
    border-color: var(--border-hover);
}

/* ---- Expertise List ---- */
.expertise-list {
    max-width: var(--content-width);
}

.expertise-row {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s;
}

.expertise-row:first-child {
    border-top: 1px solid var(--border);
}

.expertise-row:hover {
    border-color: var(--border-hover);
}

.expertise-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.expertise-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

/* ---- Sectors bar ---- */
.sectors {
    padding: 80px 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.sectors-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.sector {
    text-align: center;
}

.sector-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
}

.sector-icon.military { background: var(--coral-dim); }
.sector-icon.government { background: var(--amber-dim); }
.sector-icon.enterprise { background: var(--seafoam-dim); }
.sector-icon.bigtech { background: rgba(41, 88, 102, 0.25); }

.sector-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ---- Writing ---- */
.writing-empty {
    padding: 80px 0;
    max-width: var(--content-width);
}

.writing-soon {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.writing-desc {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* ---- Contact ---- */
.contact-section {
    padding: 140px 48px;
}

.contact-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.contact-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    gap: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    background: var(--bg-card);
}

.contact-link:hover {
    border-color: var(--seafoam);
    color: var(--seafoam);
    background: var(--seafoam-dim);
    transform: translateY(-1px);
}

/* ---- Footer ---- */
.footer {
    padding: 24px 48px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-secondary);
}

/* ---- Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav { padding: 0 24px; }
    .nav-links { display: none; }

    .hero, .section, .statement, .contact-section, .sectors {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 80px;
        min-height: auto;
    }

    .section { padding-top: 80px; padding-bottom: 80px; }
    .statement { padding-top: 80px; padding-bottom: 80px; }

    .exp-grid { grid-template-columns: 1fr; }
    .exp-card-inner { padding: 28px; }
    .exp-card-featured .exp-org { font-size: 1.8rem; }

    .sectors-inner { gap: 32px; }

    .contact-section { padding-top: 100px; padding-bottom: 100px; }
    .contact-links { flex-direction: column; align-items: flex-start; }

    .footer { padding: 20px 24px; }
}
