@import url('https://fonts.googleapis.com/css2?family=Allura&family=Handjet&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Sensation_and_Qualities';
    src: url('../../fonts/sensations_and_qualities/Sensations_and_Qualities.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Champagne_and_Limousines';
    src: url('../../fonts/champagne_and_limousines/Champagne & Limousines.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Fonts */
    --font-family: 'Noto Sans', sans-serif;
    --font-family-title: 'Allura', sans-serif;
    --font-family-subtitle: 'Handjet', cursive;
    --font-family-kanit: 'Kanit', sans-serif;
    --font-family-comfortaa: 'Comfortaa', sans-serif;
    --font-family-sensation: 'Sensation_and_Qualities', sans-serif;
    --font-family-champagne: 'Champagne_and_Limousines', sans-serif;

    /* Colors */
    --color-offwhite: #f6f6f6;
}

.Sens_and_Qual {
    font-family: 'Sensation_and_Qualities';
}

.font-comfortaa {
    font-family: var(--font-family-comfortaa);
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* text colors */
.text-offwhite {
    color: var(--color-offwhite);
}

.Logo {
    font-family: var(--font-family-sensation) !important;
    color: #000 !important;
    font-size: 5rem !important;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-family-comfortaa);
}

.font-allura {
    font-family: var(--font-family-title);
}

.font-comfortaa {
    font-family: var(--font-family-comfortaa);
}

.off_white {
    color: #f6f6f6;
}

.nav-item:hover {
    color: #6b6b6b;
}

.nav-item.active {
    text-decoration: underline;
}

.aboutme_text {
    font-size: 18px;
    color: #495057;
}

.aboutme_text-kopje {
    font-family: var(--font-family-title);
    font-size: 24px;
    color: #F6F6F6;
}

.navbar {
    height: 125px;
    background-color: #D9D9E1 !important;
    padding: 0 !important;
}

main {
    height: calc(100vh - 125px);
    overflow: hidden;
    background-color: #F2F0EF;
}

#mainContent {
    display: none; /* Initially hidden */
}

/* Carousel */
.carousel-inner, .carousel-item, .carousel-item img {
    height: calc(100vh - 125px);
}

.carousel-control-prev, .carousel-control-next {
    display: none; /* Hides the control arrows */
}

.carousel-item {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
}

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

.carousel-indicators img {
    cursor: pointer;
    height: 30px !important; /* Thumbnail height, adjust as needed */
    width: auto;
    margin: 2px; /* Spacing between thumbnails */
    opacity: 0.5;
    pointer-events: all;
    flex: 0 0 auto;
}

.carousel-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0;
    max-height: 120px;
    scrollbar-width: thin;
    scrollbar-color: #d6d6d6 #f0f0f0;
    overflow-y: auto;
}

.carousel-indicators::-webkit-scrollbar {
    height: 4px;
}

.carousel-indicators::-webkit-scrollbar-thumb {
    background-color: darkgrey;
}

.carousel-indicators .active {
    opacity: 1; /* Highlight the active thumbnail */
}

.carousel-control-prev, .carousel-control-next {
    display: none;
}

.card {
    position: relative;
    width: 250px; /* Set the width of your card */
    height: 300px !important; /* Set the height of your card */
    overflow: hidden; /* Ensures the image doesn't extend beyond the card's dimensions */
}

.card-img {
    width: 248px !important;
    height: auto;
    object-fit: cover; /* Ensures the image covers the whole card */
}

.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    color: white; /* Text color */
    display: flex;
    justify-content: left;
    align-items: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for the text appearance */
}

.card:hover .card-body {
    opacity: 1; /* Show text on hover */
}

.card-link {
    text-decoration: none; /* Removes the underline of a link */
    color: inherit; /* Inherits the text color */
}

@media screen and (max-width: 768px) {
    .card-body {
        opacity: 1 !important; /* Show text on mobile */
    }
}

@media screen and (max-width: 868px) {
    .card-container {
        width: 100% !important;
    }
}

