/*
 * EduBirdie Clone - Enhanced Stylesheet
 * Premium Academic Writing Service
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c3aed;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

.display-3 {
    font-size: 3.5rem;
    font-weight: 800;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-6 {
    font-size: 2rem;
    font-weight: 700;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-600);
}

/* ========================================
   GRADIENTS & EFFECTS
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    font-size: 0.9rem;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background-color: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.85rem;
}

.top-bar .dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--gray-100);
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mega-menu {
    min-width: 700px;
    padding: 2rem;
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius-lg);
}

.mega-menu .dropdown-header {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    padding: 0.5rem 1rem;
}

.mega-menu .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mega-menu .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary-color);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 50rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-premium {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 90vh;
    overflow: hidden;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 50px;
    left: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--success-color);
    bottom: 200px;
    right: 20%;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    padding: 8px 15px;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--box-shadow);
}

/* Counter */
.counter-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 2rem;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.counter-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 5px;
}

/* Writer Avatars */
.writer-avatars {
    display: flex;
    align-items: center;
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -10px;
    object-fit: cover;
    box-shadow: var(--box-shadow);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid var(--white);
    margin-left: -10px;
}

/* ========================================
   PRICE CALCULATOR
   ======================================== */
.calculator-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.calculator-body {
    padding: 2rem;
}

.calculator-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 1.5rem;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.price-display {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: -20px;
    background: var(--success-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========================================
   FEATURED WRITERS
   ======================================== */
.featured-writers {
    padding: 80px 0;
    background: var(--white);
}

.writer-card-modern {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.writer-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.writer-card-header {
    position: relative;
    margin-bottom: 1rem;
}

.writer-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--white);
    box-shadow: var(--box-shadow);
}

.writer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--success-color);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.writer-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.writer-degree {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.writer-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.writer-stats .stat {
    text-align: center;
}

.writer-stats .stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.writer-stats .stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
    padding: 80px 0;
    background: var(--gray-100);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.price-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-item {
    padding: 2rem;
}

.stat-item i {
    opacity: 0.9;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
}

.testimonial-card-modern {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--gray-200);
    height: 100%;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    font-size: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */
.process-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.process-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 450px;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--box-shadow-lg);
}

.timeline-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-search {
    position: relative;
}

.faq-search input {
    padding: 1rem 1.5rem;
    border-radius: 50rem;
    border: 2px solid var(--gray-200);
    font-size: 1rem;
}

.faq-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.accordion-item {
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: 60px 0;
    background: var(--white);
}

.cta-banner .row {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900) !important;
    padding: 80px 0 30px;
}

.footer h4, .footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer p {
    color: var(--gray-400);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer .btn-outline-light {
    border-color: var(--gray-600);
    color: var(--gray-400);
}

.footer .btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
}

.floating-buttons .btn:hover {
    transform: scale(1.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .mega-menu {
        min-width: 100%;
    }
    
    .counter-wrapper {
        gap: 20px;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .hero-premium {
        padding: 60px 0;
    }
    
    .timeline-item {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .counter-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .writer-stats {
        gap: 15px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-buttons .btn {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-soft-primary {
    background-color: rgba(102, 126, 234, 0.1);
}

.border-soft {
    border-color: var(--gray-200) !important;
}
