html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #1e3a8a;
    --primary-green: #059669;
    --primary-yellow: #f59e0b;
    --primary-red: #ef4444;
    --text-gray: #6b7280;
    --background-light: #f9fafb;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}



.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    background: #1e3a8a;
    color: white;
}

.btn-login:hover {
    background-color: #2b6cb0; /* Darker blue */
}

.btn-logout {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-solve {
    background: var(--primary-blue);
    margin-top: 5%;
    color: white;
    font-weight: bolder;
    padding: 20px 40px;
}

.btn-solve:hover {
    background-color: #1d4ed8;
}

.btn-register {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-read {
    background: var(--primary-green);
    color: white;
    font-weight: bolder;
    text-decoration: none;
}

.section {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* How It Works Section */
/* General Section Styling */
.how-it-works {
    padding: 60px 20px;
    background-color: #f9fbfd;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Step Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Individual Step Styling */
.step {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Step Title */
.step-title {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Step Description */
.step-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.btn-read {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-read:hover {
    background-color: #1d4ed8;
}

@media (min-width: 1024px) {
    .swiper-slide {
        opacity: 0.3;
        filter: blur(2px);
        transform: scale(0.9);
    }

    /* Make the current and next slide fully visible */
    .swiper-slide-active,
    .swiper-slide-next {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }

    /* Slightly visible for the slide after next */
    .swiper-slide-next + .swiper-slide {
        opacity: 0.3;
        filter: blur(1px);
        transform: scale(0.9);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper-slide {
        opacity: 0.3;
        filter: blur(2px);
        transform: scale(0.9);
    }

    .swiper-slide-active {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}
/* Enhanced Footer Styles */
.footer {
    background: linear-gradient(to bottom, #1f2937, #111827);
    color: #f3f4f6;
    padding: 5rem 5% 2rem;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #fff);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #3b82f6;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #e5e7eb;
    transition: all 0.3s ease;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.social-links a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.subscribe-form button {
    padding: 0.875rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.payment-icons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.payment-icons svg {
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.payment-icons svg:hover {
    transform: translateY(-3px);
}

.chat-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chat-button:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 5% 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .footer-section {
        padding: 1rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-section h2 {
        font-size: 1.2rem;
    }

    .social-links {
        justify-content: center;
    }

    .payment-icons {
        justify-content: center;
    }
}

/* Additional styles to support new content */
.company-info {
    margin-bottom: 1.5rem;
}

.footer-logo {
    margin-bottom: 1rem;
    height: 40px;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.875rem;
    color: #e5e7eb;
}

.support-hours {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.support-hours h3 {
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.newsletter-perks {
    margin-top: 1rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.perk-icon {
    font-size: 1.25rem;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.badge-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.award-item img {
    margin-bottom: 0.5rem;
}

.social-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-store-btn,
.play-store-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-store-btn:hover,
.play-store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.language-selector select {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .language-selector {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .company-stats,
    .trust-badges {
        grid-template-columns: 1fr;
    }

    .app-buttons {
        flex-direction: column;
    }
}
/* General Section Styling */
.section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    margin-top: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* Our Services Section */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.service-title {
    font-size: 1.3rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-description {
    font-size: 1rem;
    color: #777;
    line-height: 1.5;
}

.writers-section {
    max-width: 95%; 
    margin: 3%;
    padding: 2rem 1rem;
    border-radius: 10px; 
}

.title {
    font-size: xx-large;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
    padding: 0 1rem;
}

.description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    line-height: 1.6;
    font-size: clamp(0.9rem, 4vw, 1rem);
    padding: 0 1rem;
}
.writers-list{
    
}
.subject-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.subject-button {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    color: #4a5568;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    white-space: nowrap;
}


@media (max-width: 768px) {
    .subject-button:not(:first-child):not(:last-child) {
        display: none;
    }
}

.subject-button:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.choose-pro {
    background-color: #1e3a8a;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choose-pro:hover {
    background: #2563eb;
}

.writers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    justify-content: center;
  }
  .writer-card {
    width: 100%;
    max-width: 280px;
  }
/* Responsive grid columns with different card sizes */
@media (min-width: 1024px) {
    .writers-list {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    .writer-card {
        aspect-ratio: 3/4;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .writers-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .writer-card {
        aspect-ratio: 4/5;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .writers-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .writer-card {
        aspect-ratio: 1/1;
    }
}

@media (max-width: 479px) {
    .writers-list {
        grid-template-columns: repeat(1, 1fr);
        max-width: 280px;
        margin: 0 auto;
    }
    .writer-card {
        aspect-ratio: 1/1;
    }
}

.writer-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    background-color: #333;
}

@media (hover: hover) {
    .writer-card:hover {
        transform: translateY(-5px);
    }
    .writer-card:hover img {
        transform: scale(1.1);
    }
    .writer-card:hover .writer-info {
        transform: translateY(0);
    }
}

@media (hover: none) {
    .writer-info {
        transform: translateY(0) !important;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.3)
        );
    }
}

.writer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.writer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: clamp(1rem, 3vw, 1.5rem);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.writer-info h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.writer-info p {
    margin: 0.25rem 0;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    opacity: 0.9;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
}

.subjects {
    margin-top: 0.5rem;
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    opacity: 0.8;
}

@media (max-width: 480px) {
    .writers-section {
        padding: 1rem 0.5rem;
    }

    .writers-list {
        gap: 1rem;
        padding: 0.5rem;
    }

    .subject-filters {
        padding: 0 0.5rem;
    }
}

.features-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 20px;
    background: #f9f9ff;
    border-radius: 10px;
}

.features-list {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.features-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.features-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
}

.item-badge {
    background: #1e3a8a;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.cta-button {
    width: 100%;
    padding: 10px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
}

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

.perk-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.perk-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.perk-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}