/* Base Styles and Reset */
:root {
    --primary-color: #0066cc;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --section-padding: 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    overflow: hidden;
    /* Prevent body scroll, delegate to container */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    height: 100%;
    overflow: hidden;
}

/* Scroll Snap Container - now the main scroller */
.sections-container {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
}

/* Individual Sections */
.section {
    height: 100vh;
    min-height: calc(100 * var(--vh, 1vh));
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    /* Ensure content doesn't overflow on small screens */
    overflow-y: auto;
}

/* Section-specific styles */
#landing {
    background-color: #f8f9fa;
    justify-content: center;
}

#job1 {
    background-color: #e9ecef;
}

#job2 {
    background-color: #dee2e6;
}

#job3 {
    background-color: #ced4da;
}

#job4 {
    background-color: #adb5bd;
}

#job5 {
    background-color: #8c959f;
    /* Slightly darker than job4 */
}

/* Header styles */
header {
    width: 100%;
    max-width: 800px;
}

.header-content {
    text-align: center;
}

.name-location {
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1.2;
}

.location {
    font-size: 1.2rem;
    color: #666;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #0066cc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    margin: 0;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #0066cc;
}

/* Job content styles */
.job-content {
    max-width: 800px;
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.job-title {
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.job-company {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.job-date {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.job-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.job-highlights {
    padding-left: 1.5rem;
}

.job-highlights li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Scroll indicator styles */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 15px;
    z-index: 10;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.arrow-icon {
    width: 24px;
    height: 24px;
    fill: #0066cc;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Navigation dots */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: #0066cc;
    transform: scale(1.3);
}

/* Footer styles */
footer {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #333;
    /* Darker so it's visible on the dark background of section 5 */
    position: absolute;
    bottom: 0;
    left: 0;
}

footer a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .job-content {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0;
    }

    .job-title {
        font-size: 1.8rem;
    }

    .job-company {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-dots {
        right: 10px;
    }

    .nav-dot {
        width: 8px;
        height: 8px;
    }

    .section {
        padding-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .section {
        padding: 1rem;
    }

    .job-content {
        padding: 1.2rem;
    }

    .job-title {
        font-size: 1.5rem;
    }

    /* Switch to proximity for better UX on very small screens? */
    /* Keeping mandatory for now as it feels cleaner if content fits */
}
