/* ==============================================
   Damon Earl - Resume
   Inspired by Integrated Engineering & Xodus
   ============================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-surface: #111118;
    --bg-elevated: #1a1a24;
    --bg-section-alt: #0e0e15;
    --border-color: #222233;
    --border-accent: #333345;

    --accent: #2a9680;
    --accent-hover: #2988a8;
    --accent-glow: rgba(42, 150, 128, 0.15);
    --accent-secondary: #2988a8;

    --text-primary: #f4f4f6;
    --text-secondary: #b0b0c0;
    --text-muted: #7a7a90;

    --font-heading: 'Outfit', 'Helvetica Neue', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;

    --container-width: 1100px;
    --section-padding: 120px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--accent-hover);
}

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

ul {
    list-style: none;
}

/* ============ Container ============ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ Navigation ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.nav.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--text-primary);
}

.nav-brand-first {
    font-weight: 400;
    color: var(--text-secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav-links li {
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/intro-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        transparent 30%,
        transparent 70%,
        var(--bg-primary) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 160px 24px 80px;
}

.hero-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-tagline {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 1px;
    max-width: 560px;
    margin-bottom: 48px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 14px;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============ Sections ============ */
.section {
    padding: var(--section-padding) 0;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-left: 20px;
    vertical-align: middle;
}

/* ============ About ============ */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-lead {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 400;
}

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

.about-text p:last-child {
    margin-bottom: 0;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============ Timeline / Experience ============ */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.timeline-item:first-child {
    padding-top: 0;
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.timeline-date-range {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-date-duration {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.timeline-company {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.timeline-company-meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.timeline-role {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* Roles within a parent company */
.role {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.role:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.role:first-of-type {
    padding-top: 0;
}

.role-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.role-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.role-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.role-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-list li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.role-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 2px;
    background: var(--accent);
}

.role-list li a {
    color: var(--accent);
}

.role-list li a:hover {
    color: var(--accent-hover);
}

/* ============ Skills ============ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skill-category {
    padding: 32px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    background: var(--bg-surface);
    transition: all var(--transition);
}

.skill-category:hover {
    border-left-color: var(--accent-secondary);
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.skill-tag {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: all var(--transition);
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

/* ============ Education ============ */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.education-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

.education-degree {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 4px;
}

.education-field {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.education-school {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.education-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.education-year {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============ Contact ============ */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 40px;
    transition: color var(--transition);
    letter-spacing: 1px;
}

.contact-email:hover {
    color: var(--accent-hover);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* ============ Footer ============ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============ Scroll Animations ============ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
    :root {
        --section-padding: 80px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-color);
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .hero-content {
        padding: 120px 24px 60px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title::after {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .contact-email {
        font-size: 20px;
    }

    .about-lead {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
    }

    .timeline-company {
        font-size: 18px;
    }

    .education-field {
        font-size: 20px;
    }
}

/* ============ Selection ============ */
::selection {
    background: var(--accent);
    color: #fff;
}
