/* ============================================
   Margaret Knee - Portfolio Styles
   ============================================
   
   Color Palette:
   --slate-900:    #1a1f2e    (deep navy - primary text)
   --slate-700:    #374151    (secondary text)
   --slate-500:    #64748b    (muted text)
   --blue-600:     #4a6fa5    (primary blue)
   --blue-700:     #3d5a80    (darker blue for hover)
   --blue-50:      #f0f4f8    (light blue tint)
   --cream:        #faf8f5    (warm off-white background)
   --cream-dark:   #f5f0e8    (slightly darker cream)
*/

:root {
    --slate-900: #1a1f2e;
    --slate-700: #374151;
    --slate-500: #64748b;
    --blue-600: #4a6fa5;
    --blue-700: #3d5a80;
    --blue-50: #f0f4f8;
    --cream: #faf8f5;
    --cream-dark: #f5f0e8;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --transition: all 0.2s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--slate-700);
    background-color: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--slate-900);
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: var(--blue-700);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    color: var(--slate-900) !important;
    font-size: 1.25rem;
}

.nav-link {
    color: var(--slate-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--blue-600) !important;
    background-color: var(--blue-50);
}

.btn-contact-nav {
    background-color: var(--blue-600);
    color: var(--white) !important;
    border: none;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-contact-nav:hover {
    background-color: var(--blue-700);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--cream) 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--slate-900);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--blue-600);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

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

.hero-links a,
.hero-links button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-custom {
    background-color: var(--blue-600);
    color: var(--white);
}

.btn-primary-custom:hover {
    background-color: var(--blue-700);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--slate-700);
    border: 1px solid var(--border);
}

.btn-outline-custom:hover {
    background-color: var(--white);
    color: var(--blue-600);
    border-color: var(--blue-600);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: var(--white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--blue-600);
    display: inline-block;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    max-width: 800px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.timeline {
    position: relative;
    max-width: 900px;
}

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

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background-color: var(--blue-600);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--blue-600);
    font-weight: 500;
}

.timeline-dates {
    font-size: 0.9rem;
    color: var(--slate-500);
}

.timeline-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--slate-700);
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--blue-600);
}

/* ============================================
   EDUCATION & PROJECT CARDS
   ============================================ */

.card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-img-top {
    padding: 1.5rem;
    max-height: 120px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.5;
}

.card-footer {
    background-color: var(--blue-50);
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
}

.card-link {
    font-weight: 500;
    font-size: 0.9rem;
}

.credential-note {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

#skills-container {
    display: flex;
    justify-content: center;
}

.skills-list {
    max-width: 750px;
    width: 100%;
}

.skill-line {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
}

.skill-line:last-child {
    border-bottom: none;
}

.skill-category {
    font-weight: 600;
    color: var(--slate-900);
    margin-right: 0.5rem;
}

.skill-items {
    color: var(--slate-700);
}

/* ============================================
   PROJECTS
   ============================================ */

.project-card .card-img-top {
    max-height: none;
    padding: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-size: 1.2rem;
}

/* ============================================
   CONTACT MODAL
   ============================================ */

.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background-color: var(--blue-50);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-900);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--blue-600);
    padding: 1rem 2rem;
    background-color: var(--blue-50);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-email:hover {
    background-color: var(--blue-600);
    color: var(--white);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social a {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--slate-700);
    font-weight: 500;
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: var(--slate-900);
    color: var(--white);
    border-color: var(--slate-900);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--slate-900);
    color: var(--slate-500);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--blue-600);
}

footer a:hover {
    color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero .subtitle {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-links {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-links a,
    .hero-links button {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}