/* CSS Grid Layout for Leon Jenster Portfolio */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Happy Monkey", cursive, sans-serif;
    background-color: #f4f3ef;
    color: #000;
    overflow-x: hidden;
}

/* Main Container using CSS Grid */
.container {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    width: 100%;
}

/* Over mij page container - use flexbox instead of grid */
.overmij-page {
    display: flex;
    flex-direction: column;
}

/* Contact page container - use flexbox instead of grid */
.contact-page {
    display: flex;
    flex-direction: column;
}

/* Portfolio page container - use flexbox instead of grid */
.portfolio-page {
    display: flex;
    flex-direction: column;
}

/* Header Navigation */
.header {
    background-color: #f9d969;
    padding: 40px 80px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 36px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.nav-link.name {
    font-size: 40px;
    font-weight: bold;
    position: relative;
}

/* Main Content Area with Grid */
.main-content {
    grid-row: 2;
    position: relative;
    min-height: 2000px;
    padding: 0 20px 40px 20px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* Grey Pathway - Centered in Grid, starts from header and extends to board */
.pathway {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -40px;
    width: 592px;
    height: 1711px;
    z-index: 1;
    opacity: 0.52;
}

.pathway svg {
    width: 100%;
    height: 100%;
}

/* Green Circular Content Bubbles */
.content-bubble {
    background-color: #8faf9a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    font-size: 48px;
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.content-bubble:hover {
    transform: scale(1.05);
}

.content-bubble p {
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

/* Popup styling */
.bubble-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    max-width: 95vw;
    height: auto;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    pointer-events: none;
    filter: drop-shadow(0px 20px 60px rgba(0, 0, 0, 0.4))
        drop-shadow(0px 0px 40px rgba(143, 175, 154, 0.3));
}

.bubble-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-bg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.popup-close {
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    width: 69px;
    height: 56px;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s ease;
}

.popup-close:hover {
    transform: translateX(-50%) scale(1.1);
}

.popup-close svg {
    width: 100%;
    height: 100%;
}

.popup-text {
    position: absolute;
    top: 18%;
    left: 8%;
    right: 8%;
    bottom: 15%;
    font-family: "Jomhuria", cursive;
    font-size: 38px;
    text-align: center;
    color: #000;
    letter-spacing: 1.5px;
    line-height: 1.05;
    padding: 20px 60px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.bubble-motivatie {
    position: absolute;
    left: 180px;
    top: 380px;
    width: 280px;
    height: 280px;
}

.bubble-doel {
    position: absolute;
    right: 180px;
    top: 700px;
    width: 280px;
    height: 280px;
}

.bubble-inspiratie {
    position: absolute;
    left: 180px;
    top: 1100px;
    width: 280px;
    height: 280px;
}

/* Decorative Elements */
.decoration {
    position: absolute;
    z-index: 3;
}

.decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.leaf-top-left {
    left: 50px;
    top: 100px;
    width: 250px;
    height: 250px;
}

.flower-yellow {
    right: 50px;
    top: 50px;
    width: 400px;
    height: 400px;
}

.leaf-bottom-right {
    right: 50px;
    bottom: 500px;
    width: 250px;
    height: 250px;
}

.flower-red {
    left: 20px;
    bottom: -150px;
    width: 220px;
    height: 220px;
    transform: rotate(30deg);
}

/* Small Grey Pebbles - 3 beneath each green circle */
.pebble {
    position: absolute;
    background-color: #9e9e9b;
    border-radius: 50%;
    box-shadow: 0px 6px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Pebbles beneath "Mijn motivatie" bubble */
.pebble-1 {
    left: 230px;
    top: 750px;
    width: 55px;
    height: 38px;
    border-radius: 50% / 40%;
}

.pebble-2 {
    left: 270px;
    top: 680px;
    width: 60px;
    height: 42px;
    border-radius: 50% / 45%;
}

.pebble-3 {
    left: 220px;
    top: 825px;
    width: 50px;
    height: 36px;
    border-radius: 50% / 38%;
}

/* Pebbles beneath "Mijn doel" bubble */
.pebble-4 {
    right: 290px;
    top: 990px;
    width: 52px;
    height: 40px;
    border-radius: 50% / 42%;
}

.pebble-5 {
    right: 220px;
    top: 1050px;
    width: 58px;
    height: 44px;
    border-radius: 50% / 40%;
}

.pebble-6 {
    right: 190px;
    top: 1120px;
    width: 48px;
    height: 38px;
    border-radius: 50% / 38%;
}

/* Pebbles beneath "Mijn inspiratie" bubble */
.pebble-7 {
    left: 210px;
    top: 1520px;
    width: 54px;
    height: 40px;
    border-radius: 50% / 42%;
}

.pebble-8 {
    left: 300px;
    top: 1470px;
    width: 60px;
    height: 42px;
    border-radius: 50% / 40%;
}

.pebble-9 {
    left: 350px;
    top: 1395px;
    width: 50px;
    height: 38px;
    border-radius: 50% / 38%;
}

/* Wooden Board at Bottom */
.wooden-board {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 1650px;
    width: 900px;
    background-color: #c6a77a;
    border-radius: 61px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    z-index: 4;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.wooden-board::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b29870, transparent);
}

.wooden-board::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b29870, transparent);
}

.wooden-board-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents; /* Maakt ul transparant voor grid */
}

.board-section {
    background-color: #f6f2eb;
    padding: 50px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 42px;
    line-height: 1.3;
}

.board-section a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.board-section a:hover {
    opacity: 0.7;
}

/* Board Legs - Only 2 legs */
.board-leg {
    position: absolute;
    bottom: -60px;
    width: 50px;
    height: 80px;
    background-color: #ab916a;
    border: 1px solid #ab916a;
    z-index: 3;
}

.leg-1 {
    left: 120px;
}

.leg-2 {
    right: 120px;
}

.leg-3 {
    display: none;
}

.leg-4 {
    display: none;
}

/* Grey stones covering the board legs */
.leg-stone {
    position: absolute;
    bottom: -70px;
    width: 70px;
    height: 50px;
    background-color: #9e9e9b;
    border-radius: 50%;
    box-shadow: 0px 6px 4px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.stone-1 {
    left: 110px;
}

.stone-2 {
    right: 110px;
}

/* Footer */
.footer {
    grid-row: 3;
    background-color: #90acb5;
    padding: 40px 20px;
    margin-top: 100px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background-color: #90acb5;
    border-radius: 50% 50% 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 48px;
    margin-bottom: 40px;
}

.footer-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    font-size: 36px;
}

.footer-contact a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-contact a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ===== OVER MIJ PAGE SPECIFIC STYLES ===== */

.page-title-section {
    padding: 60px 0;
    text-align: center;
    background-color: transparent;
}

.page-title {
    font-size: 96px;
    font-weight: normal;
    margin: 0;
    text-align: center;
}

.overmij-page .main-content {
    min-height: auto;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.text-section {
    padding-right: 20px;
}

.text-section h2 {
    font-size: 48px;
    font-weight: normal;
    margin: 0 0 20px 0;
    letter-spacing: 3.2px;
}

.text-section p {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 304px);
    grid-template-rows: repeat(2, 304px);
    column-gap: 20px;
    row-gap: 200px;
}

.photo-item {
    width: 304px;
    height: 304px;
    border-radius: 50%;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CONTACT PAGE SPECIFIC STYLES ===== */

.page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 40px;
    text-align: center;
}

.page-content h1 {
    font-size: 64px;
    font-weight: normal;
    margin: 0;
    letter-spacing: 1px;
}

.contact-page .main-content {
    min-height: auto;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.contact-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-subtitle {
    font-size: 64px;
    font-weight: normal;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 404px);
    gap: 40px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-card {
    padding: 60px 40px;
    min-height: 524px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 0;
}

.contact-card h3 {
    font-size: 64px;
    font-weight: normal;
    color: white;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.card-description {
    font-size: 36px;
    color: white;
    line-height: 1.4;
    margin: 0 0 40px 0;
    max-width: 360px;
}

.card-info {
    font-family: "Jomhuria", cursive;
    font-size: 48px;
    color: white;
    margin: auto 0 0 0;
    letter-spacing: 1px;
    max-width: 100%;
}

a.card-info {
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

a.card-info:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.card-green {
    background-color: #8faf9a;
}

.card-teal {
    background-color: #90acb5;
}

.card-mauve {
    background-color: #b59091;
}

.socials-list {
    list-style: none;
    padding: 0;
    margin: auto 0 0 0;
    font-size: 36px;
    color: white;
    line-height: 2.5;
}

.socials-list li {
    position: relative;
    padding-left: 30px;
}

.socials-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 40px;
}

/* ===== PORTFOLIO PAGE SPECIFIC STYLES ===== */

.portfolio-page .main-content {
    min-height: auto;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.portfolio-subtitle {
    font-size: 64px;
    font-weight: normal;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-card.card-green {
    background-color: #8faf9a;
}

.portfolio-card.card-teal {
    background-color: #90acb5;
}

.portfolio-card.card-mauve {
    background-color: #b59091;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    width: 100%;
    height: 416px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.portfolio-card h3 {
    font-size: 32px;
    font-weight: normal;
    color: #000;
    margin: 20px 0 0 0;
    padding: 20px;
    line-height: 1.2;
    width: 100%;
}

/* Portfolio Popup Styling */
.portfolio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.portfolio-popup-bg {
    position: relative;
    width: 90%;
    max-width: 1400px;
    padding: 60px 40px;
    border-radius: 20px;
    filter: drop-shadow(0px 20px 60px rgba(0, 0, 0, 0.4));
}

.portfolio-popup-close {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 72px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.portfolio-popup-close:hover {
    transform: scale(1.1);
}

.portfolio-popup-close svg {
    width: 100%;
    height: 100%;
}

.portfolio-popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.portfolio-popup-text {
    font-family: "Happy Monkey", cursive;
    font-size: 24px;
    line-height: 1.6;
    color: #000;
    letter-spacing: 1.2px;
}

.portfolio-popup-text p {
    margin-bottom: 16px;
}

.portfolio-popup-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-popup-image img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

/* Portfolio Popup Video Styling */
.portfolio-popup-video {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-popup-video video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-popup-video iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Homepage Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(24, minmax(60px, auto));
    }

    .pathway {
        grid-column: 3 / 7;
    }

    .bubble-motivatie {
        grid-column: 1 / 3;
        grid-row: 3 / 5;
    }

    .bubble-doel {
        grid-column: 7 / 9;
        grid-row: 7 / 9;
    }

    .bubble-inspiratie {
        grid-column: 1 / 3;
        grid-row: 12 / 14;
    }

    .wooden-board {
        grid-column: 2 / 8;
        grid-row: 20 / 22;
    }

    .content-bubble {
        font-size: 36px;
        width: 220px;
        height: 220px;
    }

    .board-section {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .nav {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .header {
        padding: 20px 30px;
    }

    .nav-link {
        font-size: 28px;
    }

    .nav-link.name {
        font-size: 32px;
    }

    .main-content {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(30, minmax(50px, auto));
    }

    .pathway {
        grid-column: 2 / 4;
        grid-row: 1 / 24;
    }

    .bubble-motivatie {
        grid-column: 1 / 3;
        grid-row: 2 / 4;
        width: 180px;
        height: 180px;
    }

    .bubble-doel {
        grid-column: 3 / 5;
        grid-row: 8 / 10;
        width: 180px;
        height: 180px;
    }

    .bubble-inspiratie {
        grid-column: 1 / 3;
        grid-row: 14 / 16;
        width: 180px;
        height: 180px;
    }

    .wooden-board {
        grid-column: 1 / 5;
        grid-row: 24 / 27;
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .content-bubble {
        font-size: 28px;
    }

    .board-section {
        font-size: 24px;
        padding: 20px;
    }

    .footer-contact {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer {
        padding: 30px 20px;
    }

    .footer-text {
        font-size: 32px;
    }

    .footer-contact a {
        font-size: 24px;
    }

    .decoration {
        display: none;
    }

    .pebble {
        width: 30px !important;
        height: 25px !important;
    }
}

/* Over Mij Page Responsive */
@media (max-width: 1200px) {
    .overmij-page .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }

    .photo-grid {
        display: grid;
        grid-template-columns: repeat(2, 304px);
        grid-template-rows: repeat(2, 304px);
        column-gap: 20px;
        row-gap: 300px;
        justify-content: center;
    }

    .photo-item {
        width: 250px;
        height: 250px;
    }

    .text-section h2 {
        font-size: 40px;
    }

    .text-section p {
        font-size: 20px;
    }

    .page-title {
        font-size: 72px;
    }
}

@media (max-width: 768px) {
    .overmij-page .main-content {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 48px;
    }

    .page-title-section {
        padding: 40px 0;
    }

    .text-section h2 {
        font-size: 32px;
    }

    .text-section p {
        font-size: 18px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 150px);
        grid-template-rows: repeat(2, 150px);
        gap: 10px;
    }

    .photo-item {
        width: 150px;
        height: 150px;
    }
}

/* Contact Page Responsive */
@media (max-width: 1300px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 0 20px;
    }

    .contact-card {
        min-height: 450px;
        padding: 40px 30px;
    }

    .contact-card h3 {
        font-size: 48px;
    }

    .card-description {
        font-size: 28px;
    }

    .card-info {
        font-size: 48px;
    }

    .socials-list {
        font-size: 28px;
    }

    .contact-subtitle {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .contact-page .main-content {
        padding: 40px 20px;
    }

    .contact-subtitle {
        font-size: 36px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        min-height: auto;
        padding: 30px 20px;
    }

    .contact-card h3 {
        font-size: 40px;
    }

    .card-description {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .card-info {
        font-size: 36px;
    }

    .socials-list {
        font-size: 24px;
        line-height: 2;
    }
}

/* Portfolio Page Responsive */
@media (max-width: 1300px) {
    .portfolio-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 0 20px;
    }

    .portfolio-image {
        height: 350px;
    }

    .portfolio-card h3 {
        font-size: 40px;
    }

    .portfolio-subtitle {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .portfolio-page .main-content {
        padding: 40px 20px;
    }

    .portfolio-subtitle {
        font-size: 36px;
    }

    .portfolio-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-image {
        height: 300px;
    }

    .portfolio-card h3 {
        font-size: 32px;
        padding: 15px;
    }

    /* Portfolio Popup Responsive */
    .portfolio-popup-bg {
        width: 95%;
        padding: 40px 20px;
    }

    .portfolio-popup-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 60px;
    }

    .portfolio-popup-text {
        font-size: 18px;
    }

    .portfolio-popup-close {
        top: 20px;
        left: 80px;
        width: 50px;
        height: 40px;
    }

    .portfolio-popup-close-icon {
        width: 200px;
        height: 170px;
    }

    .portfolio-popup-image img {
        max-height: 400px;
    }

    .portfolio-popup-video video {
        max-height: 400px;
    }

    .portfolio-popup-video iframe {
        height: 350px;
    }
}
