/* ===================================
   WORDPRESS PRO STYLES
   Améliorations premium style WordPress/Joomla
   =================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   VARIABLES DARK MODE
   =================================== */

:root {
    /* Light Mode (default) */
    --wp-bg-primary: #ffffff;
    --wp-bg-secondary: #f8fafc;
    --wp-bg-tertiary: #f1f5f9;
    --wp-text-primary: #0f172a;
    --wp-text-secondary: #475569;
    --wp-text-muted: #94a3b8;
    --wp-border: #e2e8f0;
    --wp-card-bg: #ffffff;
    --wp-shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --wp-bg-primary: #0f172a;
    --wp-bg-secondary: #1e293b;
    --wp-bg-tertiary: #334155;
    --wp-text-primary: #f8fafc;
    --wp-text-secondary: #cbd5e1;
    --wp-text-muted: #94a3b8;
    --wp-border: #334155;
    --wp-card-bg: #1e293b;
    --wp-shadow: rgba(0, 0, 0, 0.3);
}

/* ===================================
   TYPOGRAPHY UPDATE
   =================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.pricing-header h3,
.service-card h3,
.portfolio-content h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===================================
   READING PROGRESS BAR
   =================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.back-to-top i {
    font-size: 1.25rem;
    animation: bounce-up 2s infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===================================
   DARK MODE TOGGLE
   =================================== */

.theme-toggle {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--wp-card-bg);
    border: 2px solid var(--wp-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--wp-shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: #2563eb;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    color: #f59e0b;
    display: none;
}

.theme-toggle .moon-icon {
    color: #6366f1;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Dark Mode Specific Styles */
[data-theme="dark"] body {
    background: var(--wp-bg-primary);
    color: var(--wp-text-primary);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--wp-border);
}

