/* ============================================================
   MILTY CLOUD PORTAL - LIGHT PREMIUM MINIMALIST STYLES
   ============================================================ */

:root {
    --bg-page: #f8fafc;        /* Soft gray-blue */
    --bg-card: #ffffff;        /* Pure white */
    --clr-primary: #df6bd9;    /* Pink Brand Color */
    --clr-drop: #df6bd9;       /* Milty Drop is Pink */
    --clr-convert: #df6bd9;    /* Milty Convert is Pink */
    --clr-youtube: #ef4444;    /* Milty Tube is Crimson Red */
    --clr-qr: #7c3aed;         /* Milty QR is Deep Violet */
    --clr-breach: #000000;     /* Milty Breach is monochrome (black in light) */
    --clr-slate: #0f172a;      /* Dark Slate */
    --clr-muted: #64748b;      /* Slate Gray */
    --clr-light-gray: #f1f5f9;  /* Light Border Gray */
    --clr-border: rgba(0, 0, 0, 0.06);
    
    /* Fonts */
    --ff-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ff-mono: 'Courier New', Courier, monospace;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease-out);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

html.dark {
    --bg-page: #0f0f12;        /* Sleek Dark Background */
    --bg-card: #16161e;        /* Premium Card Dark Gray */
    --clr-slate: #f1f5f9;      /* Light Gray Text */
    --clr-muted: #94a3b8;      /* Muted Slate Gray Text */
    --clr-light-gray: #1e1e2a;  /* Dark Border Gray */
    --clr-border: rgba(255, 255, 255, 0.06);
    --clr-breach: #ffffff;     /* Milty Breach is monochrome (white in dark) */
}

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

html, body {
    min-height: 100%;
    background-color: var(--bg-page);
    color: var(--clr-slate);
    font-family: var(--ff-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ── Floating Navigation topbar ──────────────────────────────── */
nav.topbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 960px;
    height: 58px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--clr-slate);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1rem;
}

.nav-logo-text {
    font-family: var(--ff-heading) !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    letter-spacing: 3px !important;
    color: var(--clr-slate) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.nav-pill-menu {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px 6px;
    border-radius: 99px;
    gap: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.nav-pill-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-muted);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-pill-link:hover {
    color: var(--clr-slate);
}

.nav-pill-link.active {
    background: #ffffff;
    color: var(--clr-slate);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-pill-link svg {
    width: 13px;
    height: 13px;
}

/* ── Container Layout ────────────────────────────────────────── */
.portal-container {
    width: 96%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 40px;
}

/* ── Main Content Grid ───────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

/* Left Hero Card */
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    transition: var(--transition);
    animation: fadeInUp 0.8s var(--ease-out);
}

.hero-card:hover {
    box-shadow: var(--shadow-hover);
}

.hero-title {
    font-family: var(--ff-heading);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--clr-slate);
}

.hero-title span {
    color: var(--clr-primary);
}

.hero-desc {
    font-size: 0.98rem;
    color: var(--clr-muted);
    line-height: 1.7;
}

.hero-btn-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-main-primary,
.btn-main-primary:visited {
    background: transparent;
    border: 1.5px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-main-primary:hover {
    background: var(--clr-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 107, 217, 0.2);
}

.btn-main-secondary,
.btn-main-secondary:visited {
    background: transparent;
    border: 1.5px solid var(--clr-light-gray);
    color: var(--clr-slate);
}

.btn-main-secondary:hover {
    background: var(--clr-light-gray);
    transform: translateY(-2px);
}

.btn-main-drop,
.btn-main-drop:visited {
    background: transparent;
    border: 1.5px solid var(--clr-drop);
    color: var(--clr-drop);
}

.btn-main-drop:hover {
    background: var(--clr-drop);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 18px 4px rgba(223, 107, 217, 0.30);
}

.btn-main-convert,
.btn-main-convert:visited {
    background: transparent;
    border: 1.5px solid var(--clr-convert);
    color: var(--clr-convert);
}

.btn-main-convert:hover {
    background: var(--clr-convert);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 18px 4px rgba(223, 107, 217, 0.30);
}

.btn-main-youtube,
.btn-main-youtube:visited {
    background: transparent;
    border: 1.5px solid var(--clr-youtube);
    color: var(--clr-youtube);
}

.btn-main-youtube:hover {
    background: var(--clr-youtube);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 18px 4px rgba(239, 68, 68, 0.30);
}

.btn-main-qr,
.btn-main-qr:visited {
    background: transparent;
    border: 1.5px solid var(--clr-qr);
    color: var(--clr-qr);
}

.btn-main-qr:hover {
    background: var(--clr-qr);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 18px 4px rgba(124, 58, 237, 0.30);
}

.btn-main-breach,
.btn-main-breach:visited {
    background: var(--clr-breach);
    border: 1.5px solid var(--clr-breach);
    color: var(--bg-card);
}

.btn-main-breach:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.25);
    opacity: 0.88;
}

