/* Base styles */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --background: #111827;
    --background-light: #1f2937;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-color: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Hero Canvas */
#hero-canvas {
    width: 100%;
    height: 100%;
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Form Input Animations */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: scale(1.01);
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: opacity 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: opacity, visibility;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* Menu Button Styles */
#menu-button {
    position: relative;
    z-index: 50;
    padding: 0.5rem;
    transition: transform 0.2s ease;
    will-change: transform;
}

#menu-button:hover {
    transform: scale(1.05);
}

#menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: #ffffff;
    border-radius: 4px;
    z-index: 1;
    transform-origin: center;
    transition: transform 0.3s ease,
                opacity 0.2s ease;
    will-change: transform, opacity;
}

#menu-button span:last-child {
    margin-bottom: 0;
}

#menu-button:hover span {
    background: #3b82f6;
}

#menu-button.active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

#menu-button.active span:nth-child(2) {
    opacity: 0;
}

#menu-button.active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Links */
#mobile-menu .flex {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
    will-change: opacity, transform;
}

#mobile-menu:not(.hidden) .flex {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu a {
    position: relative;
    display: block;
    padding: 1rem 2rem;
    margin: 0.5rem auto;
    width: 90%;
    max-width: 300px;
    text-align: center;
    font-size: 1.25rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-out;
    will-change: transform, background-color, box-shadow;
}

#mobile-menu a:hover {
    transform: translateY(-2px);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#mobile-menu a:active {
    transform: translateY(0);
}

/* Add stagger animation for menu items */
#mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu a:nth-child(5) { transition-delay: 0.25s; }

/* Custom hover colors for different menu items */
#mobile-menu a:nth-child(1):hover { color: #3b82f6; }
#mobile-menu a:nth-child(2):hover { color: #22c55e; }
#mobile-menu a:nth-child(3):hover { color: #a855f7; }
#mobile-menu a:nth-child(4):hover { color: #ef4444; }
#mobile-menu a:nth-child(5):hover { color: #eab308; }

/* Add ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#mobile-menu a:active::after {
    animation: ripple 0.6s ease-out;
}

/* Loading Animation */
.loading {
    position: fixed;
    inset: 0;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(20px);
    }
    100% {
        transform: translateY(0px) translateZ(0);
    }
}

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

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1280px * 2));
    }
}

.animate-scroll {
    animation: scroll 15s linear infinite;
}

.continuous-slider:hover {
    animation-play-state: paused;
}

/* Community Section Cards */
#social a {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: center;
}

#social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, 
        rgba(59, 130, 246, 0.2) 0%,
        transparent 70%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.8);
}

#social a::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#social a:hover {
    transform: translateY(-20px) scale(1.1);
    box-shadow: 
        0 25px 30px -12px rgba(0, 0, 0, 0.4),
        0 18px 20px -15px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

#social a:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

#social a:hover::after {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

/* Social Icons Animation */
#social svg {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
}

#social a:hover svg {
    transform: scale(1.4);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

/* Social Card Text Animation */
#social h3 {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

#social p {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

#social a:hover h3 {
    transform: scale(1.15);
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

#social a:hover p {
    color: #e5e7eb;
    transform: scale(1.05);
}

/* Telegram Card */
#social a:nth-child(1):hover {
    background: linear-gradient(145deg, rgba(44, 165, 224, 0.15), rgba(44, 165, 224, 0.08));
    box-shadow: 
        0 25px 30px -12px rgba(44, 165, 224, 0.4),
        0 18px 20px -15px rgba(44, 165, 224, 0.3),
        0 0 30px rgba(44, 165, 224, 0.4);
}

#social a:nth-child(1):hover svg {
    filter: drop-shadow(0 0 15px rgba(44, 165, 224, 0.6));
}

/* WhatsApp Card */
#social a:nth-child(2):hover {
    background: linear-gradient(145deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.08));
    box-shadow: 
        0 25px 30px -12px rgba(37, 211, 102, 0.4),
        0 18px 20px -15px rgba(37, 211, 102, 0.3),
        0 0 30px rgba(37, 211, 102, 0.4);
}

