/* Atawhai Theme Inspired from Big Brother Wordpress Theme */

/* --- Root & Base --- */
:root {
    --bb-bg-color: #f5f5f5;
    --bb-container-bg: #ffffff;
    --bb-text-main: #444;
    --bb-text-light: #666;
    --bb-accent: #222;
    --bb-link: #0073aa;
    --bb-link-hover: #d54e21;
    --bb-border: #e5e5e5;
    --bb-font: "Inter", Helvetica, Arial, sans-serif;
    --bb-max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bb-bg-color);
    color: var(--bb-text-main);
    font-family: var(--bb-font);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* --- Layout Wrapper --- */
.bb-wrapper {
    max-width: var(--bb-max-width);
    margin: 0 auto;
    background: var(--bb-container-bg);
    min-height: 100vh;
}

/* --- Navigation Bar --- */
.bb-navbar {
    width: 100%;
    background: var(--bb-container-bg);
    border-bottom: 1px solid var(--bb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.bb-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 50px;
}

.bb-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.bb-logo a {
    text-decoration: none;
}

/* --- Navigation (Desktop) --- */
.menu-toggle {
    display: none;
    transition: opacity 0.3s ease;
}

.bb-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-nav li {
    position: relative;
}

.bb-nav a {
    text-decoration: none;
    color: var(--bb-text-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.bb-nav a:hover {
    background-color: var(--bb-accent);
    color: #ffffff;
    opacity: 1;
}

.bb-nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bb-border);
    z-index: 100;
}

.bb-nav li:hover>ul {
    display: block;
}

.bb-nav li ul li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.75rem;
    text-transform: none;
}

/* --- Header --- */
.bb-header {
    padding: 0;
    height: 60vh;
    width: 100%;
    border-bottom: 5px solid var(--bb-accent);
    text-align: center;
    background: #edeeee;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.bb-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #00332a;
    background-image: url("../images/laptop.webp");
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.bb-tagline-container {
    color: white;
    text-align: center;
    padding: 25px 20px;
    border-bottom: 1px solid var(--bb-border);
    margin-top: 20px;
    width: auto;
}

.bb-tagline-container p {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.bb-header-container h1 {
    color: white;
    border: 5px solid white;
    padding: 40px;
    margin: 0;
    font-size: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bb-cta-container {
    text-align: center;
    margin-top: 25px;
}

.bb-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fdd31c;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.bb-btn-primary:hover {
    background-color: transparent;
    color: #fdd31c;
    border-color: #fdd31c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* --- Main Content Area --- */
.bb-main {
    display: flex;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fcfcfc;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 400px));
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.bb-section-title {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bb-section-title img {
    width: 30px;
    height: 30px;
}

.project-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--bb-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.project-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Project Image */
.project-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    /* -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.1)); */
}

/* Placeholder image */
.image-placeholder {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #999;
    border-radius: 10px;
}

.image-placeholder::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    top: 100%;
    margin-top: 1px;
    height: 40px;
    /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent); */
    border-radius: 10px 10px 0 0;
    pointer-events: none;
    opacity: 0.5;
}

.bb-content {
    flex: 3;
    min-width: 0;
}

.image .bb-content {
    flex: 3;
    max-width: 850px;
}

.bb-content h2 {
    font-size: 2rem;
    margin-top: 0;
    color: var(--bb-accent);
}

.bb-content p {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.bb-divider {
    border: 0;
    border-top: 1px solid var(--bb-border);
    margin: 20px 0;
}

/* Container for the lab card*/
.flax-container {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--bb-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The Left Side: Image Container */
.flax-image-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

}

.flax-image-box img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 25px;
}

/* The Right Side: Text Content */
.flax-text-box {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flax-text-box h4 {
    margin-top: 0;
}

.lab-items a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lab-items:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.bb-sidebar {
    flex: 1;
    width: 250px;
    padding-left: 40px;
    font-size: 0.9rem;
}

main li,
article li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

main li strong,
article li strong {
    color: #0b4e02;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bb-border);
}

.sidebar-widget h4 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: var(--bb-accent);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    margin-bottom: 10px;
    color: var(--bb-text-light);
}

.research-download-container {
    margin: 30px 0;
    text-align: center;
}

.research-download-button {
    display: inline-block;
    background-color: #00332a;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.research-download-button:hover {
    background-color: #004d40;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.research-download-button:active {
    transform: translateY(0);
}

* {
    box-sizing: border-box;
}

.about-cv-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.about-header {
    border-bottom: 2px solid #00332a;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.about-name {
    font-size: 1.8rem;
    color: #00332a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.about-contact {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0 0;
}

.about-download-btn {
    float: right;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #00332a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #00332a;
}

.print-cv-btn {
    float: right;
    margin-top: 15px;
    padding: 10px 20px;
    margin-left: 10px;
    background-color: #ffffff;
    color: #00332a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.print-cv-btn:hover {
    background-color: transparent;
    border-radius: 4px;
    border-color: #00332a;
    color: #00332a;
    border: 1px solid #00332a;
}

.ibm-skills-badges {
    margin: 30px 0;
}

.ibm-skills-badges img {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.about-download-btn:hover {
    background-color: transparent;
    color: #00332a;
}

.about-section {
    margin-bottom: 25px;
}

.about-section-title {
    font-size: 1.2rem;
    color: #00332a;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-text {
    margin: 0;
    font-size: 0.95rem;
}

.about-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.about-list-item {
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
    font-size: 0.95rem;
}

.about-list-item::before {
    content: "•";
    color: #00332a;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-bold {
    font-weight: 700;
    color: #111;
}

.about-job {
    margin-bottom: 20px;
}

.about-job-title {
    font-size: 1.1rem;
    margin: 0;
    color: #111;
}

.about-job-meta {
    font-size: 0.9rem;
    color: #555;
    margin: 4px 0 8px;
}

/* Adjustments for Tablets and Desktops */
@media (min-width: 768px) {
    .about-cv-container {
        padding: 40px;
        margin: 20px auto;
    }

    .about-name {
        font-size: 2.5rem;
    }

    .about-section-title {
        font-size: 1.4rem;
    }

    .about-text,
    .about-list-item,
    .about-job-meta {
        font-size: 1rem;
    }
}

/* --- Map --- */
#map {
    height: 600px;
    width: 100%;
    filter: sepia(1) contrast(0.9) brightness(0.8) hue-rotate(-15deg);
    border: 10px double #3d2b1f;
    background-color: #d9c8a9;
    margin-top: 20px;
}

.rdr-marker {
    background-color: #FF0000;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #2e1a05;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.rdr-pin-svg {
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.rdr-pin-path {
    fill: #8B0000;
    stroke: #2e1a05;
    stroke-width: 1.5;
}

/* --- Footer --- */
.bb-footer {
    background-color: #00332a;
    background-image: linear-gradient(to bottom, rgba(0, 51, 42, 0) 10%, rgba(0, 51, 42, 1) 90%),
        url("../images/silver-fern.webp");
    background-size: cover;
    background-position: center;
    background-blend-mode: normal, overlay;
    padding: 60px 80px;
    color: white;
}

.main-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    flex: 0 0 100%;
    margin-bottom: 40px;
}

.footer-left {
    flex: 0 0 50%;
}

.footer-right {
    flex: 0 0 50%;
    text-align: right;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.footer-socials a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.footer-left ul,
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-left ul li,
.footer-column ul li {
    margin-bottom: 15px;
}

.footer-left ul li a,
.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-left ul li a:hover,
.footer-column ul li a:hover {
    color: white;
}

.back-to-top {
    display: inline-block;
    border: 1px solid white;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: white;
    color: #00332a;
}

.footer-divider {
    flex: 0 0 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 0 0 40px 0;
}

.bb-copyright {
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: white;
    background: black;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .bb-navbar {
        position: relative;
    }

    .card-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .bb-nav-container {
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* BURGER ICON */
    .menu-toggle {
        display: block;
        cursor: pointer;
        background: none;
        border: none;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--bb-accent);
        margin-bottom: 5px;
    }

    #nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        border-bottom: 1px solid var(--bb-border);
        z-index: 9999;
    }

    /* Fixed visibility logic for toggle */
    #nav-list.is-active {
        display: block !important;
    }

    #nav-list .bb-nav {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }

    .bb-nav a {
        display: block;
        width: 100%;
    }

    .bb-nav li ul {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: #fafafa;
        margin-top: 10px;
    }

    .bb-main {
        flex-direction: column;
        padding: 20px;
    }

    .bb-sidebar {
        flex: 1;
        width: 250px;
        margin-top: 40px;
    }

    .flax-container {
        flex-direction: column;
        align-items: center;
    }

    .flax-image-box,
    .flax-text-box {
        width: 100%;
        flex: none;
    }

    .flax-text-box {
        padding: 20px;
    }

    .main-footer {
        flex-direction: column;
        text-align: left;
        gap: 40px;
    }

    /* Back to Top button */
    .back-to-top {
        display: inline-block;
        border: 1px solid white;
        padding: 8px 15px;
        color: white;
        text-decoration: none;
        font-size: 0.7rem;
        text-transform: uppercase;
        transition: all 0.3s ease;
    }

    .back-to-top:hover {
        background: white;
        color: #00332a;
    }

    .footer-left,
    .footer-right {
        flex: 0 0 100%;
        text-align: left;
    }

    .bb-footer {
        padding: 30px 20px;
    }


    .footer-divider {
        margin: 10px 0 20px 0;
    }
}

