:root {
    --bg-light: #f6F4F0;
    --bg-dark: #222222;
    --bg-card-light: #FFFFFF;
    --bg-card-dark: #2a2a2a;
    --text-dark: #222222;
    --text-light: #f6F4F0;
    --text-muted-light: #575757;
    --text-muted-dark: #A1A1AA;
    --border-color-light: #EAE8E4;
    --border-color-dark: #3a3a3a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-light);
    color: var(--text-dark);
    background-image:
        linear-gradient(rgba(34, 34, 34, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 34, 34, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

.font-heading {
    font-family: 'Satoshi', sans-serif;
}

/* Custom Utility Classes */
.bg-dark {
    background-color: var(--bg-dark);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-card-light {
    background-color: var(--bg-card-light);
}

.bg-card-dark {
    background-color: var(--bg-card-dark);
}

.text-dark {
    color: var(--text-dark);
}

.text-light {
    color: var(--text-light);
}

.text-muted-light {
    color: var(--text-muted-light);
}

.text-muted-dark {
    color: var(--text-muted-dark);
}

.border-border-color {
    border-color: var(--border-color-light);
}

/* Performance-optimized animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Colors Safety Fallback */
.bg-brand {
    background-color: #f97316 !important;
}

.hover\:bg-brand-darker:hover {
    background-color: #ea580c !important;
}

.text-brand {
    color: #f97316 !important;
}

/* Force white text on buttons */
.btn-text-white {
    color: #ffffff !important;
}

.animate-on-scroll {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-on-scroll.is-visible {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Base styles for scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b1b1b1;
}


/* Global Fixes */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Scroll Animations - Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: auto;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#cookie-banner.show {
    bottom: 0;
}

/* Mobile Menu Animation */
#mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* HIGH CONSTAST BUTTON FIXES */
.btn-primary {
    background-color: #f97316 !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800 !important;
}

.btn-primary:hover {
    background-color: #ea580c !important;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

.btn-primary svg {
    color: #ffffff !important;
}

/* GOOGLE TRANSLATE CUSTOM STYLING - HIDDEN FOR CUSTOM UI */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Force hide the original widget container */
#google_translate_element {
    visibility: hidden !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clip: rect(0 0 0 0) !important;
}

/* Ensure no other google styles leak */
.goog-te-gadget {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* COOKIE PREFERENCES MODAL */
#cookie-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#cookie-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

#cookie-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#cookie-modal-backdrop.show #cookie-modal {
    transform: scale(1);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.cookie-option:last-child {
    border-bottom: none;
}

/* Custom Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #f97316;
}

input:checked+.slider:before {
    transform: translateX(24px);
}

input:disabled+.slider {
    opacity: 0.5;
    cursor: not-allowed;
}