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

:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

/* ===== NAVBAR ===== */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-tools {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-tools span {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* ===== AD CONTAINER ===== */
.ad-container {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    min-height: 100px;
}

/* ===== TOOLS SECTION ===== */
.tools-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.tools-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.tool-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== WHY US SECTION ===== */
.why-us {
    padding: 60px 20px;
    background: var(--bg-light);
}

.why-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.feature {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 60px 20px;
    background: var(--bg-white);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.faq-items {
    max-width: 700px;
    margin: 0 auto;
}

details {
    margin: 15px 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

summary {
    cursor: pointer;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 6px;
    user-select: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: list-item;
}

summary:hover {
    background: #e8ecf8;
}

details[open] summary {
    background: #e8ecf8;
    border-radius: 6px 6px 0 0;
}

details p {
    margin: 0;
    padding: 20px;
    color: var(--text-light);
    background: #f5f7ff;
    border-radius: 0 0 6px 6px;
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-col p {
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin: 8px 0;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* ===== TOOL PAGE STYLES ===== */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tool-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.tool-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.tool-hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.tool-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .tool-wrapper {
        grid-template-columns: 1fr;
    }
}

.tool-main {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.tool-textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    resize: vertical;
    font-size: 16px;
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tool-input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tool-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sidebar-box h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.sidebar-box ul {
    margin: 0;
    padding-left: 20px;
}

.sidebar-box li {
    margin: 8px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.content-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.content-section h2 {
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section ol,
.content-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-section li {
    margin: 10px 0;
    color: var(--text-light);
}

.related-tools {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.related-tools h2 {
    color: var(--text-dark);
    margin-top: 0;
    font-size: 1.4rem;
}

.related-tools ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-tools li {
    margin: 12px 0;
}

.related-tools a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-tools a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== COMING SOON PAGE ===== */
.coming-soon {
    text-align: center;
    padding: 80px 20px;
}

.coming-soon h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.coming-soon p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.coming-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== SLIDER ===== */
.slider-container {
    margin: 20px 0;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===== UTILITY ===== */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #dc3545;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tool-hero h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-textarea {
        height: 200px;
    }

    .nav-menu {
        gap: 0.8rem;
        font-size: 0.85rem;
    }
}
