/*
Theme Name: Mindeon AI
Theme URI: https://mindeon.ai
Author: Mindeon
Author URI: https://mindeon.ai
Description: Un thème moderne pour agence IA spécialisée dans les agents intelligents
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mindeon
*/

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
    --primary-magenta: #d946ef;
    --primary-violet: #8b5cf6;
    --primary-cyan: #22d3ee;
    --gradient-primary: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #22d3ee 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
    --gradient-hover: linear-gradient(135deg, #e879f9 0%, #a78bfa 50%, #67e8f9 100%);

    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-card: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    --bg-section-alt: #0f0f0f;
    --bg-footer: #000000;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-dark: #999;
    --text-footer: #666666;
    --border-color: rgba(217, 70, 239, 0.1);
    --border-footer: #1a1a1a;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --nav-scrolled: rgba(10, 10, 10, 0.98);
    --gradient-text: linear-gradient(135deg, #ffffff 0%, #d946ef 100%);
    --hero-glow-1: rgba(217, 70, 239, 0.15);
    --hero-glow-2: rgba(139, 92, 246, 0.15);
    --floating-card-bg: rgba(26, 26, 26, 0.8);
    --card-text-light: #ccc;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: linear-gradient(145deg, #ffffff 0%, #fefefe 100%);
    --bg-section-alt: #f5f5f5;
    --bg-footer: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-dark: #4b5563;
    --text-footer: #64748b;
    --border-color: rgba(100, 116, 139, 0.15);
    --border-footer: #e5e7eb;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-scrolled: rgba(255, 255, 255, 0.98);
    --gradient-text: linear-gradient(135deg, #1e40af 0%, #db2777 50%, #0891b2 100%);
    --hero-glow-1: rgba(59, 130, 246, 0.15);
    --hero-glow-2: rgba(236, 72, 153, 0.15);
    --floating-card-bg: rgba(255, 255, 255, 0.9);
    --card-text-light: #666;
}

/* ==========================================================================
   BODY & GENERAL
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0;
}

/* ==========================================================================
   HERO SECTION (Homepage & Pages)
   ========================================================================== */

.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 80px 30px;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, var(--hero-glow-1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, var(--hero-glow-2) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-content {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 2.2em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 50px;
    font-size: 0.65em;
    font-weight: 600;
    color: var(--primary-magenta);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-text p {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-primary {
    padding: 10px 25px;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(217, 70, 239, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(217, 70, 239, 0.5);
    background: var(--gradient-hover);
}

.btn-secondary {
    padding: 10px 25px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85em;
    transition: all 0.3s;
    border: 2px solid var(--primary-magenta);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(217, 70, 239, 0.1);
}

/* Floating Cards */
.hero-visual {
    position: relative;
    height: 600px;
}

.floating-card {
    position: absolute;
    background: var(--floating-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-card:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-25px) !important;
}

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

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 100px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    left: 100px;
    animation-delay: 2s;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card-title {
    color: var(--primary-magenta);
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.card-text {
    color: var(--card-text-light);
    font-size: 0.9em;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    background: var(--gradient-primary);
    padding: 30px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] .stats-section {
    background: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #22d3ee 100%);
    box-shadow:
        0 10px 40px rgba(59, 130, 246, 0.15),
        0 -10px 40px rgba(236, 72, 153, 0.15);
}

[data-theme="light"] .stats-section::before {
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 12px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(139, 92, 246, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(139, 92, 246, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.stat:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1;
    color: #ffffff !important;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 1),
        0 0 50px rgba(255, 255, 255, 0.9),
        0 0 70px rgba(139, 92, 246, 1),
        0 0 100px rgba(139, 92, 246, 0.7),
        0 4px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.stat-label {
    font-size: 0.7em;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 35px rgba(255, 255, 255, 0.8),
        0 0 50px rgba(139, 92, 246, 0.9),
        0 3px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 40px 80px;
    position: relative;
}

.section-dark {
    background: var(--bg-primary);
    position: relative;
}

.section-light {
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="light"] .section-dark {
    background: #ffffff;
}

[data-theme="light"] .section-light {
    background: #fafafa;
    box-shadow:
        inset 0 1px 0 rgba(59, 130, 246, 0.1),
        inset 0 -1px 0 rgba(236, 72, 153, 0.1);
}

[data-theme="light"] .section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        radial-gradient(ellipse 800px 600px at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 800px 600px at 80% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section-light .container,
.section-dark .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 1.8em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 30px;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(34, 211, 238, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service:hover {
    transform: translateY(-10px);
    border-color: var(--primary-magenta);
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.2);
}

.service:hover::before {
    opacity: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
}

.service-icon-img {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-color) !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

.service-icon-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    display: block !important;
}

.service h3 {
    font-size: 1.05em;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.service p {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 0.85em;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ==========================================================================
   TECH STACK
   ========================================================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.tech-item {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(217, 70, 239, 0.15);
}

.tech-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5em;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 12px;
}

.tech-logo:not(:has(img)) {
    background: var(--gradient-primary);
}

.tech-item h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-primary);
    word-break: break-word;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 0.9em;
    word-break: break-word;
}

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

.process-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: var(--primary-magenta);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 900;
    color: #ffffff;
    position: relative;
}

.step-number::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(217, 70, 239, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.step-title {
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   USE CASES
   ========================================================================== */

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.use-case {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.use-case:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-5px);
}

.use-case-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4em;
    font-weight: 900;
    color: rgba(217, 70, 239, 0.05);
}

.use-case h3 {
    font-size: 1.8em;
    color: var(--primary-magenta);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.use-case p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.use-case-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.use-case-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.use-case-feature::before {
    content: '✓';
    color: var(--primary-magenta);
    font-weight: 900;
    font-size: 1.2em;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.testimonial {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 6em;
    color: rgba(217, 70, 239, 0.05);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial:hover {
    border-color: var(--primary-magenta);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    color: #ffffff;
    flex-shrink: 0;
}

.testimonial-info h4 {
    color: var(--text-primary);
    font-size: 1.1em;
    margin-bottom: 3px;
    font-weight: 700;
}

.testimonial-info p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin: 0;
}

.testimonial-date {
    color: #666;
    font-size: 0.85em;
    margin-top: 3px;
}

.testimonial-stars {
    color: var(--primary-magenta);
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9em;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    text-align: center;
    padding: 50px 80px;
    background: var(--bg-primary);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .cta-section {
    background: #ffffff;
}

[data-theme="light"] .cta-section::before {
    background:
        radial-gradient(circle 600px at 50% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
        radial-gradient(circle 600px at 50% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
}

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

.cta-section h2 {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.cta-section p {
    font-size: 0.95em;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    padding: 80px 50px;
    background: var(--bg-secondary);
}

[data-theme="light"] .contact-section {
    background: #fafafa;
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.2em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.contact-text h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.contact-text a {
    color: var(--primary-magenta);
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact-text p {
    color: var(--text-muted);
    margin: 0;
}

.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-magenta);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.form-submit {
    width: 100%;
    padding: 14px 35px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(217, 70, 239, 0.3);
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(217, 70, 239, 0.5);
    background: var(--gradient-hover);
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */

.team-section {
    padding: 80px 50px;
    background: var(--bg-secondary);
}

[data-theme="light"] .team-section {
    background: #fafafa;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.team-member {
    background: var(--bg-card);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary-magenta);
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.2);
}

.member-photo {
    width: 100%;
    height: 350px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 35px;
}

.member-name {
    font-size: 1.6em;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.member-role {
    font-size: 1.1em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 20px;
}

.member-bio {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-tag {
    padding: 5px 12px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */

.portfolio-section {
    padding: 80px 50px;
    background: var(--bg-secondary);
}

[data-theme="light"] .portfolio-section {
    background: #fafafa;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-magenta);
    box-shadow: 0 20px 60px rgba(217, 70, 239, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 350px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio-image:not(:has(img)) {
    background: var(--gradient-primary);
}

.portfolio-content {
    padding: 40px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.portfolio-tag {
    padding: 6px 15px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid var(--primary-magenta);
    border-radius: 20px;
    font-size: 0.85em;
    color: var(--primary-magenta);
    font-weight: 600;
}

.portfolio-item h3 {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.portfolio-item p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero {
        padding: 90px 30px 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual {
        display: none;
    }

    .hero-text h1 {
        font-size: 3.5em;
    }

    .section {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 3em;
    }

    .stats-section {
        padding: 60px 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .process-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-step::after {
        display: none;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 20px 40px;
    }

    .hero-text h1 {
        font-size: 2.2em;
    }

    .hero-text p {
        font-size: 1.1em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    /* Stats Section Mobile */
    .stats-section {
        padding: 50px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat {
        padding: 35px 25px;
    }

    .stat-icon {
        font-size: 2em;
        margin-bottom: 12px;
    }

    .stat-number {
        font-size: 2.8em;
    }

    .stat-label {
        font-size: 0.9em;
    }

    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service {
        padding: 35px 25px;
    }

    .service h3 {
        font-size: 1.3em;
    }

    .service p {
        font-size: 0.95em;
    }

    /* Tech Grid Mobile */
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 40px;
    }

    .tech-item {
        padding: 25px 20px;
    }

    .tech-logo {
        width: 50px;
        height: 50px;
        font-size: 1em;
        margin-bottom: 12px;
    }

    .tech-logo img {
        padding: 6px;
    }

    .tech-item h4 {
        font-size: 0.9em;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .tech-item p {
        font-size: 0.85em;
        line-height: 1.4;
    }

    /* Process Section Mobile */
    .process-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .step-title {
        font-size: 1.2em;
    }

    /* Use Cases Mobile */
    .use-cases-grid {
        gap: 25px;
    }

    .use-case {
        padding: 35px 25px;
    }

    .use-case h3 {
        font-size: 1.5em;
    }

    .use-case p {
        font-size: 0.95em;
    }

    .use-case-number {
        font-size: 3em;
        top: 15px;
        right: 20px;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .testimonial {
        padding: 30px 25px;
    }

    .testimonial-text {
        font-size: 0.9em;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .cta-section p {
        font-size: 1.1em;
    }

    /* Contact Section Mobile */
    .contact-section {
        padding: 50px 20px;
    }

    .contact-form {
        padding: 30px 25px;
    }

    /* Team Section Mobile */
    .team-section {
        padding: 50px 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio Section Mobile */
    .portfolio-section {
        padding: 50px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .portfolio-content {
        padding: 30px 25px;
    }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .hero-badge {
        font-size: 0.75em;
        padding: 6px 15px;
    }

    .section-title {
        font-size: 1.6em;
    }

    .section-subtitle {
        font-size: 0.9em;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .stat {
        padding: 30px 20px;
    }

    .stat-icon {
        font-size: 1.8em;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .stat-label {
        font-size: 0.85em;
    }

    .service {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }

    .service h3 {
        font-size: 1.2em;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 30px;
    }

    .tech-item {
        padding: 18px 12px;
    }

    .tech-logo {
        width: 45px;
        height: 45px;
        font-size: 0.9em;
    }

    .tech-logo img {
        padding: 6px;
    }

    .tech-item h4 {
        font-size: 0.95em;
    }

    .tech-item p {
        font-size: 0.8em;
    }

    .cta-section h2 {
        font-size: 1.6em;
    }

    .cta-section p {
        font-size: 1em;
    }

    .use-case {
        padding: 25px 20px;
    }

    .use-case h3 {
        font-size: 1.3em;
    }

    .testimonial {
        padding: 25px 20px;
    }
}
