@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #100c1a;
    --surface: #1a1625;
    --card-bg: #1a1625;
    --accent: #ff0e59;
    --accent-orange: #ff9140;
    --accent-red: #ff3131;
    --text: #ffffff;
    --text-dim: #888888;
    --text-muted: #555555;
    --border: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-border: #ff0e59;
    --shadow-glow: rgba(255, 14, 89, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   HERO SECTION - Full Screen
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--bg);
}


.hero-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

/* ============================================
   NAV BAR
   ============================================ */

/* ============================================
   NAV BAR
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 12, 26, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--shadow-glow);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, #2a2438 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.card-image .card-emoji {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--accent));
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 10px rgba(255, 14, 89, 0.4);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
}

.blog-card:hover .card-title {
    color: var(--accent);
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-read-more {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.blog-card:hover .card-read-more {
    color: var(--accent-orange);
}

.card-read-more .arrow {
    font-size: 1rem;
    transition: transform 0.3s;
}

.blog-card:hover .card-read-more .arrow {
    transform: translateX(4px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: center;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 4rem 2.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 6rem;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-brand span {
    color: var(--accent);
}

.footer-credits {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-link {
    color: var(--accent) !important;
    text-decoration: underline !important;
    font-weight: 600;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 15px var(--shadow-glow);
    text-decoration: underline !important;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 50vh;
        display: flex;
        align-items: center;
        overflow: visible;
    }

    .hero img {
        position: relative;
        height: auto;
        object-fit: contain;
    }

    .nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .main {
        padding: 3rem 1rem 4rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero-content p {
        font-size: 0.85rem;
        letter-spacing: 0.2em;
        padding: 0 1rem;
    }

    .site-footer {
        padding: 3rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.65rem;
    }

    .section-heading {
        font-size: 2rem;
    }
}


/* ============================================
   LUX CHAT INTERFACE FIX (v2.3)
   ============================================ */
/* Shift text to the right to clear the sidebar image (Lux) */
.lux-chat-messages,
.lux-message-bubble,
.lux-chat-body,
.chat-messages,
.chat-window-content {
    margin-left: 210px !important;
    width: calc(100% - 210px) !important;
}

/* Specific text container shift and contrast fix */
.lux-message-bubble {
    background: rgba(10, 10, 10, 0.95) !important;
    /* High contrast background */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.lux-message-bubble p,
.lux-chat-message,
.lux-chat-message div,
.lux-message-text {
    padding-left: 10px !important;
    /* Fine-tune internal padding */
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Ensure the input area also clears the image */
.lux-chat-input-container {
    padding-left: 210px !important;
}

/* Responsive adjustment */
@media (max-width: 600px) {

    .lux-chat-messages,
    .lux-message-bubble,
    .lux-chat-body,
    .chat-messages,
    .chat-window-content,
    .lux-chat-input-container {
        margin-left: 0 !important;
        width: 100% !important;
        padding-left: 15px !important;
    }
}