/* =============================================================
   FRANKLIN CRUM — Personal Site Stylesheet
   Dark, modern, masculine, clean
   ============================================================= */

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

:root {
    --bg:          #0a0e17;
    --bg-alt:      #0f1520;
    --surface:     #161d2e;
    --surface-2:   #1c2538;
    --border:      #1e293b;
    --text:        #e2e8f0;
    --text-muted:  #94a3b8;
    --text-dim:    #64748b;
    --accent:      #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-2:    #60a5fa;
    --white:       #f8fafc;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius:      10px;
    --radius-sm:   6px;
    --shadow:      0 4px 24px rgba(0,0,0,0.25);
    --transition:  0.25s ease;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ── Navigation ────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--accent-2); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-2); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}


/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59,130,246,0.06) 0%, transparent 70%),
        var(--bg);
}

.hero-content { max-width: 780px; }

.hero-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}


/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}
.btn-primary:hover {
    background: transparent;
    color: var(--accent-2);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--white);
}


/* ── Sections ──────────────────────────────────────────────── */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 48px;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin-top: 12px;
    border-radius: 2px;
}


/* ── About ─────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    gap: 48px;
}

.about-photo img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--border);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}


/* ── Skills ────────────────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.skill-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(59,130,246,0.08);
}

.skill-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.skill-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.skill-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}


/* ── Projects ──────────────────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.project-body {
    padding: 24px;
}

.project-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.project-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}


/* ── Timeline / Experience ─────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 32px;
    max-width: 720px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: border-color var(--transition);
}
.timeline-content:hover { border-color: var(--accent); }

.timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-2);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.timeline-content > p:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}


/* ── Philosophy ────────────────────────────────────────────── */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.phil-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: border-color var(--transition);
}
.phil-card:hover { border-color: var(--accent); }

.phil-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.phil-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ── Contact ───────────────────────────────────────────────── */
#contact .section-sub {
    max-width: 520px;
}

.contact-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card {
    flex: 1;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
    color: var(--text);
}
.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--white);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ── Footer ────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-dim);
}


/* ── Scroll animations ─────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: rgba(10, 14, 23, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta { text-align: center; }

    .hero { padding: 100px 20px 60px; min-height: 90vh; }
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }

    .section { padding: 64px 0; }
    .section-title { font-size: 1.6rem; }

    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }

    .about-photo img { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; gap: 12px; }
    .btn { width: 100%; text-align: center; }
    .contact-grid { flex-direction: column; }
}
