/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Main content */
.main-content {
    background: white;
    padding: 80px 0;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.intro {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.intro h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    max-width: 800px;
}

/* Links section */
.links {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.links h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 300;
    text-align: center;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.link-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.link-card p {
    color: #666;
    line-height: 1.6;
}

.external-link {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.link-card:hover .external-link {
    transform: translateX(5px);
}

/* Resume page styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.resume-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.resume-content {
    background: white;
    padding: 60px 0;
}

.resume-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.resume-content section {
    margin-bottom: 40px;
}

.summary p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.expertise-column ul {
    list-style: none;
}

.expertise-column li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.expertise-column li::before {
    content: '♦';
    color: #667eea;
    position: absolute;
    left: 0;
}

.job {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.job h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.job p {
    margin-bottom: 15px;
    color: #555;
}

.job ul {
    margin-left: 20px;
}

.job li {
    margin-bottom: 8px;
    color: #555;
}

.education-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.education-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.education-item p {
    color: #555;
    margin-bottom: 5px;
}

.technical p {
    font-size: 1.1rem;
    color: #555;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.additional-info ul {
    list-style: none;
}

.additional-info li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.additional-info li::before {
    content: '•';
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Archival notice styling */
.archival-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
}

.archival-notice p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.archival-notice a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.archival-notice a:hover {
    text-decoration: underline;
}

/* Bio content styling */
.bio-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.connect ul {
    list-style: none;
}

.connect li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.connect li::before {
    content: '→';
    color: #667eea;
    position: absolute;
    left: 0;
}

.connect a {
    color: #667eea;
    text-decoration: none;
}

.connect a:hover {
    text-decoration: underline;
}

/* About page styling */
.about-content p,
.current-info p,
.site-contents p,
.contact-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.current-info ul,
.site-contents ul {
    list-style: none;
    margin-top: 15px;
}

.current-info li,
.site-contents li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.current-info li::before,
.site-contents li::before {
    content: '→';
    color: #667eea;
    position: absolute;
    left: 0;
}

.current-info a,
.site-contents a,
.contact-info a {
    color: #667eea;
    text-decoration: none;
}

.current-info a:hover,
.site-contents a:hover,
.contact-info a:hover {
    text-decoration: underline;
}

/* 404 page styling */
.not-found-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .intro h2,
    .links h2 {
        font-size: 2rem;
    }

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

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

    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 60px 0;
    }

    .resume-content {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

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

    .tagline {
        font-size: 1rem;
    }

    .link-card {
        padding: 30px 20px;
    }

    .job,
    .education-item {
        padding: 15px;
    }
}
