:root {
    --accent-color: #134327;
    --bg-color: #134327;
    --bg-light: #addab9;
    --text-color-dark: #323831;
    --text-color-light: #d2ddd5;
    --shadow-color: rgba(3, 9, 5, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--bg-color);
    padding-top: 4rem; /* Adjust this value based on your navbar height */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    background-color: var(--bg-color);
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color-light);
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);  /* Responsive font size */
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--bg-light);
}

.nav-brand {
    font-size: clamp(1.1rem, 3vw, 1.5rem);  /* Responsive font size */
    font-weight: 700;
    font-style: italic;
    color: var(--text-color-light);
}

.nav-brand a {
    text-decoration: none;
    color: var(--text-color-light);
}

.nav-brand a:hover {
    color: var(--bg-light);
}

.startpage-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    min-height: 80vh;
    padding: 0;
} 

.hero-container {
    position: relative;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero {
    position: relative;
    height: 35vh;
    width: 80vw;
    min-height: 350px; /* Add minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 24px;
    box-shadow: 
        0 0 0 2px var(--accent-color),
        8px 8px 6px var(--shadow-color);
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.7rem, 4.8vw, 4rem);
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.hero .subtitle {
    font-size: clamp(0.9rem, 2.1vw, 1.7rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cta-buttons .btn {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 3fr 5fr 1fr;
    gap: 2rem;
    padding: 4rem 0;  /* Remove horizontal padding since we're using grid */
    min-height: 80vh;
    align-items: center;
}

.content-container {
    grid-column: 3 / 4;  /* Takes up the third column */
    position: relative;
}

.photo-container {
    grid-column: 2 / 3;  /* Takes up the second column */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 4s ease-in-out infinite;
}

.photo, .content {
    position: relative;
    background-color: var(--bg-light);
    z-index: 2;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 
    0 0 0 2px var(--accent-color),
    8px 8px 6px var(--shadow-color);
}

.photo {
    position: relative;
    max-width: 600px;
    width: 100%;
    background-color: var(--bg-light);
    z-index: 2;
    padding: 2rem;
    transform-origin: center;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
}

.section-heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.5rem;
    color: var(--text-color-dark);
}

.subsection-heading {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin: 2rem 0 1rem;
    color: var(--text-color-dark);
}

.content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.profile-photo {
    box-shadow: 
        0 0 0 12px rgba(173, 218, 185, 0.3),  /* Using --bg-light with opacity */
        8px 8px 16px rgba(3, 9, 5, 0.3);
    border-radius: 12px;
}

.hero-icon {
    width: 48px;
    height: 48px;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Add new styles for the link boxes row */
.link-box-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding: 0;
    width: 80vw;
}

.link-box {
    position: relative;
    text-decoration: none;
    width: 15vw;
    aspect-ratio: 1;
    max-width: 300px;
}

.link-box-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: var(--text-color-dark);
    box-shadow: 
    0 0 0 2px var(--accent-color),
    8px 8px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

.link-box:hover .link-box-content {
    transform: translate(-2px, -2px);
}

.link-box-icon {
    width: 8vw;
    aspect-ratio: 1;
    opacity: 0.8;
}

.cv-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cv-date {
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cv-description {
    position: relative;
}

.cv-description p {
    margin: 0;
    line-height: 1.5;
}

/* Media queries for mobile */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;  /* Reduced padding on mobile */
    }
    
    .nav-links {
        gap: 1rem;  /* Reduced gap between links on mobile */
    }

    /* Adjust hero position */
    .hero-container {
        height: 50vh;  /* Move hero up by 10% */
    }

    .hero {
        height: 30vh;
        width: 80vw;
        min-height: 200px;
        padding: 0.3rem;
        box-shadow: 
        0 0 0 2px var(--accent-color),
        8px 8px 6px var(--shadow-color)
    }

    .about-layout {
        display: flex;  /* Switch back to flex for mobile */
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .photo-container, .content-container {
        width: 100%;
    }

    .photo-container {
        flex: 3;  /* Maintain the same ratio */
        animation: float 3s ease-in-out infinite; /* Slightly faster on mobile */
    }

    .content-container {
        flex: 5;  /* Maintain the same ratio */
    }

    .photo-shadow, .content-shadow {
        transform: translate(6px, 6px);
    }

    .hero-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 1rem;
    }

    .link-box-container {
        margin-bottom: 4rem;
    }

    .link-box {
        width: calc(30% - 1rem);
        max-width: 140px;
    }

    .link-box-content {
        border-radius: 18px;
        font-size: 0.9rem;
        box-shadow: 
        0 0 0 2px var(--accent-color),
        8px 8px 6px var(--shadow-color)
    }

    .link-box-icon {
        width: 70%;
        height: 70%;
    }

    .cv-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cv-date {
        font-size: 0.9rem;
        justify-content: flex-start; /* Align left on mobile when stacked */
    }
}