/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(22, 66, 60, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(59, 117, 100, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(106, 156, 137, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    width: 90%;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    
}

.hero-image {
    flex: 1;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--site-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
}

.search-container {
    position: relative;
    max-width: 700px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.explore-btn {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.explore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 66, 60, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--primary-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-btn:hover {
    background: var(--primary-medium);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 66, 60, 0.3);
}

.search-bar {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-left: 3.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    background: var(--search-bar-bg);
    color: var(--dark-text);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-bar:focus {
    outline: none;
    box-shadow: 0 5px 20px rgba(106, 156, 137, 0.3);
    background: var(--search-bar-focus-bg);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--search-icon-color);
}

.cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 66, 60, 0.4);
    margin-left: 1rem;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 66, 60, 0.5);
}

/* Typewriter effect */
.typewriter {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    min-height: 2.5rem;
    color: var(--typewriter-color);
    text-align: center;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.8rem;
    background-color: var(--typewriter-color);
    animation: blink 1s infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Trust Section */
.trust-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-item {
    background: var(--trust-item-bg);
    border: var(--trust-item-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.user-testimonial {
    font-style: italic;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.user-name {
    font-weight: 600;
    color: var(--user-name-color);
}

.trust-badge {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--trust-badge-bg);
    border-radius: 16px;
    display: inline-block;
}

.trust-badge img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.user-counter {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0;
    color: var(--user-name-color);
}

/* Tool Categories Section */
.section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    background: var(--section-header-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

@media (min-width: 1200px) {
    .tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tool-card {
    background: var(--home-tool-card-bg);
    border: var(--home-tool-card-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.8rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(22, 66, 60, 0.3);
}

.tool-icon i {
    font-size: 2.2rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-text);
}

.tool-card p {
    color: var(--dark-text);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.tool-button {
    padding: 0.9rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(22, 66, 60, 0.3);
}

.tool-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 66, 60, 0.4);
}

/* Popular Tools Section */
.popular-tools {
    background: var(--popular-tools-bg);
    border: var(--popular-tools-border);
    border-radius: 30px;
    padding: 5rem 3rem;
    margin: 3rem 0;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .popular-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.popular-card {
    background: var(--popular-card-bg);
    border: var(--popular-card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.popular-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popular-icon i {
    font-size: 1.8rem;
    color: var(--popular-icon-color);
}

.popular-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.popular-content p {
    color: var(--dark-text);
    opacity: 0.8;
    font-size: 0.95rem;
}

.popular-content a{
    text-decoration: none;
}

/* Benefits Section */
.benefits {
    background: var(--benefits-bg);
    border: var(--benefits-border);
    border-radius: 30px;
    padding: 5rem 3rem;
    margin: 3rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--benefit-card-bg);
    border: var(--benefit-card-border);
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--secondary-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(106, 156, 137, 0.3);
}

.benefit-icon i {
    font-size: 1.8rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.benefit-card p {
    color: var(--dark-text);
    opacity: 0.8;
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--faq-item-bg);
    border: var(--faq-item-border);
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text);
    opacity: 0.9;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Newsletter */
.newsletter-section {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 2rem auto;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    background: var(--contact-input-bg);
    color: var(--newsletter-input-text);
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 5px 20px rgba(106, 156, 137, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.subscribe-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 66, 60, 0.4);
    white-space: nowrap;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(22, 66, 60, 0.5);
}

/*.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}*/

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
/*end*/