@media (max-width: 990px) {
    /* Creates the full-screen overlay */
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040; /* Sits just below the hamburger button */
        width: 100%;
        height: 100vh;
        background-color: #e2e2e5 !important; /* Matches your new light grey navbar */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centers the links vertically */
        align-items: center;     /* Centers the links horizontally */
    }

    /* Keeps the hamburger button clickable on top of the menu */
    .navbar-toggler {
        z-index: 1050;
        position: relative;
    }

    /* Stack the links nicely */
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    /* Make links bigger and easier to tap on mobile */
    .custom-navbar .nav-link {
        font-size: 2rem;
        padding: 15px 0;
    }

    /* Smooth transition for the menu opening */
    #navbarToggler {
        transition: all 0.3s ease-in-out;
    }
}

@media (max-width: 767px) {
    .about_me_image {
        width: 100%;
    }
}

/* Ensures the logo image scales with the screen size */
.navbar .Logo img {
    max-height: 120px; /* Maximum height of the logo */
    width: auto; /* Maintains the aspect ratio */
    height: auto; /* Maintains the aspect ratio */
}

@media (max-width: 768px) { /* Adjusts when the screen is less than 768px */
    .navbar .Logo img {
        max-height: 80px; /* Smaller max-height for smaller screens */
    }
}

@media (max-width: 480px) { /* Adjusts for very small devices */
    .navbar .Logo img {
        max-height: 60px; /* Even smaller max-height for very small screens */
    }
}

/* =========================================
   NEW NAVBAR STYLES (Light Grey, Thin Text)
   ========================================= */
.custom-navbar {
    background-color: #e2e2e5 !important; /* Light grey from reference image */
    height: 100px;
}

.custom-navbar .nav-link {
    color: #333 !important;
    font-family: var(--font-family-champagne);
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover {
    color: #888 !important;
}

/* Override the old navbar height to match the new design */
.navbar {
    height: 100px;
}
main {
    height: calc(100vh - 100px);
}

/* =========================================
   HERO SECTION (Static Image + Centered Logo)
   ========================================= */
.hero-section {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* =========================================
   HERO LOGO IMAGE (Responsive Scaling)
   ========================================= */
.hero-logo-img {
    width: 90%;
    max-width: 700px;
    height: auto;
    filter: drop-shadow(3px 3px 10px rgba(0, 0, 0, 0.6));
    transition: max-width 0.3s ease;
}

@media (max-width: 990px) {
    .hero-logo-img {
        max-width: 450px;
    }
}

@media (max-width: 576px) {
    .hero-logo-img {
        max-width: 300px;
        margin-top: 20px;
    }
}

/* =========================================
   HEXAGON RING PORTFOLIO (Catan Style)
   ========================================= */
.hex-ring-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
    overflow: hidden;
}

.hex-ring {
    --hex-w: 260px;
    --hex-h: calc(var(--hex-w) * 1.1547);
    position: relative;
    width: calc(var(--hex-w) * 3);
    height: calc(var(--hex-h) * 2.5);
}

@media (max-width: 900px) { .hex-ring { --hex-w: 200px; } }
@media (max-width: 600px) { .hex-ring { --hex-w: 130px; } }
@media (max-width: 400px) { .hex-ring { --hex-w: 105px; } }

.hex-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: #fff;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .hex-center-text { font-size: 2rem; }
}

.hex-card {
    position: absolute;
    margin-top: calc(var(--hex-h) / -2);
    margin-left: calc(var(--hex-w) / -2);
    width: calc(var(--hex-w) - 4px);
    height: calc(var(--hex-h) - 4px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #444;
    display: block;
    transition: transform 0.3s ease, z-index 0.3s;
    z-index: 1;
}

.hex-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: background 0.3s ease;
}

.hex-card:hover {
    transform: scale(1.05);
    z-index: 5;
}
.hex-card:hover .hex-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.hex-pos-1 { left: calc(50% - var(--hex-w) * 0.5); top: calc(50% - var(--hex-h) * 0.75); }
.hex-pos-2 { left: calc(50% + var(--hex-w) * 0.5); top: calc(50% - var(--hex-h) * 0.75); }
.hex-pos-3 { left: calc(50% + var(--hex-w));       top: 50%; }
.hex-pos-4 { left: calc(50% + var(--hex-w) * 0.5); top: calc(50% + var(--hex-h) * 0.75); }
.hex-pos-5 { left: calc(50% - var(--hex-w) * 0.5); top: calc(50% + var(--hex-h) * 0.75); }
.hex-pos-6 { left: calc(50% - var(--hex-w));       top: 50%; }


