/* ==========================================================================
   Jan Loufek - Personal Website Styles
   ========================================================================== */

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0b;
    color: #e4e4e7;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

::selection {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

/* ==========================================================================
   Hero / Intro Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #818cf8;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #71717a;
    max-width: 540px;
    margin-bottom: 3rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.85rem;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills {
    padding: 8rem 0;
    position: relative;
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    color: #818cf8;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.skill-card p {
    color: #71717a;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #a1a1aa;
    font-weight: 400;
}

/* ==========================================================================
   Education Section
   ========================================================================== */
.education {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, transparent 100%);
}

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

.edu-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.edu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.edu-card.highlight {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
}

.edu-degree {
    font-size: 0.75rem;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.edu-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.edu-school {
    color: #a1a1aa;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.edu-year {
    color: #52525b;
    font-size: 0.85rem;
}

.edu-thesis {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #71717a;
    font-style: italic;
}

/* ==========================================================================
   Publications Section
   ========================================================================== */
.publications {
    padding: 8rem 0;
    position: relative;
}

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pub-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.pub-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.pub-year {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    min-width: 50px;
}

.pub-content {
    flex: 1;
}

.pub-title {
    font-size: 1rem;
    font-weight: 500;
    color: #e4e4e7;
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.pub-venue {
    font-size: 0.85rem;
    color: #71717a;
}

.pub-more {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pub-more:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #fff;
}

.pub-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.pub-more:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 8rem 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: #71717a;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #e4e4e7;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 280px;
    justify-content: center;
}

.contact-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: #52525b;
    font-size: 0.9rem;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #52525b;
    font-size: 0.9rem;
}

.footer-location svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

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

    .skill-card {
        padding: 2rem;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-link {
        min-width: 100%;
    }

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

    .pub-year {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}
