html {
  scroll-behavior: smooth;
}

:root {
    --bg-primary: #131722;
    --bg-secondary: #1E222D;
    --bg-card: #2A2E39;
    --bg-hover: #363A45;
    --text-primary: #D1D4DC;
    --text-secondary: #787B86;
    --text-muted: #434651;
    --border-color: #2A2E39;
    --accent-blue: #2962FF;
    --accent-green: #00C853;
    --accent-red: #F23645;
    --shadow: rgba(0, 0, 0, 0.5);
}

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

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif; */
    background-color: #010101;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: "Geologica", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "CRSV" 0,
    "SHRP" 0;
}

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

/* Header */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(rgb(0 0 0 / 11%), rgb(0 0 0 / 77%)), url(../img/bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 1000;
    margin-bottom: 20px;
    /* background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%); */
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #d4d8e8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.code-txt {
  font-weight: 200;
  margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1E53E5;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow);
}

.btn-success {
    background-color: #de7dba;
    color: white;
    width: 100%;
}

.btn-success:hover {
    background-color: #fb3db5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(184 0 200 / 40%);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Sections */
.section {
    padding: 10px 0 80px 0;
}

.section-alt {
    background-color: #010101;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.past-section-subtitle {
    text-align: center;
}

/* Webinars Grid */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Webinar Card */
.webinar-card {
    background-color: #070b0d;
    border: 1px solid #6c435c;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.webinar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow);
    background-color: #422f51ad;
}

.webinar-card.past {
    opacity: 0.85;
    border: 1px solid #7494eb;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-badge {
    background-color: #6c435c;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.past-badge {
    background-color: var(--text-muted);
}

.card-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-tickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-footer {
    padding: 0 20px 20px;
}

/* Footer */
.footer {
    background-color: #070b0d;
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--text-secondary);
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

#modalBody {
    padding: 32px;
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-date {
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    transition: all 0.3s;
}

.video-link:hover {
    background-color: var(--accent-blue);
    color: white;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-value.positive {
    color: var(--accent-green);
}

.stat-value.negative {
    color: var(--accent-red);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .nav {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .webinars-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    #modalBody {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .card-tickers {
        flex-direction: column;
    }
    
    .logo span {
        font-size: 14px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

button:disabled {
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

button:disabled:hover {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none; 
}
