@charset "UTF-8";

:root {
    /* Typography */
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Montserrat", sans-serif;

    /* Dark Mode Palette */
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --text-primary-dark: #f5f5f7;
    --text-secondary-dark: #86868b;
    --border-dark: rgba(255, 255, 255, 0.15);
    --accent-gold: #f0b95b;
    --accent-teal: #ffd289; /* Brighter teal */

    --bs-body-bg: var(--dark-bg);
    --bs-body-color: var(--text-primary-dark);
    --bs-light: var(--dark-surface); /* .bg-light for a lighter dark surface */
    --bs-dark: #000000;
    --bs-dark-rgb: 0, 0, 0;
    --bs-border-color: var(--border-dark);
    --bs-border-color-translucent: rgba(255, 255, 255, 0.1);
    --bs-link-color: #cfa15d;
    --bs-link-hover-color: #976839;
    --heading-color: var(--text-primary-dark);
    --bs-primary: var(--accent-teal);
    --bs-primary-rgb: 51, 198, 162;
    --bs-secondary: #a193c7;
    --glass-bg: rgba(30, 30, 30, 0.75);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: calc(4.5rem - 1px);
}

body {
    margin: 0;
    font-family: var(--default-font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.15;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--heading-color);
    font-family: var(--heading-font);
}

h1, .h1 { font-size: calc(1.375rem + 1.5vw); }
@media (min-width: 1200px) { h1, .h1 { font-size: 2.5rem; } }
h2, .h2 { font-size: calc(1.325rem + 0.9vw); }
@media (min-width: 1200px) { h2, .h2 { font-size: 2rem; } }
h4, .h4 { font-size: calc(1.275rem + 0.3vw); }
@media (min-width: 1200px) { h4, .h4 { font-size: 1.5rem; } }
h5, .h5 { font-size: 1.25rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--bs-link-hover-color);
}

img, svg { vertical-align: middle; }
button { border-radius: 0; }
button:focus:not(:focus-visible) { outline: 0; }
input, button, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
button:not(:disabled) { cursor: pointer; }
[hidden] { display: none !important; }

.form-group {
    margin-bottom: 1rem;
}

form.user .btn-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-block + .btn-block {
    margin-top: 0.5rem;
}

input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
    width: 100%;
}

/* Layout & Grid (Complete) */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;

    justify-content: center;


}

.glassy-image-border {
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.07), 0 8px 30px rgba(0, 0, 0, 0.4);
    opacity: 0.7; margin-bottom: 50px;
}

@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
.row {
    --bs-gutter-x: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}