html.dark .btn-main-breach:hover {
    box-shadow: 0 0 22px 5px rgba(255, 255, 255, 0.22);
    opacity: 1;
}

/* ── Services Grid and Square Cards ─────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3.5rem;
    animation: fadeInUp 1s var(--ease-out);
}

.service-square-card {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 24px;
    padding: 1.1rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-square-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Breach card — monochrome + neon glow */
.service-square-card.breach-card {
    border-color: rgba(0, 0, 0, 0.10);
}
html.dark .service-square-card.breach-card {
    border-color: rgba(255, 255, 255, 0.08);
}
.service-square-card.breach-card:hover {
    border-color: var(--clr-breach) !important;
    box-shadow: 0 0 24px 4px rgba(0, 0, 0, 0.14), var(--shadow-hover) !important;
}
html.dark .service-square-card.breach-card:hover {
    box-shadow: 0 0 24px 6px rgba(255, 255, 255, 0.18), var(--shadow-hover) !important;
}

/* Drop card — pink glow */
.service-square-card.drop-card {
    border-color: rgba(223, 107, 217, 0.15);
}
.service-square-card.drop-card:hover {
    border-color: rgba(223, 107, 217, 0.5) !important;
    box-shadow: 0 0 24px 4px rgba(223, 107, 217, 0.22), var(--shadow-hover) !important;
}

/* Convert card — pink glow */
.service-square-card.convert-card {
    border-color: rgba(223, 107, 217, 0.15);
}
.service-square-card.convert-card:hover {
    border-color: rgba(223, 107, 217, 0.5) !important;
    box-shadow: 0 0 24px 4px rgba(223, 107, 217, 0.22), var(--shadow-hover) !important;
}

/* Youtube card — crimson glow */
.service-square-card.youtube-card {
    border-color: rgba(239, 68, 68, 0.15);
}
.service-square-card.youtube-card:hover {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 24px 4px rgba(239, 68, 68, 0.22), var(--shadow-hover) !important;
}

/* QR card — violet glow */
.service-square-card.qr-card {
    border-color: rgba(124, 58, 237, 0.15);
}
.service-square-card.qr-card:hover {
    border-color: rgba(124, 58, 237, 0.5) !important;
    box-shadow: 0 0 24px 4px rgba(124, 58, 237, 0.22), var(--shadow-hover) !important;
}

/* Card Header & Content Elements */
.card-header-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.service-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.15rem;
    display: inline-block;
}

.tag-breach { color: var(--clr-breach); opacity: 0.85; }
.tag-drop { color: var(--clr-drop); opacity: 0.85; }
.tag-convert { color: var(--clr-convert); opacity: 0.85; }
.tag-youtube { color: var(--clr-youtube); opacity: 0.85; }
.tag-qr { color: var(--clr-qr); opacity: 0.85; }

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    transition: var(--transition);
}

.wrapper-breach { background: rgba(0, 0, 0, 0.05); color: var(--clr-breach); }
html.dark .wrapper-breach { background: rgba(255, 255, 255, 0.06); }

.wrapper-drop { background: rgba(223, 107, 217, 0.08); color: var(--clr-drop); }
.wrapper-convert { background: rgba(223, 107, 217, 0.08); color: var(--clr-convert); }
.wrapper-youtube { background: rgba(239, 68, 68, 0.08); color: var(--clr-youtube); }
.wrapper-qr { background: rgba(124, 58, 237, 0.08); color: var(--clr-qr); }

/* Hover effects on card for icon wrapper */
.service-square-card:hover .icon-wrapper {
    transform: scale(1.06);
}
.service-square-card.breach-card:hover .icon-wrapper { background: var(--clr-breach); color: var(--bg-card); }
.service-square-card.drop-card:hover .icon-wrapper { background: var(--clr-drop); color: white; }
.service-square-card.convert-card:hover .icon-wrapper { background: var(--clr-convert); color: white; }
.service-square-card.youtube-card:hover .icon-wrapper { background: var(--clr-youtube); color: white; }
.service-square-card.qr-card:hover .icon-wrapper { background: var(--clr-qr); color: white; }

