/* Global Styles */
:root {
    --primary: #0ff;
    --secondary: #f0f;
    --accent: #0f0;
    --dark: #121212;
    --darker: #0a0a0a;
}

body {
    background-color: var(--dark);
    color: white;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    cursor: url('../images/cursor.png'), auto;
}

/* Neon Text Effect */
.neon-text {
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.neon-text-secondary {
    text-shadow: 0 0 5px var(--secondary), 0 0 10px var(--secondary), 0 0 20px var(--secondary);
}

.neon-text-accent {
    text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent), 0 0 20px var(--accent);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(24px, 550px, 90px, 0); }
    20% { clip: rect(125px, 550px, 140px, 0); }
    40% { clip: rect(24px, 550px, 90px, 0); }
    60% { clip: rect(125px, 550px, 140px, 0); }
    80% { clip: rect(24px, 550px, 90px, 0); }
    100% { clip: rect(125px, 550px, 140px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(85px, 550px, 140px, 0); }
    20% { clip: rect(24px, 550px, 90px, 0); }
    40% { clip: rect(85px, 550px, 140px, 0); }
    60% { clip: rect(24px, 550px, 90px, 0); }
    80% { clip: rect(85px, 550px, 140px, 0); }
    100% { clip: rect(24px, 550px, 90px, 0); }
}

/* Navigation Links */
.nav-link {
    color: white;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    cursor: url('../images/cursor-pointer.png'), pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-link.active {
    color: var(--primary);
}

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

.mobile-nav-link {
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    cursor: url('../images/cursor-pointer.png'), pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    cursor: url('../images/cursor-pointer.png'), pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--dark);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    cursor: url('../images/cursor-pointer.png'), pointer;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--dark);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-accent {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    cursor: url('../images/cursor-pointer.png'), pointer;
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-accent:hover {
    color: var(--dark);
}

.btn-accent:hover::before {
    left: 0;
}

/* Card Styles */
.cyber-card {
    background-color: var(--darker);
    border: 1px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.cyber-card:hover::before {
    opacity: 0.05;
}

/* Form Styles */
.cyber-input {
    background-color: var(--darker);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: white;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.3);
}

.cyber-textarea {
    background-color: var(--darker);
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: white;
    padding: 0.75rem 1rem;
    width: 100%;
    min-height: 150px;
    transition: all 0.3s ease;
}

.cyber-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.3);
}

/* Loading Animation */
.loading-bar {
    height: 4px;
    background-color: var(--darker);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 3D Card Effect */
.card-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

/* Pricing Table */
.pricing-card {
    border: 1px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.pricing-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.4);
}

/* Gallery Grid */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(10, 10, 10, 0.9);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 30px;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.toast-notification.show {
    opacity: 1;
    animation: toast-appear 0.3s forwards;
}

