/* 
 * AI Detector - Advanced AI Content Detection Tool
 * AItoHumanConvert.com
 * Copyright 2025
 */

/* Base Styles & Variables */
:root {
   --primary-color: #6c5ce7;
            --secondary-color: #a29bfe;
    --secondary-color: #8b5cf6;
    --light-color: #f3f4f6;
    --dark-color: #2d3436;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
   
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    border-radius:0 0 20px 20px
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
   
}

.hero-subtitle {
    font-size: 1.25rem;
   
    max-width: 800px;
    margin: 0 auto;
}

/* Detector Box */
.detector-box {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.textarea-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.textarea-label {
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: white;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

textarea.form-control {
    padding: 1rem;
    height: 240px;
    resize: none;
    border-color: var(--gray-300);
    font-size: 1rem;
    border-radius: calc(var(--border-radius) - 0.125rem);
    transition: var(--transition);
}

textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.word-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Result Panel */
.result-panel {
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    min-height: 240px;
    border: 1px solid var(--gray-200);
}

.result-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--gray-800);
}

.placeholder-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80%;
    color: var(--gray-500);
    text-align: center;
}

.placeholder-message i {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.loading-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80%;
}

.detection-results {
    display: none;
}

.score-display {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gauge-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge-value {
    position: absolute;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.gauge-label {
    position: absolute;
    bottom: 10px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.result-box {
    background-color: white;
    padding: 1rem;
    border-radius: calc(var(--border-radius) - 0.125rem);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.result-box h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.detail-box {
    background-color: white;
    padding: 1rem;
    border-radius: calc(var(--border-radius) - 0.125rem);
    border: 1px solid var(--gray-200);
}

.detail-box h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.model-bars {
    margin-bottom: 1rem;
}

.model-bar-item {
    margin-bottom: 0.75rem;
}

.model-name {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.progress {
    height: 0.75rem;
    background-color: var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 1s ease;
    border-radius: 1rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    line-height: 0.75rem;
}

.content-metrics {
    margin-top: 1.5rem;
}

.content-metrics h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.metric-item {
    background-color: #f8fafc;
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) - 0.25rem);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Accuracy Banner */
.accuracy-banner {
   background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 3rem 0;
}

.accuracy-stat {
    padding: 1.5rem;
}

.accuracy-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.accuracy-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.step-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step-card ul {
    padding-left: 1.25rem;
}

.step-card ul li {
    margin-bottom: 0.5rem;
}

/* Use Cases Section */
.use-cases-section {
    padding: 5rem 0;
    background-color: white;
}

.use-case-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: var(--transition);
}

.use-case-card:hover {
    box-shadow: var(--box-shadow);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.use-case-quote {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: calc(var(--border-radius) - 0.25rem);
    position: relative;
}

.use-case-quote i {
    color: var(--gray-400);
    margin-right: 0.5rem;
}

.use-case-quote p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.use-case-quote small {
    color: var(--gray-600);
}

/* Comparison Section */
.comparison-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.comparison-table tbody tr:hover {
    background-color: #f3f4f6;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: white;
}

.accordion-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.accordion-header {
    background-color: #f8fafc;
}

.accordion-button {
    font-weight: 500;
    color: var(--gray-800);
    background-color: white;
    box-shadow: none;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--gray-300);
}

.accordion-button::after {
    background-size: 1rem;
    transition: var(--transition);
}

.accordion-body {
    padding: 1.25rem;
    background-color: white;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(to right, #4f46e5, #8b5cf6);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 600;
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: white;
    padding: 5rem 0 1rem;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
}

.footer-newsletter .form-control::placeholder {
    color: var(--gray-500);
}

.footer-newsletter .form-control:focus {
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-newsletter .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    font-size: 0.875rem;
}

footer {
            background-color: var(--dark-color);
            color: white;
            padding: 50px 0 20px;
        }
        
        .footer-links h5 {
            font-weight: 600;
            margin-bottom: 20px;
        }
        
        .footer-links ul {
            list-style: none;
            padding-left: 0;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .social-links a {
            display: inline-block;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            text-align: center;
            line-height: 40px;
            color: white;
            margin-right: 10px;
            transition: all 0.3s;
        }
        
        .social-links a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .accuracy-value {
        font-size: 2.5rem;
    }
    
    .detector-box {
        padding: 1.5rem;
    }
    
    .result-panel {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .accuracy-value {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.125rem;
    }
    
    .feature-card, .step-card, .use-case-card {
        padding: 1.5rem;
    }
}