* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior: none;
    height: 100%;
}

body {
    background-color: #FCFCFC;
    color: black;
    font-family: 'Source Sans Pro', sans-serif;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    height: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.section {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.home-section {
    scroll-snap-align: start;
    padding-top: 0;
}

.subtitle {
    font-size: 1.8vw;
    /* Fallback for browsers without vw support */
    font-size: 18px;
    font-size: 1.8vw;
    text-align: center;
    opacity: 0.8;
    white-space: nowrap;
    margin-top: 60px;
}

.main-title {
    text-align: center;
    line-height: 0.8;
    position: relative;
    z-index: 2;
}

.main-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    background-color: #FCFCFC;
    border: 5px solid black;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.jon {
    font-size: 20vw;
    /* Fallback for browsers without vw support */
    font-size: 120px;
    font-size: 20vw;
    font-weight: bold;
    -webkit-text-stroke: 2px #FCFCFC;
    color: black;
    text-shadow:
        -2px -2px 0 #FCFCFC,
        2px -2px 0 #FCFCFC,
        -2px 2px 0 #FCFCFC,
        2px 2px 0 #FCFCFC;
}

.rai {
    font-size: 20vw;
    /* Fallback for browsers without vw support */
    font-size: 120px;
    font-size: 20vw;
    font-weight: bold;
    -webkit-text-stroke: 2px #FCFCFC;
    color: black;
    text-shadow:
        -2px -2px 0 #FCFCFC,
        2px -2px 0 #FCFCFC,
        -2px 2px 0 #FCFCFC,
        2px 2px 0 #FCFCFC;
}

.period {
    font-size: 0.4em;
    vertical-align: middle;
}

.about-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 40px;
}

.linkedin-container {
    display: flex;
    justify-content: center;
}

.linkedin-icon {
    width: 30px;
    height: 30px;
    color: #0077b5;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.linkedin-icon:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

/* Mobile layout */
@media (max-width: 768px) {
    .profile-image {
        width: 250px;
        height: 250px;
        margin-bottom: 30px;
    }
}

.section-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 1000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /* Fallback for gap property */
}

.section-nav .nav-dot:not(:last-child) {
    margin-bottom: 20px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #7E7E7E;
    background-color: transparent;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}

.nav-dot.active {
    background-color: #7E7E7E;
}

@media (max-width: 768px) {
    .section-nav {
        right: 20px;
    }

    .section-nav .nav-dot:not(:last-child) {
        margin-bottom: 15px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .section {
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        /* Mobile viewport fix */
    }

    .jon,
    .rai {
        font-size: 32vw;
        /* Fallback for browsers without vw support */
        font-size: 160px;
        font-size: 32vw;
    }

    .subtitle {
        font-size: 3vw;
        /* Fallback for browsers without vw support */
        font-size: 24px;
        font-size: 3vw;
        padding: 0 20px;
        margin-top: 40px;
    }
}

@media (min-width: 1200px) {

    .jon,
    .rai {
        font-size: 240px;
    }

    .subtitle {
        font-size: 14px;
    }
}