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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #fff;
    background-color: #0a0a0a;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container > * {
    width: 100%;
}

/* Exception pour la navigation */
.nav.container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.nav.container > * {
    width: auto;
}

/* Header & Navigation */
.header {
    background: #141414;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav {
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #bc8cff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.desktop-menu {
    display: flex;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #bc8cff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(20, 20, 20, 0.9) 50%, rgba(26, 26, 26, 0.9) 100%);
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    margin: 2rem 1rem;
    border: 1px solid rgba(188, 140, 255, 0.2);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.3);
    will-change: transform;
    transform: translateZ(0);
}

.hero:hover {
    border-color: #bc8cff;
    box-shadow: 0 24px 80px rgba(188, 140, 255, 0.3);
    transform: translateY(-4px);
}

.hero-content {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #c0c0c0;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #bc8cff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(188, 140, 255, 0.4);
    letter-spacing: -0.02em;
}

.hero .price-note {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Value Proposition Section */
.value-proposition {
    background: #1a1a1a;
    padding: 6rem 0;
    position: relative;
}

.value-proposition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #bc8cff, transparent);
}

.value-proposition-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.value-intro {
    margin-bottom: 4rem;
}

.value-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.value-subtitle {
    font-size: 1.3rem;
    color: #ccc;
    font-weight: 400;
    line-height: 1.6;
}

