/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
    --dark-green: #2F4A40;
    --pale-green: #C1D1BC;
    --cream: #F8F7F2;
    --white: #FFFFFF;
    --black: #000000;
    --font-main: 'TT Commons Pro', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-head: 'League Spartan', sans-serif;
    --font-name: 'Lilita One', cursive;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.5;
    font-size: 16px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    background-color: var(--dark-green);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 65px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--white);
    font-size: 21px;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a.active {
    border-bottom: 3px solid var(--white);
}

.nav-links a:hover {
    color: var(--pale-green);
}

/* ============================================================
   MAIN CONTENT CONTAINER
   ============================================================ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%; /* Removed top padding to eliminate gap */
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
    background-color: var(--dark-green);
    border-radius: 0 0 50% 50% / 0 0 120px 120px;
    padding: 4rem 5% 120px 5%;
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 500px;
}

.hero-intro-card {
    background-color: var(--pale-green);
    border-radius: 40px;
    width: 720px;
    max-width: 100%;
    padding: 4rem 3.5rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-intro-card p {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--black);
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-intro-card p + p {
    margin-top: 2rem;
}

/* Polaroid overlaps the bottom-LEFT of the card */
.hero-polaroid {
    position: absolute;
    bottom: -80px;
    left: -205px;
    width: 260px;
    background: var(--white);
    padding: 14px 14px 60px 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transform: rotate(-7deg);
    z-index: 3;
}

.hero-polaroid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Name overlaps the bottom-RIGHT of the card */
.hero-name {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-family: var(--font-name);
    font-weight: normal;
    font-size: 110px;
    color: var(--white);
    line-height: 0.95;
    text-align: left;
    z-index: 4;
    pointer-events: none;
}

.hero-name span {
    display: block;
}

.hero-name span:last-child {
    padding-left: 90px;
}

/* ============================================================
   HOMEPAGE — EDUCATION / EXPERIENCE CARDS
   ============================================================ */
.edu-exp-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    margin: 8rem auto 5rem auto;
    max-width: 1050px;
    min-height: 420px;
}

/* EDUCATION CARD — dark green, left, higher */
.edu-card {
    background-color: var(--dark-green);
    color: var(--white);
    border-radius: 35px;
    width: 520px;
    padding: 2.5rem 3rem 2.5rem 2.5rem; /* right padding is bigger to keep text clear of overlap */
    position: relative;
    z-index: 2;
    text-align: center;
}

.edu-card h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--white);
}

.edu-card p {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 1.3rem;
    padding-right: 1.5rem; /* keeps text away from the right edge where exp card overlaps */
}

.edu-card .btn {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    margin-top: 0.5rem;
    padding-right: 1.5rem;
}

/* EXPERIENCE CARD — pale green, right, lower, overlaps the edu card */
.exp-card {
    background-color: var(--pale-green);
    color: var(--black);
    border-radius: 35px;
    width: 520px;
    padding: 2.5rem 2.5rem 2.5rem 3.5rem; /* left padding bigger to keep text clear of overlap */
    position: relative;
    z-index: 1;             /* sits BEHIND the edu card on the overlapping side */
    margin-left: -50px;    /* pulls it left so it overlaps the edu card */
    margin-top: 90px;       /* pushes it down so it's staggered */
    text-align: center;
}

.exp-card h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--black);
}

.exp-card p {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.7;
    color: var(--black);
    padding-left: 1.5rem; /* keeps text away from the left edge where edu card overlaps */
}

/* ============================================================
   HOMEPAGE — FAVORITE PROJECTS
   ============================================================ */
.projects-preview {
    max-width: 1150px;
    margin: 5rem auto;
}

.projects-preview h3 {
    text-align: center;
    font-size: 30px;
    color: var(--black);
    margin-bottom: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card-wrapper {
    position: relative;
    width: 100%;
}

.project-card-wrapper::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -12px;
    width: 100%;
    height: 100%;
    background-color: var(--pale-green);
    border-radius: 30px;
    z-index: 0;
}

