/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    backdrop-filter: blur(2px);
    transition: transform 0.2s ease;
}

/* Cyber Grid */
.cyber-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

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

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 #00f3ff;
    animation: glitch-anim 2s infinite linear alternate;
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 56px, 0);
    }
    20% {
        clip: rect(12px, 9999px, 65px, 0);
    }
    40% {
        clip: rect(78px, 9999px, 92px, 0);
    }
    60% {
        clip: rect(33px, 9999px, 47px, 0);
    }
    80% {
        clip: rect(67px, 9999px, 89px, 0);
    }
    100% {
        clip: rect(23px, 9999px, 34px, 0);
    }
}

/* Typing Text Effect */
.typing-text {
    border-right: 2px solid #00f3ff;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00f3ff }
}

/* Navigation */
#nav-items {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#nav-items.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-item {
    opacity: 0;
    transform: translate(0, 0) scale(0.8);
    transition: all 0.3s ease;
}

#nav-toggle {
    transition: transform 0.3s ease;
    z-index: 10;
    transform: translateY(60px); /* Move button down */
}

#nav-toggle.active {
    transform: translateY(60px) rotate(45deg); /* Keep the downward position when rotating */
}

/* Responsive Navigation */
@media (max-width: 768px) {
    #circular-nav {
        right: 4px;
    }
    
    .nav-item {
        width: 40px;
        height: 40px;
    }
    
    #nav-toggle {
        width: 48px;
        height: 48px;
    }
}

/* CTA Buttons */
.cta-button {
    background: rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid #00f3ff;
    border-radius: 8px;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.cta-button-secondary {
    background: rgba(42, 42, 42, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.cta-button-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease;
}

/* Team Cards */
.team-card, .team-card-owner {
    transition: all 0.3s ease;
}

.team-card:hover, .team-card-owner:hover {
    transform: translateY(-5px);
}

/* Social Links */
.social-link {
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

/* Scroll Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Counter */
.counter {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-grid {
        background-size: 30px 30px;
    }

    .typing-text {
        white-space: normal;
        border-right: none;
        animation: none;
    }

    /* Adjust navigation for mobile */
    #nav-items {
        width: 36px; /* Reduce container width */
        height: 180px; /* Increase height for vertical layout */
    }

    .nav-item {
        width: 36px; /* Smaller buttons on mobile */
        height: 36px;
    }

    .nav-item i {
        font-size: 1rem; /* Smaller icons */
    }

    #nav-toggle {
        width: 48px; /* Slightly smaller toggle button */
        height: 48px;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(42, 42, 42, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #00f3ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bc13fe;
}
