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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #6366f1 60%, #8b5cf6 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

* {
    box-sizing: border-box;
}

nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link.has-sub::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.6;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.25);
}

.nav-link:not(.has-sub)::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:not(.has-sub):hover::before {
    width: 50%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 8px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(96, 165, 250, 0.3);
    border-top: 1px solid rgba(96, 165, 250, 0.3);
    transform: rotate(45deg);
}

.nav-link:hover + .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.2);
}

@media (max-width: 1023px) {
    #mainNav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(96, 165, 250, 0.3);
        padding: 16px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        z-index: 100;
    }
    
    #mainNav.active {
        max-height: 500px;
        opacity: 1;
    }
    
    #mainNav li {
        width: 100%;
        text-align: center;
    }
    
    #mainNav .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        border-radius: 0;
    }
    
    #mainNav .nav-link.has-sub::after {
        display: none;
    }
    
    #mainNav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(96, 165, 250, 0.1);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: auto;
        display: none;
    }
    
    #mainNav .dropdown-menu::before {
        display: none;
    }
    
    #mainNav .dropdown-menu.active {
        display: block;
    }
    
    #mainNav .dropdown-link {
        padding: 12px 20px 12px 40px;
        text-align: left;
    }
    
    #mobileMenuBtn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.grid-bg {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
}

.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.4);
    box-shadow: 
        0 0 60px rgba(59, 130, 246, 0.4),
        0 0 100px rgba(139, 92, 246, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), rgba(167, 139, 250, 0.8), transparent);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    filter: blur(3px);
}

.divider-line {
    position: relative;
}

.divider-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.6), rgba(139, 92, 246, 0.4), transparent);
    box-shadow: 2px 0 10px rgba(96, 165, 250, 0.2);
}

@keyframes border-glow {
    0%, 100% {
        border-color: rgba(96, 165, 250, 0.5);
        box-shadow: 
            0 0 60px rgba(59, 130, 246, 0.4),
            0 0 100px rgba(139, 92, 246, 0.2),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        border-color: rgba(96, 165, 250, 0.7);
        box-shadow: 
            0 0 80px rgba(59, 130, 246, 0.5),
            0 0 120px rgba(139, 92, 246, 0.3),
            0 20px 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes scan-line {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(500px); opacity: 0; }
}

.corner-decor {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(96, 165, 250, 0.7);
    border-radius: 6px;
}

.corner-tl { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.corner-tr { top: -6px; right: -6px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -6px; left: -6px; border-right: none; border-top: none; }
.corner-br { bottom: -6px; right: -6px; border-left: none; border-top: none; }

.input-glow {
    transition: all 0.3s ease;
}

.input-glow:focus {
    box-shadow: 
        0 0 25px rgba(96, 165, 250, 0.5),
        0 0 50px rgba(96, 165, 250, 0.25),
        inset 0 0 20px rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.7);
}

.btn-glow {
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.8),
        0 0 60px rgba(139, 92, 246, 0.5),
        0 0 90px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.btn-glow:active {
    transform: translateY(0);
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4);
}

.logo-glow {
    position: relative;
    animation: logo-pulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

.logo-glow::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
}

@keyframes logo-pulse {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(59, 130, 246, 0.5),
            0 0 50px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(59, 130, 246, 0.7),
            0 0 70px rgba(139, 92, 246, 0.5),
            0 0 90px rgba(99, 102, 241, 0.3);
    }
}

.text-glow {
    text-shadow: 
        0 0 20px rgba(96, 165, 250, 0.8),
        0 0 40px rgba(96, 165, 250, 0.5);
    color: #ffffff;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon-bg {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: calc(100% - 8px);
    margin-left: 4px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    border-radius: 6px 0 0 6px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within .input-icon-bg {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), transparent);
}

.input-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.input-box::placeholder {
    color: rgba(209, 213, 219, 0.8);
}

.input-box:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(96, 165, 250, 0.9);
}

.input-icon {
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.input-wrapper:focus-within .input-icon {
    color: rgba(96, 165, 250, 1);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
    transform: scale(1.1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

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

@keyframes pulse-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particle-move 10s linear infinite;
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.9), 0 0 16px rgba(96, 165, 250, 0.5);
}

@keyframes particle-move {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.light-beam {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, rgba(147, 197, 253, 0.8), transparent);
    animation: beam-move 8s linear infinite;
    filter: blur(1px);
}

@keyframes beam-move {
    0% { transform: translateY(-200px) rotate(15deg); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(15deg); opacity: 0; }
}

.bg-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.15); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.checkbox-glow {
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-glow:checked {
    background-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.link-glow {
    position: relative;
    transition: all 0.3s ease;
}

.link-glow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px currentColor;
}

.link-glow:hover::after {
    width: 100%;
}

.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.divider-text {
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.news-section {
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.news-grid {
    overflow: hidden;
}

.news-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.news-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.6), rgba(139, 92, 246, 0.6));
    border-radius: 2px;
}

.news-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.8), rgba(139, 92, 246, 0.8));
}

.scrollbar-thin::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}