/* ============================================
   Chris Teceno — Portfolio
   ============================================ */

/* --- Reset & Base --- */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f0f1a;
    color: #e0e0e8;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #90caf9;
}

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

/* --- Layout --- */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* --- Navigation --- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-logo:hover {
    color: #64b5f6;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #a0a0b0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* --- Hero --- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero-headshot {
    width: 160px;
    height: 160px;
    min-width: 160px;
    min-height: 160px;
    max-width: 160px;
    max-height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 3px solid rgba(100, 181, 246, 0.3);
    margin-bottom: 1.5rem;
}

.hero-greeting {
    font-size: 1.1rem;
    color: #64b5f6;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 1.25rem;
    color: #a0a0b0;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #787890;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #64b5f6;
    color: #0f0f1a;
}

.btn-primary:hover {
    background: #90caf9;
    color: #0f0f1a;
}

.btn-secondary {
    background: rgba(100, 181, 246, 0.1);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.25);
}

.btn-secondary:hover {
    background: rgba(100, 181, 246, 0.18);
    color: #90caf9;
    border-color: rgba(100, 181, 246, 0.4);
}

/* --- Section Titles --- */

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #64b5f6;
    border-radius: 2px;
}

/* --- About --- */

.about {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #c0c0d0;
}

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

/* --- Projects --- */

.projects {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Featured Project */

.featured-project {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: border-color 0.3s ease;
}

.featured-project:hover {
    border-color: rgba(100, 181, 246, 0.25);
}

.featured-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64b5f6;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.featured-description {
    color: #a0a0b0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.featured-metrics {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #64b5f6;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.8rem;
    color: #787890;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.featured-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Tech Badges */

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(100, 181, 246, 0.08);
    color: #80b8e0;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(100, 181, 246, 0.12);
}

/* Project Grid */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.project-description {
    font-size: 0.9rem;
    color: #8888a0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- Experience Timeline --- */

.experience {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(100, 181, 246, 0.15);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #0f0f1a;
    border: 2px solid #64b5f6;
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64b5f6;
    letter-spacing: 0.02em;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0.25rem;
}

.timeline-org {
    font-size: 0.95rem;
    color: #a0a0b0;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #787890;
    line-height: 1.6;
    max-width: 600px;
}

/* --- Skills --- */

.skills {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.55rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    color: #c0c0d0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: rgba(100, 181, 246, 0.1);
    border-color: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}

/* --- Contact --- */

.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-text {
    font-size: 1.1rem;
    color: #a0a0b0;
    margin-bottom: 2rem;
    max-width: 500px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    transition: border-color 0.2s ease;
    max-width: 400px;
}

.contact-item:hover {
    border-color: rgba(100, 181, 246, 0.25);
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64b5f6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1rem;
    color: #c0c0d0;
    font-weight: 500;
}

/* --- Footer --- */

.footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: #505068;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .featured-project {
        padding: 1.75rem;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    .featured-metrics {
        gap: 1.5rem;
    }

    .metric-value {
        font-size: 1.4rem;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-marker {
        left: -2rem;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

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

    .hero-links .btn {
        text-align: center;
    }

    .featured-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-links {
        flex-direction: column;
    }

    .featured-links .btn {
        text-align: center;
    }
}