#social a:nth-child(2):hover svg {
    filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.6));
}

/* Website Card */
#social a:nth-child(3):hover {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.08));
    box-shadow: 
        0 25px 30px -12px rgba(168, 85, 247, 0.4),
        0 18px 20px -15px rgba(168, 85, 247, 0.3),
        0 0 30px rgba(168, 85, 247, 0.4);
}

#social a:nth-child(3):hover svg {
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
}

/* YouTube Card */
#social a:nth-child(4):hover {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    box-shadow: 
        0 25px 30px -12px rgba(239, 68, 68, 0.4),
        0 18px 20px -15px rgba(239, 68, 68, 0.3),
        0 0 30px rgba(239, 68, 68, 0.4);
}

#social a:nth-child(4):hover svg {
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.6));
}

/* Server Status Cards */
.server-status-card {
    transition: all 0.5s ease;
}

.server-status-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Premium Support Features */
.premium-support-card {
    transition: all 0.5s ease;
}

.premium-support-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Image Container Styles */
.image-container {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
}

.image-container img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    margin: auto;
    transition: transform 0.3s ease;
}

.service-card .image-container {
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
}

.slider .image-container {
    height: 420px;
}

.product-activation .image-container {
    height: 380px;
}

/* Tool-specific image adjustments */
.image-container[data-tool="chimera"],
.image-container[data-tool="uatpro"],
.image-container[data-tool="androidmulti"],
.image-container[data-tool="unlocktool"] {
    min-height: 320px;
}

.image-container[data-tool="chimera"] img,
.image-container[data-tool="uatpro"] img,
.image-container[data-tool="androidmulti"] img,
.image-container[data-tool="unlocktool"] img {
    max-width: 85%;
    max-height: 85%;
    margin: auto;
}

/* Image Container Styles */
.slider {
    height: 420px !important;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
}

.slide-content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-content img {
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Product Activation Section Styles */
#activation .slides {
    height: 100%;
}

#activation .slide {
    height: 100%;
}

#activation .slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    margin: auto;
}

/* Service Cards Image Styles */
.service-card .slider {
    height: 420px;
    overflow: hidden;
}

.service-card .slide-content {
    height: 100%;
}

.service-card img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

/* Enhanced Navigation Styles */
nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
}

nav .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

/* Logo styles */
nav .text-3xl {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

nav .text-3xl:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0.5px;
}

nav .text-3xl::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    z-index: -1;
}

nav .text-3xl:hover::after {
    opacity: 1;
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 0.625rem 1.25rem;
    color: var(--text);
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    margin: 0 0.375rem;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.nav-link:hover::before {
    transform: translateX(100%);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.375rem;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary-color),
        transparent
    );
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

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

.nav-link.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 4px 12px rgba(59, 130, 246, 0.15),
        inset 0 0 8px rgba(59, 130, 246, 0.1);
}

.nav-link.active::after {
    width: 70%;
    background: linear-gradient(90deg, 
        transparent,
        #60a5fa,
        transparent
    );
}

/* Desktop Navigation Menu */
@media (min-width: 768px) {
    .hidden.md\:flex {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .nav-link {
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .nav-link:active {
        transform: translateY(0);
    }

    /* Stagger animation for nav links */
    .nav-link:nth-child(1) { transition-delay: 0.05s; }
    .nav-link:nth-child(2) { transition-delay: 0.1s; }
    .nav-link:nth-child(3) { transition-delay: 0.15s; }
    .nav-link:nth-child(4) { transition-delay: 0.2s; }
    .nav-link:nth-child(5) { transition-delay: 0.25s; }
}

/* Error Notification Styles */
.error-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.error-content p {
    color: white;
    margin: 0;
    font-size: 0.875rem;
}

.error-content button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-content button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Offline Notification Styles */
.offline-notification {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

.offline-content p {
    color: white;
    margin: 0;
    font-size: 0.875rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
} 