/*
Theme Name: Identité Pro
Author: Your Name
Description: A custom theme for Identité Pro, based on a static design.
Version: 1.1
Text Domain: identitepro
*/

:root {
    --accent-color: #00aaff;
    --accent-color-rgb: 0, 170, 255;
    --section-bg: #171717;
}
html {
     scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    cursor: none;
}
/* Custom Mouse Cursor */
.mouse-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(var(--accent-color-rgb), 0.7);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    transition: width 0.3s ease, height 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    z-index: 9999;
}
.mouse-cursor.grow {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
}
a, button, .testimonial-arrow, [class*="swiper-button-"], .portfolio-cta, .flip-card-front, .card-back-close, .portfolio-card {
    cursor: none;
}

/* Header Styling */
header {
    transition: background-color 0.4s ease-in-out;
}
header.scrolled {
    background-color: var(--section-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
/* FIXED: Ensure hamburger icon is always visible */
#mobile-menu-toggle i {
    color: #fff;
}

.header-desktop-menu li a {
    position: relative;
    transition: color 0.3s ease;
}
.header-desktop-menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.header-desktop-menu li a:hover,
.header-desktop-menu li.current-menu-item a {
    color: var(--accent-color);
}
.header-desktop-menu li a:hover:after,
.header-desktop-menu li.current-menu-item a:after {
    width: 100%;
}

.header-desktop-menu .cta-button a {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease;
}
.header-desktop-menu .cta-button a:hover {
    background-color: #0088cc;
    color: white;
}
.header-desktop-menu .cta-button a:after {
    display: none;
}

.mobile-menu-panel {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.mobile-menu-panel.is-open {
    transform: translateY(0);
}
.header-mobile-menu {
    text-align: center;
}
.header-mobile-menu li {
    margin-bottom: 2rem;
}
.header-mobile-menu a {
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.header-mobile-menu a:hover {
    color: var(--accent-color);
}

/* Background Animation Styling */
.background-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.vertical-line { position: absolute; top: 0; bottom: 0; width: 1px; background-color: rgba(128, 128, 128, 0.15); }
.vertical-line .traveling-shape {
    position: absolute; width: 1px; height: 30px; background-color: #666666; box-shadow: 0 0 10px #666666; animation: 12s linear infinite;
}
.vertical-line:nth-child(odd) .traveling-shape { animation-name: travel-up; }
.vertical-line:nth-child(even) .traveling-shape { animation-name: travel-down; }
@keyframes travel-up { from { top: 100%; } to { top: -30px; } }
@keyframes travel-down { from { bottom: 100%; } to { bottom: -30px; } }

/* Parallax Section Styling */
.parallax-wrapper { position: relative; }
.parallax-section {
    position: sticky; top: 0; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    background-color: #000000;
}

/* Hero Section Styling */
#hero-section {
    justify-content: center;
}
.hero-static-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
}
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    margin-left: auto;
    margin-right: auto;
}
.hero-slide-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.2;
}
.hero-slide-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: #a0a0a0;
    line-height: 1.6;
}
.hero-ui { position: fixed; top: 50%; transform: translateY(-50%); z-index: 10; transition: opacity 0.5s ease; }
.social-links { left: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
.social-links a {
    color: #a0a0a0; transition: color 0.3s, font-weight 0.3s;
    display: flex; align-items: center; writing-mode: vertical-rl; gap: 1rem;
}
.social-text { font-size: 0.8rem; letter-spacing: 2px; }
.social-links a:hover { color: #ffffff; font-weight: bold; }
.scroll-indicator {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 10; color: #a0a0a0; font-size: 0.8rem;
    writing-mode: vertical-rl; letter-spacing: 2px; text-align: center;
    transition: opacity 0.4s ease;
}
.animated-mouse-icon {
    width: 24px; height: 38px; border: 2px solid var(--accent-color);
    border-radius: 12px; position: relative; margin-top: 15px;
}
.animated-mouse-icon::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%); width: 4px; height: 4px;
    background-color: var(--accent-color); border-radius: 50%;
    animation: scroll-wheel 1.5s infinite;
}
@keyframes scroll-wheel { 0% { top: 8px; opacity: 1; } 100% { top: 20px; opacity: 0; } }
.content-frame { position: relative; z-index: 2; margin: 2rem; border-radius: 0.5rem; }
.section-title-large {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; text-align: center; margin-bottom: 4rem;
}
.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease-in-out;
}
.cta-button-outline:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Solution Section Cards */
.solution-card {
    background-color: #1c1c1c;
    border: 1px solid #444;
    border-radius: 0.5rem;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 300px;
    transition: all 0.4s ease;
    overflow: hidden;
}
.solution-card-main {
    transition: transform 0.4s ease;
}
.solution-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1;
}
.solution-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    min-height: 3em;
}
.solution-description {
    color: #a0a0a0;
    margin-top: 1rem;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.4s ease, opacity 0.4s ease 0.1s, transform 0.4s ease;
}

