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

* {
    font-family: "Inter", sans-serif;
}

.elegant-gradient {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
}

.gold-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.subtle-float {
    animation: subtleFloat 4s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.fade-in-elegant {
    animation: fadeInElegant 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInElegant {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-elegant {
    animation: slideInElegant 1s ease-out forwards;
    opacity: 0;
}

@keyframes slideInElegant {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.elegant-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.elegant-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.elegant-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #f59e0b, #d97706) border-box;
}

.typing-elegant {
    overflow: hidden;
    border-right: 3px solid #f59e0b;
    white-space: nowrap;
    animation: typingElegant 4s steps(50, end),
        blinkElegant 1s step-end infinite;
}

@keyframes typingElegant {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkElegant {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #f59e0b;
    }
}

.elegant-shine {
    position: relative;
    overflow: hidden;
}

.elegant-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.elegant-shine:hover::before {
    left: 100%;
}

.government-seal {
    width: 60px;
    height: 60px;
    background: conic-gradient(from 0deg, #f59e0b, #d97706, #92400e, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.government-seal::before {
    content: "";
    width: 50px;
    height: 50px;
    background: #1e3a8a;
    border-radius: 50%;
    position: absolute;
}

.government-seal::after {
    content: "🏛️";
    font-size: 18px;
    z-index: 1;
    position: relative;
}

.stats-counter {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a8a;
}

.elegant-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 1rem;
}

.news-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.elegant-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.elegant-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.gold-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.silver-button {
    background: linear-gradient(135deg, #a4b4d8 0%, #a39584 100%);
}

.silver-button:hover {
    background: linear-gradient(135deg, #73a4b3 0%, #46d385 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.gold-button:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #f59e0b;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .stats-counter {
        font-size: 1.5rem;
    }

    .government-seal {
        width: 50px;
        height: 50px;
    }

    .government-seal::before {
        width: 40px;
        height: 40px;
    }

    .government-seal::after {
        font-size: 14px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
}

.success-checkmark::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}
