@import url('https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&display=swap');

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e0e0e0;
    background-color: #050505;
}
/*MAIN LAYOUT*/
.layout-main {
    flex: 1 0 auto;
}

/* Landing Page Animations */
/* ************** BOF ************** */
.hero-bg-animated {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, #0ea5e9 0%, transparent 60%), radial-gradient(circle at 80% 70%, #f97316 0%, transparent 60%);
    filter: blur(120px) saturate(1.4);
    animation: heroGlow 18s ease-in-out infinite alternate;
    opacity: 0.35;
}

@keyframes heroGlow {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-40px) scale(1.15);
    }
}
/* Hero Text Reveal */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

    .fade-up.delay-1 {
        animation-delay: 0.15s;
    }

    .fade-up.delay-2 {
        animation-delay: 0.30s;
    }

    .fade-up.delay-3 {
        animation-delay: 0.45s;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ************** EOF ************** */


.section-bg {
    background: linear-gradient(rgba(5,5,5,0.88), rgba(5,5,5,0.92)), url('img/photo-06.jpg') center/cover no-repeat fixed;
    min-height: 100%;
    padding-top: 80px;
    padding-bottom: 80px;
}
/* https://picsum.photos/id/1015/1920/1200 */
/* Different subtle variation for Home */
.hero {
    min-height: 100%;
    background: linear-gradient(rgba(5,5,5,0.75), rgba(5,5,5,0.85)), url('img/photo-06.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
}
/* Hero styling */
.hero-title {
    font-size: 2.6rem;
    letter-spacing: 0.04em;
}

.hero-highlight {
    color: #38bdf8;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(56,189,248,0.12);
    color: #e5e7eb;
    font-size: 0.85rem;
}

/* Portfolio timeline enhancements */
.portfolio-card {
    /*background: rgba(15,23,42,0.95);*/
    border-radius: 0.9rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148,163,184,0.35);
    margin-bottom: 0.75rem;
}
.timeline-year {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 50px;
    margin: 4px;
    text-align: center;
    min-width: 75px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.portfolio-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(56,189,248,0.15);
    color: #38bdf8;
}
.timeline-year:hover,
.timeline-year.active {
    background-color: #38bdf8;
    color: white;
    transform: scale(1.08);
    border-color: #0d6efd;
}
.timeline-container * {
    pointer-events: auto !important;
}

.timeline-container {
    position: relative;
    z-index: 300;
}

.card {
    background-color: rgba(15,15,15,0.95) !important;
    border-color: rgba(255,255,255,0.1) !important;
}
/* CONTACT FORM*/
.contact-page {
    overflow-y: hidden !important;
}
.form-control, .form-select {
    background-color: #0a0a0a !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: #e0e0e0;
}

    .form-control:focus {
        background-color: #0a0a0a;
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.layout-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Glass blur modal backdrop */
.modal-glass {
    background: rgba(0, 0, 0, 0.35); /* subtle dark tint */
    backdrop-filter: blur(10px); /* the magic */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}

    /* Optional: smooth fade-in */
    .modal-glass.fade-in {
        animation: glassFade 0.25s ease-out;
    }

@keyframes glassFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* Magnetic Hover Buttons */
.btn-magnetic {
    transition: transform 0.2s ease;
}

    .btn-magnetic:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 8px 20px rgba(56,189,248,0.25);
    }

/*Glass Panel Hover Lift*/
.content-panel {
   /* background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,0.85));*/
    border-radius: 1.25rem;
    overflow-y: auto; /* content scrolls, page does not */
    padding: 2rem 2.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .content-panel:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    }

/*Animated Project Cards*/
.portfolio-card {
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn 0.4s ease forwards;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*Typing Indicator*/
.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    animation: blink 1.4s infinite both;
}

    .typing-indicator span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-indicator span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes blink {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}
/* Contact form input text backgroud */
.inputtext-background {
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,0.85));    
}

.nobars {
    min-height: 100vh;
    overflow: hidden;
}