.solution-card.is-active,
.solution-grid-desktop .solution-card:hover {
    border-width: 2px;
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.solution-card.is-active .solution-card-main,
.solution-grid-desktop .solution-card:hover .solution-card-main {
    transform: translateY(-20px);
}
.solution-card.is-active .solution-description,
.solution-grid-desktop .solution-card:hover .solution-description {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.featured-icon-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1c1c1c;
    color: var(--accent-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile Swiper/Slider Styles for Solution Section */
.solution-swiper-mobile {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}
.solution-swiper-mobile .solution-card {
    transform: none !important;
}
.solution-swiper-mobile .solution-card-main {
    transform: translateY(-20px);
}
.solution-swiper-mobile .solution-description {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}
/* FIXED: New styles for slider arrows */
.solution-swiper-mobile .swiper-button-next,
.solution-swiper-mobile .swiper-button-prev {
    color: #fff;
    background-color: rgba(var(--accent-color-rgb), 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}
.solution-swiper-mobile .swiper-button-next:hover,
.solution-swiper-mobile .swiper-button-prev:hover {
    background-color: rgba(var(--accent-color-rgb), 1);
}
.solution-swiper-mobile .swiper-button-next::after,
.solution-swiper-mobile .swiper-button-prev::after {
    font-size: 1.25rem; /* 20px */
    font-weight: bold;
}
.solution-swiper-mobile .swiper-button-next { right: 0; }
.solution-swiper-mobile .swiper-button-prev { left: 0; }


/* Testimonials Section */
#testimonials .testimonial-container { display: flex; align-items: center; gap: 2rem; }
#testimonials .testimonial-slider-container { flex-grow: 1; position: relative; overflow: hidden; }
#testimonials .testimonial-slider { display: flex; transition: transform 0.5s ease-in-out; }
#testimonials .testimonial-slide { min-width: 100%; box-sizing: border-box; text-align: center; opacity: 0; transition: opacity 0.5s ease-in-out; visibility: hidden; position: absolute; }
#testimonials .testimonial-slide.active { opacity: 1; visibility: visible; position: relative; }
#testimonials .testimonial-quote {
    line-height: 1.7;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
}
#testimonials .testimonial-author { font-size: 1rem; }
#testimonials .testimonial-company { font-size: 0.875rem; }
#testimonials .testimonial-arrow { color: var(--accent-color); transition: all 0.3s; opacity: 0.7; }
#testimonials .testimonial-arrow:hover { opacity: 1; transform: scale(1.1); }


/* Portfolio Section */
.portfolio-filter-nav a {
    display: block; padding: 0.5rem 0; font-size: 1.125rem; font-weight: 500;
    color: #a0a0a0; transition: all 0.3s ease;
    position: relative;
}
.portfolio-filter-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.portfolio-filter-nav a:hover { color: #ffffff; }
.portfolio-filter-nav a.active { color: var(--accent-color); font-weight: 700; }
.portfolio-filter-nav a.active:after { width: 40px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 4 / 3;
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.portfolio-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    display: none;
}
.portfolio-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.portfolio-card:hover .portfolio-card-bg { transform: scale(1.05); }
.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.portfolio-card:hover .portfolio-card-content {
    transform: translateY(0);
    opacity: 1;
}
.portfolio-card-cta {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.portfolio-card:hover .portfolio-card-cta {
    opacity: 1;
    transform: scale(1);
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

/* Process Section */
.process-step {
    position: relative;
    text-align: center;
}
.process-step .process-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(8rem, 15vw, 10rem);
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}
.process-step .process-description {
    color: #a0a0a0;
    max-width: 180px;
    text-align: left;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: -1rem;
        width: 1px;
        background-color: rgba(128, 128, 128, 0.15);
    }
}

/* FAQ Section */
#faq .faq-content-frame {
    background-color: #1c1c1c;
    border-radius: 0.5rem;
    padding: 3rem 1.5rem;
}
.faq-item {
    background-color: #000;
    border-radius: 0.25rem;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: #e0e0e0;
}
.faq-icon {
    color: var(--accent-color);
    transition: transform 0.3s ease-in-out;
    font-size: 1.5rem;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #a0a0a0;
    line-height: 1.7;
}
.faq-answer-content p {
    margin: 0;
}
.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

/* Contact Section & Fluent Forms Styling */
#contact .ff-el-group label {
    color: #a0a0a0;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
#contact .ff-el-form-control {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.75rem 1rem;
    width: 100%;
}
#contact .ff-el-form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.3);
    outline: none;
}
#contact textarea.ff-el-form-control {
    min-height: 120px;
}
#contact .ff-btn-submit {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
    /* FIXED: Prevent text overflow */
    white-space: normal;
    line-height: 1.2;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#contact .ff-btn-submit:hover {
    background-color: #0088cc;
}


