@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{

    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #0d0d0d;/* button bg color*/

    --primary-text-color: #000;
    --header-link-hover: #dddcdccf;
    --footer-link-hover: #6dbb00;
    --input-focus-bd-color: #0d0d0d;
}

/* Dark theme variables applied when <html> has .dark class */
html.dark {
    --btn-color: #0d0d0d;
    --btn-bg: #f1f1f1;

    --primary-text-color: #ffffff;
    --header-link-hover: rgba(43,43,43,0.55);
    --footer-link-hover: #8bd56b;
    --input-focus-bd-color: #ffffff;

    --page-bg: #0b0b0b;
    --surface-bg: #0f0f0f;
}

/* Apply variables to core elements */
body {
    background-color: var(--page-bg, #ffffff);
    color: var(--primary-text-color, #000000);
}

/* Ensure anchored sections don't get hidden behind the fixed header */
section[id],
footer[id] {
    scroll-margin-top: 80px; /* matches header height + spacing; adjust if needed */
}

/* Override common Tailwind background utilities in dark mode so surfaces become dark too */
html.dark .tw-bg-white,
html.dark .tw-bg-\[\#fff\],
html.dark .tw-bg-\[\#f3f3f3b4\],
html.dark .tw-bg-\[\#e7e6e685\],
html.dark .tw-bg-\[\#edecec79\] {
    background-color: var(--surface-bg) !important;
}

/* Make black backgrounds slightly lighter in dark mode if needed (optional) */
html.dark .tw-bg-black {
    background-color: #000000 !important;
}

/* Text and border adjustments */
html.dark .tw-text-black {
    color: var(--primary-text-color) !important;
}
html.dark .tw-border-black {
    border-color: rgba(255,255,255,0.06) !important;
}

/* Thin separators that used black should be lighter in dark mode */
html.dark .tw-my-4.tw-h-\[1px\].tw-w-\[80\%\].tw-bg-black,
html.dark .tw-h-\[1px\].tw-w-\[80\%\].tw-bg-black {
    background-color: rgba(255,255,255,0.08) !important;
}

/* More aggressive overrides for other background utilities used across the markup */
html.dark .tw-bg-\[\#fff\],
html.dark .tw-bg-white,
html.dark .tw-bg-\[\#f3f3f3b4\],
html.dark .tw-bg-\[\#e7e6e685\],
html.dark .tw-bg-\[\#edecec79\],
html.dark .tw-bg-\[\#fff\]\:hover {
    background-color: var(--surface-bg) !important;
}

/* Specific components */
html.dark header .collapsible-header {
    background-color: var(--surface-bg) !important;
    color: var(--primary-text-color) !important;
}

html.dark .review-card,
html.dark .tw-rounded-lg,
html.dark .tw-rounded-md,
html.dark .tw-rounded-xl {
    background-color: var(--surface-bg) !important;
}

/* Dim images slightly in dark mode for better contrast */
html.dark img {
    filter: brightness(0.85) contrast(0.95);
}

/* Ensure buttons invert appropriately */
html.dark .btn{
    color: var(--btn-color) !important;
    background-color: var(--btn-bg) !important;
}

/* Links and small text */
html.dark .header-links{ color: var(--primary-text-color) !important; }
html.dark .footer-link{ color: var(--primary-text-color) !important; }

/* Broad selector: override any element that uses a Tailwind background utility */
html.dark [class*="tw-bg-"] {
    background-color: var(--surface-bg) !important;
    color: var(--primary-text-color) !important;
}

/* Also override inline background declarations (rare) */
html.dark [style*="background"]{
    background-color: var(--surface-bg) !important;
}

/* Keep explicit black backgrounds dark (don't invert to light) */
html.dark [class*="tw-bg-black"]{
    background-color: #000000 !important;
}

/* Force main layout surfaces to use dark background when dark mode is active */
html.dark body,
html.dark header,
html.dark main,
html.dark section,
html.dark footer,
html.dark .review-card,
html.dark .tw-rounded-lg,
html.dark .tw-rounded-md,
html.dark .collapsible,
html.dark .collapsible-header {
    background-color: var(--page-bg) !important;
    color: var(--primary-text-color) !important;
}

/* Ensure container backgrounds (that use tw-bg-... classes) also switch */
html.dark .tw-bg-\[\#f3f3f3b4\],
html.dark .tw-bg-\[\#e7e6e685\],
html.dark .tw-bg-\[\#edecec79\],
html.dark .tw-bg-white {
    background-color: var(--surface-bg) !important;
}



html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

header{
    /* background-color: #fff;
    color: #000; */
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.outline-effect {
    color: black;
    -webkit-text-fill-color: transparent; /* Will override color (regardless of order) */
    -webkit-text-stroke: 2px black;
}

.animated-collapse{
    transition: width 0.3s ease;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 25px;
    padding: 5px 15px;
    transition: background-color 0.5s, color 0.5s;
}


.header-links:hover {
    background-color: var(--header-link-hover);
}

.material-icons.md-40 { 
    font-size: 40px; 
}

.primary-text-color{
    color: var(--primary-text-color);
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 25px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 25px;
    /* outline: none; */
    min-width: 100px;
    border: 2px solid #818080;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 2px solid var(--input-focus-bd-color);
}

.input-error{
    border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within{
    border-bottom: 3px solid #fd0101;
}


/* Navigation dots styling */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.footer-link{
    color: #0d0d0d;
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--footer-link-hover);
}


.review-container {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.review-card{
    box-shadow: 0px 2px 4px #757474a0;
    border-radius: 15px;
    /* width: 200px; */
    /* height: 550px; */
    padding: 10px;
}

/* --------- collapsible div ---------- */
.collapsible {
    background-color: #f3f0f0;
    color: #2b2929;
    /* cursor: pointer; */
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s;
}

/* Style for the collapsible content */
.content {
    padding: 0 18px;
    /* display: none; */
    height: 0px;
    overflow: hidden;
    background-color: transparent;
    transition: height 0.5s;
    text-align: justify;
    margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
    /* background-color: #dedddd; */
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #ffffff;
        color: #000000;
        overflow-y: auto;
        box-shadow: 2px 0px 3px #000;
    }

    .header-links{
        color: black;
    }
    
}