/* DIOUANE - Modern Landing Page Styles */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for theme colors */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #f59e0b;
    --color-accent: #10b981;
    
    /* Light theme */
    --bg-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Dark theme */
    --bg-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Base styles */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    font-variant-ligatures: contextual;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main background container */
.main-bg {
    background: var(--bg-light);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-bg.dark-mode {
    background: var(--bg-dark);
}

/* Professional geometric background elements */
.blob {
    position: absolute;
    opacity: 0.7;
    animation: professionalFloat 12s ease-in-out infinite;
    transition: opacity 0.3s ease;
    filter: blur(0.5px);
}

.blob-1 {
    top: 8%;
    left: 3%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-delay: 0s;
}

.blob-2 {
    top: 12%;
    right: 6%;
    width: 80px;
    height: 150px;
    background: linear-gradient(45deg, #bfdbfe, #93c5fd);
    border-radius: 4px;
    transform: rotate(15deg);
    animation-delay: 3s;
}

.blob-3 {
    bottom: 25%;
    left: 8%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #bbf7d0, #86efac);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation-delay: 6s;
}

.blob-4 {
    bottom: 18%;
    right: 12%;
    width: 60px;
    height: 120px;
    background: linear-gradient(90deg, #fed7aa, #fdba74);
    border-radius: 8px;
    transform: rotate(-20deg);
    animation-delay: 9s;
}

.blob-5 {
    top: 45%;
    left: 1%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border-radius: 50%;
    animation-delay: 2s;
}

.blob-6 {
    top: 65%;
    right: 4%;
    width: 90px;
    height: 60px;
    background: linear-gradient(45deg, #ecfdf5, #d1fae5);
    border-radius: 12px;
    transform: rotate(25deg);
    animation-delay: 5s;
}

/* Dark mode professional elements */
.dark .blob {
    opacity: 0.4;
}

.dark .blob-1 {
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
}

.dark .blob-2 {
    background: linear-gradient(45deg, #1e3a8a, #1d4ed8);
}

.dark .blob-3 {
    background: linear-gradient(135deg, #065f46, #047857);
}

.dark .blob-4 {
    background: linear-gradient(90deg, #c2410c, #ea580c);
}

.dark .blob-5 {
    background: linear-gradient(135deg, #86198f, #a21caf);
}

.dark .blob-6 {
    background: linear-gradient(45deg, #14532d, #166534);
}

/* Professional floating animation */
@keyframes professionalFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) rotate(2deg);
    }
    50% { 
        transform: translateY(-8px) rotate(-1deg);
    }
    75% { 
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-600 { animation-delay: 0.6s; }
.animate-delay-800 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content container */
.content-container {
    position: relative;
    z-index: 10;
}

/* Glass effect cards */
.step-card {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dark .step-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark .step-card:hover {
    background: rgba(15, 23, 42, 0.6);
}

/* Mobile Navigation */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Theme toggle button */
.theme-toggle {
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* Navigation improvements */
.nav-glass {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .nav-glass {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Phone mockup improvements */
.phone-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark .phone-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Button improvements */
.btn-primary {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

.dark .btn-primary {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    color: #111827;
}

.dark .btn-primary:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

/* Logo styles */
.logo-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

/* Typography improvements */
.heading-primary {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.heading-secondary {
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main page title colors for privacy and terms pages */
.heading-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .heading-primary {
    background: linear-gradient(135deg, #818cf8, #a78bfa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form styles for contact page */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    color: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: rgba(156, 163, 175, 0.8);
}

.form-input.border-red-500 {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    background: rgba(239, 68, 68, 0.05);
}

.form-input.border-red-500:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dark .form-input {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark .form-input:focus {
    background: rgba(15, 23, 42, 0.6);
}

.dark .form-input::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

.dark .form-input.border-red-500 {
    background: rgba(239, 68, 68, 0.1);
}

/* Button loading state */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Error message styles */
.error-message {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page content styles */
.page-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.prose {
    line-height: 1.75;
}

.prose h2 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: #059669;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.dark .prose h3 {
    color: #10b981;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: #6366f1;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.prose a:hover {
    color: #4f46e5;
    text-decoration-color: #4f46e5;
}

.dark .prose a {
    color: #a78bfa;
    text-decoration-color: rgba(167, 139, 250, 0.3);
}

.dark .prose a:hover {
    color: #c4b5fd;
    text-decoration-color: #c4b5fd;
}

/* Responsive design */
@media (max-width: 768px) {
    .blob {
        opacity: 0.5;
        filter: blur(0.8px);
    }
    
    .blob-1 {
        width: 80px;
        height: 80px;
        top: 5%;
        left: 2%;
    }
    
    .blob-2 {
        width: 60px;
        height: 100px;
        top: 8%;
        right: 3%;
    }
    
    .blob-3 {
        width: 70px;
        height: 70px;
        bottom: 20%;
        left: 5%;
    }
    
    .blob-4 {
        width: 40px;
        height: 80px;
        bottom: 15%;
        right: 8%;
    }
    
    .blob-5 {
        width: 30px;
        height: 30px;
        top: 40%;
        left: 1%;
    }
    
    .blob-6 {
        width: 60px;
        height: 40px;
        top: 60%;
        right: 2%;
    }
    
    .dark .blob {
        opacity: 0.3;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; } 