/* Mobile Header Styles */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1001; /* Higher than desktop header */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.875rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: mobileSlideDown 0.8s ease-out;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-header:hover::before {
    opacity: 1;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.mobile-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-logo:hover::before {
    opacity: 1;
}

.mobile-logo:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.mobile-logo:hover h1 {
    background: linear-gradient(135deg, #ffffff 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.mobile-logo:hover .mobile-logo-image {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.3));
}

/* Mobile Status Indicator */
.mobile-status-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.8);
    animation: mobileStatusPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

@keyframes mobileStatusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1003; /* Higher than mobile nav */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Mobile Nav Header */
.mobile-nav-header {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

/* Mobile Close Button */
.mobile-close-btn {
    position: relative;
    top: auto;
    right: auto;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1004; /* Higher than mobile nav */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-close-btn:hover::before {
    opacity: 1;
}

.mobile-close-btn:hover,
.mobile-close-btn:focus {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: rgba(239, 68, 68, 0.1);
    outline: none;
}

.mobile-close-btn:focus-visible {
    outline: 2px solid rgba(6, 182, 212, 0.5);
    outline-offset: 2px;
}

.mobile-close-btn span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.mobile-close-btn span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-close-btn span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-close-btn:hover span {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.mobile-close-btn:hover span:first-child {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.05);
}

.mobile-close-btn:hover span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.05);
}

.mobile-close-btn:active span:first-child {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.95);
}

.mobile-close-btn:active span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.95);
}

/* Close button entrance animation */
.mobile-nav-active .mobile-close-btn {
    animation: closeBtnSlideIn 0.3s ease-out 0.2s both;
}

@keyframes closeBtnSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-menu-toggle:hover::before {
    opacity: 1;
}

.mobile-menu-toggle:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #ffffff 0%, #e0e0e0 100%);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 100%);
}

.mobile-menu-toggle-active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 100%);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002; /* Higher than mobile header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0;
}

.mobile-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-nav-active::before {
    opacity: 1;
}

.mobile-nav-active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0 0 2rem 0;
    margin: 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-nav-list li {
    margin: 1.25rem 0;
    opacity: 0;
    transform: translateY(30px);
    animation: mobileNavItemSlideIn 0.4s ease forwards;
}

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

.mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.mobile-nav-link:hover::before {
    opacity: 1;
}

.mobile-login-btn {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6) !important;
    color: #000 !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-login-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: left 0.5s ease;
    z-index: 1;
}

.mobile-login-btn:hover::before {
    left: 100%;
}

.mobile-login-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4) !important;
    background: linear-gradient(135deg, #08d4f0, #9b6cf8) !important;
}

.mobile-dashboard-link {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    color: #000 !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-dashboard-link::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: left 0.5s ease;
    z-index: 1;
}

.mobile-dashboard-link:hover::before {
    left: 100%;
}

.mobile-dashboard-link:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #12d4a3, #08d4f0) !important;
}

/* Mobile Animations */
@keyframes mobileSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .mobile-header {
        padding: 0.75rem 1rem;
    }
    
    .mobile-logo h1 {
        font-size: 1.1rem;
    }
    
    .mobile-logo-image {
        width: 28px;
        height: 28px;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        margin: 0 1rem;
    }
    
    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
        padding: 0.4rem;
    }
    
    .mobile-close-btn {
        width: 36px;
        height: 36px;
        top: 1.25rem;
        right: 1.25rem;
    }

    /* Hide desktop header on mobile */
    #header-container {
        display: none !important;
    }

    /* Show mobile header on mobile */
    #mobile-header-container {
        display: block !important;
    }
}

@media (min-width: 769px) {
    /* Hide mobile header on desktop */
    #mobile-header-container {
        display: none !important;
    }

    /* Show desktop header on desktop */
    #header-container {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 0.625rem 0.75rem;
    }
    
    .mobile-logo h1 {
        font-size: 1rem;
    }
    
    .mobile-logo-image {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        margin: 0 0.75rem;
    }
    
    .mobile-menu-toggle {
        width: 30px;
        height: 30px;
        padding: 0.35rem;
    }
    
    .mobile-menu-toggle span {
        height: 2px;
    }
    
    .mobile-close-btn {
        width: 32px;
        height: 32px;
        top: 1rem;
        right: 1rem;
    }
    
    .mobile-close-btn span {
        width: 16px;
        height: 1.5px;
    }
}

