:root {
    --primary-color: #0a192f;
    --secondary-color: #ffc107;
    --accent-color: #e53935;
    --text-light: #ffffff;
    --text-dark: #111827;
    --bg-light: #f8f9fa;
    --gold-gradient: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --blue-gradient: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Navbar */
.navbar {
    background: var(--primary-color) !important;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
.hero {
    background: var(--blue-gradient);
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    transform: skewY(-2deg);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.custom-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background: var(--blue-gradient);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary {
    background: var(--gold-gradient);
    border: none;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

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

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: white;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Membership Card Mockup */
.membership-card {
    width: 350px;
    min-height: 520px;
    background: white;
    border-radius: 20px;
    padding: 25px;
    color: var(--text-dark);
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card-header {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-logo {
    width: 80px;
    margin-bottom: 10px;
}

.card-photo {
    width: 120px;
    height: 120px;
    background: white;
    margin: 0 auto 15px;
    border-radius: 10px;
    border: 3px solid var(--secondary-color);
    overflow: hidden;
}

.card-details p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.card-details strong {
    color: var(--primary-color);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Responsive */
/* Responsive Improvements */
@media (max-width: 991px) {
    .main-navbar {
        padding: 8px 0;
        background: var(--primary-color) !important;
    }
    .main-navbar .navbar-brand span {
        font-size: 1rem;
    }
    .main-navbar .navbar-brand img {
        height: 28px;
    }
    
    body {
        padding-bottom: 80px; /* Space for refined bottom nav */
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    
    .hero {
        min-height: auto;
        padding: 80px 0 120px;
    }
}

/* Premium App-like Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 25px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    color: #888 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 2px;
    padding: 10px 0 !important;
    transition: 0.3s;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.mobile-bottom-nav .sos-btn {
    position: relative;
    top: -20px;
    background: var(--accent-color) !important;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
    border: 4px solid white;
    justify-content: center;
    z-index: 1001;
}

.mobile-bottom-nav .sos-btn i {
    font-size: 1.8rem;
}

.mobile-bottom-nav .sos-btn span {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .custom-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }
}

/* Utility Classes */
.rounded-25 { border-radius: 25px; }
.shadow-premium { box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* Global SOS Alert Bar */
.global-sos-alert {
    background: var(--accent-color);
    color: white;
    z-index: 2000;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.pulse-white {
    animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.9); opacity: 1; }
}

/* App-like touches */
.btn:active {
    transform: scale(0.95);
}
