/* =========================================
   VARIABLES & THEMING
   ========================================= */
:root {
    /* Colors - Dark Premium Theme */
    --bg-base: #0a0a0c;
    /* Very dark anthracite/black */
    --bg-elevated: #121216;
    /* Slightly lighter for sections */
    --text-main: #f0f0f5;
    --text-muted: #a0a0ab;

    /* Accents & Brand Colors (electrical gradients) */
    --accent-red: #ff3366;
    --accent-pink: #f04e98;
    --accent-purple: #9d4edd;
    --accent-blue: #3a86ff;
    --accent-cyan: #00d4ff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-red), var(--accent-purple));
    --gradient-glow: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Borders & Glass */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Silka', -apple-system, system-ui, sans-serif;
    --font-body: 'Silka', -apple-system, system-ui, sans-serif;

    /* Spacing & Sizes */
    --container-max: 1200px;
    --container-sm: 800px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & GLOBALS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-highlight {
    color: var(--accent-purple);
}

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm {
    max-width: var(--container-sm);
}

.section-padding {
    padding: 6rem 0;
}

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

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

/* Backgrounds & Effects */
.bg-alt {
    background-color: var(--bg-elevated);
}

.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}

.glow-effect.top-left {
    top: -200px;
    left: -200px;
}

.glow-effect.top-right {
    top: 20%;
    right: -200px;
    background: radial-gradient(circle, rgba(58, 134, 255, 0.15) 0%, rgba(10, 10, 12, 0) 70%);
}

/* Glassmorphism */
.glass-panel,
.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rounded {
    border-radius: var(--radius-md);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.4);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    padding: 0.5rem 0;
    /* Breathing room */
}

.logo-img {
    height: 35px;
    /* Better proportion on desktop */
    width: auto;
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    opacity: 1;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--text-main);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* offset header */
    position: relative;
    overflow: hidden;
}

.hero-bg {
    background: linear-gradient(90deg, rgba(10, 10, 12, 0.95) 0%, rgba(10, 10, 12, 0.7) 50%, rgba(10, 10, 12, 0.3) 100%),
        url('../img/compo.png') center/cover no-repeat;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* =========================================
   EXPERTISES GRID
   ========================================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.card-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.expertise-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.expertise-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    margin-bottom: 0.5rem;
}

.expertise-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    flex-grow: 1;
}

/* =========================================
   APPLICATIONS GRID
   ========================================= */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.app-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.text-left {
    text-align: left;
}

/* =========================================
   SPLIT LAYOUT (Pourquoi Odonata)
   ========================================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
}

.benefit-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.benefit-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   FORMS
   ========================================= */
.custom-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.custom-form input,
.custom-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.custom-form textarea {
    resize: vertical;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--bg-elevated);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 30px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--text-main);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-header {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

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