
:root {
    --teal: #1a7b7b;
    --teal-dark: #136060;
    --coral: #ff6b6b;
    --off-white: #f5f5f5;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --gray-light: #d1d5db;
}

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

html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--teal);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Enhanced Focus Indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

/* Navigation */
nav {
    background-color: var(--teal);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    opacity: 0.8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--coral);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 3rem 0;
}

/* Section Dividers */
.section-divider {
    border: none;
    height: 35px;
    background-color: var(--teal);
    margin: 3rem -2rem;
    opacity: 0.6;
    width: calc(100% + 4rem);
}

/* Hero Section */
#hero {
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

.hero-image {
    width: 375px;
    height: 375px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--gray-light);
    border: 4px solid var(--coral);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.accent-line {
    height: 4px;
    background-color: var(--coral);
    margin: 1rem 0 2rem 0;
}

/* Hero section - line extends from right edge to left, stopping at image */
#hero .accent-line {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Projects section - full-width line from left side */
#projects .accent-line {
    width: 400px;
    margin-left: 0;
    margin-right: auto;
}

/* CV section - full-width line from right side */
#cv .accent-line {
    width: 100%;
    max-width: 650px;
    margin-left: auto;
    margin-right: 0;
}

/* Contact section - full-width line from left side */
#contact .accent-line {
    width: 400px;
    margin-left: 0;
    margin-right: auto;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* About Section */
#about {
    padding: 2rem 0 3rem 0;
}

.about-highlight {
    font-size: 1.8rem;
    color: var(--teal);
    line-height: 1.3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Projects Section */
#projects {
    padding: 5rem 0;
}

#projects h2 {
    font-size: 2.5rem;
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.5rem;
}

#projects .accent-line {
    width: 300px;
    margin: 0 auto 3rem auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:not(.project-placeholder):hover,
.project-card:not(.project-placeholder):focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Placeholder project styling */
.project-placeholder {
    opacity: 0.7;
}

.placeholder-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--teal-dark);
}

.placeholder-content p {
    color: var(--off-white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-link:focus {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

.project-image {
    width: 100%;
    height: 250px;
    background-color: var(--gray-light);
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--teal);
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CV Section */
#cv {
    padding: 5rem 0;
}

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

#cv h2 {
    font-size: 2.5rem;
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.5rem;
}

#cv .accent-line {
    width: 300px;
    margin: 0 auto 3rem auto;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
}

.cv-column h3 {
    font-size: 1.8rem;
    color: var(--teal);
    margin-bottom: 2rem;
}

.cv-item {
    margin-bottom: 2.5rem;
}

.cv-item h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cv-org {
    color: var(--coral);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cv-description {
    color: var(--text-medium);
    line-height: 1.4;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.skills-list li:before {
    content: "▸";
    color: var(--coral);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Section */
#contact {
    padding: 5rem 0;
}

#contact h2 {
    font-size: 2.5rem;
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.5rem;
}

#contact .accent-line {
    width: 300px;
    margin: 0 auto 3rem auto;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    font-size: 1.15rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.contact-button {
    background-color: var(--teal);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.contact-button:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
}

.contact-button:focus {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

/* Footer */
footer {
    background-color: var(--teal);
    color: white;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}
