/* css/main.css */

/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F5F3FF 0%, #E8E4F8 50%, #F0EBFF 100%);
    min-height: 100vh;
    overflow-x: hidden;
}
/* ============================================
   WRITERS SECTION (UPDATED & PROFESSIONAL)
   ============================================ */

.writers-section {
    padding: 60px 24px 80px;
    background: var(--r-blue-light);
    position: relative;
}

.writers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
}

.writers-header {
    max-width: 1400px;
    margin: 0 auto 48px;
}

.writers-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 42px;
    color: #ededed;
    line-height: 120%;
    font-weight: 700;
    margin-bottom: 16px;
}

.writers-subtitle {
    max-width: 600px;
    color: #ededed;
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    margin: 0 auto 40px;
    max-width: 1400px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    border: 1px solid rgba(138, 43, 226, 0.2);
    padding: 10px 20px;
    background: #ffffff12;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: #ffffff1a;
}

.subjects-count {
    color: #ededed;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 8px;
}

.writers-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.3) transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.writers-container::-webkit-scrollbar {
    display: none;
}

.writers-scroll {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 16px;
}

/* WRITER CARD - Fixed Aspect Ratio */
.writer-card {
    min-width: 280px;
    aspect-ratio: 1 / 1.3;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: black;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.writer-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blur effect on hover */
.writer-card:hover .writer-card-image {
    filter: blur(8px);
}

/* Default overlay - always visible with basic info */
.writer-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    padding: 24px;
    /* padding-bottom: 10px; */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Full overlay on hover */
.writer-card:hover .writer-overlay {
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
}

.writer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Name and Rating Container */
.writer-name-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: sans-serif;
}

.writer-name {
    font-size: 22px;
    font-weight: 600;
    line-height: 24px;
}

.writer-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 600;
}

.writer-rating-star {
    font-size: 18px;
    color: #ffc107;
}