.col { flex: 1 0 0%; }
.row-cols-2 > * { flex: 0 0 auto; width: 50%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.gx-0 { --bs-gutter-x: 0; }
.gx-4 { --bs-gutter-x: 1.5rem; }
.gx-lg-5 { --bs-gutter-x: 3rem; }
@media (min-width: 768px) {
    .row-cols-md-3 > * { flex: 0 0 auto; width: 33.333333%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
}
@media (min-width: 992px) {
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
    .order-lg-first { order: -1 !important; }

}
@media (min-width: 1200px) {
    .row-cols-xl-4 > * { flex: 0 0 auto; width: 25%; }
    .col-xl-6 { flex: 0 0 auto; width: 50%; }
}

/* Forms */
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary-dark);
    background-color: #2a2a2c;
    background-clip: padding-box;
    border: 1px solid #444;
    appearance: none;
    border-radius: .5rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-control:focus, .form-select:focus {
    color: var(--text-primary-dark);
    background-color: #333;
    border-color: var(--accent-gold);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(240, 185, 91, 0.25);
}
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f5f5f7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.form-control::placeholder {
    color: #6c757d;
}
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > :not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    font-family: var(--heading-font);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: .5rem;
    transition: all .2s ease-in-out;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* BUTTON STYLES */
.btn-primary {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}
.btn-primary:hover {
    background-color: #f2c170;
    border-color: #f1be66;
    color: #000;
}
.btn-secondary {
    color: #f5f5f7;
    background-color: transparent;
    border-color: #f5f5f7;
}
.btn-secondary:hover {
    color: #121212;
    background-color: #f5f5f7;
    border-color: #f5f5f7;
}

/* DARK MODE BUTTON STYLES */
.btn-outline-dark {
    color: #f1f1f1;
    border-color: #888;
}
.btn-outline-dark:hover {
    color: var(--dark-bg);
    background-color: #f1f1f1;
    border-color: #f1f1f1;
}
.btn-outline-primary { color: var(--accent-gold); border-color: var(--accent-gold); }
.btn-outline-primary:hover, .btn-outline-primary.active { color: white; background-color: var(--accent-gold); border-color: var(--accent-gold); }
.btn-outline-secondary { color: var(--text-secondary-dark); border-color: var(--text-secondary-dark); }
.btn-outline-secondary:hover { color: #fff; background-color: var(--text-secondary-dark); border-color: var(--text-secondary-dark); }
.btn-outline-danger { color: #ff5252; border-color: #ff5252; }
.btn-outline-danger:hover { color: #fff; background-color: #ff5252; border-color: #ff5252; }
.btn-group > :not(:first-child) { margin-left: -1px; }

/* Card */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--dark-surface);
    background-clip: border-box;
    border: 1px solid var(--border-dark);
    border-radius: 1rem;
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
    text-align: center;
}







.card-img-top { width: 100%; border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.card-footer { padding: 1rem 1.5rem; background-color: transparent; border-top: 1px solid var(--border-dark); }

/* Carousel */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-item { position: relative; display: none; float: left; width: 100%; margin-right: -100%; backface-visibility: hidden; transition: transform .6s ease-in-out; }
.carousel-item.active { display: block; }
.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15%;
    color: #fff;
    background: 0 0;
    border: 0;
    opacity: .5;
    transition: opacity .15s ease;
}
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: .9; }
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev-icon, .carousel-control-next-icon { display: inline-block; width: 2rem; height: 2rem; background-repeat: no-repeat; background-position: 50%; background-size: 100% 100%; }
.carousel-control-prev-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e"); }
.carousel-control-next-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.carousel-indicators { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; justify-content: center; padding: 0; margin-right: 15%; margin-bottom: 1rem; margin-left: 15%; list-style: none; }
.carousel-indicators [data-bs-target] { box-sizing: content-box; flex: 0 1 auto; width: 30px; height: 3px; padding: 0; margin: 0 3px; cursor: pointer; background-color: #fff; background-clip: padding-box; border: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: .5; transition: opacity .6s ease; }
.carousel-indicators .active { opacity: 1; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* * ===================================================================
 * CUSTOM THEME STYLES (Dark Mode Adapted)
 * ===================================================================
 */

/* * ===================================================================
 * III. NAVIGATION BAR
 * ===================================================================
 */
#mainNav {
    min-height: 3.5rem;
    border-bottom: 1px solid transparent;
    /* Core transitions for the navbar background itself */
    transition: background-color 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

#mainNav .navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: #fff;
    /* Transitions for the brand changing size/color */
    transition: font-size 0.3s ease-in-out, color 0.3s ease-in-out, padding 0.3s ease-in-out;
}

#mainNav .navbar-toggler {
    font-size: 80%;
    padding: .75rem;
    color: var(--text-secondary-dark);
    border-color: var(--text-secondary-dark);
}

#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 245, 247, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav .navbar-nav .nav-link {
    color: var(--text-secondary-dark);
    font-weight: 500;
    /* Transitions for the nav links changing size/color */
    transition: color 0.2s ease, padding 0.3s ease-in-out;
}
#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
    color: var(--text-primary-dark);
}

/* Desktop Styles */
@media (min-width: 992px) {
    /* 1. DEFAULT LARGER NAV */
    #mainNav {
        background-color: transparent;
        border-color: transparent;
    }
    #mainNav .navbar-brand {
        font-size: 2rem;
        padding: 1rem 0;
        color: var(--accent-gold);
    }
    #mainNav .navbar-nav .nav-link {
        padding: 2rem 1.5rem;
        color: rgba(255, 255, 255, .8);
    }
    #mainNav .navbar-nav .nav-link:hover {
        color: #fff;
    }

    /* 2. SHRUNK NAV STATE On scroll */
    #mainNav.navbar-shrink {
        background-color: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    #mainNav.navbar-shrink .navbar-brand {
        font-size: 1.5rem; /* LEAN brand text */
        padding: 0.5rem 0;
        color: var(--accent-gold);
    }
    #mainNav.navbar-shrink .navbar-nav .nav-link {
        color: var(--text-primary-dark);
        padding: 1.5rem 1.5rem; /* LEAN link padding */
    }
    #mainNav.navbar-shrink .navbar-nav .nav-link:hover {
        color: #fff;
    }
    #mainNav.navbar-shrink .navbar-nav .nav-link.active {
        color: var(--accent-gold);
    }
}

/* Mobile Menu Styling */
@media (max-width: 991.98px) {
    #mainNav {
        /* Mobile bar is always glass */
        background-color: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    #mainNav .navbar-brand {
        font-size: 1.5rem;
        color: var(--accent-gold);
    }
    #mainNav .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1rem;
        background-color: var(--dark-surface);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    #mainNav .navbar-nav .nav-link {
        padding: .75rem .5rem;
    }
}

