/* ===== OLDEV Portfolio — Custom Styles ===== */
/* Tailwind CSS is loaded via CDN in the HTML head */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background: #020617;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* Grid background pattern */
.grid-bg {
    background-image:
        linear-gradient(rgba(16,185,129,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,185,129,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Hero glow effects */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.hero-glow-1 { background: #10b981; width: 600px; height: 600px; opacity: 0.12; top: -200px; right: -100px; }
.hero-glow-2 { background: #3b82f6; width: 400px; height: 400px; opacity: 0.08; bottom: -200px; left: -80px; }

/* Status badge pulse animation */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}
.status-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-ring 2s ease-out infinite;
}

/* Card hover glow effect */
.card-glow {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(16,185,129,0.2), transparent 50%, rgba(59,130,246,0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}
.card-glow:hover::before { opacity: 1; }
.card-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(16, 185, 129, 0.15);
}

/* Terminal cursor blink */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.cursor-blink { animation: blink 1s step-end infinite; }

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bento card base */
.bento-card {
    background: linear-gradient(145deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
    border: 1px solid rgba(51,65,85,0.4);
    backdrop-filter: blur(10px);
}

/* Tech stack item hover */
.tech-item { transition: all 0.3s ease; }
.tech-item:hover {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.3);
}
.tech-item:hover .tech-icon {
    color: #10b981;
    transform: scale(1.1);
}
.tech-icon { transition: all 0.3s ease; }

/* Primary CTA button shimmer */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 100%; }

/* Navigation blur */
.nav-blur {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* Section divider line */
.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,0.2), transparent);
}

/* Language toggle */
.lang-btn { transition: all 0.2s ease; }
.lang-btn.active {
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border-color: rgba(16,185,129,0.3);
}

/* About section image wrapper with gradient border */
.about-image-wrapper {
    position: relative;
}
.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #10b981, #3b82f6, #10b981);
    opacity: 0.4;
    z-index: 0;
}
.about-image-wrapper img {
    position: relative;
    z-index: 1;
}

/* Gallery image hover */
.gallery-item {
    transition: all 0.4s ease;
    overflow: hidden;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(16, 185, 129, 0.15);
    border-color: rgba(16,185,129,0.3);
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .gallery-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Delivery promise hover */
.promise-icon {
    transition: all 0.3s ease;
}
.promise-card:hover .promise-icon {
    transform: scale(1.15);
}

/* ===== Bilingual (EN/FR) visibility system ===== */
[data-lang="fr"] { display: none; }
html[lang="fr"] [data-lang="en"] { display: none; }
html[lang="fr"] [data-lang="fr"] { display: block; }
html[lang="fr"] span[data-lang="fr"],
html[lang="fr"] a[data-lang="fr"] { display: initial; }
html[lang="fr"] span[data-lang="en"],
html[lang="fr"] a[data-lang="en"] { display: none; }
span[data-lang="fr"], a[data-lang="fr"] { display: none; }
span[data-lang="en"], a[data-lang="en"] { display: initial; }
