/* Portfolio CSS - Pipelia Style with Dark Red & Black */

:root {
    --primary-color: #8B0000;
    --primary-light: #B22222;
    --primary-dark: #5C0000;
    --secondary-color: #DC143C;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --gradient-primary: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #000000;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Corner Lighting Effects */
.corner-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.corner-light {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(80px);
    animation: pulse-light 4s ease-in-out infinite;
}

.corner-light.top-left {
    top: -400px;
    left: -400px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.6) 0%, rgba(178, 34, 34, 0.3) 30%, transparent 70%);
    animation-delay: 0s;
}

.corner-light.top-right {
    top: -400px;
    right: -400px;
    background: radial-gradient(circle, rgba(139, 0, 52, 0.5) 0%, rgba(128, 0, 128, 0.3) 30%, transparent 70%);
    animation-delay: 1s;
}

.corner-light.bottom-left {
    bottom: -400px;
    left: -400px;
    background: radial-gradient(circle, rgba(75, 0, 130, 0.4) 0%, rgba(139, 0, 0, 0.2) 30%, transparent 70%);
    animation-delay: 2s;
}

.corner-light.bottom-right {
    bottom: -400px;
    right: -400px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.5) 0%, rgba(220, 20, 60, 0.3) 30%, transparent 70%);
    animation-delay: 3s;
}

@keyframes pulse-light {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-darker);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.btn-cta {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.hero-image {
    z-index: 2;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    border-radius: 30px;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.6) 0%, rgba(139, 0, 0, 0.5) 30%, rgba(139, 0, 0, 0.3) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.name-card {
    position: absolute;
    bottom: 5px;
    left: 0;
    background: linear-gradient(180deg, #8B0000 0%, #DC143C 100%);
    padding: 8px 30px 8px 20px;
    z-index: 3;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(220, 20, 60, 0.8),
        0 0 80px rgba(220, 20, 60, 0.6),
        0 0 120px rgba(220, 20, 60, 0.4);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    border-top: 2px solid rgba(0, 0, 0, 0.3);
}

.name-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Inter', 'Arial', sans-serif;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2);
}

.wave-emoji {
    position: absolute;
    bottom: 30px;
    right: -20px;
    font-size: 60px;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-primary);
}

/* Workflow Section */
.workflow-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.workflow-step {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.workflow-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.step-connector {
    position: absolute;
    top: 80px;
    right: -40px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.workflow-step:last-child .step-connector {
    display: none;
}

.step-number {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
}

.intro-text {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Competences Section */
.competences-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.competence-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.competence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.competence-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.competence-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.competence-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools span {
    background: rgba(139, 0, 0, 0.2);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Clients Section */
.clients-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-darker);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.2);
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.timeline-date {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.role {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Exemples Section */
.exemples-section {
    padding: 120px 0;
    background: var(--bg-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.1);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background: rgba(139, 0, 0, 0.2);
    color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--bg-darker);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-text > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item .label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item a,
.info-item span {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(139, 0, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(139, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .competences-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .workflow-grid,
    .competences-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .step-connector {
        display: none;
    }

    .about-stats {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}
