/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
    background: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Intégré dans le design */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section avec vidéo de fond */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.7) 0%, rgba(255, 193, 7, 0.8) 100%);
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Nouveau style de boutons */
.cta-button {
    background: #ffffff;
    color: #F57F17;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* Boutons secondaires */
.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #F57F17;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 700;
}


/* What is Dropshipping Section */
.what-is-dropshipping {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.what-is-dropshipping::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23F57F17" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.dropshipping-explanation {
    position: relative;
    z-index: 1;
}

.explanation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.explanation-text h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.explanation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.nexfy-advantages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #F57F17;
}

.advantage-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.animated-icon {
    width: 100%;
    height: 100%;
}

.advantage-content h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.advantage-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}


/* Animations SVG */
.pulse-circle {
    animation: pulse 2s ease-in-out infinite;
}

.bounce-box {
    animation: bounce 2s ease-in-out infinite;
}

.rotate-circle {
    animation: rotate 3s linear infinite;
}

.rotate-circle-reverse {
    animation: rotate-reverse 3s linear infinite;
}

.lightning-path {
    animation: lightning 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        stroke-width: 3;
        opacity: 1;
    }
    50% {
        stroke-width: 6;
        opacity: 0.7;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes lightning {
    0%, 100% {
        stroke-dasharray: 0, 100;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 50, 50;
        stroke-dashoffset: -25;
    }
}

/* Process Flow */
.dropshipping-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    position: relative;
}

.step-svg {
    width: 100%;
    height: 100%;
}

.step-bg {
    animation: float 3s ease-in-out infinite;
}

.step-border {
    animation: border-pulse 2s ease-in-out infinite;
}

.ripple-1 {
    animation: ripple 2s ease-in-out infinite;
}

.ripple-2 {
    animation: ripple 2s ease-in-out infinite 0.5s;
}

.flow-step h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.flow-step p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.flow-arrow {
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-svg {
    width: 100%;
    height: 100%;
}

.arrow-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-line 2s ease-in-out infinite;
}

.arrow-head {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: draw-arrow 2s ease-in-out infinite 0.5s;
}

.moving-dot {
    animation: move-dot 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes border-pulse {
    0%, 100% {
        stroke-width: 2;
        opacity: 1;
    }
    50% {
        stroke-width: 4;
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% {
        r: 40;
        opacity: 0.3;
    }
    100% {
        r: 50;
        opacity: 0;
    }
}

@keyframes draw-line {
    0% {
        stroke-dashoffset: 100;
    }
    50%, 100% {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-arrow {
    0% {
        stroke-dashoffset: 20;
    }
    50%, 100% {
        stroke-dashoffset: 0;
    }
}

@keyframes move-dot {
    0% {
        cx: 20;
    }
    50% {
        cx: 80;
    }
    100% {
        cx: 20;
    }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

.process-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.flow-step:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: linear-gradient(45deg, #FFF176, #F57F17);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #F57F17;
    transform: rotate(90deg);
    font-weight: bold;
}

/* How It Works Section */
.how-it-works {
    background: #ffffff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #FFF176, #F57F17);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    background: linear-gradient(45deg, #FFF176, #F57F17);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Features Section */
.features {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #F57F17;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Commission Section */
.commission {
    background: linear-gradient(135deg, #FFF176 0%, #F57F17 100%);
    color: white;
}

.commission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.commission-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.dashboard-header h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: #ffffff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #333;
    padding: 3rem 0;
    border-top: 1px solid #f0f0f0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFF176, #F57F17);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover svg {
    transform: scale(1.1);
    color: white;
}

.social-link.tiktok:hover {
    background: #000;
    border-color: #000;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-color: transparent;
}

.social-link.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #666;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(45deg, #FFF176, #F57F17);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

#registerForm {
    padding: 1rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #F57F17;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    background-color: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #F57F17;
}

.form-group select option {
    padding: 10px;
    font-family: 'Tajawal', sans-serif;
}

.submit-button {
    width: 100%;
    background: linear-gradient(45deg, #FFF176, #F57F17);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 241, 118, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-container {
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-grid,
    .commission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .explanation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    
    .dropshipping-flow {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nexfy-advantages {
        gap: 1rem;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .advantage-item:hover {
        transform: translateY(-5px);
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        width: 50px;
        height: 100px;
    }
    
    .step-icon {
        width: 100px;
        height: 100px;
    }
    
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .flow-arrow {
        transform: rotate(0deg);
    }
    
    .process-flow {
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}