/* =========================================
   HONEYCOMB GALLERY GRID (Responsive)
   ========================================= */
.honeycomb-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px 100px 20px;
    overflow: hidden;
}

.honeycomb-grid {
    --hex-w: 240px;
    --hex-gap: 16px;
    --hex-h: calc(var(--hex-w) * 1.1547);

    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.honeycomb-cell {
    width: var(--hex-w);
    height: var(--hex-h);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #444;
    margin-right: var(--hex-gap);
    margin-bottom: calc(var(--hex-h) * -0.25 + var(--hex-gap));
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1;
}

.honeycomb-cell:hover {
    transform: scale(1.05);
    z-index: 10;
}

.honeycomb-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------
   DESKTOP (1050px+): 4-3-4-3 Pattern
   ----------------------------------------- */
@media (min-width: 1050px) {
    .honeycomb-grid {
        width: calc(var(--hex-w) * 4 + var(--hex-gap) * 3);
    }
    .honeycomb-cell:nth-child(7n + 4) { margin-right: 0; }
    .honeycomb-cell:nth-child(7n) { margin-right: 0; }
    .honeycomb-cell:nth-child(7n + 5) {
        margin-left: calc(var(--hex-w) * 0.5 + var(--hex-gap) * 0.5);
    }
}

/* -----------------------------------------
   TABLET (768px - 1049px): 3-2-3-2 Pattern
   ----------------------------------------- */
@media (max-width: 1049px) and (min-width: 768px) {
    .honeycomb-grid {
        --hex-w: 200px;
        --hex-gap: 12px;
        --hex-h: calc(var(--hex-w) * 1.1547);
        width: calc(var(--hex-w) * 3 + var(--hex-gap) * 2);
    }
    .honeycomb-cell { margin-left: 0; } /* Reset */
    .honeycomb-cell:nth-child(5n + 3) { margin-right: 0; }
    .honeycomb-cell:nth-child(5n) { margin-right: 0; }
    .honeycomb-cell:nth-child(5n + 4) {
        margin-left: calc(var(--hex-w) * 0.5 + var(--hex-gap) * 0.5);
    }
}

/* -----------------------------------------
   MOBILE (Under 768px): Alternating Zig-Zag Column
   ----------------------------------------- */
@media (max-width: 767px) {
    .honeycomb-grid {
        --hex-w: 200px;
        --hex-gap: 8px;
        --hex-h: calc(var(--hex-w) * 1.1547);

        /* Container width is 1 hexagon + half a hexagon for the offset */
        width: calc(var(--hex-w) * 1.5 + var(--hex-gap)) !important;

        /* Force a vertical column instead of wrapping */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .honeycomb-cell {
        width: var(--hex-w) !important;
        height: var(--hex-h) !important;
        margin-right: 0 !important;
        margin-left: 0 !important;

        /* Pull up to interlock vertically */
        margin-bottom: 0 !important;
        margin-top: calc(var(--hex-h) * -0.25 + var(--hex-gap)) !important;
    }

    /* First item doesn't need negative top margin */
    .honeycomb-cell:first-child {
        margin-top: 0 !important;
    }

    /* Push even items to the right side of the container */
    .honeycomb-cell:nth-child(even) {
        align-self: flex-end !important;
    }
}

/* -----------------------------------------
   EXTRA SMALL MOBILE (Under 385px): Scale down further
   ----------------------------------------- */
@media (max-width: 385px) {
    .honeycomb-grid {
        --hex-w: 150px !important; /* Shrink the hexagons */
        --hex-gap: 6px !important; /* Slightly smaller gap */
        --hex-h: calc(var(--hex-w) * 1.1547) !important;
    }
}
