@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --card-bg: #1e293b;
}

[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

[data-theme="dark"] header {
    background-color: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}

[data-theme="dark"] .card-hover,
[data-theme="dark"] .state-card,
[data-theme="dark"] .job-card,
[data-theme="dark"] .stats-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .dropdown-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .dropdown-content a {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .dropdown-content a:hover {
    background-color: #334155 !important;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card-hover::before,
.main-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.card-hover:hover::before,
.main-button:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.state-card {
    border-left: 4px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card-bg);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.state-card:hover {
    border-left-color: var(--accent-blue);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.state-card:hover h4 {
    color: #3b82f6;
    transform: scale(1.05);
}

.state-card h4 {
    transition: all 0.3s ease;
}

.state-card:hover .state-emoji {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.state-emoji {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.job-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-radius: 4px;
    margin: 2px 4px;
}

.dropdown-content a:hover {
    background-color: var(--bg-secondary);
    color: #3b82f6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-section-header {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    margin: 0;
    border-radius: 4px;
    margin: 4px;
}

.main-button {
    position: relative;
    overflow: hidden;
}

/* Floating Social Media & Follow Buttons (right) */
.social-float-right {
    position: fixed;
    right: 20px;
    bottom: 80px; /* Position above the scroll button */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.join-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.join-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-group-btn { background: linear-gradient(90deg, #25D366, #128C7E); }
.whatsapp-channel-btn { background: linear-gradient(90deg, #128C7E, #075E54); }
.telegram-group-btn { background: linear-gradient(90deg, #0088cc, #005A8D); }
.telegram-channel-btn { background: linear-gradient(90deg, #005A8D, #003657); }
.join-btn-text {
    font-size: 13px;
}

/* Scroll-to-top/down button */
.scroll-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 900;
}

.scroll-btn:hover {
    transform: scale(1.1);
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-btn.up {
    transform: rotate(0deg);
}

.scroll-btn.down {
    transform: rotate(180deg);
}

.live-news-scroll {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.live-news-scroll span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

.live-news-container {
    background-color: #fca5a5;
    color: #4b5563;
    padding: 0.5rem 1rem;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Custom Table and Notification styles */
.custom-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.custom-table th {
    background-image: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    text-align: left;
}

.custom-table td {
    padding: 12px 24px;
    word-break: break-word;
}

.custom-table tr:hover {
    background-color: var(--bg-secondary);
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background-color: var(--card-bg);
    z-index: 1000;
    overflow-y: auto;
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}
.mobile-menu-overlay.active {
    display: block;
}
.burger-menu {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.burger-line {
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
.slogan-section {
    background-color: #3b82f6;
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}
.slogan-section:hover {
    background-color: #1d4ed8;
    transform: scale(1.02);
}
.site-name-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 8px 16px;
    color: var(--text-primary);
    border-radius: 0.375rem;
}
.nav-link:hover {
    background-color: #e2e8f0;
    color: #3b82f6;
}
.dropdown-trigger {
    font-weight: 500;
    cursor: pointer;
    position: relative;
    padding: 8px 16px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dropdown-trigger:hover {
    background-color: #e2e8f0;
    color: #3b82f6;
}

/* Footer specific social icon styles */
.social-icons-footer a {
    transition: all 0.3s ease;
}
.social-icons-footer a:hover {
    transform: scale(1.2);
    color: #3b82f6;
}
.social-icons-footer .fa-brands, .social-icons-footer .fa-solid {
    font-size: 24px;
}

/* Message box styles */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 2000;
    max-width: 350px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.message-box.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}
.message-box-overlay.active {
    display: block;
}

.footer-link-button {
    display: inline-block;
    background-color: #4f46e5;
    color: white;
    padding: 8px 16px;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.footer-link-button:hover {
    background-color: #3b82f6;
}

