/* ═══════════════════════════════════════════════════════════════
   FIFTY-PROJECT — Main Stylesheet
   Premium dark theme with glass effects and gradients
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --border-color: #2a2a3a;
    --border-hover: #5066ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #606080;
    --accent-blue: #5066ff;
    --accent-cyan: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #5066ff 0%, #00d4ff 100%);
    --accent-green: #00ff88;
    --accent-red: #ff4466;
    --accent-orange: #ff6b35;
    --glass-bg: rgba(22, 22, 31, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(80, 102, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    background-color: var(--bg-primary);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ─── Gilroy Font ──────────────────────────────────────────── */
@font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-Semibold.eot");
    src: url("../fonts/Gilroy-Semibold.eot?#iefix") format("embedded-opentype"),
         url("../fonts/Gilroy-Semibold.woff") format("woff"),
         url("../fonts/Gilroy-Semibold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* ─── Navbar ───────────────────────────────────────────────── */
.navbar {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
    gap: 10px;
}

.brand-logo {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(80, 102, 255, 0.5));
    transition: filter 0.3s ease;
}

.navbar-brand:hover .brand-logo {
    filter: drop-shadow(0 0 15px rgba(80, 102, 255, 0.8));
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 15px !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link svg {
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.nav-link:hover svg {
    opacity: 1;
}

.nav-link-accent {
    color: var(--accent-blue) !important;
    font-weight: 600;
}

.nav-link-accent:hover {
    color: var(--accent-cyan) !important;
    background: rgba(80, 102, 255, 0.1) !important;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-grad {
    background: var(--accent-gradient) !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(80, 102, 255, 0.3);
    display: inline-flex;
    align-items: center;
}

.btn-grad:hover {
    box-shadow: 0 6px 30px rgba(80, 102, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    background: transparent !important;
    font-weight: 500;
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline-light:hover {
    border-color: var(--accent-blue) !important;
    background: rgba(80, 102, 255, 0.1) !important;
}

/* ─── Hero Section ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(80, 102, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%),
        url("../images/image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(80, 102, 255, 0.15);
    border: 1px solid rgba(80, 102, 255, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero-title-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
    max-width: 520px;
}

.hero-subdesc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 0 0 auto;
    position: relative;
    display: none;
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(80, 102, 255, 0.2) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    border-radius: 50%;
}

.hero-logo-img {
    width: 280px;
    height: 280px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(80, 102, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (min-width: 992px) {
    .hero-visual { display: block; }
}

/* ─── Sections ─────────────────────────────────────────────── */
.section-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(80, 102, 255, 0.12);
    border: 1px solid rgba(80, 102, 255, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* ─── Video ────────────────────────────────────────────────── */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.video-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Screenshots ──────────────────────────────────────────── */
.screenshots-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.screenshot-card {
    width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease-out;
    cursor: pointer;
    transform-style: preserve-3d;
}

.screenshot-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.screenshot-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screenshot-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.screenshot-card:hover .screenshot-image {
    transform: scale(1.05);
}

.screenshot-info {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%);
}

.screenshot-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--accent-blue);
    font-weight: 700;
}

.screenshot-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ─── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 240px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    opacity: 0.7;
}

.stat-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-blue);
}

/* ─── Toast Notifications ──────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    animation: toast-in 0.4s ease-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.toast-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.toast-danger {
    background: rgba(255, 68, 102, 0.1);
    border-color: rgba(255, 68, 102, 0.3);
}

.toast-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: rgba(255, 170, 0, 0.3);
}

.toast-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--accent-green); }
.toast-danger .toast-icon { color: var(--accent-red); }
.toast-warning .toast-icon { color: #ffaa00; }
.toast-info .toast-icon { color: var(--accent-cyan); }

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
}

.toast-close {
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    animation: toast-progress 5s linear forwards;
}

.toast-success .toast-progress { background: var(--accent-green); }
.toast-danger .toast-progress { background: var(--accent-red); }
.toast-warning .toast-progress { background: #ffaa00; }
.toast-info .toast-progress { background: var(--accent-cyan); }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0; }
}

/* ─── Modal Overlay ────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.modal-active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    margin: 20px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 68, 102, 0.2);
    color: var(--accent-red);
}

.modal-body {
    padding: 24px 28px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px 24px;
}

.btn-modal {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: var(--font);
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-modal-confirm {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(80, 102, 255, 0.3);
}

.btn-modal-confirm:hover {
    box-shadow: 0 6px 25px rgba(80, 102, 255, 0.5);
    transform: translateY(-1px);
}

.btn-modal-danger {
    background: var(--accent-red);
    color: white;
}

.btn-modal-danger:hover {
    background: #ff2244;
    box-shadow: 0 4px 15px rgba(255, 68, 102, 0.4);
}

/* ─── Input Groups ─────────────────────────────────────────── */
.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.input-group-custom svg {
    position: absolute;
    left: 14px;
    z-index: 1;
    pointer-events: none;
}

.input-group-custom input,
.input-group-custom select {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    transition: all 0.25s ease;
    outline: none;
}

.input-group-custom input:focus,
.input-group-custom select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(80, 102, 255, 0.15);
}

.input-group-custom input::placeholder {
    color: var(--text-muted);
}

.modal-select {
    padding: 12px 16px !important;
    appearance: none;
    cursor: pointer;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content {
        padding: 100px 20px 60px;
        flex-direction: column;
    }

    .hero-title {
        letter-spacing: -1px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-block {
        padding: 50px 20px;
    }

    .screenshots-container {
        gap: 20px;
    }

    .screenshot-card {
        width: 100%;
        max-width: 400px;
    }

    .screenshot-image {
        height: 200px;
    }

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        min-width: 100%;
        padding: 16px 20px;
    }

    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}