* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Page Styles for Additional Pages */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.page-header h1 {
    color: #2a5298;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

.last-updated {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.content-section {
    line-height: 1.7;
    color: #333;
}

.content-section h2 {
    color: #2a5298;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #4a6fa5;
    margin: 25px 0 12px 0;
    font-size: 1.2rem;
}

.content-section h4 {
    color: #5a7bb5;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.content-section ul, .content-section ol {
    margin: 15px 0 15px 30px;
}

.content-section li {
    margin: 8px 0;
}

.content-section p {
    margin: 15px 0;
}

.content-section a {
    color: #2a5298;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.content-section a:hover {
    border-bottom-color: #2a5298;
}

/* Features Grid for About Page */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2a5298;
}

.feature-card h3 {
    color: #2a5298;
    margin-bottom: 10px;
}

.values-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.value-item {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.value-item h3 {
    color: #2a5298;
    margin-bottom: 10px;
}

/* Contact Page Styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.contact-card h3 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-details .contact-item {
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-details strong {
    color: #333;
    min-width: 100px;
}

/* Contact Form Styles */
.contact-form-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.submit-btn, .reset-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn {
    background: #2a5298;
    color: white;
}

.submit-btn:hover {
    background: #1e3a72;
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #5a6268;
}

/* FAQ Styles */
.faq-section {
    margin: 40px 0;
}

.faq-list {
    margin-top: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #2a5298;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.faq-item h4 {
    color: #2a5298;
    margin-bottom: 10px;
}

.faq-item p {
    margin: 0;
    color: #555;
}

/* Response Time Grid */
.response-info {
    margin: 40px 0;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.response-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.response-item h4 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1rem;
}

.response-item p {
    color: #666;
    margin: 0;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    margin: 30px 0;
}

.timeline-item {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #2a5298;
    position: relative;
}

.timeline-item h4 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-item p {
    margin: 0;
    color: #555;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    border-radius: 15px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #2a5298;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Special Sections */
.terms-intro, .policy-footer, .terms-footer {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #bbdefb;
    margin: 25px 0;
}

.contact-intro {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.contact-info .contact-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-container {
        margin: 10px;
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .features-grid,
    .values-section,
    .contact-methods,
    .response-grid {
        grid-template-columns: 1fr;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}


.ip-input-section {
    display: flex;
    gap: 10px;
}

.ip-input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    min-width: 200px;
}

.ip-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.check-btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.check-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* IP Input Section in Card */
.ip-input-section-card {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
}

.ip-input-card {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ip-input-card::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.ip-input-card:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.check-btn-card {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.check-btn-card:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Loading Screen */
.loading-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-animation {
    text-align: center;
    color: white;
}

.scanning-circle {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin: 0 auto 30px;
}

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

.loading-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.loading-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 3px;
    width: 0%;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Main Dashboard */
.main-content {
    flex: 1;
    padding: 30px 20px;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-bottom: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* IP Card */
.ip-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.flag {
    font-size: 1.5rem;
}

.ip-address {
    font-size: 2rem;
    font-weight: 700;
    color: #2980b9;
    font-family: 'Monaco', 'Menlo', monospace;
    flex: 1;
}

.copy-btn {
    background: #ecf0f1;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #bdc3c7;
}

.location {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.how-to-change {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.how-to-change:hover {
    text-decoration: underline;
}

/* Score Card */
.score-display {
    text-align: center;
    margin: 20px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 6px solid #3498db;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    position: relative;
    transition: all 0.3s ease;
}

.score-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    opacity: 0.8;
}

.score-status {
    text-align: center;
    margin-top: 15px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Specific Card Styles */

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.check-item:hover {
    background: #e9ecef;
}

.status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.checking {
    background: #fff3cd;
    color: #856404;
}

.status.clear {
    background: #d4edda;
    color: #155724;
}

.status.threat {
    background: #f8d7da;
    color: #721c24;
}

/* Proxy Card */
.proxy-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.status-label {
    font-weight: 600;
    color: #495057;
}

.status-value {
    font-weight: 600;
    color: #2980b9;
}

.proxy-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* Location Card */
.location-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: #3498db;
    color: white;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f2f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: #495057;
}

.value {
    color: #2c3e50;
    font-weight: 500;
}

/* Network Card */
.network-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.dns-list,
.timezone-info,
.performance-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dns-item,
.time-item,
.perf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Fingerprint Card */
.fingerprint-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ecf0f1;
}

/* Advanced Card */
.advanced-checks {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.check-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.port-scan-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scan-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

.scan-results {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.security-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #e8f4fd;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.tip-icon {
    font-size: 1.2rem;
}

/* Debug Card */
.debug-card {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

.debug-content {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.debug-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.debug-item.deduction {
    color: #dc3545;
}

.debug-item.safe {
    color: #28a745;
}

.debug-summary {
    margin-top: 15px;
    padding: 10px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Retest Section */
.retest-section {
    text-align: center;
    margin-top: 40px;
}

.retest-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.retest-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Score Color Classes */
.score-circle.excellent {
    border-color: #27ae60;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.score-circle.good {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #5dade2);
}

.score-circle.average {
    border-color: #f39c12;
    background: linear-gradient(135deg, #f39c12, #f7dc6f);
}

.score-circle.poor {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #e74c3c, #ec7063);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .card-row {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
        min-height: auto;
    }
    
    .blacklist-card,
    .proxy-card,
    .location-card,
    .network-card,
    .fingerprint-card,
    .advanced-card {
        min-height: auto;
    }
    
    .ip-address {
        font-size: 1.5rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-value {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .ip-input {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .ip-input-section {
        flex-direction: column;
        width: 100%;
    }
    
    .ip-input,
    .check-btn {
        width: 100%;
    }
    
    .ip-input-section-card {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    
    .ip-input-card,
    .check-btn-card {
        width: 100%;
    }
    
    .card {
        padding: 15px;
    }
    
    .detail-item,
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.nav-item:focus,
.check-btn:focus,
.ip-input:focus,
.check-btn-card:focus,
.ip-input-card:focus,
.tab-btn:focus,
.scan-btn:focus,
.retest-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 1px solid #000;
    }
    
    .status.clear {
        background: #000;
        color: #fff;
    }
    
    .status.threat {
        background: #ff0000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scanning-circle {
        animation: none;
    }
    
    .progress-fill {
        animation: none;
    }
}

/* API Page Styles */
.api-page {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.api-header {
    text-align: center;
    margin-bottom: 40px;
}

.api-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.api-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.api-section {
    margin-bottom: 50px;
}

.api-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.api-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.api-description {
    margin-bottom: 20px;
}

.api-description p {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.6;
}

.code-block {
    position: relative;
    background: #2c3e50;
    border-radius: 8px;
    padding: 15px 50px 15px 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    overflow-x: auto;
}

.code-block code {
    color: #ecf0f1;
    font-size: 0.95rem;
    white-space: nowrap;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.copy-code-btn:hover {
    background: #2980b9;
}

/* API Features Section */
.api-features {
    margin-bottom: 50px;
}

.api-features h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.feature-content h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-content p {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* API Examples Section */
.api-examples {
    margin-bottom: 50px;
}

.api-examples h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.example-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.example-tab {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.example-tab:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.example-tab.active {
    background: #3498db;
    color: white;
}

.example-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px;
    margin: 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.example-content code {
    color: inherit;
}

/* Responsive Design for API Page */
@media (max-width: 768px) {
    .api-page {
        padding: 15px;
    }
    
    .api-header h2 {
        font-size: 2rem;
    }
    
    .api-card {
        padding: 20px;
    }
    
    .code-block {
        padding: 12px 40px 12px 12px;
    }
    
    .copy-code-btn {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .example-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .example-tab {
        width: 200px;
    }
    
    .example-content pre {
        padding: 20px;
        font-size: 0.8rem;
    }
}