/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background-color: #0d1117;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
header {
    background: #161b22;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #30363d;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    color: #58a6ff;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #c9d1d9;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #58a6ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #c9d1d9;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6f42c1 0%, #364fc7 50%, #0d1117 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    padding-top: 80px;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-button {
    background: #238636;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    font-weight: 600;
}

.cta-button:hover {
    background: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.3);
}

/* About Section - Modern Design */
.about {
    background: #0a0e14;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f7ff, #00ff95, transparent);
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about h2 {
    position: relative;
    display: inline-block;
    margin: 2rem auto 3rem;
    color: #f0f6fc;
    font-size: 2.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00f7ff, #00ff95);
    border-radius: 3px;
}

.about p {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a3b8cc;
    text-align: center;
}

/* About Features */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(16, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 247, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00f7ff, #00ff95);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 247, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 247, 255, 0.1);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature h4 {
    color: #00f7ff;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.feature h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #00ff95;
    transition: width 0.3s ease;
}

.feature:hover h4::after {
    width: 80px;
}

.feature p {
    color: #a3b8cc;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.feature:hover p {
    color: #e0e9f2;
}

/* Feature Icons */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00f7ff, #00ff95);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Seções */
section {
    padding: 100px 0;
    position: relative;
}

.about h2, .tools h2, .contact h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #f0f6fc;
    position: relative;
    padding-bottom: 1rem;
}

.about h2::after, .tools h2::after, .contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00f7ff, #00ff95);
    border-radius: 3px;
}

/* Tools Section */
.tools {
    background: #161b22;
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #f0f6fc;
}

/* Search Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-box i {
    color: #8b949e;
    margin-right: 0.8rem;
    font-size: 1rem;
}

#toolSearch {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #f0f6fc;
    font-size: 0.9rem;
    font-family: inherit;
}

#toolSearch::placeholder {
    color: #8b949e;
}

.clear-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.clear-btn:hover {
    background: #21262d;
    color: #f0f6fc;
}

.search-results {
    margin-top: 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-info {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Unified Search Results */
.unified-search-results {
    background: #161b22;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #30363d;
}

.unified-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.unified-tool-item {
    display: flex;
    align-items: center;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    gap: 1rem;
}

.unified-tool-item:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.1);
}

.unified-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #21262d;
    border-radius: 8px;
    color: #58a6ff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.unified-tool-content {
    flex: 1;
    min-width: 0;
}

.unified-tool-content h4 {
    color: #f0f6fc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.unified-tool-content p {
    color: #8b949e;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.unified-tool-category {
    display: inline-block;
    background: #21262d;
    color: #58a6ff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.unified-tool-action {
    flex-shrink: 0;
}

.unified-tool-action .tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #58a6ff;
    color: #ffffff;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.unified-tool-action .tool-link:hover {
    background: #4290e0;
    transform: translateX(2px);
}

/* Highlighted search terms */
mark {
    background: #ffd93d;
    color: #000;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .unified-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .unified-tool-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .unified-tool-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .unified-tool-content h4 {
        font-size: 0.9rem;
    }
    
    .unified-tool-content p {
        font-size: 0.8rem;
    }
    
    .unified-tool-action .tool-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

.search-result-item {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #21262d;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: #161b22;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    color: #f0f6fc;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.search-result-category {
    color: #8b949e;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.search-result-description {
    color: #c9d1d9;
    font-size: 0.85rem;
    line-height: 1.3;
}

.no-results {
    padding: 1.5rem;
    text-align: center;
    color: #8b949e;
    font-style: italic;
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

.category.hidden .category-header {
    display: none;
}

.tools-grid:empty {
    display: none;
}

.category:not(.hidden) + .category.hidden {
    margin-top: 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.tool-card {
    background: #0d1117;
    padding: 0.4rem;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6f42c1 0%, #364fc7 100%);
}

.tool-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.7);
    border-color: #58a6ff;
}

.tool-icon {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    display: block;
}

.tool-card h3 {
    color: #f0f6fc;
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
}

.tool-card p {
    color: #c9d1d9;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    min-height: 24px;
    font-size: 0.6rem;
}

.tool-link {
    display: inline-block;
    background: #238636;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.55rem;
}

.tool-link:hover {
    background: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.4);
}

/* Contact Form */
.contact {
    background: #0d1117;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #161b22;
    color: #c9d1d9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #58a6ff;
    background: #0d1117;
}

.contact-form button {
    background: #238636;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.contact-form button:hover {
    background: #2ea043;
}

/* Footer */
footer {
    background: #161b22;
    color: #c9d1d9;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #30363d;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #c9d1d9;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #58a6ff;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: #161b22;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.5);
        padding: 2rem 0;
        border: 1px solid #30363d;
        border-top: none;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Beta Disclaimer Pop-up */
.beta-disclaimer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.beta-disclaimer.show {
    opacity: 1;
    visibility: visible;
}

.beta-disclaimer-content {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.beta-disclaimer.show .beta-disclaimer-content {
    transform: scale(1);
}

.beta-disclaimer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #30363d;
}

.beta-disclaimer-header i {
    color: #58a6ff;
    font-size: 1.5rem;
    margin-right: 10px;
}

.beta-disclaimer-header h3 {
    color: #e6edf3;
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
}

.beta-disclaimer-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.beta-disclaimer-close:hover {
    color: #e6edf3;
    background: #21262d;
}

.beta-disclaimer-body {
    padding: 20px;
}

.beta-disclaimer-body p {
    color: #e6edf3;
    margin-bottom: 15px;
    line-height: 1.5;
}

.beta-disclaimer-body p:last-child {
    margin-bottom: 0;
}

.beta-disclaimer-body strong {
    color: #58a6ff;
}

.beta-disclaimer-footer {
    padding: 20px;
    border-top: 1px solid #30363d;
    text-align: center;
}

.beta-disclaimer-acknowledge {
    background: #58a6ff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.beta-disclaimer-acknowledge:hover {
    background: #4494f4;
    transform: translateY(-1px);
}

.beta-disclaimer-acknowledge:active {
    transform: translateY(0);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .beta-disclaimer-content {
        width: 95%;
        margin: 20px;
    }
    
    .beta-disclaimer-header,
    .beta-disclaimer-body,
    .beta-disclaimer-footer {
        padding: 15px;
    }
    
    .beta-disclaimer-header h3 {
        font-size: 1.1rem;
    }
}
