/* Modern Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #00274c 0%, #004080 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
}

.preloader-content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding-top: 10px;
    padding: 2rem;
    position: relative;
}

.preloader-logo {
    width: 150px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: logoFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.preloader-text {
    color: white;
    font-family: 'Poppins', sans-serif;
    margin: 1.5rem 0;
    overflow: hidden;
}

.welcome-text {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: textFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.dashboard-text {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    margin-bottom: 2rem;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 2rem auto;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1acc7d 0%, #00e676 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.loading-percentage {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Roboto Mono', monospace;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.9s forwards;
}

.preloader-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    position: relative;
}

.preloader-icon {
    width: 70%;
    height: 70%;
    object-fit: contain;
    animation: spin 2s linear infinite;
    opacity: 0;
    transform: scale(0.8);
    animation: iconEntrance 1s ease-out forwards, spin 2s linear infinite 1s;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes iconEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modern Page Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.dark-background {
    background-color: #00274c;
    color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: #1acc7d;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-get-started {
    display: inline-block;
    background: #1acc7d;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1acc7d;
}

.btn-get-started:hover {
    background: transparent;
    color: #1acc7d;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Modern Card Styles */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 204, 125, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

/* Data Sources Section */
.sources_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    position: relative;
    transform: perspective(500px) rotateX(0) rotateY(0);
}

.card:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 40px;
    color: #337ab7;
    padding: 20px;
    text-align: center;
}

.content {
    padding: 20px;
    text-align: center;
}

.content h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 10px;
    cursor: help;
    transition: color 0.3s ease;
}

.content p {
    font-size: 1rem;
    color: #666;
    display: none;
}

.card:hover .icon {
    color: #007dff;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    text-align: justify;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    text-align: right;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #ff0000;
    text-decoration: none;
    cursor: pointer;
}

/* Carousel Styles */
.bs-example {
    margin: 30px auto;
    max-width: 100%;
    padding: 0 15px;
}

#myCarousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #00274c;
}

.carousel-inner {
    padding: 40px;
    min-height: 300px;
}

.carousel-inner .item {
    text-align: center;
    color: white;
}

.carousel-inner h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1acc7d;
}

.carousel-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.carousel-inner p {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.6;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators li {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: #1acc7d;
}

.carousel-control {
    width: 5%;
    background: none;
    opacity: 0.8;
}

.carousel-control:hover {
    opacity: 1;
}

.carousel-control .glyphicon {
    color: white;
    font-size: 30px;
    text-shadow: none;
}

/* Search Styles */
.search {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 0px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 20px 25px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #001a33 0%, #00274c 100%);
    color: white;
    font-size: 1.1rem;
    padding-right: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    background: linear-gradient(135deg, #001a33 0%, #00274c 100%);
    box-shadow: 0 0 0 3px rgba(26, 204, 125, 0.3);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #1acc7d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.search-button:hover {
    background: #15b46c;
    transform: translateY(-50%) rotate(15deg);
}

/* Header Styles */
.header {
    transition: all 0.5s ease;
    background: rgba(0, 39, 76, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    height: 80px;
    top: 0;
    z-index: 1000;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo img {
    max-height: 50px;
    margin-right: 10px;
}

.header .sitename {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}


.mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 1px;
    left: 333px;
    right: 0px;
    margin-right: 0;
    z-index: 9999;
}

/* Desktop Navigation */
.navmenu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navmenu ul li {
    position: relative;
    margin: 0 8px;
}

.navmenu ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navmenu ul li a:hover,
.navmenu ul li a.active {
    color: white;
}

.navmenu ul li a.active::after,
.navmenu ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 12px;
    right: 12px;
    height: 4px;
    background: #1acc7d;
}

.nav-account {
    background: rgba(26, 204, 125, 0.1);
    border-radius: 50px;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
}

.nav-account:hover {
    background: rgba(26, 204, 125, 0.2);
}

/* Mobile Navigation Fix */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: flex !important;
        position: fixed;
        right: 15px;
        top: 20px;
        font-size: 28px;
        color: white;
        cursor: pointer;
        z-index: 1001;
        background: rgba(26, 204, 125, 0.2);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle:hover {
        background: rgba(26, 204, 125, 0.3);
    }

    .navmenu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 39, 76, 0.98);
        backdrop-filter: blur(10px);
        transition: all 0.5s ease;
        overflow-y: auto;
        z-index: 1000;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navmenu.active {
        right: 0;
    }

    .navmenu ul {
        display: flex !important;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .navmenu ul li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .navmenu ul li:last-child {
        border-bottom: none;
    }

    .navmenu ul li a {
        padding: 10px 15px !important;
        color: white !important;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navmenu ul li a:hover,
    .navmenu ul li a.active {
        color: #1acc7d !important;
    }

    .navmenu ul li a::after {
        display: none !important;
    }

    .dropdown .toggle-dropdown {
        transition: transform 0.3s ease;
    }

    .dropdown.active .toggle-dropdown {
        transform: rotate(180deg);
    }

    /* Ensure header has enough padding for the toggle */
    .header {
        padding: 15px 50px 15px 15px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #001a33 0%, #00274c 100%);
    color: white;
    font-size: 14px;
    position: relative;
}

.footer-top {
    padding: 60px 0 30px;
}

.footer-bottom {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    display: flex;
    align-items: center;
}

.footer-about .sitename {
    font-size: 24px;
    font-weight: 700;
    color: #1acc7d;
    margin-left: 10px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #1acc7d;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul a:hover {
    color: #1acc7d;
    padding-left: 5px;
}

.footer-links ul i {
    margin-right: 8px;
    font-size: 12px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #173759;
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.credits {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.credits a {
    color: #1acc7d;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: 100px 0;
    }

    .hero-img {
        margin-top: 50px;
    }

    .sources_container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-get-started {
        padding: 10px 25px;
    }

    .carousel-inner {
        padding: 30px 20px;
        min-height: 250px;
    }

    .carousel-inner h2 {
        font-size: 1.8rem;
    }

    .carousel-inner h3 {
        font-size: 1.3rem;
    }

    .carousel-control .glyphicon {
        font-size: 20px;
    }

    .footer-top {
        padding: 40px 0 20px;
    }

    .footer-links,
    .footer-contact {
        margin-bottom: 30px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

@media (max-width: 576px) {
    .sources_container {
        grid-template-columns: 1fr;
        width: 90%;
    }

    .search-input {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .search-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Iframe Styles for Dashboard */
iframe {
    border: none;
    width: 100%;
    height: 444vh;
    position: relative;
    top: 0;
    left: 0;
}

/* General Content Styles */
.intro {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.intro p span {
    font-weight: 600;
    color: #2980b9;
}

.intro p a {
    text-decoration: none;
    color: inherit;
}

/* Section Headers */
section h4 {
    font-family: 'Open Sans', sans-serif;
    color: #2980b9;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

section h6 {
    font-family: 'Open Sans', sans-serif;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-align: center;
}

/* Smooth transitions */
.navmenu,
.navmenu ul,
.navmenu ul li,
.navmenu ul li a {
    transition: all 0.3s ease;
}