* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-bg: #f8f6f3;
    --light-blue: #b8cdeb;
    --blue: #0148bd;
    --light-pink: #f9c5b8;
    --white: #ffffff;
    --red: #e40521;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    color: var(--blue);
    background-color: var(--white);
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
}

header.scrolled {
    border-bottom: 1px solid #b8cdeb;
    padding: 8px 60px;
}

.logo-container {
    position: relative;
    height: 92.4px;
    width: 194.7px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}

header.scrolled .logo-container {
    height: 56.1px;
    width: 130px;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    height: 92.4px;
    width: auto;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo {
    height: 56.1px;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
}

.avatar {
    position: absolute;
    top: 8px;
    left: 0;
    transform: scale(0.5) rotate(10deg);
    height: 46.17px;
    width: auto;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .avatar {
    height: 27.36px;
    width: auto;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.avatar svg {
    height: 100%;
    width: auto;
}

/* Navigation - Desktop */
.desktop-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    margin-top: 0px;
}

.desktop-nav li {
    padding-left: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 5px 0;
    white-space: nowrap;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #b8cdeb;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a span {
    position: relative;
    z-index: 1;
}

/* Navigation - Mobile */
.mobile-nav {
    display: none;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 50px;
}

.mobile-nav li {
    width: 100%;
    padding-right: 25px;
    margin-bottom: 3px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--blue);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    padding: 15px 40px;
    white-space: nowrap;
}

.mobile-nav a::after {
    display: none;
}

.mobile-nav a span {
    position: relative;
    display: inline-block;
}

.mobile-nav a span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: #b8cdeb;
    transition: width 0.3s ease;
}

.mobile-nav a:hover span::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
    
}

.lang-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #b8cdeb;
    border: none;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.lang-button.active {
    background-color: #0148bd !important;
    transition: none !important;
}

header.scrolled .lang-button.active {
    background-color: #0148bd !important;
    transition: none !important;
}

nav .lang-button.active {
    background-color: #0148bd !important;
}

.lang-button:hover {
    background-color: #0148bd;
    color: #fff;
}

.lang-button::after {
    display: none !important;
}

/* Hamburger Menu icon - Hidden on Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 13;
}

.hamburger span {
    width: 28px;
    height: 1.5px;
    background-color: var(--blue);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(2) {
    display: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 4px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -4px);
}

/* Home Section */
#home {
    padding-top: 170px;
}

section {
    padding: 20px 0 35px 42px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* Contact Section */
#contact {
    min-height: auto;
    padding-bottom: 60px;
}

#contact p {
    margin-bottom: 5px;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    color: #b8cdeb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-button:hover,
.social-button:active {
    background-color: #0148bd;
    color: #fff;
}

.social-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Section divider */
section::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 42px;
    right: 0;
    border-bottom: 1px solid #b8cdeb
}


/* Font styles */
h1 {
    font-family: 'Cormorant', serif;
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: #0148bd;
}

h2 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #0148bd
}

h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
    }

h4 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: white
}


h5 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff
}

p {
    font-size: 1rem;
    color: #000;
    margin-bottom: 15px;
    font-weight: 300;
}

ul {
    margin-left: 15px;
    list-style-type: disc;
    list-style-position: outside;
    color: black;
    font-size: 0.7rem;
}

.inline-link {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #b8cdeb;
    transition: opacity 0.3s ease;
}

.inline-link:hover {
    opacity: 0.8;
}

.contact-link {
    color: black;
    text-decoration: underline;
    text-decoration-color: #b8cdeb;
    text-underline-offset: 4px;
}

.contact-link:hover {
    opacity: 0.8;
}

u {
    text-decoration: none;
    border-bottom: 1px solid #b8cdeb;
}

/* Profile Section */
.profile-content {
    max-width: 600px;
    padding-top: -50px;
}


