/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-gradient-light: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    --bg-gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --text-color-light: #333;
    --text-color-dark: #e0e7ff;
    --header-bg-light: #ffffff;
    --header-bg-dark: #1e293b;
    --header-bg-scrolled-light: rgba(255, 255, 255, 0.95);
    --header-bg-scrolled-dark: rgba(30, 41, 59, 0.95);
    --card-bg-light: white;
    --card-bg-dark: #334155;
    --section-title-light: #4f46e5;
    --section-title-dark: #a5b4fc;
    --desc-color-light: #666;
    --desc-color-dark: #cbd5e1;
    --button-bg-light: #6366f1;
    --button-bg-dark: #4f46e5;
    --button-hover-light: #4f46e5;
    --button-hover-dark: #6366f1;
    --faq-bg-light: #f9fafb;
    --faq-bg-dark: #1e293b;
    --footer-bg-light: #6366f1;
    --footer-bg-dark: #312e81;
    --icon-color-light: #6366f1;
    --icon-color-dark: #a5b4fc;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient-light);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--bg-gradient-dark);
    color: var(--text-color-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navbar */
.header {
    background: var(--header-bg-light);
    box-shadow: 0 2px 5px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.header.scrolled {
    background: var(--header-bg-scrolled-light);
}

body.dark-mode .header {
    background: var(--header-bg-dark);
    box-shadow: 0 2px 5px var(--shadow-dark);
}

body.dark-mode .header.scrolled {
    background: var(--header-bg-scrolled-dark);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-light);
}

body.dark-mode .logo {
    color: var(--text-color-dark);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-color-light);
    display: none;
}

body.dark-mode .menu-toggle {
    color: var(--text-color-dark);
}

.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

body.dark-mode .nav-link {
    color: var(--text-color-dark);
}

.nav-link:hover,
.nav-link.active {
    color: var(--section-title-light);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: var(--section-title-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color-light);
}

body.dark-mode .theme-toggle {
    color: var(--text-color-dark);
}

.theme-toggle .fa-sun {
    display: block;
}

.theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: none;
}

body.dark-mode .theme-toggle .fa-moon {
    display: block;
}

.cta-button {
    background: var(--button-bg-light);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

body.dark-mode .cta-button {
    background: var(--button-bg-dark);
}

.cta-button:hover {
    background: var(--button-hover-light);
}

body.dark-mode .cta-button:hover {
    background: var(--button-hover-dark);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-subtext {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button.primary {
    background: #ffffff;
    color: #6366f1;
}

.cta-button.primary:hover {
    background: #e0e7ff;
}

body.dark-mode .cta-button.primary {
    background: #4f46e5;
    color: white;
}

body.dark-mode .cta-button.primary:hover {
    background: #6366f1;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Tools Section */
.tools-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--section-title-light);
}

body.dark-mode .section-title {
    color: var(--section-title-dark);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--card-bg-light);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

body.dark-mode .tool-card {
    background: var(--card-bg-dark);
    box-shadow: 0 4px 20px var(--shadow-dark);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px var(--shadow-light);
}

body.dark-mode .tool-card:hover {
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.tool-icon {
    font-size: 3rem;
    color: var(--icon-color-light);
    margin-bottom: 20px;
}

body.dark-mode .tool-icon {
    color: var(--icon-color-dark);
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tool-description {
    font-size: 1rem;
    color: var(--desc-color-light);
    margin-bottom: 20px;
}

body.dark-mode .tool-description {
    color: var(--desc-color-dark);
}

.tool-button {
    display: inline-block;
    background: var(--button-bg-light);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

body.dark-mode .tool-button {
    background: var(--button-bg-dark);
}

.tool-button:hover {
    background: var(--button-hover-light);
}

body.dark-mode .tool-button:hover {
    background: var(--button-hover-dark);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--faq-bg-light);
}

body.dark-mode .features-section {
    background: var(--faq-bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card-bg-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

body.dark-mode .feature-card {
    background: var(--card-bg-dark);
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

body.dark-mode .feature-card:hover {
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--icon-color-light);
    margin-bottom: 15px;
}

body.dark-mode .feature-icon {
    color: var(--icon-color-dark);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--desc-color-light);
}

body.dark-mode .feature-card p {
    color: var(--desc-color-dark);
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--card-bg-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

body.dark-mode .step-card {
    background: var(--card-bg-dark);
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-light);
}

body.dark-mode .step-card:hover {
    box-shadow: 0 6px 20px var(--shadow-dark);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--icon-color-light);
    margin-bottom: 15px;
}

body.dark-mode .step-icon {
    color: var(--icon-color-dark);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--desc-color-light);
}

body.dark-mode .step-card p {
    color: var(--desc-color-dark);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--faq-bg-light);
}

body.dark-mode .faq-section {
    background: var(--faq-bg-dark);
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--section-title-light);
}

body.dark-mode .faq-question {
    color: var(--section-title-dark);
}

.faq-answer {
    font-size: 1rem;
    color: var(--desc-color-light);
}

body.dark-mode .faq-answer {
    color: var(--desc-color-dark);
}

/* Footer */
.footer {
    background: var(--footer-bg-light);
    color: white;
    padding: 40px 0;
    text-align: center;
}

body.dark-mode .footer {
    background: var(--footer-bg-dark);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e0e7ff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: #e0e7ff;
}

.copyright {
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .tools-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}