/* Mobile Body Padding */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Mobile header height */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .main-content {
        padding-top: 0; /* Remove main-content padding on mobile */
    }
}

@media (min-width: 769px) {
    body {
        padding-top: 0; /* Reset for desktop */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .main-content {
        padding-top: 80px; /* Restore main-content padding on desktop */
    }
}

/* Mobile Content Styles */
.mobile-content {
    padding: 1rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.mobile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0.5rem;
}

.mobile-button-primary {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #000;
}

.mobile-button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile Form Styles */
.mobile-form-group {
    margin-bottom: 1rem;
}

.mobile-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.9rem;
}

.mobile-form-group input,
.mobile-form-group select,
.mobile-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mobile-form-group input:focus,
.mobile-form-group select:focus,
.mobile-form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Mobile Typography */
.mobile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Mobile Grid */
.mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .mobile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile responsive content adjustments */
@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
        overflow-x: hidden;
    }
    
    .black-hero,
    .blog-hero,
    .about-hero,
    .docs-hero {
        padding: 3rem 1rem 2rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .black-title,
    .blog-hero h1,
    .about-hero h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }
    
    .black-subtitle,
    .blog-hero p,
    .about-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .features-grid,
    .blog-list,
    .about-grid,
    .doc-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .black-card,
    .blog-card,
    .about-card,
    .doc-category {
        padding: 1.5rem;
    }
    
    .section-header {
        padding: 0 1rem;
    }
    
    .black-section-title,
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .black-title,
    .blog-hero h1,
    .about-hero h1 {
        font-size: 1.75rem;
    }
    
    .black-subtitle,
    .blog-hero p,
    .about-hero p {
        font-size: 0.9rem;
    }
    
    .black-section-title,
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .black-card,
    .blog-card,
    .about-card,
    .doc-category,
    .pricing-card,
    .contact-card {
        padding: 1rem;
    }
    
    .black-hero,
    .blog-hero,
    .about-hero,
    .docs-hero {
        padding: 2rem 0.75rem 1.5rem;
    }
}

/* Mobile Utilities */
.mobile-text-center {
    text-align: center;
}

.mobile-mb-1 { margin-bottom: 0.5rem; }
.mobile-mb-2 { margin-bottom: 1rem; }
.mobile-mb-3 { margin-bottom: 1.5rem; }

.mobile-mt-1 { margin-top: 0.5rem; }
.mobile-mt-2 { margin-top: 1rem; }
.mobile-mt-3 { margin-top: 1.5rem; }

.mobile-p-1 { padding: 0.5rem; }
.mobile-p-2 { padding: 1rem; }
.mobile-p-3 { padding: 1.5rem; }

/* Mobile Loading States */
.mobile-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.mobile-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #06b6d4;
    border-radius: 50%;
    animation: mobileSpin 1s linear infinite;
}

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

/* Mobile Error/Success States */
.mobile-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mobile-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Mobile Footer */
.mobile-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-top: 2rem;
    text-align: center;
}

.mobile-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile specific adjustments for existing elements */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Adjust existing buttons for mobile */
    .black-btn,
    .cta-btn,
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        display: block;
    }
    
    /* Adjust existing forms for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Adjust existing cards for mobile */
    .card,
    .feature-card,
    .pricing-card,
    .contact-card {
        margin-bottom: 1rem;
    }
    
    /* Adjust existing navigation for mobile */
    .black-nav {
        display: none; /* Hide desktop nav on mobile */
    }
    
    /* Adjust existing hero sections for mobile */
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    /* Adjust existing CTAs for mobile */
    .black-cta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Adjust existing tables for mobile */
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    /* Adjust existing modals for mobile */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    /* Adjust existing notifications for mobile */
    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    /* Prevent horizontal scroll on very small screens */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Further reduce font sizes for very small screens */
    .black-title,
    .blog-hero h1,
    .about-hero h1,
    .section-title {
        font-size: 1.5rem;
    }
    
    .black-subtitle,
    .blog-hero p,
    .about-hero p,
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    /* Adjust spacing for very small screens */
    .black-hero,
    .blog-hero,
    .about-hero,
    .docs-hero {
        padding: 1.5rem 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .black-card,
    .blog-card,
    .about-card,
    .doc-category,
    .pricing-card,
    .contact-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Adjust buttons for very small screens */
    .black-btn,
    .cta-btn,
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Adjust forms for very small screens */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 16px;
    }
} 