.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.profile-item {
    padding: 30px;
    background-color: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-item li { 
color: #ffffff;
font-size: 1rem;
padding-left: 10px;
}

.profile-item li::marker {
  color: #ffffff;      
}

#profile .profile-item {
    background-color: #5c83d0;
}

.profile-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 54, 79, 0.1);
}

.profile-image {
    background-color: var(--light-bg);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skills Section */

.language-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 300;
}

.language-name {
    min-width: 140px;
    color: #000;
}

.language-bar {
    flex: 1;
    height: 4px;
    background-color: #ffffff;
    border-radius: 2px;
    margin: 0 15px 0 10px;
    max-width: 200px;
}

.language-level {
    height: 100%;
    background-color: #5c83d0;
    border-radius: 2px;
}

.language-label {
    min-width: 60px;
    text-align: right;
    color: #000;
    font-size: 0.85rem;
}

#skills .profile-item li::marker {
  color: #5c83d0;
}

#skills .profile-item li {
  padding-left: 10px;
}

/* Work, Education and Beyond Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-item {
    padding: 30px;
    background-color: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 54, 79, 0.1);
}

.job-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    -webkit-text-decoration: underline solid #f9c5b8;
    text-decoration: underline solid #f9c5b8;
    text-underline-offset: 6px;
    color: #000;
    margin-bottom: 10px;
}

.work-image {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: auto;
    padding-top: 20px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-image-placeholder {
    color: var(--beige);
    font-size: 1rem;
    text-align: center;
}


/* Section divider line */
.section-divider {
    border: none;
    margin: 40px 0;
    border-top: 1px solid var(--light-blue);
}

/* Beyond Work Grid - 3 columns */
.beyond-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.beyond-image {
    background-color: var(--light-bg);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-direction: column;
}

.beyond-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel elements - hidden by default on desktop */
.carousel-arrow,
.carousel-dots {
    display: none;
}

/* Responsive Design */
@media (max-width: 1000px) {
    header {
        padding: 15px 30px;
    }

    header.scrolled {
        padding: 10px 30px;
    }

    .logo-container {
        height: 80px;
        width: 180px;
    }

    header.scrolled .logo-container {
        width: 140px;
    }

    .logo {
        height: 80px;
    }

    /* Hide Desktop Nav, Show Mobile Nav */
    .desktop-nav {
        display: none;
    }

    /* Show Hamburger on Mobile */
    .hamburger {
        display: flex;
        order: 3;
    }

    .lang-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 20px;
    }

    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        height: 109vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(30, 54, 79, 0.1);
        transition: right 0.3s ease;
        z-index: 12;
        padding-top: 40px;
        margin-left: 0;
        order: 4;
    }

    .mobile-nav.active {
        right: 0;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
}

@media (max-width: 800px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .beyond-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding-left: 20px;
    }

    section::after {
        left: 20px;
    }

}

@media (max-width: 600px) {
    #beyond-work .beyond-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        scrollbar-width: none;
        position: relative;
    }

    #beyond-work .beyond-grid::-webkit-scrollbar {
        display: none;
    }

    #beyond-work .beyond-image {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    #contact .beyond-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel navigation dots */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 10px 0;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #b8cdeb;
        opacity: 0.4;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .carousel-dot.active {
        background-color: #0148bd;
        opacity: 1;
    }

    /* Carousel navigation arrows */
    #beyond-work .carousel-nav {
        position: relative;
        display: block;
    }

    #beyond-work .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    #beyond-work .carousel-arrow:active {
        transform: translateY(-50%) scale(0.95);
    }

    #beyond-work .carousel-arrow.prev {
        left: -20px;
    }

    #beyond-work .carousel-arrow.next {
        right: -20px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
        fill: #0148bd;
    }
}

@media (max-width: 480px) {

    /* Mobile Navigation - Wider on small screens */
    nav {
        width: 80%;
        padding-top: 20px;
        height: 69vh;
    }
}