:root {
    --primary-color: #00e676;
    /* Neon Green */
    --secondary-color: #2979ff;
    /* Neon Blue */
    --bg-dark: #0a0e17;
    --bg-card: #151a25;
    --text-light: #ffffff;
    --text-gray: #b0b3b8;
    --danger-color: #ff1744;
    --gradient-main: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
    /* Force reset */
}

/* Page Specific Padding Logic */
body.inner-page {
    /* For inner pages, we need space if the header is fixed. 
       If referencing index.html where nav is fixed: */
    padding-top: 130px;
}

body.home-page {
    /* Home page has hero slider top, so no padding needed */
    padding-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography & Utilities */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight {
    color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: #05070a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* Navbar */
.navbar {
    position: fixed;
    /* Fixed at top */
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    /* Removing padding, using height for centering */
    height: 90px;
    display: flex;
    /* Ensure centering works in fixed container */
    align-items: center;
    /* Center content vertically */
    z-index: 1000;
    transition: 0.3s;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Fill the fixed navbar height */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 50px;
    /* Added spacing as requested */
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-main);
    padding: 10px 25px;
    border-radius: 30px;
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    /* Increased to give more room */
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    padding-top: 130px;
    /* Push content center down to clear header */
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 700px;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-hero:hover {
    background: var(--primary-color);
    color: #000;
}

/* Slider Controls */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    /* Fixed width for perfect circle */
    height: 50px;
    /* Fixed height for perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* TradingView Widget Container */
/* TradingView Widget Container */
.tradingview-widget-container {
    width: 100%;
    height: 72px;
    /* Standard height for ticker tape */
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
    margin-top: 90px;
    /* Clear fixed navbar */
    position: relative;
    z-index: 900;
}

.tradingview-widget-container__widget {
    height: 100%;
    width: 100%;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Markets & TradingView */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.market-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 220px;
    max-width: 260px;
    flex: 0 0 240px;
    /* Reduced fixed width */
    /* Force rigid width in flex container */
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: all 0.4s ease;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    /* Top accent bar */
    background: var(--gradient-main);
    opacity: 0;
    transition: 0.3s;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

.market-card:hover::before {
    opacity: 1;
}

.market-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.market-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.market-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.market-header span {
    font-size: 0.85rem;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

.market-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.market-price h3 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.market-price span {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.market-price.up h3 {
    color: var(--primary-color);
}

.market-price.up span {
    background: rgba(0, 230, 118, 0.15);
    color: var(--primary-color);
}

.market-price.down h3 {
    color: var(--danger-color);
}

.market-price.down span {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger-color);
}

/* Simulated Mini Chart Line - Pure CSS Animation */
.market-chart {
    height: 60px;
    margin: 0 -25px 20px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart-line.up::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C30,80 50,40 80,40 C110,40 130,70 160,70 C190,70 210,20 250,20 C270,20 290,50 300,50 L300,100 L0,100 Z' fill='rgba(0, 230, 118, 0.1)'/%3E%3Cpath d='M0,80 C30,80 50,40 80,40 C110,40 130,70 160,70 C190,70 210,20 250,20 C270,20 290,50 300,50' fill='none' stroke='%2300e676' stroke-width='2'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.5));
}

.chart-line.down::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C30,30 50,60 80,60 C110,60 130,40 160,40 C190,40 210,90 250,90 C270,90 290,70 300,70 L300,100 L0,100 Z' fill='rgba(255, 23, 68, 0.1)'/%3E%3Cpath d='M0,30 C30,30 50,60 80,60 C110,60 130,40 160,40 C190,40 210,90 250,90 C270,90 290,70 300,70' fill='none' stroke='%23ff1744' stroke-width='2'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
    filter: drop-shadow(0 0 5px rgba(255, 23, 68, 0.5));
}

.btn-trade {
    width: 100%;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-trade:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
    transform: translateY(-2px);
}

/* Modal Improvements */
.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    display: block;
    transition: 0.3s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
    opacity: 0.7;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transition: 0.3s;
}

.video-card:hover .play-button {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
    font-size: 1.2rem;
    text-align: center;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: #05070a;
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer Tag Cloud */
.footer-tags h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
    padding: 4px 0;
}

.tag-item:hover {
    color: var(--primary-color);
}

.footer-links h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    height: 100%;
    /* Ensure it takes full height of grid cell */
    justify-content: space-between;
    /* Push email to bottom if content is short */
}

.footer-social a {
    font-size: 1.5rem;
    color: var(--text-gray);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-left: 1px solid var(--glass-border);
        padding-top: 50px;
        /* Spacer inside menu */
        z-index: 1005;
        /* Above header */
    }

    .nav-menu.active {
        right: 0;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Market Slider Wrapper */
.market-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.market-grid-scroll {
    display: flex;
    flex-flow: row nowrap;
    /* Force horizontal single line */
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
    align-items: stretch;
    /* Ensure cards have same height */
}

.market-grid-scroll.active {
    cursor: grabbing;
    scale: 1;
    /* Reset scale if set elsewhere */
}

/* Scroll Buttons */
.scroll-btn {
    background: rgba(41, 121, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(41, 121, 255, 0.2);
    color: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.scroll-btn:hover {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 0 15px rgba(41, 121, 255, 0.4);
    transform: scale(1.1);
}

.scroll-btn.left {
    left: -25px;
    /* Pull outside container slightly */
}

.scroll-btn.right {
    right: -25px;
}

/* Adjust margins on mobile to prevent buttons covering content */
@media (max-width: 768px) {
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }

    .market-grid-scroll {
        padding: 20px 40px;
        /* Add padding so content isn't under buttons */
    }

    .market-grid-scroll {
        padding: 20px 40px;
        /* Add padding so content isn't under buttons */
    }
}

/* TradingView Ticker Fix */
/* TradingView Ticker Fix */
/* TradingView Ticker Fix */
/* TradingView Ticker Fix */
.tradingview-widget-container {
    position: fixed;
    top: 0;
    /* At very top */
    left: 0;
    width: 100%;
    height: 45px;
    z-index: 1002;
    /* High z-index but handled by overflow hidden typically */
    background: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* CRITICAL: Prevent it covering navbar */
}

/* On mobile, adjust if navbar height changes */
@media (max-width: 768px) {
    .tradingview-widget-container {
        top: 70px;
    }
}

/* End of Styles */