:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --font-family: 'Inter', sans-serif;
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body.dark-mode {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    background-image: url('../img/hero.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(248, 250, 252, 0.88); /* Frost effect on light mode */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
}

body.dark-mode::before {
    background: rgba(15, 23, 42, 0.88); /* Dark frost */
}

#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    background-color: var(--card-bg);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

#main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

/* Utilities */
.hidden {
    display: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animations & Glassmorphism */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.view {
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.8);
}

.hover-effect {
    cursor: default;
}
.hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: var(--primary-color);
}

/* Button Upgrades */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-origin: center;
}
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0) scale(0.98);
}
.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
}

/* Home Page Specifics */
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: -3rem;
    z-index: 10;
    position: relative;
    padding: 0 2rem;
}

.hero-bg {
    animation: zoomSlow 20s ease-in-out infinite alternate;
}
@keyframes zoomSlow {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

/* Dashboard Grids */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    
    /* Top Contact Bar */
    #app-container > div:first-child {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 10px 5% !important;
    }
    
    #app-container > div:first-child > div {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    /* Header */
    .main-header {
        flex-direction: column !important;
        padding: 15px 5% !important;
        gap: 15px !important;
    }
    
    .logo {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }
    
    #public-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        width: 100%;
        font-size: 0.9rem !important;
    }
    
    #public-nav .btn {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center;
        margin-top: 5px;
    }
    
    #main-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100%;
        gap: 10px !important;
    }
    
    #main-content {
        padding: 1rem !important;
    }
    
    .home-features-grid {
        margin-top: 1rem !important;
        padding: 0 !important;
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}
