/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-tint: rgba(100, 255, 218, 0.1);
    --font-sans: 'Inter', -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--navy);
    color: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 450px;
    height: 100vh;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-content {
    max-width: 100%;
}

.name {
    font-size: clamp(40px, 8vw, 60px);
    font-weight: 700;
    color: var(--lightest-slate);
    margin-bottom: 8px;
    line-height: 1.1;
}

.title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 600;
    color: var(--light-slate);
    margin-bottom: 20px;
}

.tagline {
    color: var(--slate);
    font-size: 16px;
    margin-bottom: 60px;
    max-width: 350px;
}

/* Navigation */
.nav ul {
    list-style: none;
}

.nav li {
    margin-bottom: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--slate);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-link::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background-color: var(--slate);
    margin-right: 15px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--lightest-slate);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60px;
    background-color: var(--green);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.social-links a {
    color: var(--slate);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    margin-left: 450px;
    width: calc(100% - 450px);
    padding: 100px 80px;
    overflow-y: auto;
}

/* Sections */
.section {
    margin-bottom: 120px;
    max-width: 900px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--lightest-slate);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    background-color: var(--navy);
    padding: 20px 0 10px;
    z-index: 10;
}

.section-content p {
    color: var(--slate);
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
}

.section-content strong {
    color: var(--light-slate);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category h4 {
    color: var(--lightest-slate);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

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

.skill-list li {
    color: var(--slate);
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.skill-list li::before {
    content: '▹';
    color: var(--green);
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 14px;
}

/* Languages */
.languages {
    margin-top: 40px;
}

.languages h4 {
    color: var(--lightest-slate);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.language-list {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.language-list li {
    color: var(--slate);
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--lightest-navy);
}

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

.timeline-year {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding-top: 5px;
}

.job-title {
    color: var(--lightest-slate);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.company {
    color: var(--light-slate);
    font-size: 15px;
    margin-bottom: 15px;
}

.job-description {
    color: var(--slate);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-top: 15px;
}

.tech-tags li {
    background-color: var(--green-tint);
    color: var(--green);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-family: var(--font-mono);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 30px;
}

.project-card {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: 4px;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.4);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.project-title {
    color: var(--lightest-slate);
    font-size: 22px;
    font-weight: 600;
}

.project-year {
    color: var(--green);
    font-size: 13px;
    font-family: var(--font-mono);
}

.project-description {
    color: var(--slate);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Contact */
.contact-intro {
    font-size: 17px;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--light-slate);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    padding: 10px 0;
}

.contact-link:hover {
    color: var(--green);
}

.contact-link svg {
    flex-shrink: 0;
}

.location {
    color: var(--slate);
    font-size: 15px;
    margin-top: 30px;
}

/* Footer */
.footer {
    margin-top: 100px;
    padding: 40px 0;
    text-align: center;
    color: var(--slate);
    font-size: 13px;
    border-top: 1px solid var(--lightest-navy);
}

/* Responsive Design */
@media (max-width: 1080px) {
    .sidebar {
        width: 400px;
    }
    
    .main-content {
        margin-left: 400px;
        width: calc(100% - 400px);
        padding: 80px 50px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 25px;
    }
    
    .sidebar-content {
        text-align: left;
    }
    
    .nav ul {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 40px 25px;
    }
    
    .section {
        margin-bottom: 80px;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 36px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 15px;
    }
    
    .section-content p {
        font-size: 16px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .project-title {
        font-size: 19px;
    }
}
