/* 
   Maroc Web Solutions - Corporate Vitrine CSS 
   A modern, trustworthy and high-end design pattern 
*/

:root {
    /* Color Palette */
    --clr-bg-dark: #0f172a;
    --clr-bg-card: rgba(30, 41, 59, 0.7);
    --clr-primary: #3b82f6;
    /* Trust blue */
    --clr-primary-hover: #2563eb;
    --clr-accent: #8b5cf6;
    /* Modern purple */
    --clr-text: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --grad-text: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    --grad-bg: linear-gradient(to bottom right, #0f172a, #1e1b4b);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Sizes */
    --container-max: 1200px;
    --border-radius: 16px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--grad-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.w-100 {
    width: 100%;
}

/* Glassmorphism elements */
.glass-card {
    background: var(--clr-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--clr-border);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--clr-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    color: var(--clr-text-muted);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--clr-text);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background glows */
.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
}

.glow-1 {
    top: -100px;
    left: -100px;
    background: var(--clr-primary);
}

.glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--clr-accent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.mockup-card {
    padding: 0;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: rotateY(0) rotateX(0);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--clr-border);
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #eab308;
}

.dot.green {
    background: #22c55e;
}

.mockup-body {
    padding: 2rem;
    min-height: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

/* Skeletons to fake complex UI */
.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
    width: 100%;
}

.skeleton-line.title {
    height: 24px;
    width: 60%;
    margin-bottom: 2rem;
}

.skeleton-line.short {
    width: 80%;
}

.skeleton-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 100px;
    margin-top: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.bar {
    flex: 1;
    background: var(--grad-text);
    border-radius: 4px 4px 0 0;
    animation: growUp 2s ease-out forwards;
}

.bar-1 {
    height: 40%;
    animation-delay: 0.1s;
}

.bar-2 {
    height: 70%;
    animation-delay: 0.2s;
}

.bar-3 {
    height: 50%;
    animation-delay: 0.3s;
}

.bar-4 {
    height: 90%;
    animation-delay: 0.4s;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--clr-bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.badge-text strong {
    display: block;
    font-size: 0.9rem;
}

.badge-text span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Section Shared */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* About / Stats */
.about {
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.stat-card h4 {
    font-size: 2.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--clr-border);
}

.contact-form {
    padding: 2.5rem;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--clr-border);
    padding: 4rem 0 2rem;
    background: #0b1120;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-desc {
    color: var(--clr-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--clr-text-muted);
}

.footer-links a:hover {
    color: white;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pay-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--clr-border);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        margin: 0 auto;
        max-width: 500px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}