/* ==========================================================================
   Sections - Hero, Experience Timeline, Contact
   ========================================================================== */

/* Header / Hero */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.header-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero {
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
}

.hero h1 span {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--secondary);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 0.2em;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.code-snippet {
    position: absolute;
    top: 20%;
    right: 5%;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--surface-3);
    opacity: 0.4;
    max-width: 400px;
    line-height: 1.4;
    z-index: 0;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.experience-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--surface-2);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.experience-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 3rem;
}

.experience-container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--secondary);
    border: 4px solid var(--accent);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--surface-2);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--surface-2);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--surface-2);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--surface-2) transparent transparent;
}

.right::after {
    left: -10px;
}

/* Contact Section */
.contact-section {
    position: relative;
}

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .code-snippet {
        display: none;
    }

    .experience-timeline::after {
        left: 31px;
    }

    .experience-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .experience-container::before {
        left: 60px;
        border: medium solid var(--surface-2);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--surface-2) transparent transparent;
    }

    .left::after, .right::after {
        left: 22px;
    }

    .right {
        left: 0%;
    }
}