/* Masthead (Hero Section) */
.masthead {
    position: relative;
    width: 100%;
    min-height: 35rem;
    padding: 15rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 75%, var(--dark-bg) 100%), url("../assets/img/coffee-bg1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}
.masthead h1 { font-family: "Varela Round", sans-serif; font-size: 2rem; line-height: 1.2; letter-spacing: .4rem; background: linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.9)); -webkit-text-fill-color: transparent; background-clip: text; -webkit-background-clip: text;}
.masthead h2 { max-width: 20rem; font-size: 1rem; }
@media (min-width: 992px) {
    .masthead { height: 100vh; padding: 0; }
    .masthead h1 { font-size: 4rem; line-height: 4rem; letter-spacing: .4rem; }
    .masthead h2 { max-width: 30rem; font-size: 1.25rem; }
}

/* Page Sections */
.about-section {
    padding-top: 10rem;
    background: linear-gradient(to bottom, var(--dark-bg) 0%, rgba(18,18,18,.9) 75%, rgba(18,18,18,.9) 100%);
}
.about-section p { margin-bottom: 5rem; }
.projects-section {
    padding: 5rem 0;
    background-color: var(--dark-surface) !important;
}
.projects-section .project-text { padding: 3rem; font-size: 90%; }
@media (min-width: 992px) {
    .projects-section .project-text { padding: 5rem; }
}
.signup-section {
    padding: 10rem 0;
    background: linear-gradient(to bottom, rgba(18,18,18,.1) 0%, rgba(18,18,18,.5) 75%, var(--dark-bg) 100%), url("../assets/img/bg-signup.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.contact-section {
    padding-top: 5rem;
    background-color: #000 !important;
}
.contact-section .card {
    border: 0;
    border-bottom: .25rem solid var(--accent-teal);
    background-color: var(--dark-surface);
}
.contact-section .card h4 { font-family: "Varela Round", sans-serif; text-transform: uppercase; letter-spacing: .15rem; }
.contact-section .card hr { opacity: 1; border-color: var(--accent-teal); border-width: .25rem; width: 3rem; }
.footer {
    padding: 5rem 0;
    background-color: #000 !important;
}

/* Utility Class for Dark Mode */
.text-white-50 { color: rgba(245,245,247,.6) !important; }
.text-black-50 { color: var(--text-secondary-dark) !important; }
.text-muted { color: var(--text-secondary-dark) !important; }
.text-white { color: var(--text-primary-dark) !important; }
.text-primary { color: var(--accent-teal) !important; }
.bg-light { background-color: var(--dark-surface) !important; }
.bg-black { background-color: #000 !important; }


/* Shop Cart (Bootdey variant) styles */
.shop-cart {
    margin-top: 20px;
}

.shop-cart .avatar-lg {
    height: 5rem;
    width: 5rem;
}

.shop-cart .font-size-18 {
    font-size: 18px !important;
}

.shop-cart .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-cart a {
    text-decoration: none !important;
}

.shop-cart .w-xl {
    min-width: 160px;
    background-color: var(--dark-surface);
}

/* Card appearance for cart items and summary */
.shop-cart .card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    margin-bottom: 16px;
    background-color: var(--dark-surface);
    background-clip: border-box;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    box-shadow: none;
}

/* Slim top flash error card for frontend pages (pushes content down) */
.message.error  {
    position: relative; /* participate in normal flow so it pushes content */
    margin: 6px auto;  /* space from the very top and center horizontally */
    background-color: var(--dark-surface);
    color: var(--text-primary-dark);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    max-width: 90vw;
    min-width: 240px;
    width: auto;
    text-align: center;
}
.message.error a { color: var(--text-primary-dark); text-decoration: underline; }
@media (max-width: 576px) {
    .message.error { min-width: unset; width: calc(100vw - 24px); }
}

/* Slim top flash normal message card for frontend pages (pushes content down) */
.message  {
    position: relative; /* participate in normal flow so it pushes content */
    margin: 6px auto;  /* space from the very top and center horizontally */
    background-color: var(--dark-surface);
    color: var(--text-primary-dark);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    max-width: 90vw;
    min-width: 240px;
    width: auto;
    text-align: center;
}
.message a { color: var(--text-primary-dark); text-decoration: underline; }
@media (max-width: 576px) {
    .message { min-width: unset; width: calc(100vw - 24px); }
}

/* Ensure content appears below the fixed-top navbar on login layout */
.has-fixed-navbar {
    padding-top: 82px;
}
