/* Glassmorphism & Luxurious Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Unbounded:wght@700;800;900&display=swap');

:root {
    --purple-main: #8B5CF6;
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

.font-syne {
    font-family: var(--font-heading);
}

/* Glassmorphism Refined */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Scrollbar for Luxury Feel */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #05010a;
}
::-webkit-scrollbar-thumb {
    background: var(--purple-main);
    border-radius: 10px;
}

/* Project Hover Zoom Effect */
.group:hover img {
    filter: brightness(0.6) scale(1.05);
}
.hero-gradient {
    background: linear-gradient(to bottom, #fff 30%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tarif-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    border-radius: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tarif-card:hover {
    transform: translateY(-10px);
    border-color: #8B5CF6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.featured {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid #8B5CF6;
    position: relative;
}

.vip {
    background: linear-gradient(145deg, #1a0b2e, #05010a);
    border: 1px solid #d4af37;
}

.tarif-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.tarif-card .price { font-size: 2rem; font-weight: 900; color: #8B5CF6; margin-bottom: 1.5rem; }
.tarif-card ul { font-size: 0.8rem; color: #9ca3af; line-height: 2; margin-bottom: 2rem; flex-grow: 1; }

.cta-purple {
    background: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transition: 0.3s;
}

.input-field {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 1rem;
    outline: none;
    color: white;
}

.input-field:focus { border-color: #8B5CF6; }

/* Tariff reveal animation */
#tarif-wrapper {
    animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service Chip Checkboxes */
.service-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.service-chip input[type="checkbox"] {
    display: none;
}

.service-chip:hover {
    border-color: rgba(139, 92, 246, 0.4);
    color: rgba(255,255,255,0.8);
}

.service-chip:has(input:checked) {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8B5CF6;
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2), inset 0 0 15px rgba(139, 92, 246, 0.1);
    animation: chip-glow 2s ease-in-out infinite alternate;
}

@keyframes chip-glow {
    0% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2); }
    100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(139, 92, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.1); }
}

.service-chip.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

#canvas-bg { position: fixed; top: 0; z-index: -1; }

/* Custom Cursor CSS */
#cursor {
    width: 20px;
    height: 20px;
    background: #8B5CF6;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

#cursor-blur {
    width: 200px;
    height: 200px;
    background: rgba(139, 92, 246, 0.15);
    filter: blur(80px);
    position: fixed;
    pointer-events: none;
    z-index: 998;
}

/* Glitch Effect */
.hero-glitch {
    position: relative;
    color: white;
}

.hero-glitch::before, .hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.8;
}

.hero-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.hero-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* Scanner Animation */
.scanner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: #8B5CF6;
    box-shadow: 0 0 15px #8B5CF6;
    z-index: 10;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 20px, 0); }
    100% { clip: rect(80px, 9999px, 90px, 0); }
}

.nav-item {
    padding: 0.5rem 1.5rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-item:hover { color: #8B5CF6; text-shadow: 0 0 10px #8B5CF6; }

/* Catalog Styles */
.browser-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.browser-header {
    background: #252525;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.url-bar {
    background: #111;
    flex-grow: 1;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 4px;
    text-align: center;
}

.browser-content {
    height: 400px;
    position: relative;
    overflow: hidden;
}

/* Auto-Scrolling Image Logic */
.scrolling-img {
    width: 100%;
    position: absolute;
    top: 0;
    transition: top 5s ease-in-out; /* Slower for long websites */
    filter: brightness(0.7) grayscale(0.5);
}

.web-catalog-item:hover .scrolling-img {
    top: -150%; /* Adjust this based on how long your screenshot is */
    filter: brightness(1) grayscale(0);
}

.web-catalog-item:hover .browser-frame {
    transform: translateY(-10px) scale(1.02);
    border-color: #8B5CF6;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.overlay-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,1,10,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 1;
    transition: opacity 0.5s;
}

.tech-tag {
    font-size: 10px;
    text-transform: uppercase;
    color: #8B5CF6;
    font-weight: 900;
    letter-spacing: 2px;
}

.view-link {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
    color: #8B5CF6;
    opacity: 0.6;
    transition: 0.3s;
}

.view-link:hover { opacity: 1; letter-spacing: 1px; }

/* Vault Navigation Buttons */
.vault-btn {
    padding: 0.8rem 2rem;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: 0.4s;
}

.vault-btn.active {
    background: #8B5CF6;
    border-color: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.insta-mockup {
    transition: transform 0.3s;
}
.insta-mockup:hover {
    transform: perspective(1000px) rotateY(10deg);
}

.media-card {
    cursor: crosshair;
    transition: 0.5s;
}
.media-card:hover {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.2));
}

/* Hero Slogan Glow */
.hero-slogan {
    color: #c4b5fd;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3), 0 0 100px rgba(139, 92, 246, 0.15);
    animation: slogan-pulse 3s ease-in-out infinite alternate;
}

@keyframes slogan-pulse {
    0% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 60px rgba(139, 92, 246, 0.3); }
    100% { text-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 80px rgba(139, 92, 246, 0.5), 0 0 120px rgba(139, 92, 246, 0.2); }
}

/* Floating Social Icons */
.social-float {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-float:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.25);
    border-color: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.15);
    transform: scale(1.15);
}

.social-tooltip {
    position: absolute;
    left: 54px;
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.social-float:hover .social-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Social */
.footer-social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.footer-social:hover {
    color: #8B5CF6;
    border-color: #8B5CF6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* Hero Service Chips */
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.1), inset 0 0 15px rgba(139, 92, 246, 0.05);
    animation: chip-pulse 3s ease-in-out infinite alternate;
}

.hero-chip span {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
    transition: all 0.3s;
}

.hero-chip:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4), 0 0 50px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.hero-chip:hover span {
    color: #fff;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

@keyframes chip-pulse {
    0% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.1), inset 0 0 15px rgba(139, 92, 246, 0.05); }
    100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.25), inset 0 0 20px rgba(139, 92, 246, 0.08); }
}

/* Marquee Gallery */
.marquee-row {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
}

.marquee-left {
    animation: marquee-scroll-left 30s linear infinite;
}

.marquee-right {
    animation: marquee-scroll-right 30s linear infinite;
}

.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-img {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(#08020d, #08020d),
        conic-gradient(from var(--border-angle, 0deg), transparent 30%, #fff 50%, #8B5CF6 55%, transparent 70%);
    animation: border-spin 4s linear infinite;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-spin {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

.marquee-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    filter: none;
}

.marquee-img:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.35), 0 0 60px rgba(139, 92, 246, 0.1);
}

.marquee-img:hover img {
    filter: none;
}

@media (max-width: 768px) {
    .marquee-img {
        width: 250px;
        height: 250px;
    }
}