/* ***************  DASHBOARD  ******************  */
:root {
    --bg-surface: #ffffff;
    --bg-page: #f4f6f9;
    --border-color: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning-light: #fffbe2;
    --warning-border: #fde047;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Bruno Ace SC';
    color: #38bdf8;   
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

    .dashboard-header h1 {
        font-size: 1.875rem;
        font-weight: 700;
        margin: 0;
    }

.subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
.Totals {
    font-family: 'Bruno Ace SC';
    color: lightslategray;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}
.btn-refresh {   
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 18px;
    border-radius: 50px;
    margin: 4px;
    text-align: center;
    min-width: 75px;
    background-color: #38bdf8;
    border: 1px solid rgba(255,255,255,0.1);
    color: black;
}

    .btn-refresh:hover {
        background: #0d6efd;
        
    }

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Cards Base */
.card {
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

    .card.wide {
        grid-column: 1 / -1;
    }

@media (min-width: 900px) {
    .card.wide {
        grid-column: span 2;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .card-header h3 {
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        margin: 0;
    }

/* Metric Display */
.card-metric .value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    
}

/* List Formatting */
.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    
}

.data-item {
    display: flex;
    color: var(--text-muted);
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #6b7280;
    font-size: 0.700rem;
}

    .data-item:last-child {
        border-bottom: none;
    }

.item-value-pill {
    /* background: #f3f4f6;*/
    border: 1px solid rgba(148,163,184,0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.65rem;
}

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Security Cards & Log styling */
.security-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.sub-stat {
    /* background: #f9fafb;*/
    border: 1px solid rgba(148,163,184,0.35);
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.sub-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sub-stat-value {
    font-weight: 700;
    font-size: 1.125rem;
    margin-top: 0.25rem;
}

.log-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.log-item {
    background: #fafafa;
    border-left: 3px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.log-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
}

.timestamp {
    color: var(--text-muted);
    font-family: monospace;
}

.category-tag {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.25rem;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-light);
    color: #b45309;
}

.badge-neutral {
    background: #f3f4f6;
    color: #4b5563;
}

/* Loading state */
.loading-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-muted);
}
/* Force the main card and ALL internal parts to be dark */
.card.wide,
.card.wide .card-header,
.card.wide .card-body,
.card.wide .log-container,
.card.wide .log-item,
.card.wide .empty-state {
    background-color: #0E0E0E !important;
    color: var(--text-muted) !important;
}

    /* Ensure specific text elements like headers and strong tags use the muted color */
    .card.wide h3,
    .card.wide h4,
    .card.wide h5,
    .card.wide p,
    .card.wide strong,
    .card.wide .reason strong,
    .card.wide .timestamp,
    .card.wide .category-tag {
        color: var(--text-muted) !important;
    }

    /* Optional: If badges have their own dark text, force them to muted too if needed */
    .card.wide .badge {
        color: var(--text-muted) !important;
    }

/*********************************************** Widget Live Visitors *********/
.live-visitors-card {
    background: #0b1220;
    border-radius: 12px;
    padding: 16px;
    color: #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.live-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34,197,94,0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34,197,94,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

.live-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.live-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.2);
    transform: translateX(0);
    animation: slideIn 0.3s ease-out;
}

    .live-item.human {
        border-left: 3px solid #22c55e;
    }

    .live-item.bot {
        border-left: 3px solid #f97316;
        opacity: 0.8;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.live-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.country {
    font-weight: 600;
    font-size: 0.9rem;
}

.page {
    font-size: 0.8rem;
    color: #9ca3af;
}

.live-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.8rem;
}

.badge {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(148,163,184,0.2);
}

/*********************************************** LOGIN FORM *********/

/* Glass card */

.glass {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
    border-radius: 22px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.glass-input {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    color: white;
}

    .glass-input::placeholder {
        color: #9aa0b3;
    }

    .glass-input:focus {
        color: white;
        background: rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.55);
        box-shadow: none;
    }

.validation-message {
    color: #ffb3b3;
    font-size: .85rem;
}

.btn-light {
    background: linear-gradient(90deg,#e0e7ff,#fff);
    border: none;
    color: #0b0f1e;
}

    .btn-light:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(255,255,255,.18);
    }

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .55;
    z-index: 0;
}

.b1 {
    width: 420px;
    height: 420px;
    background: #6d28d9;
    top: -120px;
    left: -80px;
    animation: drift 14s ease-in-out infinite alternate;
}

.b2 {
    width: 380px;
    height: 380px;
    background: #0ea5e9;
    bottom: -100px;
    right: -60px;
    animation: drift 17s ease-in-out infinite alternate-reverse;
}

.b3 {
    width: 260px;
    height: 260px;
    background: #db2777;
    bottom: 20%;
    left: 12%;
    animation: drift 21s ease-in-out infinite alternate;
}

@keyframes drift {
    to {
        transform: translate(60px,40px) scale(1.15);
    }
}
