:root {
    --ecso-blue: #0099de;
    --nav-dark: #0a0f1e;
    --purple: #5b5df2;
}

html {
    scroll-behavior: smooth;
}

.sticky-nav {
 z-index: 101;
}

#page-loader-bar.loading {
    animation: pulse-loading 2s infinite;
}

@keyframes pulse-loading {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}


@keyframes ping-pong-left {
    0%, 100%, 50% { transform: translateX(0); opacity: 0.5; }
    25% { transform: translateX(-10px); opacity: 1; }
}
@keyframes ping-pong-right {
    0%, 100%, 50% { transform: translateX(0); opacity: 0.5; }
    75% { transform: translateX(10px); opacity: 1; }
}

.animate-ping-left { animation: ping-pong-left 1.2s ease-in-out infinite; }
.animate-ping-right { animation: ping-pong-right 1.2s ease-in-out infinite; }

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
}

.sticky-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background: rgba(10, 15, 30, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 2px;
    padding-bottom: 2px;
}

.nav-scrolled #navLinks a,
.nav-scrolled .dropdown-trigger {
    color: #1a1a1a !important;
}

.nav-scrolled #navLinks a:hover,
.nav-scrolled .dropdown-trigger:hover {
    color: var(--ecso-blue) !important;
}

.nav-button-portal {
    background-color: #1d80fe;
    color: white !important;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    border: none;
    letter-spacing: 0.01em;
}

.nav-button-portal:hover {
    background-color: #006ae6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 128, 254, 0.3);
}

.nav-button-portal:active {
    transform: scale(0.98);
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-trigger::after {
    content: "";
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='3' stroke='white' %3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block;
}

.nav-scrolled .dropdown-trigger::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='3' stroke='%231a1a1a' %3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
}

.dropdown:hover .dropdown-trigger::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 1100;
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-content a {
    color: #444 !important;
    padding: 12px 20px !important;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #f4f7ff;
    color: var(--ecso-blue) !important;
    padding-left: 25px !important;
}

.hero-dark {
    background-color: var(--nav-dark);
    color: white;
    position: relative;
    padding-top: 120px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 153, 222, 0.12) 0%, rgba(0, 153, 222, 0) 70%);
    filter: blur(80px);
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

footer {
    background-color: var(--nav-dark);
    color: #94a3b8;
    padding: 5rem 1.5rem 3rem;
}

footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

footer a:hover {
    color: var(--ecso-blue);
}