:root {
    --primary-blue: #0d47a1;
    --secondary-blue: #1565c0;
    --light-blue: #42a5f5;
    --sky-blue: #81d4fa;
    --dark-blue: #0a2e5c;
    --navy-blue: #1a237e;
    --azure: #e3f2fd;
    --steel-blue: #546e7a;
    --powder-blue: #b3e5fc;
    --royal-blue: #1976d2;
    --cornflower: #6495ed;
    --slate-blue: #455a64;
    --ice-blue: #f0f8ff;
    --midnight: #0c1524;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 25%, var(--light-blue) 75%, var(--sky-blue) 100%);
    color: var(--midnight);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(129, 212, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(66, 165, 245, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(25, 118, 210, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.navbar-custom {
    background: var(--primary-blue);
    /* or use the specific blue color like: */
    /* background: #0d47a1; */
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand i {
    color: var(--sky-blue);
    margin-right: 12px;
    font-size: 2rem;
}

.hero-section {
    background: transparent;
    color: white;
    padding: 120px 0 100px;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--sky-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--powder-blue);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--cornflower) 0%, var(--royal-blue) 100%);
    border: none;
    padding: 16px 36px;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(25, 118, 210, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(25, 118, 210, 0.5);
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.btn-outline-custom {
    border: 2px solid rgba(179, 229, 252, 0.6);
    color: white;
    padding: 16px 36px;
    font-weight: 700;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-outline-custom:hover {
    background: rgba(179, 229, 252, 0.2);
    border-color: var(--sky-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(129, 212, 250, 0.3);
}

.features-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--ice-blue) 0%, #ffffff 100%);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 40px rgba(13, 71, 161, 0.12);
    border: 1px solid rgba(129, 212, 250, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue) 0%, var(--cornflower) 50%, var(--royal-blue) 100%);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(13, 71, 161, 0.2);
    border-color: var(--light-blue);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--royal-blue) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 12px 30px rgba(66, 165, 245, 0.4);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(66, 165, 245, 0.5);
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
    text-align: center;
}

.feature-description {
    color: var(--slate-blue);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
}

.about-section {
    background: linear-gradient(135deg, var(--azure) 0%, var(--powder-blue) 100%);
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.about-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(13, 71, 161, 0.15);
    border: 1px solid rgba(129, 212, 250, 0.3);
    backdrop-filter: blur(15px);
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(129, 212, 250, 0.3);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.highlight-list li:hover {
    background: rgba(179, 229, 252, 0.1);
    padding-left: 10px;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list i {
    color: var(--royal-blue);
    margin-right: 16px;
    font-size: 1.3rem;
    min-width: 24px;
}

.establishment-portal-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(129, 212, 250, 0.4);
    cursor: pointer;
    height: 100%;
    box-shadow: 0 15px 50px rgba(13, 71, 161, 0.15);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.establishment-portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.1) 0%, rgba(25, 118, 210, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.establishment-portal-card:hover::before {
    opacity: 1;
}

.establishment-portal-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 70px rgba(13, 71, 161, 0.25);
    border-color: var(--light-blue);
}

.portal-icon {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--cornflower) 0%, var(--royal-blue) 100%);
    color: white;
    box-shadow: 0 15px 40px rgba(100, 149, 237, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.establishment-portal-card:hover .portal-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 25px 50px rgba(100, 149, 237, 0.5);
}

.portal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    position: relative;
    z-index: 2;
}

.portal-description {
    color: var(--slate-blue);
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.badge-custom {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--royal-blue) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 6px;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.badge-secondary-custom {
    background: linear-gradient(135deg, var(--steel-blue) 0%, var(--slate-blue) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 6px;
    box-shadow: 0 4px 15px rgba(84, 110, 122, 0.3);
}

/* Modal Styles */
.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    margin: 30px auto;
}

.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 30px 80px rgba(13, 71, 161, 0.3);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
}

.modal-header {
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid rgba(129, 212, 250, 0.3);
    padding: 2rem;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: white;
}

.modal-body {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.98);
}

.form-control {
    border-radius: 16px;
    border: 2px solid rgba(129, 212, 250, 0.3);
    padding: 16px 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 0.25rem rgba(66, 165, 245, 0.25);
    background: white;
}

.btn-modal {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}

.government-login-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    text-decoration: none;
}

.government-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

footer {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 100px 0 80px;
    }
    
    .features-section, .about-section {
        padding: 80px 0;
    }

    .modal-dialog {
        margin: 15px;
        min-height: calc(100vh - 30px);
    }

    .portal-icon {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

