/* 100xSolutions Tools Page Specific Styles */

/* Tools Section Bubble Animations */
.tools-bubbles-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tools-bubble {
    position: absolute;
    background: radial-gradient(
        circle at 30% 30%, 
        rgba(56, 189, 248, 0.4) 0%, 
        rgba(34, 197, 94, 0.3) 30%, 
        rgba(139, 92, 246, 0.2) 60%, 
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0.6;
    animation: toolsBubbleFloat 12s ease-in-out infinite;
}

.tools-bubble:nth-child(1) { 
    width: 30px; height: 30px; 
    left: 5%; animation-delay: 0s; 
}
.tools-bubble:nth-child(2) { 
    width: 45px; height: 45px; 
    left: 15%; animation-delay: 1.5s; 
}
.tools-bubble:nth-child(3) { 
    width: 25px; height: 25px; 
    left: 25%; animation-delay: 3s; 
}
.tools-bubble:nth-child(4) { 
    width: 60px; height: 60px; 
    left: 35%; animation-delay: 4.5s; 
}
.tools-bubble:nth-child(5) { 
    width: 20px; height: 20px; 
    left: 45%; animation-delay: 6s; 
}
.tools-bubble:nth-child(6) { 
    width: 35px; height: 35px; 
    left: 55%; animation-delay: 7.5s; 
}
.tools-bubble:nth-child(7) { 
    width: 50px; height: 50px; 
    left: 65%; animation-delay: 9s; 
}
.tools-bubble:nth-child(8) { 
    width: 40px; height: 40px; 
    left: 75%; animation-delay: 10.5s; 
}
.tools-bubble:nth-child(9) { 
    width: 28px; height: 28px; 
    left: 85%; animation-delay: 12s; 
}
.tools-bubble:nth-child(10) { 
    width: 55px; height: 55px; 
    left: 95%; animation-delay: 13.5s; 
}

@keyframes toolsBubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0.4;
        filter: hue-rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    25% {
        transform: translateY(75vh) translateX(20px) scale(1.1);
        opacity: 1;
        filter: hue-rotate(30deg);
    }
    50% {
        transform: translateY(50vh) translateX(-15px) scale(1.2);
        opacity: 0.9;
        filter: hue-rotate(60deg);
    }
    75% {
        transform: translateY(25vh) translateX(25px) scale(1.05);
        opacity: 0.7;
        filter: hue-rotate(90deg);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(0) scale(0.8);
        opacity: 0;
        filter: hue-rotate(120deg);
    }
}

/* Tools Section Interactive Bubbles */
.tools-interactive-bubble {
    position: absolute;
    background: radial-gradient(
        circle at 40% 40%, 
        rgba(56, 189, 248, 0.6) 0%, 
        rgba(34, 197, 94, 0.4) 50%, 
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0.7;
    cursor: pointer;
    animation: toolsInteractiveBubble 8s ease-in-out infinite;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tools-interactive-bubble:hover {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.interactive-bubble-1 { 
    width: 40px; height: 40px; 
    top: 10%; right: 10%; animation-delay: 0s; 
}
.interactive-bubble-2 { 
    width: 25px; height: 25px; 
    top: 30%; right: 20%; animation-delay: 2s; 
}
.interactive-bubble-3 { 
    width: 35px; height: 35px; 
    top: 50%; right: 15%; animation-delay: 4s; 
}
.interactive-bubble-4 { 
    width: 30px; height: 30px; 
    top: 70%; right: 25%; animation-delay: 6s; 
}

@keyframes toolsInteractiveBubble {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(0.95);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.9;
    }
}

/* Tools Section Bubble Collision Effect */
.tools-bubble-collision {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: bubbleCollision 1s ease-out forwards;
}

@keyframes bubbleCollision {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Tools Section Rising Bubble Stream */
.tools-bubble-stream {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.stream-bubble {
    position: absolute;
    background: radial-gradient(
        circle at 35% 35%, 
        rgba(139, 92, 246, 0.5) 0%, 
        rgba(56, 189, 248, 0.3) 50%, 
        transparent 100%
    );
    border-radius: 50%;
    opacity: 0.5;
    animation: bubbleStream 15s linear infinite;
}

.stream-bubble:nth-child(1) { 
    width: 12px; height: 12px; 
    left: 10%; animation-delay: 0s; 
}
.stream-bubble:nth-child(2) { 
    width: 8px; height: 8px; 
    left: 20%; animation-delay: 2s; 
}
.stream-bubble:nth-child(3) { 
    width: 15px; height: 15px; 
    left: 30%; animation-delay: 4s; 
}
.stream-bubble:nth-child(4) { 
    width: 10px; height: 10px; 
    left: 40%; animation-delay: 6s; 
}
.stream-bubble:nth-child(5) { 
    width: 18px; height: 18px; 
    left: 50%; animation-delay: 8s; 
}
.stream-bubble:nth-child(6) { 
    width: 6px; height: 6px; 
    left: 60%; animation-delay: 10s; 
}
.stream-bubble:nth-child(7) { 
    width: 14px; height: 14px; 
    left: 70%; animation-delay: 12s; 
}
.stream-bubble:nth-child(8) { 
    width: 9px; height: 9px; 
    left: 80%; animation-delay: 14s; 
}
.stream-bubble:nth-child(9) { 
    width: 16px; height: 16px; 
    left: 90%; animation-delay: 16s; 
}

@keyframes bubbleStream {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-50px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Tools Section Bubble Wave Effect */
.tools-bubble-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    z-index: 0;
}

.wave-bubble {
    position: absolute;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(56, 189, 248, 0.3) 0%, 
        transparent 70%
    );
    border-radius: 50%;
    animation: waveBubbleRise 10s ease-out infinite;
}

.wave-bubble:nth-child(1) { 
    width: 60px; height: 60px; 
    left: 10%; animation-delay: 0s; 
}
.wave-bubble:nth-child(2) { 
    width: 40px; height: 40px; 
    left: 25%; animation-delay: 1s; 
}
.wave-bubble:nth-child(3) { 
    width: 80px; height: 80px; 
    left: 40%; animation-delay: 2s; 
}
.wave-bubble:nth-child(4) { 
    width: 50px; height: 50px; 
    left: 55%; animation-delay: 3s; 
}
.wave-bubble:nth-child(5) { 
    width: 70px; height: 70px; 
    left: 70%; animation-delay: 4s; 
}
.wave-bubble:nth-child(6) { 
    width: 35px; height: 35px; 
    left: 85%; animation-delay: 5s; 
}

@keyframes waveBubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

/* Tools Section Category Bubble Enhancement */
.category-section {
    position: relative;
    margin-bottom: var(--space-4xl);
    padding: var(--space-2xl);
    background: var(--primary-bg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(56, 189, 248, 0.1);
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(56, 189, 248, 0.05) 0%, 
        transparent 70%
    );
    animation: categoryGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes categoryGlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.6;
    }
}

/* Tools Card Bubble Interaction */
.tool-card {
    position: relative;
    background: var(--secondary-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(56, 189, 248, 0.1) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
    z-index: 1;
}

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

.tool-card:hover {
    border-color: var(--accent-color);
    box-shadow: 
        var(--shadow-md),
        0 0 30px rgba(56, 189, 248, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.tool-card:hover .tool-info h4 {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* Tools Section Background Integration */
.top-tools,
.all-tools {
    position: relative;
    overflow: hidden;
}

.top-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 197, 94, 0.03) 0%, transparent 50%);
    animation: toolsSectionFloat 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes toolsSectionFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translate(-20px, -30px) scale(1.02);
        opacity: 0.8;
    }
    66% { 
        transform: translate(20px, -10px) scale(0.98);
        opacity: 1;
    }
}

/* Tools Hero Section */
.tools-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.tools-hero .hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--space-xl);
    line-height: 1.1;
}