/* Portfolio Modal (Popup) */
.portfolio-modal {
    position: fixed; inset: 0; z-index: 100;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-modal.active { display: flex; opacity: 1; }
.modal-content {
    background-color: var(--section-bg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 0.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.portfolio-modal.active .modal-content { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #a0a0a0;
    transition: color 0.3s, transform 0.3s;
    background: none;
    border: none;
    line-height: 1;
}
.modal-close:hover { color: white; transform: rotate(90deg); }
#modal-description p { margin-bottom: 1rem; }


/* === RESPONSIVE STYLES === */
@media (max-width: 1024px) {
    .pricing-card.is-featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .mouse-cursor { display: none; }
    body, a, button, .portfolio-card { cursor: auto; }
    .hero-ui { display: none; }
    .content-frame { margin: 1rem; }
    .parallax-section {
        position: static;
        min-height: auto;
    }
    #hero-section {
        position: relative;
        min-height: 100vh;
        justify-content: center;
    }
    #testimonials .testimonial-container {
        flex-direction: row;
        gap: 1rem;
    }
    #testimonials .testimonial-arrow {
        display: block;
    }
    #testimonials .arrow-left,
    #testimonials .arrow-right {
        flex-shrink: 0;
    }
    #portfolio .flex-col { flex-direction: column; }
    #portfolio .w-1\/4, #portfolio .w-3\/4 { width: 100%; }
    .portfolio-grid { grid-template-columns: 1fr; }
    #contact .content-frame .container { padding: 0; }
    #contact .bg-\[\#1C1C1C\] { padding: 1.5rem; }
    .vertical-line {
        background-color: rgba(128, 128, 128, 0.07);
    }
}

@media (max-width: 640px) {
    .hero-headline { font-size: 2.25rem; }
    .hero-subtext { font-size: 1rem; }
    .section-title-large { font-size: 1.75rem; }
    nav .container { padding-left: 1rem; padding-right: 1rem; }
    .content-frame { margin: 1rem 0.5rem; }
}