.project-card {
    position: relative;
    background-color: var(--dark-green);
    border-radius: 30px;
    padding: 1rem 1rem 1.2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 260px;
}

.project-card-image {
    background: var(--white);
    border-radius: 20px;
    height: 150px;
    width: 100%;
    overflow: hidden;
}

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

.project-card h4 {
    color: var(--white);
    font-size: 1.6rem;
    text-align: center;
}

.project-card .tech {
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9;
}

.projects-preview .btn-container {
    text-align: right;
    margin-top: 2rem;
}

.btn-pale {
    display: inline-block;
    background-color: var(--pale-green);
    color: var(--black);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 10px;
}

/* ============================================================
   GLOBAL SITE FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 4rem 5% 1rem;
    width: 100%;
    margin-top: 4rem;
}

.site-footer-inner {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    gap: 30rem;
    align-items: flex-start;
}

.footer-left {
    flex: 1;
    text-align: center;
}

.footer-left h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-left p {
    font-size: 1rem;
    line-height: 1.6;
}

.footer-favicon {
    width: 160px;
    height: auto;
    display: block;
    margin: 1.5rem 0 0 auto;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--white);
    text-decoration: none;
}

.contact-link span {
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================================
   CV DROPDOWN BUTTON
   ============================================================ */
.cv-dropdown {
    display: inline-block;
    margin-top: 1.8rem;
    position: relative;
    text-align: left;
}

.cv-btn {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--pale-green);
    color: var(--black);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none;
}

.cv-btn::-webkit-details-marker { display: none; }
.cv-btn::marker { display: none; }

.cv-btn:hover {
    background-color: var(--white);
    transform: translateY(-2px);
}

.cv-btn i {
    font-size: 1.05rem;
    color: var(--dark-green);
}

/* Rotate arrow when open */
.cv-dropdown[open] .cv-btn {
    border-radius: 10px 10px 0 0;
}

.cv-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background-color: var(--pale-green);
    border-radius: 0 0 10px 10px;
    padding: 0.6rem;
    margin-top: 0;
    animation: cvFade 0.2s ease-out;
}

@keyframes cvFade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cv-options a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    color: var(--black);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.cv-options a:hover {
    background-color: var(--white);
}

.cv-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-green);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    width: 28px;
    height: 22px;
    border-radius: 4px;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-page {
    max-width: 900px;
    margin: 4rem auto;
}

.project-feature-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.project-feature-wrapper::before {
    content: '';
    position: absolute;
    top: 12px;
    left: -12px;
    width: 100%;
    height: 100%;
    background-color: var(--pale-green);
    border-radius: 30px;
    z-index: 0;
}

.project-feature {
    position: relative;
    background-color: var(--dark-green);
    border-radius: 30px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1;
    min-height: 260px;
}

.project-feature.reverse {
    flex-direction: row-reverse;
}

