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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00D4FF, #00FF88);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00B8E6, #00CC66);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00D4FF, #00FF88);
    border-radius: 4px;
}

.cyber-grid-bg {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
}

.particle {
    position: absolute;
    opacity: 0.25;
    pointer-events: none;
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

.particle-1 {
    top: 15%;
    left: 5%;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00D4FF, #00FF88);
    animation-delay: 0s;
}

.particle-2 {
    top: 50%;
    right: 10%;
    width: 15px;
    height: 15px;
    background: linear-gradient(45deg, #00FF88, #A855F7);
    animation-delay: 2s;
}

.particle-3 {
    bottom: 20%;
    left: 25%;
    width: 25px;
    height: 25px;
    background: linear-gradient(45deg, #A855F7, #00D4FF);
    animation-delay: 4s;
}

.particle-4 {
    top: 30%;
    right: 20%;
    width: 18px;
    height: 18px;
    background: linear-gradient(45deg, #00D4FF, #A855F7);
    animation-delay: 6s;
}

.particle-5 {
    bottom: 10%;
    left: 15%;
    width: 22px;
    height: 22px;
    background: linear-gradient(45deg, #00FF88, #00D4FF);
    animation-delay: 8s;
}

.glassmorphic-dark {
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(75, 85, 99, 0.2);
}

.project-card {
    position: relative;
    background: rgba(26, 31, 46, 0.75);
    border: 1px solid rgba(75, 85, 99, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(0, 255, 136, 0.25);
}

.project-card, .hero-name, .hero-tagline, .testimonial-card {
    opacity: 0;
}

.animate-on-load {
    animation-fill-mode: forwards;
}

.modal-content-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpModal 0.6s ease-out forwards;
}

@keyframes fadeInUpModal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content-item:nth-child(1) { animation-delay: 0.1s; }
.modal-content-item:nth-child(2) { animation-delay: 0.2s; }
.modal-content-item:nth-child(3) { animation-delay: 0.3s; }
.modal-content-item:nth-child(4) { animation-delay: 0.4s; }
.modal-content-item:nth-child(5) { animation-delay: 0.5s; }
.modal-content-item:nth-child(6) { animation-delay: 0.6s; }
.modal-content-item:nth-child(7) { animation-delay: 0.7s; }
.modal-content-item:nth-child(8) { animation-delay: 0.8s; }

.phone-container {
    position: relative;
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #1a1f2e, #252b3d);
    border-radius: 2.5rem;
    padding: 1.5rem 1rem;
    box-shadow: 
        0 0 0 4px rgba(0, 255, 136, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

.screenshot-gallery {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
}

.carousel-left, .carousel-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel-left:hover, .carousel-right:hover {
    background: rgba(0, 255, 136, 0.8);
}

.carousel-left:disabled, .carousel-right:disabled {
    background: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
}

.carousel-left {
    left: -2rem;
}

.carousel-right {
    right: -2rem;
}

@media (max-width: 768px) {
    .screenshot-gallery {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .screenshot-gallery .phone-container {
        scroll-snap-align: center;
    }

    .carousel-left {
        left: 0.5rem;
    }

    .carousel-right {
        right: 0.5rem;
    }
}

#projectModal {
    overscroll-behavior: contain;
}

#modalBody {
    overscroll-behavior: none;
}

body {
    position: relative;
    overflow-x: hidden;
}

.glitch-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #0a0e14, #12161f);
    overflow: hidden;
}

.glitch-bg::before {
    content: '0101 HACK THE PLANET 0101';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(0, 212, 255, 0.15);
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    white-space: nowrap;
    animation: glitchText 15s linear infinite;
    opacity: 0.2;
}

.glitch-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.02) 2px, transparent 2px);
    background-size: 80px 80px, 80px 80px, 100% 4px;
    opacity: 0.15;
    animation: gridPulse 10s ease-in-out infinite;
}

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

@keyframes gridPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

.hero-name, .hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.bg-card-dark {
    background: rgba(26, 31, 46, 0.75);
}

.text-text-dark-primary {
    color: #e5e7eb;
}

.text-text-dark-secondary {
    color: #9ca3af;
}

.bg-primary-dark {
    background: #00FF88;
}

.text-neon-green {
    color: #00FF88;
}

/* Testimonial Styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.testimonial-card {
    position: relative;
    background: rgba(26, 31, 46, 0.75);
    border: 1px solid rgba(75, 85, 99, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(0, 255, 136, 0.25);
}

.testimonial-card h4 {
    font-family: 'JetBrains Mono', monospace;
}

.testimonial-card p {
    font-family: 'JetBrains Mono', monospace;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
#contact .contact-info {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

#contact .contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.6s ease;
}

#contact .contact-info:hover::before {
    left: 100%;
}

#contact .contact-info:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(0, 255, 136, 0.25);
}

/* Support Section */
#supportme .support-info {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

#supportme .support-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    transition: left 0.6s ease;
}

#supportme .support-info:hover::before {
    left: 100%;
}

#supportme .support-info:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(0, 255, 136, 0.25);
}

/* Footer Social Links */
.footer-social a {
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #00FF88;
}

/* Filter Buttons */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    background-color: rgba(0, 255, 136, 0.2);
    color: #00FF88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.filter-btn:hover {
    background-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

.filter-btn.active-filter {
    background-color: #00FF88;
    color: #0a0e14;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.9);
}