/* CSS Variables */
:root {
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --background-color: #0a0a0a;
    --background-secondary: #111111;
    --background-tertiary: #1a1a1a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(255, 255, 255, 0.2);
    
    /* U of M Colors */
     --maize-primary: #ffcb05;
     --maize-secondary: #ffd700;
     --blue-primary: #00274c;
     
     /* Accent Colors */
     --green-accent: #10b981;
     --orange-accent: #f59e0b;
     --red-accent: #ef4444;
     
     /* Gradients */
     --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
     --gradient-secondary: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
     --gradient-maize: linear-gradient(135deg, var(--maize-primary) 0%, var(--maize-secondary) 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Body - Enhanced for cross-platform consistency */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    max-width: 805px;
    margin: 0 auto;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
    background: linear-gradient(135deg, var(--background-color) 0%, var(--background-secondary) 50%, var(--background-tertiary) 100%);
    min-height: 100vh;
}

/* Links */
a {
    color: var(--maize-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--maize-secondary);
}

/* Navigation */
 nav {
     position: sticky;
     top: 10px;
     z-index: 1000;
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 0 30px;
     max-width: 95%;
     margin: 0 auto 50px;
     height: 60px;
     background: var(--glass-bg);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--glass-border);
     border-radius: 16px;
     box-shadow: var(--glass-shadow);
     transition: all 0.3s ease;
 }

header {
    display: contents;
}

nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--border-color-hover);
}

/* Brand */
nav .left a {
    color: rgba(0, 0, 0, 0);
    background-clip: text;
    background: var(--gradient-maize);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    font-weight: 600;
}

/* Nav Links */
nav .right a{
    color: var(--text-color);
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav .right a:hover {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transform: translateY(-1px);
}

nav .right a span {
    margin-left: 5px;
}



/* Progress Bar */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-maize);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-maize);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 203, 5, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.4);
}

/* Hero Section - Resolution-aware sizing */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 50px);
    gap: clamp(20px, 4vw, 40px);
    margin: 0 15px 120px 15px;
    min-height: clamp(450px, 70vh, 700px);
    height: auto;
    background: var(--gradient-primary);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    will-change: transform;
    transform: translateZ(0);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 39, 76, 0.1) 0%, rgba(255, 203, 5, 0.05) 100%);
    border-radius: 20px;
    z-index: 1;
}

.hero-section .text {
    flex: 1;
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 60%;
}

.hero-section .headshot {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-section .headshot img {
    border-radius: 50%;
    width: 200px;
    border: 3px solid var(--maize-primary);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.hero-section .headshot img:hover {
    transform: translate3d(0, 0, 0) scale(1.05);
    box-shadow: 0 20px 40px rgba(255, 203, 5, 0.3);
}

/* Animated Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-maize);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Title - Responsive font sizing to prevent wrapping */
.hero-title {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-maize);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.greeting {
    background: var(--gradient-maize);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wave {
    animation: wave 2s ease-in-out infinite;
    display: inline-block;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    -webkit-text-fill-color: initial;
    color: var(--maize-primary);
    flex-shrink: 0;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.hero-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 8px 8px 0;
}

.cta-button.secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border-color: var(--glass-border);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 203, 5, 0.3);
}

.cta-button.secondary:hover {
    background: var(--gradient-maize);
    color: #000000;
    border-color: var(--maize-primary);
}

/* Headshot Container */
.headshot-container {
    position: relative;
}

.headshot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--gradient-maize);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
}

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

/* Experience Section */
.experience-section {
    padding: 0 40px;
    margin-bottom: 120px;
}

.experience-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--text-color);
}

/* Tab Buttons */
.experience-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tab-button:focus-visible {
    outline: 2px solid var(--maize-primary);
    outline-offset: 2px;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-maize);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    transform: scale(0.95);
}

.tab-button.active {
    background: var(--gradient-maize);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 203, 5, 0.3);
    transform: translateY(-1px);
}

.tab-button.active::before {
    opacity: 1;
    transform: scale(1);
}

.tab-button i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.tab-button span {
    position: relative;
    z-index: 1;
    font-weight: 600;
}

/* Timeline */
.experience-content {
    position: relative;
}

.timeline {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.timeline[hidden] {
    display: none !important;
}

.timeline.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--maize-primary), var(--blue-primary));
    opacity: 0.6;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
    opacity: 1;
    transform: none;
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-maize);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--background-color);
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.3);
    transition: all 0.3s ease;
}

.timeline-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(255, 203, 5, 0.4);
}

.timeline-logo i {
    font-size: 20px;
    color: #000000;
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-content:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--maize-primary);
}

.timeline-header {
    margin-bottom: 24px;
}

.timeline-date {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.timeline-role {
    font-size: 16px;
    color: var(--maize-primary);
    margin-bottom: 0;
    font-weight: 500;
}

.timeline-description {
    margin-top: 20px;
}

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

.timeline-description li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
    opacity: 0.9;
    color: var(--text-secondary);
}

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

.timeline-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--maize-primary);
    font-weight: bold;
    font-size: 18px;
}

