/* Global UI Improvements - Glassmorphism & Modern Aesthetics */

:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(25px);
    --accent-gradient: linear-gradient(135deg, #00d2ff, #3a7bd5);
    --dark-bg-gradient: linear-gradient(180deg, #1a1a2e 0%, #0b0b1a 100%);
}

html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Enforce Uniform Image Sizes for Cards */
.member__photo {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 1rem !important;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--glass-bg-gradient) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-top: 1px solid var(--glass-highlight) !important;
    border-left: 1px solid var(--glass-highlight) !important;
    border-radius: 1.5rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1)) !important;
    border-color: #00d2ff !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.3);
}

/* Glossy Section Utility */
.section-dark {
    background: var(--dark-bg-gradient) !important;
    color: #ffffff !important;
}

.section-dark .section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-dark .section-subtitle {
    color: #e2e8f0 !important;
}

/* Enhanced Download Buttons */
.download-button.glass-card {
    padding: 1.2rem 1.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1.2rem;
    height: 100%;
    text-decoration: none !important;
    min-width: 240px;
    margin-bottom: 20px;
}

.download-button__icon-wrapper {
    width: 54px !important;
    height: 54px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-button.glass-card:hover .download-button__icon-wrapper {
    background: var(--accent-gradient);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    transform: scale(1.1);
}

.download-button__icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    position: static !important;
    /* Override absolute positioning from base theme */
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.download-button__text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.download-button__platform {
    font-size: 0.75rem !important;
    color: #a0aec0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
}

.download-button__store {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.1;
}

/* Stats Cards */
.stats.glass-card {
    padding: 2.5rem !important;
    text-align: center !important;
    margin-bottom: 2rem;
}

.stats__number {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem !important;
    font-weight: 800 !important;
    filter: drop-shadow(0 2px 10px rgba(58, 123, 213, 0.4));
}

/* Features Grid Improvements - Glowing Circles */
.box.glass-card {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.box__icon {
    filter: brightness(0) invert(1) !important;
    width: 45px !important;
    height: auto !important;
    opacity: 0.9;
}

/* Team & Exchange Cards */
.member.glass-card {
    padding: 2rem !important;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.member__name a {
    color: #ffffff !important;
    font-weight: 700;
}

/* Header Gloss */
.header.js-header {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.menu__link {
    color: #ffffff !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    font-weight: 600 !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.menu__link:hover {
    color: #00d2ff !important;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.8);
}

/* Accordion */
.accordion__item.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    margin-bottom: 1rem;
}

.accordion__title {
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion__icon {
    filter: invert(1);
    width: 24px;
}

/* Contact Section & Circuit Background */
.section-circuit {
    background: url('../img/circuit-bg.png') no-repeat center center !important;
    background-size: cover !important;
    position: relative;
    padding-top: 100px !important;
    padding-bottom: 120px !important;
    /* Adjusted for bar overlap */
    overflow: visible !important;
    /* Allow bar to overlap bottom */
}

.section-circuit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 11, 26, 0.6) 0%, rgba(11, 11, 26, 0.8) 100%);
    z-index: 1;
}

.section-circuit .container {
    position: relative;
    z-index: 2;
}

/* Fix Social Icons - Roadmap Style Bubbles */
/* Fix Social Icons - Centered Overlapping Glass Bar */
.socials--displaced {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translate(-50%, 50%) !important;
    width: auto !important;
    max-width: 95% !important;
    background: rgba(15, 15, 25, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 100 !important;
    list-style: none !important;
}

.socials__item {
    margin: 0 !important;
    list-style: none;
}

.socials__button {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--glass-bg-gradient) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
}

.socials__icon {
    font-size: 24px !important;
    color: #ffffff !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.socials__button:hover {
    transform: translateY(-10px) scale(1.1);
    background: var(--accent-gradient) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6), 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Carousel */
.carousel__slide {
    background: var(--glass-bg-gradient) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    margin: 0.5rem;
}

.carousel__title {
    color: #ffffff !important;
    font-size: 1rem !important;
    margin-top: 1rem !important;
}

/* Exchange & Project Logo Uniformity */
.member__photo.exchange-logo {
    height: 120px !important;
    width: auto !important;
    object-fit: contain !important;
    background: white;
    /* Keep white bg for logos that need it */
    padding: 15px !important;
    border-radius: 12px !important;
    margin: 0 auto 1.5rem !important;
    display: block !important;
}

/* Footer Polish */
.footer {
    background: var(--dark-bg-gradient) !important;
    padding: 80px 0 0 !important;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer .link-list__link {
    color: #cbd5e0 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer .link-list__link:hover {
    color: #00d2ff !important;
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.footer .section-subtitle--hero {
    font-size: 1rem !important;
    line-height: 1.8;
}

.footer-copyright {
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0 60px !important;
    margin-top: 80px !important;
    color: #cbd5e0 !important;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 1px;
}

.footer__scroll-top {
    width: 50px !important;
    height: 50px !important;
    background: var(--glass-bg-gradient) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease !important;
}

.footer__scroll-top:hover {
    transform: translateX(-50%) translateY(-5px);
    background: var(--accent-gradient) !important;
    border-color: #ffffff !important;
}

.footer__scroll-icon {
    color: #ffffff !important;
    font-size: 20px !important;
}

/* Screenshot Framing Only (Reverted Switch Bar Styling) */
.tabs__screenshot {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    height: auto !important;
}

.tabs__screenshot:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6) !important;
}