/* Degree */
.writer-degree {
    font-size: 13px;
    opacity: 0.9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Stats Section - Hidden by default, shown on hover */
.writer-stats {
    display: none;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    opacity: 0.85;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 8px;
}

.writer-card:hover .writer-stats {
    display: flex;
}

.writer-stat {
    display: flex;
    justify-content: space-between;
}

/* Hire Button - Hidden by default, shown on hover */
.hire-button {
    align-self: flex-start;
    padding: 8px 16px;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: none;
    margin-top: 4px;
}

.writer-card:hover .hire-button {
    display: inline-block;
}

.hire-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.view-all-container {
    max-width: 1400px;
    margin: 40px auto 0;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .writers-title {
        font-size: 36px;
    }

    .writer-card {
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .writers-section {
        padding: 40px 16px 60px;
    }

    .writers-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .writers-subtitle {
        font-size: 14px;
    }

    .filter-buttons {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .subjects-count {
        font-size: 14px;
    }

    .writers-scroll {
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 12px;
    }

    .writer-card {
        min-width: 240px;
    }

    .writer-overlay {
        padding: 16px;
    }

    .writer-name-rating {
        gap: 6px;
    }

    .writer-name {
        font-size: 14px;
    }

    .writer-degree {
        font-size: 12px;
    }

    .writer-stats {
        font-size: 11px;
        gap: 5px;
    }

    .hire-button {
        font-size: 11px;
        padding: 6px 12px;
    }

    .page-button {
        padding: 12px 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .writers-section {
        padding: 30px 12px 50px;
    }

    .writers-title {
        font-size: 24px;
        line-height: 110%;
    }

    .writers-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }

    .filter-buttons {
        gap: 6px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .subjects-count {
        font-size: 12px;
    }

    .writer-card {
        min-width: 200px;
    }

    .writer-overlay {
        padding: 12px;
    }

    .writer-info {
        gap: 8px;
    }

    .writer-name {
        font-size: 13px;
    }

    .writer-degree {
        font-size: 11px;
    }

    .writer-stats {
        font-size: 10px;
        gap: 4px;
    }

    .hire-button {
        font-size: 10px;
        padding: 5px 10px;
    }

    .page-button {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ============================================
   HOW IT WORKS SECTION (FROM OLD CSS)
   ============================================ */

.how-it-works-component-section {
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.how-it-works-component-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.how-it-works-component-section-header {
    text-align: left;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-component-section-title {
    font-size: 42px;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 120%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.how-it-works-component-section-subtitle {
    font-size: 1rem;
    color: #4a5568;
    max-width: 600px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.how-it-works-component-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.how-it-works-component-image-container {
    width: 100%;
    height: 500px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    position: relative;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, #e8e8ff 0%, #f0e8ff 50%, #f5e8ff 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-it-works-component-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.how-it-works-component-step {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.how-it-works-component-step:hover {
    border-color: #c0c0ff;
    box-shadow: 0 4px 12px rgba(100, 100, 150, 0.1);
}

.how-it-works-component-step-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.how-it-works-component-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.how-it-works-component-step:hover::before {
    transform: scaleY(1);
}

.how-it-works-component-step.active {
    border-color: #6366f1;
}

.how-it-works-component-step.active::before {
    transform: scaleY(1);
}

.how-it-works-component-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #5b6dff 0%, #4c63f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 8px rgba(91, 109, 255, 0.3);
    flex-shrink: 0;
}

.how-it-works-component-step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #5b6dff;
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.how-it-works-component-step-content p {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.how-it-works-component-step-image {
    display: none;
    width: 100%;
    height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
}

.how-it-works-component-cta-container {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .how-it-works-component-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-it-works-component-image-container {
        display: none;
    }

    .how-it-works-component-step-image {
        display: block;
    }

    .how-it-works-component-step.active .how-it-works-component-step-image {
        display: block;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .how-it-works-component-section {
        padding: 60px 20px;
    }

    .how-it-works-component-section-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .how-it-works-component-section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .how-it-works-component-step {
        padding: 20px;
        gap: 16px;
    }

    .how-it-works-component-step-number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1rem;
    }

    .how-it-works-component-step-content h3 {
        font-size: 1.1rem;
    }

    .how-it-works-component-step-content p {
        font-size: 0.95rem;
    }

    .how-it-works-component-step-image {
        height: 250px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .how-it-works-component-section {
        padding: 40px 16px;
    }

    .how-it-works-component-section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .how-it-works-component-section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .how-it-works-component-step {
        padding: 16px;
        gap: 12px;
        grid-template-columns: auto 1fr;
    }

    .how-it-works-component-step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.95rem;
    }

    .how-it-works-component-step-content h3 {
        font-size: 1rem;
    }

    .how-it-works-component-step-content p {
        font-size: 0.9rem;
    }

    .how-it-works-component-step-image {
        height: 200px;
    }

    .how-it-works-component-cta-container {
        margin-top: 40px;
    }

    /* .how-it-works-component-cta-container .hero-cta {
        padding: 12px 24px;
        font-size: 13px;
    } */
}

/* Small mobile phones */
@media (max-width: 380px) {
    .how-it-works-component-section-title {
        font-size: 20px;
    }
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

.reviews-component-section {
    padding: 80px 24px;
    background-color: var(--reviews-bg);
    position: relative;
}

.reviews-component-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
}

.reviews-component-section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto 48px;
    color: white;
}

.reviews-component-scroll-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-component-scroll-container::-webkit-scrollbar {
    display: none;
}

.reviews-component-scroll {
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
}

.reviews-component-card {
    min-width: 350px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.reviews-component-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.reviews-component-writer {
    font-weight: 600;
    color: #ffffff;
}

.reviews-component-date {
    color: rgba(255, 255, 255, 0.6);
}

.reviews-component-paper-type {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.reviews-component-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 12px;
    min-height: 80px;
}

.reviews-component-cta-container {
    text-align: center;
    margin-top: 40px;
}

.reviews-component-btn-reviews {
    padding: 14px 40px;
    background: linear-gradient(135deg, #8a2be2, #0077b6);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

.reviews-component-btn-reviews:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.5);
}

/* Reviews Section - Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .reviews-component-section {
        padding: 60px 20px;
    }

    .reviews-component-card {
        min-width: 300px;
        max-width: 300px;
        padding: 24px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .reviews-component-section {
        padding: 40px 16px;
    }

    .reviews-component-card {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .reviews-component-text {
        min-height: auto;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 100px 24px;
    background-color: var(--r-blue-light);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 119, 182, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* .cta-section .hero-cta {
    padding: 16px 40px;
    font-size: 16px;
} */

/* CTA Section - Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-content h2 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 32px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .cta-section {
        padding: 40px 16px;
    }

    .cta-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    /* .cta-section .hero-cta {
        padding: 12px 24px;
        font-size: 13px;
    } */
}

/* Small mobile phones */
@media (max-width: 380px) {
    .cta-content h2 {
        font-size: 20px;
    }
}