/* Color Palette & Global Variables */
:root {
    --primary-color: #ff4d4d;
    --primary-hover: #e04343;
    --bg-light: #fafbfc;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styling */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

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

.theme-toggle, .lang-selector {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
}

.lang-selector {
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Ad Container */
.ad-container {
    width: 90%;
    max-width: 970px;
    margin: 20px auto;
    min-height: 90px;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Optimized Hero Section Styles */
.hero-section {
    padding: 80px 0 40px 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 77, 77, 0.05), transparent 50%);
    text-align: center;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Center Search Box */
.search-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 30px auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    font-size: 15px;
    box-shadow: var(--card-shadow);
}

.features-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.features-badges span {
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-green {
    color: #22c55e;
}

/* Drag & Drop Upload Zone */
.upload-box {
    background-color: var(--white);
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: border-color 0.3s;
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-icon img {
    width: 64px;
    margin-bottom: 15px;
}

.or-text {
    margin: 10px 0;
    color: var(--text-muted);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

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

.limit-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Tools Section */
.tools-section {
    padding: 60px 0;
}

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

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

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

/* Tool Card styling */
.tool-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.icon-pink { background-color: #fff0f0; color: #ff5a79; }
.icon-purple { background-color: #f3f0ff; color: #7c5cfc; }
.icon-green { background-color: #f0fdf4; color: #22c55e; }
.icon-orange { background-color: #fff7ed; color: #ea580c; }
.icon-blue { background-color: #eff6ff; color: #3b82f6; }
.icon-sky { background-color: #ecfeff; color: #0891b2; }

.tool-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.arrow-btn {
    color: var(--text-muted);
    font-size: 14px;
}

/* Trust Section */
.trust-section {
    padding: 50px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.trust-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.badge-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.trust-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.trust-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Static Content Styling (About, Privacy, Contact, Blog) */
.static-content {
    padding: 40px 0 60px 0;
    max-width: 800px;
    margin: 0 auto;
    min-height: 60vh;
}

.static-content h1 {
    font-size: 36px;
    margin: 20px 0;
    color: var(--text-dark);
}

.static-content h3 {
    font-size: 22px;
    margin: 25px 0 10px 0;
}

.static-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(-5px);
}

/* Footer Styling */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Popup Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    text-align: center;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}