.tools-hero .hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--secondary-text);
    margin-bottom: var(--space-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Top Tools Section */
.top-tools {
    padding: var(--space-4xl) 0;
}

.top-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.top-tool-card {
    background: var(--secondary-bg);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(56, 189, 248, 0.1);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.top-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.top-tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.top-tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
    display: block;
}

.top-tool-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    color: var(--primary-text);
}

.top-tool-card p {
    margin-bottom: var(--space-xl);
    color: var(--secondary-text);
}

/* All Tools Section */
.all-tools {
    background: var(--secondary-bg);
    padding: var(--space-4xl) 0;
}

.category-section {
    margin-bottom: var(--space-4xl);
    padding: var(--space-2xl);
    background: var(--primary-bg);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(56, 189, 248, 0.1);
}

.category-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.category-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--space-md);
}

.category-description {
    font-size: var(--font-size-lg);
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.tool-card {
    background: var(--secondary-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(56, 189, 248, 0.1);
    transition: var(--transition-normal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.tool-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-info {
    flex: 1;
}

.tool-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: var(--space-xs);
}

.tool-info p {
    font-size: var(--font-size-sm);
    color: var(--secondary-text);
    margin: 0;
    line-height: 1.5;
}

.tool-card .btn {
    flex-shrink: 0;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

/* Subcategory Styles */
.subcategory {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 2px solid rgba(56, 189, 248, 0.2);
}

.subcategory-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 4px solid var(--accent-color);
}

/* Development Notice */
.development-notice {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.development-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: noticeMove 20s linear infinite;
}

@keyframes noticeMove {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

.notice-content {
    position: relative;
    z-index: 1;
}

.notice-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-lg);
    display: block;
}

.development-notice h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

.development-notice p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    line-height: 1.6;
}

.notice-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* Tools CTA Section */
.tools-cta {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: var(--space-4xl) 0;
}

.cta-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
    font-weight: 800;
}

.cta-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Active Navigation State */
.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

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

/* Mobile Menu Active State */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navbar Scrolled State */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--space-2xl);
        transition: var(--transition-normal);
        border-top: 1px solid rgba(56, 189, 248, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        padding: var(--space-md) 0;
        font-size: var(--font-size-lg);
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    }
    
    .tools-hero .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .tool-card .btn {
        width: 100%;
    }
    
    .top-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .category-section {
        padding: var(--space-lg);
    }
    
    .development-notice {
        padding: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .tools-hero .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .tools-hero .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .category-title {
        font-size: var(--font-size-xl);
    }
    
    .category-description {
        font-size: var(--font-size-base);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .development-notice h3 {
        font-size: var(--font-size-xl);
    }
    
    .development-notice p {
        font-size: var(--font-size-base);
    }
}

/* Custom scrollbar for tools page */
.tools-page ::-webkit-scrollbar {
    width: 8px;
}

.tools-page ::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

.tools-page ::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: var(--radius-md);
}

.tools-page ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Smooth transitions for all interactive elements */
.tool-card,
.top-tool-card,
.category-section {
    transition: all 0.3s ease;
}

/* Loading animation for tool cards */
.tool-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Enhanced hover effects */
.tool-card:hover .tool-info h4 {
    color: var(--accent-color);
}

.top-tool-card:hover .tool-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Focus states for accessibility */
.tool-card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tool-card {
        border: 2px solid var(--primary-text);
    }
    
    .top-tool-card {
        border: 2px solid var(--primary-text);
    }
    
    .development-notice {
        border: 2px solid var(--primary-text);
    }
}
