/* ===========================================
   PEDAGEN - Global Styles
   =========================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #0c0515;
    --bg-secondary: #1a0a2e;
    --bg-card: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    
    --violet-500: #8b5cf6;
    --pink-500: #ec4899;
    --emerald-400: #34d399;
    --amber-400: #fbbf24;
    --cyan-400: #22d3ee;
    --red-400: #f87171;
    
    --border-color: rgba(255,255,255,0.1);
    
    --glow-violet: 0 0 80px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 60px rgba(236, 72, 153, 0.2);
    --glow-emerald: 0 0 60px rgba(16, 185, 129, 0.2);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Background Orbs */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-violet {
    width: 400px;
    height: 400px;
    background: var(--violet-500);
    top: -100px;
    right: -100px;
}

.orb-pink {
    width: 350px;
    height: 350px;
    background: var(--pink-500);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-emerald {
    width: 250px;
    height: 250px;
    background: var(--emerald-400);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(-30px, -20px) scale(1.05); }
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

/* Glows */
.glow { box-shadow: var(--glow-violet); }
.glow-pink { box-shadow: var(--glow-pink); }
.glow-emerald { box-shadow: var(--glow-emerald); }

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--violet-500), var(--pink-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet-500), var(--pink-500));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 5, 21, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--violet-500), var(--pink-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.morocco-badge {
    background: linear-gradient(135deg, #c1272d, #006233);
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-weight: 500;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
}

.navbar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 5, 21, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    z-index: 99;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--text-primary);
}

/* Hero Pattern */
.hero-pattern {
    background-image: radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Page Header */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
}

.page-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.page-header .badge .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--emerald-400);
    animation: pulse 2s ease-in-out infinite;
}

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

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-label.violet { color: var(--violet-500); }
.section-label.pink { color: var(--pink-500); }
.section-label.emerald { color: var(--emerald-400); }
.section-label.amber { color: var(--amber-400); }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Card */
.service-card {
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-icon.violet { background: rgba(139, 92, 246, 0.2); }
.service-icon.pink { background: rgba(236, 72, 153, 0.2); }
.service-icon.emerald { background: rgba(52, 211, 153, 0.2); }
.service-icon.amber { background: rgba(251, 191, 36, 0.2); }
.service-icon.cyan { background: rgba(34, 211, 238, 0.2); }
.service-icon.red { background: rgba(248, 113, 113, 0.2); }

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

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.service-list li span {
    font-size: 0.875rem;
}

/* Target Card */
.target-card {
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.target-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.target-card:hover .target-icon {
    transform: scale(1.1);
}

.target-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    transition: transform 0.3s;
}

.target-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.target-card > p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.target-card ul {
    list-style: none;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.target-card ul li {
    margin-bottom: 0.25rem;
}

/* Expertise Tag */
.expertise-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tech Card */
.tech-card {
    padding: 1.5rem;
}

.tech-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-card.violet { border-color: rgba(139, 92, 246, 0.3); }
.tech-card.violet h4 { color: var(--violet-500); }

.tech-card.pink { border-color: rgba(236, 72, 153, 0.3); }
.tech-card.pink h4 { color: var(--pink-500); }

.tech-card.emerald { border-color: rgba(52, 211, 153, 0.3); }
.tech-card.emerald h4 { color: var(--emerald-400); }

.tech-card.amber { border-color: rgba(251, 191, 36, 0.3); }
.tech-card.amber h4 { color: var(--amber-400); }

.tech-list {
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tech-list li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--violet-500);
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--text-primary);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-item .value {
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo .logo-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
}

.footer-logo .logo-text {
    font-size: 1rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Grid Helpers */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Animations */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }
    
    .navbar-mobile-toggle {
        display: block;
    }
    
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .footer-inner {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.w-full { width: 100%; }
.hidden { display: none; }