/* --- Print Stylings --- */
@media print {

    /* Hide non-essential elements */
    .bb-navbar,
    .about-download-container,
    .bb-footer,
    .bb-tagline-container,
    #backToTop,
    .back-to-top,
    iframe[id^="hubspot-messages-iframe"],
    #hubspot-messages-iframe-container,
    .hubspot-messages-iframe-container,
    [id^="hs-messages-"],
    #hs-messages-wrapper,
    .hs-script-loader {
        display: none !important;
        visibility: hidden !important;
    }

    /* Layout adjustments */
    body {
        background: white !important;
        color: black !important;
        font-size: 10pt;
    }

    .bb-wrapper,
    .bb-main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        box-shadow: none !important;
    }

    .bb-main {
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
    }

    .bb-content {
        flex: 2.5 !important;
        padding-right: 30px !important;
        max-width: none !important;
    }

    .bb-sidebar {
        flex: 1 !important;
        padding-left: 20px !important;
        border-left: 1px solid #eee !important;
        margin-top: 0 !important;
    }

    /* Typography and Spacing */
    .about-cv-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .about-section {
        margin-bottom: 12px !important;
    }

    .about-section-title {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .about-name {
        font-size: 1.6rem !important;
    }

    .about-job {
        margin-bottom: 10px !important;
    }

    /* Prevent breaking icons or headers across pages */
    h1,
    h2,
    h3 {
        page-break-after: avoid;
    }

    section,
    .about-job {
        page-break-inside: avoid;
    }

    /* Reset colors for printing */
    .about-bold,
    .about-section-title,
    .about-name {
        color: #00332a !important;
    }
}