.service-icon {
    width: 18px;
    height: 18px;
}

.card-body-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
    margin-bottom: 0.6rem;
    width: 100%;
}

.service-title {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--clr-slate);
    transition: var(--transition);
}
 
.service-square-card.breach-card:hover .service-title { color: var(--clr-breach); }
.service-square-card.drop-card:hover .service-title { color: var(--clr-drop); }
.service-square-card.convert-card:hover .service-title { color: var(--clr-convert); }
.service-square-card.youtube-card:hover .service-title { color: var(--clr-youtube); }
.service-square-card.qr-card:hover .service-title { color: var(--clr-qr); }
 
.service-desc-short {
    font-size: 0.72rem;
    color: var(--clr-muted);
    font-weight: 500;
    line-height: 1.35;
}

.card-footer-row {
    width: 100%;
}

.card-action-text {
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.text-breach { color: var(--clr-breach); }
.text-drop { color: var(--clr-drop); }
.text-convert { color: var(--clr-convert); }
.text-youtube { color: var(--clr-youtube); }
.text-qr { color: var(--clr-qr); }

.service-square-card:hover .card-action-text {
    padding-left: 6px;
}

/* ── Usage Terms Bottom Banner ────────────────────────────────── */
.terms-banner {
    background: var(--bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 1.75rem 2.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s var(--ease-out);
    transition: var(--transition);
}

.terms-banner:hover {
    box-shadow: var(--shadow-hover);
}

.terms-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.terms-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--clr-primary);
    text-transform: uppercase;
}

.terms-title {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clr-slate);
}

.terms-desc {
    font-size: 0.88rem;
    color: var(--clr-muted);
}

.terms-right {
    flex-shrink: 0;
}

.btn-circle-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--clr-primary);
    background: transparent;
    color: var(--clr-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-circle-action:hover {
    background: var(--clr-primary);
    color: white;
    transform: scale(1.05);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer-area {
    text-align: center;
    border-top: 1px solid var(--clr-light-gray);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--clr-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-slate);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
}

.hidden {
    display: none;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 820px) {
    nav.topbar {
        width: 95%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .service-square-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .hero-card {
        padding: 2.5rem 2rem;
    }
    
    .terms-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem 2rem;
    }
    
    .btn-circle-action {
        width: 100%;
        border-radius: 12px;
        height: 42px;
    }
}

@media (max-width: 520px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-square-card {
        aspect-ratio: auto;
        min-height: 160px;
        padding: 1.5rem;
    }
}

/* ── Theme Toggle Button & Dark Mode Overrides ────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    border: 1px solid var(--clr-border) !important;
    background: transparent !important;
    color: var(--clr-muted) !important;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.02) !important;
    color: var(--clr-slate) !important;
}

html.dark nav.topbar {
    background: rgba(22, 22, 30, 0.85) !important;
}

html.dark .nav-pill-menu {
    background: #1e1e2a !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark .nav-pill-link.active {
    background: #252533 !important;
    color: #f1f5f9 !important;
}

html.dark .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

@media (max-width: 820px) {
    .nav-pill-menu {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Bouton Hamburger */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--clr-border, rgba(0, 0, 0, 0.06));
    background: transparent;
    color: var(--clr-slate, #0f172a);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-btn svg {
    width: 18px;
    height: 18px;
}

/* Tiroir / Dropdown Mobile */
.mobile-nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

html.dark .mobile-nav-dropdown {
    background: rgba(26, 26, 36, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

.mobile-dropdown-header {
    border-bottom: 1px solid var(--clr-light-gray, rgba(0,0,0,0.06));
    padding-bottom: 0.5rem;
}

.mobile-menu-title {
    font-family: var(--ff-heading, 'Outfit');
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--clr-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-muted, #64748b);
    transition: all 0.2s;
}

.mobile-dropdown-link svg {
    width: 16px;
    height: 16px;
    color: var(--clr-muted, #64748b);
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link.active {
    background: #f1f5f9;
    color: var(--clr-slate, #0f172a);
}

html.dark .mobile-dropdown-link:hover,
html.dark .mobile-dropdown-link.active {
    background: #252533;
    color: #f1f5f9;
}

.mobile-dropdown-link.active svg {
    color: var(--brand, #df6bd9);
}

/* ══════════════════════════════════════════════════════════
   Nothing below this line — clean end of file.
   ══════════════════════════════════════════════════════════ */