:root {
    --gradient-blue: linear-gradient(135deg, #0A2A5E 0%, #0F4C9E 25%, #2563EB 50%, #3B82F6 70%, #22D3EE 100%);
    --gradient-cyan: linear-gradient(135deg, #0891B2 0%, #06B6D4 40%, #22D3EE 70%, #67E8F9 100%);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
    background: #050B1A;
    color: #E2E8F0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
}

header {
    transition: all 0.15s ease-out;
}

header.scrolled {
    background: rgba(5, 11, 26, 0.95) !important;
    backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(37, 99, 235, 0.3) !important;
}

header.nav-neon {
    border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
}

header.nav-neon::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
}

.nav-link {
    position: relative;
    transition: color 0.15s ease-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: width 0.15s ease-out;
}

.nav-link:hover,
.nav-link.active {
    color: #22D3EE;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.15s ease-out;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
}

@media (max-width: 768px) {
    .btn-primary {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

.mobile-menu a.active {
    color: #22D3EE;
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        opacity: 0;
        transform: scale(4);
    }
}

.float-btn {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 50;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    transition: all 0.15s ease-out;
    animation: floatBtnPulse 3s ease-in-out infinite;
}

@keyframes floatBtnPulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(34, 211, 238, 0.6);
    }
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.7);
}

#backToTop {
    position: fixed;
    right: 2rem;
    bottom: 6rem;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 32, 62, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #93C5FD;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease-out;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: rgba(37, 99, 235, 0.3);
    color: #22D3EE;
    transform: translateY(-3px);
}

.footer-nav-col h4 {
    position: relative;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    color: #E2E8F0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.footer-nav-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gradient-blue);
    border-radius: 1px;
}

.footer-nav-col ul li {
    margin-bottom: 0.625rem;
}

.footer-nav-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #94A3B8;
    font-size: 0.875rem;
    transition: all 0.15s ease-out;
}

.footer-nav-col ul li a::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.5);
    transition: all 0.15s ease-out;
}

.footer-nav-col ul li a:hover {
    color: #22D3EE;
    transform: translateX(4px);
}

.footer-nav-col ul li a:hover::before {
    background: #22D3EE;
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.8);
}

@media (max-width: 768px) {
    .anim-fade-left,
    .anim-fade-right,
    .anim-slide-left,
    .anim-slide-right {
        transform: translateY(24px) !important;
    }

    .anim-fade-left.visible,
    .anim-fade-right.visible,
    .anim-slide-left.visible,
    .anim-slide-right.visible,
    .anim-fade-left.anim-active,
    .anim-fade-right.anim-active,
    .anim-slide-left.anim-active,
    .anim-slide-right.anim-active {
        transform: translateY(0) !important;
    }

    .float-btn {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
    }

    #backToTop {
        right: 1rem;
        bottom: 4.75rem;
    }
}