.value-main {
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(188, 140, 255, 0.1), rgba(188, 140, 255, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(188, 140, 255, 0.2);
}

.value-main h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.value-highlight {
    font-size: 1.3rem;
    color: #bc8cff;
    font-weight: 500;
    margin: 0;
}

.value-philosophy {
    margin-bottom: 3rem;
}

.value-philosophy p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.value-promises {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    background: rgba(188, 140, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(188, 140, 255, 0.2);
    transition: all 0.3s ease;
}

.promise-item:hover {
    background: rgba(188, 140, 255, 0.15);
    transform: translateY(-2px);
}

.promise-icon {
    font-size: 1.5rem;
}

.value-commitment {
    margin-top: 2rem;
}

.value-commitment h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #bc8cff;
    margin-bottom: 0.5rem;
}

.value-commitment p {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

/* Responsive adjustments for value proposition */
@media (max-width: 768px) {
    .value-proposition {
        padding: 4rem 0;
    }
    
    .value-intro h2 {
        font-size: 2rem;
    }
    
    .value-subtitle {
        font-size: 1.1rem;
    }
    
    .value-main {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .value-main h3 {
        font-size: 1.5rem;
    }
    
    .value-highlight {
        font-size: 1.1rem;
    }
    
    .value-philosophy p {
        font-size: 1.1rem;
    }
    
    .promise-item {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .value-commitment h4 {
        font-size: 1.6rem;
    }
    
    .value-commitment p {
        font-size: 1.1rem;
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, rgba(188, 140, 255, 0.9) 0%, rgba(156, 100, 255, 0.9) 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(188, 140, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(188, 140, 255, 0.5);
    background: linear-gradient(135deg, rgba(188, 140, 255, 1) 0%, rgba(156, 100, 255, 1) 100%);
    border-color: #bc8cff;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(188, 140, 255, 0.6);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 24px;
    margin: 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.features:hover {
    border-color: #bc8cff;
    box-shadow: 0 8px 32px rgba(188, 140, 255, 0.2);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-size: clamp(2.8rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(42, 42, 42, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(188, 140, 255, 0.3);
    border-color: #bc8cff;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.9) 100%);
}

.feature-icon {
    font-size: 2.5rem;
    color: #bc8cff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(188, 140, 255, 0.15), rgba(188, 140, 255, 0.08));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(188, 140, 255, 0.3);
}

.feature-icon i {
    font-size: 2rem;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, rgba(188, 140, 255, 0.2), rgba(188, 140, 255, 0.1));
    border-color: #bc8cff;
    box-shadow: 0 10px 30px rgba(188, 140, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-card p {
    color: #b0b0b0;
    line-height: 1.7;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* Modules Section */
.modules {
    padding: 80px 0;
    background: #141414;
    border-bottom: 1px solid #333;
    margin: 0 1rem;
    border-radius: 24px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.module-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #bc8cff;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.module-item:hover {
    background: #333;
    transform: translateX(5px);
}

.module-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.module-item p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 24px;
    margin: 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.pricing:hover {
    border-color: #bc8cff;
    box-shadow: 0 8px 32px rgba(188, 140, 255, 0.2);
    transform: translateY(-2px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(52, 52, 52, 0.8) 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(188, 140, 255, 0.3);
    border-color: #bc8cff;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(52, 52, 52, 0.9) 100%);
}

.pricing-card.featured {
    border: 3px solid #bc8cff;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #bc8cff;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: #bc8cff;
    margin-bottom: 1rem;
}

.pricing-card .price-period {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #ccc;
    border-bottom: 1px solid #444;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    color: #bc8cff;
    font-weight: bold;
    margin-right: 10px;
}

.pricing-features li.not-included::before {
    content: '✗';
    color: #ff6b6b;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #141414;
    border-bottom: 1px solid #333;
    margin: 0 1rem;
    border-radius: 24px;
}

.faq-item {
    background: #2a2a2a;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #333;
}

.faq-question {
    padding: 1.5rem;
    background: #2a2a2a;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #333;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #333;
    color: #ccc;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    margin: 0 1rem;
    border-radius: 24px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #2a2a2a;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

/* Improve heading contrast on dark contact card */
.contact-form h2 {
    color: #fff !important;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: 'Poppins', sans-serif;
    background: rgba(26, 26, 26, 0.8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
    border-radius: 24px;
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #bc8cff;
    box-shadow: 0 8px 25px rgba(188, 140, 255, 0.3);
    background: rgba(26, 26, 26, 0.9);
    transform: translateY(-2px);
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(20,20,20,0.8), rgba(20,20,20,0.6));
    border-bottom: 1px solid #333;
    margin: 0 1rem;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    will-change: transform;
    transform: translateZ(0);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-card {
    background: radial-gradient(1200px 400px at 10% -10%, rgba(188,140,255,0.12), transparent 60%),
                radial-gradient(1000px 400px at 100% 10%, rgba(188,140,255,0.08), transparent 60%),
                rgba(34,34,34,0.75);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
}

.about-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 24px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(188,140,255,0.4), rgba(255,255,255,0.1)) border-box;
    -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.35;
}

.about-card h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.about-card p {
    color: #cfcfcf;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
}

.portfolio-gallery {
    margin-top: 2.2rem;
}

.portfolio-item {
    background: linear-gradient(180deg, rgba(50,50,50,0.8), rgba(40,40,40,0.8));
    border: 1px solid rgba(255,255,255,0.08);
}

.portfolio-item:hover {
    border-color: #bc8cff;
    box-shadow: 0 12px 36px rgba(188,140,255,0.2);
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #bc8cff;
}

.footer-section p,
.footer-section a {
    color: #aaa;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #bc8cff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #666;
}

/* Page specific styles */
.page-hero {
    background: #141414;
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid #333;
    margin: 0 1rem;
    border-radius: 24px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }
    
    .desktop-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2a2a2a;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        border: 1px solid #333;
        width: 100%;
    }
    
    .desktop-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero,
    .page-hero {
        /* Increase top padding to clear the fixed header on mobile */
        padding-top: 140px;
    }
    .hero h1,
    .page-hero h1 {
        font-size: 2.5rem;
        line-height: 1.15;
    }
    
    .hero .subtitle,
    .page-hero p {
        font-size: 1.2rem;
    }
    
    .hero .price {
        font-size: 3rem;
    }
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .about-card {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero,
    .page-hero {
        /* Ensure extra clearance on very small screens */
        padding: 140px 0 60px;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .hero .price {
        font-size: 2.5rem;
    }
    
    
    .features,
    .modules,
    .pricing,
    .faq,
    .contact,
    .about {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Table styles for dark theme */
table {
    background: #2a2a2a;
    border: 1px solid #333;
}

table th {
    background: #bc8cff;
    color: white;
    border: 1px solid #333;
}

table td {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #444;
}

table tr:nth-child(even) {
    background: #333;
}

table tr:hover {
    background: #3a3a3a;
}

/* Additional dark theme adjustments */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

p {
    color: #ccc;
}

a {
    color: #bc8cff;
}

a:hover {
    color: #d4a5ff;
}

/* Portfolio Gallery */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item h4 {
    padding: 1rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.portfolio-item {
    cursor: pointer;
}

/* Portfolio Popup */
.portfolio-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.portfolio-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.popup-content {
    background: #2a2a2a;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid #333;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #bc8cff;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: #d4a5ff;
}

.popup-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.popup-body {
    padding: 2rem;
}

.popup-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.popup-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.popup-features {
    margin-bottom: 2rem;
}

.popup-features h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.popup-features ul {
    list-style: none;
    padding: 0;
}

.popup-features li {
    color: #ccc;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.popup-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #bc8cff;
    font-weight: bold;
}

.popup-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Store badges as images */
.store-badge {
    display: inline-block;
    line-height: 0;
}

.store-badge img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .portfolio-popup.active {
        padding: 1rem;
    }
    
    .popup-content {
        max-height: 95vh;
    }
    
    .popup-body {
        padding: 1.5rem;
    }
    
    .popup-links {
        flex-direction: column;
    }
    
    .store-badge img {
        height: 40px;
    }
}
