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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #800000; /* maroon */
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ensure all text on maroon background is white */
h1, h2, h3, h4, h5, h6, p, a, span, div {
    color: #ffffff;
}

/* Override for white content sections */
.content-section,
.white-box {
    background: white !important;
    border: 2px solid #ffffff !important;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6,
.content-section p,
.content-section li,
.content-section a,
.white-box h1,
.white-box h2,
.white-box h3,
.white-box h4,
.white-box h5,
.white-box h6,
.white-box p,
.white-box li,
.white-box a {
    color: #8B0000 !important;
}

/* Page titles and back buttons should be white on maroon background */
.page-title,
.back-button {
    color: #ffffff !important;
}

.back-button:hover {
    color: #f0f0f0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.intro-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    .intro-image-left,
    .intro-image-right {
        display: none;
    }
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.bio {
    font-size: 1.2rem;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    font-weight: 400;
}

.cv-button {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
    background: linear-gradient(135deg, #A52A2A, #8B0000);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.category-button {
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.5s;
}

.category-button:hover::before {
    left: 100%;
}

.category-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.category-button h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-button p {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.category-button:hover h3 {
    color: #ffffff;
}

.category-button:hover p {
    color: #f5f5f5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .bio {
        font-size: 1.1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-button {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .cv-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

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

/* Focus styles for accessibility */
.category-button:focus,
.cv-button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
} 