/* --- VARIABLES & DESIGN SYSTEM --- */
:root {
    --color-bg: #050505;
    --color-bg-alt: #111111;
    --color-text: #ffffff;
    --color-text-muted: #888888;

    /* BRUTAL ACCENTS */
    --color-accent: #ccff00;
    /* Neon Lime */
    --color-accent-hover: #b3e600;
    --color-secondary: #00f0ff;
    /* Cyan */

    --font-heading: 'Teko', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1400px;
    --header-height: 80px;

    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: 1px;
}

.text-accent {
    color: var(--color-accent);
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-alt);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-bg-alt);
}

.btn-accent:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

.btn-outline {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-icon {
    padding: 0.8rem;
    font-size: 1.2rem;
    background: transparent;
    color: var(--color-text);
}

/* --- HEADER --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 2px;
    background: var(--color-text);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--color-bg) 10%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: -50px;
}

.hero-subtitle {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
}

.hero-title {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 20px 20px 0px rgba(0, 0, 0, 0.5);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-text);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 3rem;
    color: #ccc;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

/* --- TICKER --- */
.live-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-accent);
    display: flex;
    z-index: 10;
}

.ticker-label {
    background: var(--color-accent);
    color: var(--color-bg-alt);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 20;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    /* Brutal shadow for separation */
}

.ticker-content {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item span {
    font-weight: 700;
    color: var(--color-accent);
}

/* --- SECTIONS --- */
.section {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
}

.view-all {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brutal-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    grid-template-rows: auto;
}

.news-card {
    background: var(--color-bg-alt);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.news-card.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.large .card-image {
    height: 400px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 50px rgba(227, 255, 0, 0.2);
    animation: zoomIn 0.3s ease;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    height: 150px;
    font-size: 2rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    font-family: var(--font-heading);
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.gallery-caption {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 1rem;
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover .gallery-icon {
    opacity: 0;
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.2rem 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.card-content {
    padding: 1.5rem;
}

.news-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.large h3 {
    font-size: 2.5rem;
}

.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .brutal-grid {
        grid-template-columns: 1fr 1fr;
    }

    .large {
        grid-column: 1 / -1;
    }

    .hero-title {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .btn-primary {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 4rem;
    }

    .brutal-grid {
        grid-template-columns: 1fr;
    }

    .ticker-label {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    z-index: 999;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--color-accent);
    letter-spacing: 2px;
}

.no-scroll {
    overflow: hidden;
}

/* --- SCROLL PROGRESS --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent);
    z-index: 2000;
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--color-accent);
}

/* --- ANIMATIONS & INTERACTION ENHANCEMENTS --- */

/* Ticker Animation */
.ticker-content {
    display: inline-flex;
    animation: ticker-slide 60s linear infinite;
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-content:hover {
    animation-play-state: paused;
}

/* Glitch Effect on Hover for Buttons */
.btn-glitch {
    position: relative;
    overflow: hidden;
}

.btn-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glitch:hover::before {
    left: 100%;
}

/* --- TEAMS/STANDINGS SECTION --- */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.standings-table th {
    text-align: left;
    padding: 1rem;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--color-accent);
}

.standings-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.standings-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.team-logo-small {
    width: 30px;
    height: 30px;
    background: #333;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 50%;
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(100%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(204, 255, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    color: var(--color-bg);
}

/* --- FOOTER --- */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    transform: rotate(45deg);
    /* Brutal rotation */
}

.social-btn i {
    transition: 0.3s;
}

.social-btn:hover i {
    transform: rotate(-45deg);
    /* Counter rotation for icon */
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--color-text);
    padding-left: 10px;
    /* Slight movement */
}

/* --- MODALS & OVERLAYS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--color-bg-alt);
    padding: 2rem;
    border: 1px solid var(--color-accent);
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
}

.search-bar {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 3rem;
    padding: 1rem 0;
    margin-top: 1rem;
}

.search-bar:focus {
    outline: none;
}

/* --- VIDEO SECTION --- */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(227, 255, 0, 0.1);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.video-wrapper:hover .video-cover {
    opacity: 0.4;
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-accent);
    background: rgba(0, 0, 0, 0.5);
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.video-wrapper:hover .play-button-overlay {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px var(--color-accent);
}

/* --- UTILS --- */
.brutal-border {
    border: 1px solid var(--color-accent);
}

/* --- TEAM MODAL STYLES --- */
.team-modal-content {
    background: url('../assets/images/team_modal_bg_brutal_1768069392255.png') no-repeat center center/cover;
    position: relative;
    width: 95%;
    /* Wider for brutal impact */
    max-width: 1400px;
    height: 85vh;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

/* Dark overlay to ensure text readability */
.team-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.team-modal-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    padding: 3rem;
    gap: 3rem;
}

.team-hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
    text-align: center;
}

.modal-logo {
    width: 250px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--color-accent));
}

.modal-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 4px 4px 0 #000;
}

.modal-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.team-stats {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.stat-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.team-info {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.info-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.info-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
    max-width: 800px;
}

/* Responsive Modal */
@media (max-width: 1024px) {
    .team-modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow-y: auto;
    }

    .team-hero {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
        padding-right: 0;
    }

    .team-stats {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        flex-wrap: wrap;
    }

    .team-info {
        grid-column: 1 / -1;
        grid-row: 3 / 4;
        padding-bottom: 2rem;
        /* Spacing for scroll */
    }
}


/* --- AI CHAT WIDGET STYLES --- */
#ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: var(--font-body);
}

#chat-launcher {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

#chat-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--color-accent);
}

.chat-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.chat-tooltip {
    position: absolute;
    right: 85px;
    background: var(--color-accent);
    color: #000;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-family: var(--font-heading);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    white-space: nowrap;
}

#chat-launcher:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(-10px);
}

#chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatOpen 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatOpen {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
}

.header-info h3 {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
}

.status-text {
    font-size: 0.8rem;
    color: var(--color-accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.close-chat {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-chat:hover {
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--color-accent);
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 0.8rem;
    border-radius: 8px;
    position: relative;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border-left: 3px solid var(--color-accent);
}

.user-message .message-content {
    background: var(--color-accent);
    color: #000;
    border-bottom-right-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
}

#user-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

#send-btn {
    background: var(--color-accent);
    color: #000;
    border: none;
    width: 45px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

#send-btn:hover {
    box-shadow: 0 0 15px var(--color-accent);
}

.chat-suggestions {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-chip {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.2s;
}

.suggestion-chip:hover {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 0 10px var(--color-accent);
}

@media (max-width: 480px) {
    #chat-window {
        width: 300px;
        bottom: 80px;
        right: -10px;
    }
}