/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 5, 16, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-glow));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-glow), var(--primary-color));
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Enhanced Hero Section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 119, 255, 0.1) 0%, rgba(5, 5, 16, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    opacity: 0.7;
    transition: var(--transition);
    z-index: 2;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    80% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* Enhanced Service Cards */
.service-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary-color), transparent, transparent, var(--primary-glow));
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 167, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0.5);
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Contact Form */
.contact form {
    position: relative;
    overflow: hidden;
}

.contact form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 167, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0.5);
    z-index: -1;
}

.contact form:hover::before {
    opacity: 1;
    transform: scale(1);
}

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

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
}

.submit-btn:hover::before {
    left: 100%;
    transition: 0.7s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 119, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 0 10px rgba(0, 167, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(0, 119, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 167, 255, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
}

/* Enhanced Typography */
.hero-content h1 {
    position: relative;
    display: inline-block;
}

.hero-content h1::before,
.hero-content h1::after {
    content: '';
    position: absolute;
    height: 3px;
    background: var(--primary-glow);
    box-shadow: 0 0 10px var(--primary-glow);
}

.hero-content h1::before {
    width: 30px;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
}

.hero-content h1::after {
    width: 30px;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
}
