/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --bg-light: #ffffff;
    --bg-light-gray: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light-gray);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    zoom: 0.90;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
    margin-right: 10px;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Test Container */
.test-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px; 
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 50px; 
    margin-bottom: 25px; 
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-value {
    display: block;
    font-size: 24px; 
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 4px; 
}


/* Canvas */
#touchCanvas {
    width: 100%;
    height: 500px;
    background: #05050a; 
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: crosshair;
    display: block;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

#touchCanvas.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Fullscreen Canvas Styling */
#touchCanvas:fullscreen {
    background: #05050a; 
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
}

.touch-info {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* --- CONTENT SECTION STYLES UPDATED --- */
.content-section {
    max-width: 900px; /* Narrower for better reading */
    margin: 60px auto; /* Reduced margin */
    padding: 0 20px;
}

.content-section h2 {
    font-size: 32px; /* Smaller H2 */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* This is the default H3 style for sections like "Why We Created This Tool" */
.content-section h3 {
    font-size: 22px; /* Smaller H3 */
    margin: 25px 0 10px;
    color: var(--text-primary);
}

.content-section p {
    font-size: 16px; /* Smaller p */
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.content-section ul, .content-section ol {
    margin: 15px 0 15px 20px; /* Adjusted margin */
    padding-left: 20px;
}

.content-section li {
    font-size: 16px; /* Smaller li */
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

/* NEW STYLES for simple content blocks (replaces .content-item) */
.content-block {
    margin-bottom: 25px; /* Space between items */
}

/* This targets the H3 inside the new simple block */
.content-block h3 {
    font-size: 20px;
    margin: 0 0 8px 0; /* Override default H3 margin */
    color: var(--primary-color);
}

/* This targets the P inside the new simple block */
.content-block p {
    font-size: 16px;
    margin: 0;
    color: var(--text-secondary);
}
/* --- END OF CONTENT UPDATE --- */


/* Footer */
.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 100px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.site-footer .copyright {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .stats {
        gap: 20px; 
    }

    .stat-item {
        min-width: auto; 
        padding: 0 10px;
    }

    .stat-value {
        font-size: 22px; 
    }

    #touchCanvas {
        height: 400px;
    }

    .content-section h2 {
        font-size: 28px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        gap: 20px;
    }
    
    .controls {
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
















/* --- ADD THIS TO THE END OF YOUR style.css FILE --- */

/* Language Switcher */
#language-switcher {
    text-align: center;
}

.language-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.lang-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-button.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}



























.ad-container {
    width: 100%;
    max-width: 828px;
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Make ads scale on mobile but stay readable */
.ad-container iframe {
    width: 100% !important;
    height: 90px !important;
    border: none;
}

@media (max-width: 768px) {
    .ad-container iframe {
        transform: scale(1);
        transform-origin:  center;
    }
}

@media (max-width: 480px) {
    .ad-container iframe {
        transform: scale(0.90);
        transform-origin: center;
    }
}
