/* ==================== VARIABLES ==================== */
:root {
    /* Light mode colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #60a5fa;
    
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    
    --nav-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #f1f5f9;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #e2e8f0;
    --accent-color: #93c5fd;
    
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
    
    --nav-bg: rgba(15, 23, 42, 0.95);
    --footer-bg: #1e293b;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    font-size: 16px;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
        padding: 0 60px;
    }
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px;
}

.nav-brand {
    flex-shrink: 0;
}

.nav-menu {
    margin-left: auto;
}

.nav-brand a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    transition: var(--transition);
}

.nav-brand a:hover {
    color: var(--primary-light);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 5rem 0 3rem 0;
    background: var(--bg-color);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    flex-shrink: 0;
}

.headshot {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--card-shadow-hover);
    transition: var(--transition);
}

.no-copy {
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.headshot:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 35px -5px rgba(37, 99, 235, 0.3);
}

.hero-text {
    flex: 1;
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

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

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================== SECTIONS ==================== */
section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.page-header {
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ==================== EDUCATION SECTION ==================== */
.education-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.education-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 16px;
    flex-shrink: 0;
}

.education-details {
    flex: 1;
}

.education-details h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.institution {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-gpa {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-focus {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.certifications-section {
    background: var(--bg-color);
    padding: 4rem 0;
}

.certifications-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.certification-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.certification-card.studying {
    border-color: var(--accent-color);
    border-style: dashed;
}

.certification-card.studying:hover {
    border-style: solid;
}

.certification-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 16px;
    flex-shrink: 0;
}

.certification-details {
    flex: 1;
}

.certification-details h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.studying-badge {
    font-size: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-issuer {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ==================== TIMELINE SECTION ==================== */
.timeline-section {
    background: var(--bg-secondary);
    position: relative;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-color);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-current .timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 15px var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 15px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 25px var(--primary-color);
    }
}

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    max-width: 350px;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==================== HOME SECTION CARDS ==================== */
.home-sections {
    background: var(--bg-color);
    padding: 2rem 0 4rem 0;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    display: block;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.section-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==================== HIGHLIGHTS ==================== */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlight-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.highlight-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.highlight-card p {
    color: var(--text-secondary);
}

/* ==================== FEATURED PROJECTS ==================== */
.featured-projects {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.featured-project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.featured-project-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
}

.featured-project-card:last-child {
    margin-bottom: 0;
}

.featured-project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.featured-project-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 16px;
    flex-shrink: 0;
}

.featured-project-title {
    flex: 1;
}

.featured-project-title h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.project-date {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.featured-project-content h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.featured-project-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.featured-project-content p:last-of-type {
    margin-bottom: 1.5rem;
}

.featured-project-content .project-tech {
    margin-bottom: 1.5rem;
}

/* ==================== PROJECTS ==================== */
.projects {
    background: var(--bg-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.tech-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.github-cta {
    text-align: center;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 2rem;
}

.github-cta h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.github-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ==================== RESUME ==================== */
.resume-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resume-header-section {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

.resume-name {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resume-contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-secondary);
}

.resume-contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section-title {
    font-size: 1.75rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.resume-item {
    margin-bottom: 2rem;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.resume-item h4 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.company {
    color: var(--text-secondary);
    font-weight: 600;
}

.gpa {
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.25rem;
}

.date,
.date-inline {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.resume-item ul {
    list-style-position: outside;
    margin-left: 1.5rem;
}

.resume-item li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.accomplishments-list li {
    list-style: none;
    margin-left: 0;
    margin-bottom: 0.75rem;
}

.coursework-category {
    margin-bottom: 1rem;
}

.coursework-category h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.coursework-category p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.skill-category p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== CONTACT ==================== */
.contact-info-centered {
    max-width: 1000px;
    margin: 0 auto;
}

.add-contact-cta {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
    border-radius: 16px;
    border: 2px dashed var(--primary-color);
}

.add-contact-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    gap: 0.75rem;
}

.add-contact-btn i {
    font-size: 1.25rem;
}

.add-contact-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Auto-download contact page */
.auto-download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    padding: 2rem;
}

.download-card {
    text-align: center;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow-hover);
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 100%;
}

.download-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.download-card h1 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.download-status {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.download-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.download-card .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

.contact-info-centered h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-description {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    text-align: center;
    font-size: 1.125rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:first-child {
    border-top: 1px solid var(--border-color);
}

.contact-item:hover {
    background: var(--bg-secondary);
    padding-left: 3rem;
}

.contact-item-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-link {
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.contact-text {
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ==================== SWIMMING PAGE ==================== */
.swimming-story {
    background: var(--bg-color);
    padding: 4rem 0;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.swim-times {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.times-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.times-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.times-note strong {
    color: var(--text-color);
    font-style: normal;
}

.times-table-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.times-table {
    width: 100%;
    border-collapse: collapse;
}

.times-table thead {
    background: var(--primary-color);
}

.times-table thead th {
    color: white;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.times-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.times-table tbody tr:hover {
    background: var(--bg-secondary);
}

.times-table tbody tr:last-child {
    border-bottom: none;
}

.times-table tbody td {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
}

.event-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.05rem;
}

.time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-family: 'Courier New', monospace;
}

.swimcloud-link {
    text-align: center;
    margin-top: 2rem;
}

.swimcloud-link p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.swimcloud-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.swimcloud-link a:hover {
    color: var(--primary-light);
}

.swimming-to-lifeguarding {
    background: var(--bg-color);
    padding: 4rem 0;
}

.journey-content {
    max-width: 1200px;
    margin: 0 auto;
}

.journey-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.journey-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.journey-content a:hover {
    color: var(--primary-light);
}

/* ==================== ABOUT PAGE ==================== */
.about-page {
    background: var(--bg-color);
    padding: 3rem 0;
}

.about-page .container {
    max-width: 1400px;
}

.table-of-contents {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-of-contents h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.table-of-contents ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-of-contents li {
    margin: 0;
}

.table-of-contents a {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.table-of-contents a:hover {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.table-of-contents a i {
    font-size: 1rem;
}

.about-page-content section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.about-page-content section:last-child {
    border-bottom: none;
}

.about-page-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-page-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

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

.about-education-grid,
.about-cert-list,
.about-experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-education-item,
.about-cert-item,
.about-exp-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.about-education-item:hover,
.about-cert-item:hover,
.about-exp-item:hover {
    border-color: var(--primary-color);
}

.about-education-item h3,
.about-cert-item h3,
.about-exp-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.about-education-item h3 i,
.about-cert-item h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.institution,
.cert-org,
.exp-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.date,
.cert-date,
.exp-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.focus,
.cert-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.about-cert-item.studying {
    border-color: var(--accent-color);
    border-style: dashed;
}

.about-exp-item.current {
    border-color: var(--primary-color);
    border-width: 2px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.interest-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.interest-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.interest-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.interest-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.interest-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==================== CTA SECTION ==================== */
.cta {
    background: var(--bg-secondary);
    text-align: center;
    padding: 3rem 0;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--footer-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .featured-project-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .featured-project-title h3 {
        font-size: 1.5rem;
    }

    .featured-project-icon {
        font-size: 2.5rem;
    }

    .contact-item {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .contact-item:hover {
        padding-left: 1.5rem;
    }

    .contact-item-icon {
        font-size: 1.5rem;
        width: 30px;
    }

    .contact-link,
    .contact-text {
        font-size: 1rem;
    }

    .times-table-container {
        border-radius: 8px;
    }

    .times-table thead th,
    .times-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .event-name {
        font-size: 0.95rem;
    }

    .time {
        font-size: 1rem;
    }

    .story-content p,
    .journey-content p {
        font-size: 1rem;
    }

    .section-cards {
        grid-template-columns: 1fr;
    }

    .table-of-contents ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .table-of-contents a {
        justify-content: center;
        width: 100%;
    }

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

    .interest-emoji {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar .nav-container {
        padding: 1rem 20px;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .container {
        padding: 0 20px;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .headshot {
        width: 200px;
        height: 200px;
    }

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

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

    .subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .social-links {
        justify-content: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 30px;
    }

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

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

    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .education-icon {
        font-size: 2.5rem;
        padding: 1rem;
    }

    .certification-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .certification-icon {
        font-size: 2.5rem;
        padding: 1rem;
    }

    .certification-details h3 {
        font-size: 1.25rem;
        justify-content: center;
    }

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

    .resume-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .resume-contact-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .resume-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .resume-actions,
    footer,
    .theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .resume-container {
        max-width: 100%;
    }

    .page-header {
        background: white;
        padding: 1rem 0;
    }
}


