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

:root {
    --primary: #00A8E8;
    --primary-dark: #007EA7;
    --secondary: #1B262C;
    --accent: #FF4C29;
    --accent-hover: #E84525;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    --card-light: #FFFFFF;
    --card-dark: #1E293B;
    --text-light: #1E293B;
    --text-dark: #F8FAFC;
    --text-muted-light: #64748B;
    --text-muted-dark: #94A3B8;
    --border-light: #E2E8F0;
    --border-dark: #334155;
    --nav-height: 80px;
    --nav-mobile-height: 64px;
}

[data-theme="dark"] {
    --bg-page: var(--bg-dark);
    --bg-card: var(--card-dark);
    --text-main: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --border-color: var(--border-dark);
}

[data-theme="light"] {
    --bg-page: var(--bg-light);
    --bg-card: var(--card-light);
    --text-main: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border-color: var(--border-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Utilities */
.btn-primary {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(255, 76, 41, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Sidebar Styling */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.sidebar-link:hover {
    background-color: rgba(0, 168, 232, 0.1);
}

.sidebar-link.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Burger Button Visibility Fixes */
#burger-btn {
    color: var(--primary);
    /* Default to brand blue */
    transition: color 0.3s ease;
}

/* When on a page with a dark hero AND not scrolled yet, make burger white */
.nav-on-dark:not(.nav-scrolled) #burger-btn {
    color: white;
}

[data-theme="dark"] .nav-on-dark:not(.nav-scrolled) #burger-btn {
    color: white;
}