/* ============================================
   AARON STRICKLAND — PORTFOLIO
   Terminal meets Magazine
   ============================================ */

:root {
    --bg: #0a0a0f;
    --bg-light: #111118;
    --bg-card: #16161f;
    --text: #e8e8ed;
    --text-dim: #9b9bab;
    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.1);
    --mono: 'Space Mono', monospace;
    --sans: 'Inter', -apple-system, sans-serif;
    --border: #1e1e2a;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }

/* SELECTION */
::selection { background: var(--accent); color: var(--bg); }

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: var(--mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); opacity: 1; }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem 4rem;
    position: relative;
}
.hero-noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-terminal {
    max-width: 600px;
    height: 150px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}
.terminal-body { padding: 1.25rem; }
.terminal-line {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.typed-wrap {
    flex: 1;
    word-break: break-word;
}
.typed-text {
    white-space: pre-wrap;
}
.prompt { color: var(--text-dim); }
.cursor {
    animation: blink 1s step-end infinite;
    font-size: 0.9rem;
    line-height: 1;
}
@keyframes blink {
    50% { opacity: 0; }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}
.hero-line { display: block; }
.accent { color: var(--accent); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.stat { font-weight: 500; color: var(--text); }
.stat-sep { color: var(--accent); }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}
.hero-cta:hover {
    background: var(--accent);
    color: var(--bg);
    opacity: 1;
}
.arrow {
    transition: transform 0.3s;
}
.hero-cta:hover .arrow { transform: translateY(3px); }
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-cta-outline {
    color: var(--text-dim);
    border-color: var(--border);
}
.hero-cta-outline:hover {
    background: var(--text-dim);
    color: var(--bg);
    border-color: var(--text-dim);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    padding: 0 3rem;
}
.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    padding: 0 3rem;
    margin-bottom: 4rem;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 0 3rem;
    align-items: start;
}
.about-file {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}
.file-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}
.file-meta { margin-left: auto; font-size: 0.7rem; }
.file-icon { font-size: 0.9rem; }
.file-body { padding: 2rem; }
.file-body p { margin-bottom: 1.25rem; color: var(--text); font-size: 1.05rem; line-height: 1.7; }
.about-lead {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: var(--text) !important;
}
.file-body strong { color: var(--accent); font-weight: 600; }
.about-sig { font-family: var(--mono); font-size: 0.85rem; margin-top: 1.5rem; }

.about-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.aside-block {
    padding: 1.25rem;
    border-left: 2px solid var(--accent);
    background: var(--bg-light);
}
.aside-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.aside-value { font-weight: 600; font-size: 1rem; }
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.3rem;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================
   WORK
   ============================================ */
.work {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}
.projects {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 3rem;
}
.project {
    display: grid;
    grid-template-columns: auto 1fr 300px;
    gap: 2rem;
    align-items: center;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.project:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.project--featured {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-card) 100%);
    border-color: rgba(0, 255, 136, 0.2);
}
.project--featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 2.5rem;
    transform: rotate(45deg);
    letter-spacing: 0.1em;
}
.project-number {
    font-family: var(--mono);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bg-card);
    -webkit-text-stroke: 1px var(--border);
    line-height: 1;
    min-width: 80px;
}
.project--featured .project-number {
    -webkit-text-stroke: 1px rgba(0, 255, 136, 0.3);
}
.project-content { flex: 1; }
.project-name {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.project-tagline {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.project-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 550px;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.project-tech span {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-dim);
    background: var(--bg);
}
.project-link {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
}
.project-img {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-frame .frame-phone {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.phone-frame .frame-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18%;
    height: auto;
    border-radius: 22%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ============================================
   OPEN SOURCE
   ============================================ */
.opensource {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}
.oss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 0 3rem;
}
.oss-card {
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
}
.oss-badge {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}
.oss-name {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.oss-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   TECH STACK
   ============================================ */
.stack {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 3rem;
}
.stack-category {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    transition: border-color 0.3s;
}
.stack-category:hover { border-color: var(--accent); }
.stack-cat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.stack-cat-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
}
.stack-icon { font-size: 1.3rem; }
.stack-items { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stack-items span {
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-dim);
    transition: all 0.2s;
}
.stack-items span:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.contact .section-label { text-align: left; }
.contact-content { padding: 0 3rem; }
.contact-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}
.contact-terminal {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}
.contact-val {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.contact-btn {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    transition: all 0.3s;
}
.contact-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); font-size: 0.8rem; }
.footer-links a:hover { color: var(--accent); }

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal, .reveal-delay, .reveal-delay-2, .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-delay { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal.visible, .reveal-delay.visible, .reveal-delay-2.visible, .reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.75rem; }
    
    .hero { padding: 4rem 1.5rem 3rem; }
    .section-label { padding: 0 1.5rem; }
    .section-title { padding: 0 1.5rem; }
    
    .about-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .projects { padding: 0 1.5rem; }
    .project {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .project-number {
        font-size: 2.5rem;
        min-width: auto;
    }
    .project-img {
        width: 100%;
        height: 200px;
        order: -1;
    }
    .project--featured::before { display: none; }
    
    .oss-grid { grid-template-columns: 1fr; margin: 0 1.5rem; }
    .oss-card { padding: 2rem; }
    .stack-grid { padding: 0 1.5rem; }
    .contact-content { padding: 0 1.5rem; }
    .footer { padding: 2rem 1.5rem; }
}

@media (max-width: 600px) {
    .nav-links a:nth-child(3),
    .nav-links a:nth-child(4) { display: none; }
    
    .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero-stats { font-size: 0.85rem; }
    
    .section-title { font-size: 2.2rem; margin-bottom: 2.5rem; }
    
    .stack-grid { grid-template-columns: 1fr; }
    
    .contact-title { font-size: 2rem; }
    .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}
