@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-base: #f5f2eb;           /* Classic Bauhaus warm matte canvas/cream background */
    --bg-surface: #ffffff;
    --bg-surface-hover: #fffbea;   /* Slight warm yellow tint on hover */
    --bg-card: #ffffff;
    --border-color: #000000;
    --border-color-hover: #000000;
    
    --border-width: 3px;
    
    /* Bauhaus Primary Color Palette */
    --color-primary: #f6c845;      /* Bauhaus Ochre Yellow */
    --color-primary-hover: #e0b232;
    --color-primary-glow: rgba(0, 0, 0, 0.15);
    
    --color-secondary: #d13526;    /* Bauhaus Vermilion/Tomato Red */
    --color-secondary-hover: #b82c1f;
    --color-secondary-glow: rgba(0, 0, 0, 0.15);
    
    --color-info: #1b4f72;         /* Bauhaus Cobalt Blue */
    --color-info-hover: #153e5b;
    
    --color-gradient: #f6c845;     /* Solid Ochre Yellow */
    
    --color-success: #27ae60;      /* Flat green */
    --color-success-glow: #27ae60;
    --color-warning: #f6c845;      
    --color-warning-glow: #f6c845;
    --color-error: #d13526;        
    --color-error-glow: #d13526;
    
    --text-primary: #000000;       /* High-contrast solid black */
    --text-secondary: #1a1a1a;
    --text-muted: #555555;
    
    /* Bauhaus features sharp geometric corners */
    --radius-sm: 0px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-full: 9999px;
    
    /* Offset offset flat black shadows */
    --shadow-sm: 3px 3px 0px 0px #000000;
    --shadow-md: 6px 6px 0px 0px #000000;
    --shadow-lg: 10px 10px 0px 0px #000000;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    --transition-fast: 0.1s ease;
    --transition-normal: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Blocky Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
    border-left: var(--border-width) solid #000000;
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border: var(--border-width) solid #000000;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Typography with Bauhaus bold geometry */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

h1 {
    font-size: 3.75rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 500;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: 700;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-secondary);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: var(--color-primary);
    padding: 0.25rem 0.5rem;
    border: 2px solid #000000;
    color: #000000;
    font-weight: 700;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.grid {
    display: grid;
    gap: 2.5rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }
}

.flex {
    display: flex;
}
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }

/* Sticky Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000000;
    border-bottom: var(--border-width) solid #000000;
    transition: background var(--transition-fast);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.01em;
    border: var(--border-width) solid #000000;
    background: var(--color-primary);
    padding: 0.4rem 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.logo:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000000;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.nav-link {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: var(--border-width) solid transparent;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: #000000;
    background: #ffffff;
    border-color: #000000;
    box-shadow: var(--shadow-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.avatar-btn {
    background: var(--color-secondary);
    border: var(--border-width) solid #000000;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.avatar-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #000000;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    width: 220px;
    background: #ffffff;
    border: var(--border-width) solid #000000;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    box-shadow: var(--shadow-md);
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 200;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 800;
    border-bottom: 2px solid #000000;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--color-primary);
}

.dropdown-link.logout {
    color: #ffffff;
    background: var(--color-error);
}
.dropdown-link.logout:hover {
    background: #ff4d4d;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: #000000;
    border: var(--border-width) solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
}
.mobile-nav-toggle:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #000000;
        border-bottom: var(--border-width) solid #000000;
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.show {
        display: flex;
    }
    .nav-link {
        color: #ffffff;
    }
    .site-header .nav-actions .btn {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .nav-link-primary {
        background: var(--color-primary) !important;
        color: #000000 !important;
        border: var(--border-width) solid #000000 !important;
        box-shadow: var(--shadow-sm) !important;
        text-align: center;
    }
    .nav-link-primary:hover {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* Buttons with Hard Shadow and Pop effect */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.05rem;
    font-weight: 900;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-heading);
    border: var(--border-width) solid #000000;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #000000;
}
.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}
.btn-primary:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.btn-outline {
    background: #ffffff;
    color: #000000;
}
.btn-outline:hover {
    background: var(--bg-surface-hover);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}
.btn-outline:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000000;
    box-shadow: var(--shadow-sm);
}

.site-header .btn-ghost {
    color: #ffffff;
}
.site-header .btn-ghost:hover {
    color: #000000;
    background: #ffffff;
    border-color: #000000;
    box-shadow: var(--shadow-sm);
}


.btn:disabled {
    background: #e2e8f0;
    border-color: #a0aec0;
    box-shadow: none;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none !important;
}

/* Badges / Tags */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    border: var(--border-width) solid #000000;
    box-shadow: var(--shadow-sm);
    background: #ffffff;
    color: #000000;
}

.tag-badge.primary-outline {
    background: var(--color-primary);
}

.tag-badge.error-outline {
    background: var(--color-secondary);
    color: #ffffff;
}

.tag-badge.success-outline {
    background: var(--color-success);
}

.tag-badge.ghost {
    background: #ffffff;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid #000000;
    border-radius: var(--radius-sm);
    color: #000000;
}

.status-tag.success { background: var(--color-success); }
.status-tag.warning { background: var(--color-warning); }
.status-tag.error { background: var(--color-error); color: #ffffff; }
.status-tag.ghost { background: #ffffff; }

/* Cards with Offset Hard Shadows */
.card {
    background: var(--bg-card);
    border: var(--border-width) solid #000000;
    border-radius: var(--radius-sm);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
    background: #ffffff;
    border: var(--border-width) solid #000000;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
    width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    background: var(--bg-surface-hover);
    box-shadow: var(--shadow-sm);
    transform: translate(-1px, -1px);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath stroke='%23000000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
}

/* Custom Accordion (FAQ) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: var(--border-width) solid #000000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    font-size: 1rem;
    transition: transform var(--transition-normal);
    color: #000000;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    border-top: var(--border-width) solid #000000;
    background: #fffdf9;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: var(--border-width) solid #000000;
    box-shadow: var(--shadow-sm);
    color: #000000;
}

.alert-success {
    background: var(--color-success);
}
.alert-error {
    background: var(--color-error);
    color: #ffffff;
}

/* Intersection Animations (Fade Up) - FIXED: LOAD INSTANTLY FOR MAXIMUM SPEED */
.fade-up {
    opacity: 1 !important;
    transform: none !important;
}

.stagger > * {
    opacity: 1 !important;
    transform: none !important;
}

/* Site Footer */
.site-footer {
    background: #ffffff;
    border-top: var(--border-width) solid #000000;
    padding: 5rem 0 3rem 0;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 1rem;
    max-width: 300px;
    font-weight: 500;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-bottom {
    border-top: var(--border-width) solid #000000;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-primary);
    transition: transform var(--transition-fast);
}

.social-link:hover {
    transform: scale(1.15);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem !important;
    }
    h2 {
        font-size: 1.85rem !important;
    }
    h3 {
        font-size: 1.4rem !important;
    }
    .tag-badge {
        white-space: normal !important;
        text-align: center;
    }
}