@keyframes toast-appear {
    0% {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.toast-notification.glitch-effect {
    animation: toast-glitch 0.5s infinite;
}

@keyframes toast-glitch {
    0% {
        transform: translateX(-50%) skewX(0deg);
        text-shadow: 0.5px 0 0 var(--secondary), -0.5px 0 0 var(--accent);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    10% {
        transform: translateX(-51%) skewX(-2deg);
        text-shadow: 1px 0 0 var(--secondary), -1px 0 0 var(--accent);
        clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%);
    }
    20% {
        transform: translateX(-49%) skewX(2deg);
        text-shadow: 2px 0 0 var(--secondary), -2px 0 0 var(--accent);
        clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
    }
    30% {
        transform: translateX(-50%) skewX(0deg);
        text-shadow: 0.5px 0 0 var(--secondary), -0.5px 0 0 var(--accent);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    40% {
        transform: translateX(-52%) skewX(2deg);
        text-shadow: 1.5px 0 0 var(--secondary), -1.5px 0 0 var(--accent);
        clip-path: polygon(0 15%, 100% 5%, 100% 95%, 0 85%);
    }
    50% {
        transform: translateX(-48%) skewX(-2deg);
        text-shadow: 1px 0 0 var(--secondary), -1px 0 0 var(--accent);
        clip-path: polygon(0 5%, 100% 15%, 100% 85%, 0 95%);
    }
    60% {
        transform: translateX(-50%) skewX(0deg);
        text-shadow: 0.5px 0 0 var(--secondary), -0.5px 0 0 var(--accent);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    70% {
        transform: translateX(-51%) skewX(-1deg);
        text-shadow: 1px 0 0 var(--secondary), -1px 0 0 var(--accent);
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
    }
    80% {
        transform: translateX(-49%) skewX(1deg);
        text-shadow: 1.5px 0 0 var(--secondary), -1.5px 0 0 var(--accent);
        clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
    }
    90% {
        transform: translateX(-50%) skewX(0deg);
        text-shadow: 0.5px 0 0 var(--secondary), -0.5px 0 0 var(--accent);
        clip-path: polygon(0 5%, 100% 5%, 100% 95%, 0 95%);
    }
    100% {
        transform: translateX(-50%) skewX(0deg);
        text-shadow: 1px 0 0 var(--secondary), -1px 0 0 var(--accent);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Logo Scroll Animation */
.logos-container {
    width: 100%;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.logos-container::before,
.logos-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-container::before {
    left: 0;
    background: linear-gradient(to right, var(--darker) 0%, transparent 100%);
}

.logos-container::after {
    right: 0;
    background: linear-gradient(to left, var(--darker) 0%, transparent 100%);
}

.logos-scroll {
    display: flex;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px var(--primary));
}

.logo-item img {
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1 !important;
    transform: translateY(-5px);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.logos-container:hover .logos-scroll {
    animation-play-state: paused;
}

/* Cyber Grid Animation */
.cyber-grid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
    will-change: transform;
}

.cyber-grid::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--darker) 80%);
}

.cyber-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.cyber-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: line-move 8s linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

.cyber-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.cyber-line:nth-child(2) {
    top: 40%;
    animation-delay: 2s;
}

.cyber-line:nth-child(3) {
    top: 60%;
    animation-delay: 4s;
}

.cyber-line:nth-child(4) {
    top: 80%;
    animation-delay: 6s;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px);
    }
}

@keyframes line-move {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Glowing dots animation */
.cyber-dots-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.cyber-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0;
    filter: blur(1px);
    animation: dot-pulse 4s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes dot-pulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* Space Animation with Stars */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    background: linear-gradient(125deg, #000000 0%, #0a0a2a 50%, #000000 100%);
    pointer-events: none;
    display: block !important;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transform: rotate(var(--angle));
    animation: shoot var(--duration) linear var(--delay) infinite;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
    background: radial-gradient(circle, var(--color) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.asteroid {
    position: absolute;
    background-color: #a89682;
    border-radius: 40%;
    box-shadow: inset -5px -5px 5px rgba(0,0,0,0.5), 2px 2px 5px rgba(255,255,255,0.1);
    opacity: 0.7;
    animation: rotate var(--rotation-duration) linear infinite, float var(--float-duration) ease-in-out infinite;
}

.meteoroid {
    position: absolute;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at 30% 30%, #ff5500, #aa3300);
    border-radius: 50% 10% 50% 50%;
    box-shadow: 0 0 10px #ff3300, 0 0 20px rgba(255,100,0,0.5);
    opacity: 0;
    transform: rotate(var(--angle));
    animation: meteoroid var(--duration) linear var(--delay) infinite;
}

.meteoroid::after {
    content: '';
    position: absolute;
    width: calc(var(--size) * 5);
    height: calc(var(--size) / 3);
    background: linear-gradient(90deg, rgba(255,85,0,0.8) 0%, rgba(255,85,0,0.4) 50%, transparent 100%);
    border-radius: 50%;
    top: calc(var(--size) / 3);
    right: calc(var(--size) * 0.8);
    transform: rotate(var(--trail-angle));
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--max-opacity); transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

@keyframes shoot {
    0% { 
        transform: translateX(-100px) translateY(0) rotate(var(--angle));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(var(--y-offset))) rotate(var(--angle));
        opacity: 0;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(calc(var(--y-offset))) rotate(var(--angle));
        opacity: 0;
    }
}

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

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(var(--float-x), var(--float-y)) rotate(90deg); }
    50% { transform: translate(0, 0) rotate(180deg); }
    75% { transform: translate(calc(-1 * var(--float-x)), calc(-1 * var(--float-y))) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes meteoroid {
    0% {
        transform: translateX(-100px) translateY(var(--start-y)) rotate(var(--angle));
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 200px)) translateY(var(--end-y)) rotate(var(--angle));
        opacity: 0;
    }
} 