[data-theme="dark"] .nav-brand,
[data-theme="dark"] .brand-text h1 {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .brand-subtitle {
    color: var(--wp-text-secondary);
}

[data-theme="dark"] .section {
    background: var(--wp-bg-primary);
}

[data-theme="dark"] .section:not(.section-dark) .section-title {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .section:not(.section-dark) .section-description {
    color: var(--wp-text-secondary);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .tech-category,
[data-theme="dark"] .contact-card {
    background: var(--wp-card-bg);
    border-color: var(--wp-border);
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .pricing-header h3,
[data-theme="dark"] .tech-category h3 {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .pricing-features li,
[data-theme="dark"] .tech-item {
    color: var(--wp-text-secondary);
}

[data-theme="dark"] .tech-item {
    background: var(--wp-bg-tertiary);
}

[data-theme="dark"] .skills-progress {
    background: var(--wp-card-bg);
    border-color: var(--wp-border);
}

[data-theme="dark"] .skills-progress h3 {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .progress-header {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .progress-bar {
    background: var(--wp-bg-tertiary);
}

[data-theme="dark"] .contact-item {
    background: var(--wp-bg-secondary);
}

[data-theme="dark"] .contact-item strong {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .contact-cta {
    background: var(--wp-bg-secondary);
    border-color: var(--wp-border);
}

[data-theme="dark"] .contact-card {
    background: var(--wp-card-bg);
}

[data-theme="dark"] .contact-card h3 {
    color: var(--wp-text-primary);
}

[data-theme="dark"] .pricing-note {
    background: var(--wp-bg-secondary);
    border-color: var(--wp-border);
}

[data-theme="dark"] .language-switcher {
    background: var(--wp-bg-tertiary);
}

[data-theme="dark"] .lang-link {
    color: var(--wp-text-secondary);
}

[data-theme="dark"] .lang-link.active {
    background: var(--wp-bg-primary);
    color: #3b82f6;
}

/* ===================================
   SECTION SEPARATORS (SVG Waves)
   =================================== */

.section-separator {
    position: relative;
    height: 100px;
    overflow: hidden;
    margin-top: -1px;
}

.section-separator svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.separator-wave {
    fill: var(--wp-bg-primary);
}

.separator-wave-dark {
    fill: var(--bg-dark);
}

.section-separator.flip {
    transform: rotate(180deg);
    margin-top: 0;
    margin-bottom: -1px;
}

/* ===================================
   CUSTOM CURSOR
   =================================== */

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #2563eb;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.05s ease;
}

.custom-cursor.hover {
    transform: scale(2);
    background: rgba(37, 99, 235, 0.1);
    border-color: #7c3aed;
}

.custom-cursor.clicking {
    transform: scale(0.8);
    background: rgba(37, 99, 235, 0.3);
}

@media (max-width: 968px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}

/* ===================================
   AOS-LIKE ANIMATIONS
   =================================== */

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-up"] {
    transform: perspective(2500px) rotateX(-100deg);
}

[data-aos="flip-up"].aos-animate {
    transform: perspective(2500px) rotateX(0);
}

/* Animation Delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* ===================================
   PROCESS/TIMELINE SECTION
   =================================== */

.process-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="dark"] .process-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    border-radius: 2px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-content {
    width: 45%;
    padding: 2rem;
    background: var(--wp-card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--wp-shadow);
    border: 1px solid var(--wp-border);
    transition: all 0.3s ease;
}

.process-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--wp-shadow);
}

.process-step:nth-child(odd) .process-content {
    margin-right: auto;
    text-align: right;
}

.process-step:nth-child(even) .process-content {
    margin-left: auto;
    text-align: left;
}

.process-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #ec4899;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.process-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--wp-text-primary);
}

.process-content p {
    color: var(--wp-text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }

    .process-content,
    .process-step:nth-child(odd) .process-content,
    .process-step:nth-child(even) .process-content {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .process-icon {
        left: 30px;
        transform: translateX(-50%);
    }
}

/* ===================================
   TESTIMONIALS CAROUSEL
   =================================== */

.testimonials-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    overflow: hidden;
}

.testimonials-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(37, 99, 235, 0.3);
    line-height: 1;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h4 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.testimonial-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

.testimonial-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.testimonial-arrow:hover {
    background: rgba(37, 99, 235, 0.8);
    border-color: #2563eb;
}

/* ===================================
   FAQ ACCORDION
   =================================== */

.faq-section {
    padding: 6rem 0;
    background: var(--wp-bg-secondary);
}

[data-theme="dark"] .faq-section {
    background: var(--wp-bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--wp-card-bg);
    border: 1px solid var(--wp-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 20px var(--wp-shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--wp-text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #2563eb;
}

.faq-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 2rem 1.5rem;
    color: var(--wp-text-secondary);
    line-height: 1.8;
}

/* ===================================
   MEGA FOOTER ENHANCEMENTS
   =================================== */

.footer-newsletter {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-newsletter h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: white;
    color: #2563eb;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    transform: translateY(-3px);
}

/* ===================================
   ANIMATED COUNTERS
   =================================== */

.counter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.counter-item {
    color: white;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.counter-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   CTA BANNERS
   =================================== */

.cta-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   MOBILE RESPONSIVE FIXES
   =================================== */

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .testimonial-arrows {
        display: none;
    }

    .process-step {
        margin-bottom: 3rem;
    }

    .back-to-top,
    .theme-toggle {
        right: 20px;
    }

    .back-to-top {
        bottom: 80px;
        width: 45px;
        height: 45px;
    }

    .theme-toggle {
        bottom: 140px;
        width: 45px;
        height: 45px;
    }
}

/* ===================================
   LIGHTBOX FOR PORTFOLIO
   =================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: #ef4444;
}

/* ===================================
   BREADCRUMBS
   =================================== */

.breadcrumbs {
    padding: 1rem 0;
    background: var(--wp-bg-secondary);
    border-bottom: 1px solid var(--wp-border);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-list a {
    color: var(--wp-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs-list a:hover {
    color: #2563eb;
}

.breadcrumbs-list .current {
    color: var(--wp-text-primary);
    font-weight: 500;
}

.breadcrumbs-separator {
    color: var(--wp-text-muted);
}