/* Projects Section */
.projects-section {
    padding: 0 40px;
    margin-bottom: 120px;
}

.projects-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--maize-primary);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-placeholder {
    font-size: 48px;
    color: var(--maize-primary);
    opacity: 0.8;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.project-content p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: var(--gradient-maize);
    color: #000000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Skills Section */
.skills-section {
    padding: 0 40px;
    margin-bottom: 120px;
}

.skills-section h2 {
    text-align: center;
    font-size: 35px;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--text-color);
}

.skills-section .text {
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skills-section .text p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.7;
    color: var(--text-secondary);
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--maize-primary);
}

.category-title i {
    font-size: 1.2rem;
}

.cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 160px;
    padding: 18px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cell:hover {
    border-color: var(--maize-primary);
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 12px 30px rgba(255, 203, 5, 0.2);
}

.cell span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
}

.cell i {
    font-size: 22px;
    color: var(--maize-primary);
    width: 25px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 0 40px;
    margin-bottom: 120px;
}

.contact-section h2 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--maize-primary);
}

.contact-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    opacity: 0.9;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.email-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    background: var(--gradient-maize);
    color: #000000;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 203, 5, 0.3);
}

.email-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 203, 5, 0.4);
    color: #000000;
}

.email-cta i {
    font-size: 18px;
    color: #000000;
}

.email-cta span {
    color: #000000;
}

.contact-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 56px;
}

.contact-info-item:hover {
    border-color: var(--maize-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 203, 5, 0.2);
}

.contact-info-item i {
    font-size: 16px;
    color: var(--maize-primary);
    flex-shrink: 0;
}



/* Responsive Design */
@media (max-width: 725px) {
    .hero-section .text h2 {
        font-size: 40px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 650px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 30px;
        margin: 0 15px 80px 15px;
        gap: 30px;
    }

    .hero-section .text {
        max-width: 100%;
    }

    .hero-section .headshot img {
        width: 200px;
    }

    .experience-section {
        padding: 0 30px;
    }

    .experience-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        max-width: 300px;
        padding: 12px;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .timeline {
        max-width: 100%;
    }

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

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-marker {
        width: 50px;
        height: 50px;
    }

    .timeline-logo {
        width: 40px;
        height: 40px;
    }

    .timeline-logo i {
        font-size: 16px;
    }

    .timeline-content {
        padding: 24px;
    }

    .projects-section {
        padding: 0 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-card {
        margin-bottom: 0;
    }

    .contact-section {
        padding: 0 30px;
    }
    
    .contact-content {
        gap: 30px;
    }
}

@media (max-width: 550px) {
    nav {
        padding: 0 20px;
    }

    nav .right a {
        font-size: 22px;
    }



    nav .right a span {
        display: none;
    }

    .hero-section {
        padding: 30px 20px;
        margin: 0 10px 60px 10px;
    }

    .hero-section .text h2 {
        font-size: 32px;
    }

    .hero-section .text p {
        font-size: 16px;
    }

    .hero-section .headshot img {
        width: 150px;
    }

    .skills-section {
        padding: 0 20px;
    }

    .skills-section .cells .cell span {
        font-size: 14px;
    }

    .skills-section .cells .cell {
        width: 140px;
        padding: 16px 18px;
    }

    .experience-section {
        padding: 0 20px;
    }

    .experience-tabs {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        max-width: 280px;
        padding: 12px;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .projects-section {
        padding: 0 20px;
    }

    .project-content {
        padding: 24px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    .contact-section {
        padding: 0 20px;
    }
    
    .contact-content {
        gap: 25px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .skills-categories {
        gap: 30px;
    }
    
    .skill-category {
        padding: 20px;
    }
    

}

/* DPI-aware media queries for high resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        font-size: clamp(30px, 3.8vw, 44px);
    }
    
    .hero-section {
        min-height: clamp(420px, 65vh, 650px);
    }
}

/* Large screens - prevent excessive sizing */
@media (min-width: 1920px) {
    .hero-section {
        min-height: clamp(500px, 60vh, 650px);
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: clamp(40px, 3vw, 48px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(28px, 6vw, 36px);
        flex-direction: column;
        gap: 10px;
        white-space: normal;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}



@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}



/* Text Color Fixes */
.timeline-role {
    font-size: 16px;
    color: var(--maize-primary);
    margin-bottom: 0;
    font-weight: 500;
}

.timeline-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--maize-primary);
    font-weight: bold;
    font-size: 18px;
}

.skills-section .cells .cell i {
    font-size: 24px;
    color: var(--maize-primary);
    width: 30px;
    text-align: center;
}

.project-placeholder {
    font-size: 48px;
    color: var(--maize-primary);
    opacity: 0.8;
}

 /* Yellow Background Text */
 .tab-button.active,
 .tab-button.active i,
 .tab-button.active span,
 .timeline-logo i,
 .tech-tag,
 .hero-section .text .links a:hover,
 .hero-section .text .links a:hover i,
 .hero-section .text .links a:hover span {
     color: #000000 !important;
 }

.timeline.active .timeline-item {
    opacity: 1;
    transform: translateX(0);
}