/* Modern Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    padding: 6rem 0 8rem;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.15rem;
    }
}

.hero-highlight {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-buttons {
    gap: 1rem;
}

.btn-hero-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background: white;
    color: var(--primary);
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

.btn-hero-secondary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid white;
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    color: var(--body-bg);
    overflow: hidden;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

[data-theme-style="dark"] .hero-wave {
    color: var(--body-bg);
}

/* Features Section */
.features-section {
    background: var(--body-bg);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

[data-theme-style="dark"] .feature-card {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary);
}

.feature-icon i {
    font-size: 2rem;
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

[data-theme-style="dark"] .section-title {
    color: var(--gray-100);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
}

[data-theme-style="dark"] .section-subtitle {
    color: var(--gray-400);
}

/* Popular Tools Section */
.popular-tools-section {
    background: var(--gray-50);
    padding: 4rem 0;
}

[data-theme-style="dark"] .popular-tools-section {
    background: var(--gray-900);
}

#popular_tools .card {
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    overflow: hidden;
}

#popular_tools .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

[data-theme-style="dark"] #popular_tools .card {
    border-color: var(--gray-700);
}

[data-theme-style="dark"] #popular_tools .card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Legacy Support */
.index-background {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    padding: 6rem 0 8rem;
}

.index-header {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.index-subheader {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
}

.index-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Index testimonial */
.index-testimonial-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    transform: translateY(-70%);
    border: 4px solid var(--white);
    background: var(--white);
    position: absolute;
    left: 50%;
    margin-left: -52px;
}

.index-testimonial-comment {
    margin-left: 18px;
}

/* Index FAQ */
.index-faq svg {
    transition: all .15s;
    color: var(--primary-800);
}

/* Timeline */
.index-timeline {
    position: relative;
}

.index-timeline::before {
    content: '';
    position: absolute;
    border-left: 2px solid var(--gray-200);
    height: 100%;
    left: calc(57px / 2);
}

/* Index CTA */
.index-cta {
    background-position: bottom !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    color: white;
    overflow: hidden;
    position: relative;
}

.index-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.index-cta .card-body {
    position: relative;
    z-index: 1;
}

.index-cta h2,
.index-cta h3,
.index-cta p {
    color: white !important;
}

.index-cta .btn-primary {
    background: white;
    color: var(--primary);
    border: none;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.index-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* Search Input Enhancement */
#search input[type="search"] {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#search input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

[data-theme-style="dark"] #search input[type="search"] {
    background: var(--gray-800);
    border-color: var(--gray-700);
    color: var(--gray-100);
}

/* Tool Categories Enhancement */
#tools [data-category] {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

#tools [data-category]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