.project-feature-image {
    background: var(--white);
    border-radius: 20px;
    width: 48%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.project-feature-image.geararts-project-image img {
    object-fit: contain;
    object-position: center;
    padding: 0.75rem;
    background: var(--white);
}

.project-feature-info {
    flex-grow: 1;
}

.project-feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-feature-header h3 {
    color: var(--white);
    font-size: 1.8rem;
}

.project-feature-header .tech {
    color: var(--white);
    font-size: 0.95rem;
    opacity: 0.9;
}

.project-feature-info p {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   EDUCATION PAGE
   ============================================================ */
.education-page {
    max-width: 850px;
    margin: 4rem auto;
}

.edu-page-card {
    background-color: var(--dark-green);
    border-radius: 30px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.edu-page-card h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.edu-page-inner {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    color: var(--black);
}

.edu-page-inner ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.edu-page-inner ul li {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.edu-page-inner p {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ============================================================
   ABOUT ME PAGE — EXACT CANVA LAYOUT
   ============================================================ */

.about-page {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 1700px;
}

/* ------------------------------------------------------------
   CONTENT CARDS
   ------------------------------------------------------------ */
.about-card {
    position: absolute;
    border-radius: 40px;
    padding: 2.5rem 3rem;
    text-align: center;
    z-index: 2;
}

.about-card h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.about-card p {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-card p:last-child { margin-bottom: 0; }

/* Card 1 — Get to know me (pale green, right of center) */
.card-get-to-know {
    background: var(--pale-green);
    color: var(--black);
    left: 326px;
    top: 84px;
    width: 882px;
    min-height: 294px;
}

.card-get-to-know h2 { color: var(--black); }

/* Card 2 — My travels (dark green, center-left) */
.card-travels {
    background: var(--dark-green);
    color: var(--white);
    left: 192px;
    top: 650px;
    width: 882px;
    min-height: 293px;
}

.card-travels h2 { color: var(--white); }

/* Card 3 — In my free time (pale green, wide, bottom) */
.card-free-time {
    background: var(--pale-green);
    color: var(--black);
    left: 16px;
    top: 1300px;
    width: 882px;
    min-height: 294px;
}

.card-free-time h2 { color: var(--black); }

/* ------------------------------------------------------------
   POLAROIDS
   ------------------------------------------------------------ */
.about-polaroid {
    position: absolute;
    background: var(--white);
    padding: 12px 12px 42px 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 200px;
    z-index: 3;
}

.about-polaroid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ------------------------------------------------------------
   GROUP 1 — Around "Get to know me"
   Photo 2 (forest) is behind Photo 1 (landscape)
   Photo 3 (lake) is in front of everything
   ------------------------------------------------------------ */
.p-me-2 {
    left: 170px;
    top: 50px;
    transform: rotate(5deg);
    z-index: 3;
}

.p-me-1 {
    left: 0px;
    top: 150px;
    transform: rotate(-10deg);
    z-index: 4;
}

.p-me-3 {
    left: 151px;
    top: 250px;
    transform: rotate(12deg);
    z-index: 5;
}

/* ------------------------------------------------------------
   GROUP 2 — Around "My travels" (right side)
   Photo 4 (city) behind Photo 5 (group)
   ------------------------------------------------------------ */
.p-travel-4 {
    left: 867px;
    top: 510px;
    transform: rotate(10deg);
    z-index: 3;
}

.p-travel-5 {
    left: 1031px;
    top: 600px;
    transform: rotate(-7deg);
    z-index: 4;
}

/* ------------------------------------------------------------
   GROUP 3 — Around "My travels" (left side)
   Railing (back) → Sunset (middle) → Mountain (front)
   ------------------------------------------------------------ */
.p-travel-1 {
    left: 18px;
    top: 650px;
    transform: rotate(-11deg);
    z-index: 3;
}

.p-travel-2 {
    left: 16px;
    top: 860px;
    transform: rotate(13deg);
    z-index: 4;
}

.p-travel-3 {
    left: 185px;
    top: 1010px;
    transform: rotate(-3deg);
    z-index: 5;
}

/* ------------------------------------------------------------
   GROUP 4 — Around "In my free time"
   Group photo (back) → Hiking → Table → Book (front-right)
   ------------------------------------------------------------ */
.p-free-2 {
    left: 873px;
    top: 1200px;
    transform: rotate(-3deg);
    z-index: 3;
}

.p-free-1 {
    left: -130px;
    top: 1480px;
    transform: rotate(-12deg);
    z-index: 3;
}

.p-free-3 {
    left: 868px;
    top: 1429px;
    transform: rotate(-13deg);
    z-index: 4;
}

.p-free-4 {
    left: 1044px;
    top: 1329px;
    transform: rotate(2deg);
    z-index: 5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 16px; }

    .hero-name { font-size: 56px; }
    .hero-polaroid { width: 150px; }

    .edu-exp-section { flex-direction: column; align-items: center; }
    .exp-card { margin-left: 0; margin-top: 1.5rem; }

    .projects-grid { grid-template-columns: 1fr; }

    .project-feature,
    .project-feature.reverse { flex-direction: column; }
    .project-feature-image { width: 100%; }

    .site-footer-inner { flex-direction: column; }

    .about-section { min-height: auto; }
    .about-polaroid { position: relative; margin: 1rem auto; display: block; }
}