/* Global Styles */
:root {
    --primary-blue: #0b1e59;
    --secondary-blue: #0f4c81;
    --accent-blue: #1DA1F2;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #f5f5f5;
    --card-bg: #f9f9f9;
    --transition-speed: 0.3s ease;
}

/* 
   Root Level Font Size Control 
   Changing this value will scale all 'rem' based font-sizes across the site.
   You can add media queries here to scale the entire site down on smaller screens.
*/
html {
    font-size: 16px;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

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

body {
    font-family: 'Syne', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #020b26 0%, #0b1e59 50%, #1a3c8a 100%);
    color: white;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 50px;
}

.hero-container{
    height: 100vh;
    position: relative; /* Ensure it's a positioning context */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), radial-gradient(74.74% 279.98% at 74.74% 72.73%, rgba(35, 90, 212, 0.2) 0%, rgba(14, 37, 90, 0.7) 47.97%, #030A1B 100%), radial-gradient(65.91% 246.91% at 65.91% 60.43%, #1382E0 0%, #1D2A8F 100%), linear-gradient(105.94deg, #01010D 0%, #011E58 51.3%, #032667 81.34%, #0B47B2 98.49%), #0E0E0E;
}

.hero-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.25px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-white {
    background: white;
    color: var(--primary-blue);
    border: 1px solid white;
}

.btn-white:hover {
    background: #f0f0f0;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    margin-top: 2rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -2rem; /* visually balance */
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.25px;
    margin-bottom: 1em;
}

.hero-content .divider {
    width: 0px; /* Hidden in image, but sometimes a small line looks good. Image doesn't have it clearly. */
    height: 1px;
    background: rgba(255,255,255,0.3);
    margin:  0;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.hero-content .separator {
    margin: 0 10px;
    opacity: 0.5;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: white;
}

.about-text {
    max-width: 1000px;
    margin: 0 auto 6rem auto;
    font-size: 2rem;
    line-height: 1.8;
    color: var(--text-gray); /* Default/fallback */
    text-align: center;
}

.about-text span {
    opacity: 0.2; /* Initial state: dimmed */
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.about-text span.active {
    opacity: 1; /* Target state: highlighted */
    color: var(--text-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    text-align: left;
    transition: var(--transition-speed);
}

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

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-card p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.info-card.full-width {
    grid-column: 1 / -1;
}

/* Partner Section */
.partner-section {
    background: #f0f6fa;
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-label {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: #0f4c81; /* Brand color */
}

.partner-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.discount-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Community Section */
.community-section {
    padding: 6rem 0;
    background: white; /* Or slightly off-white if needed, but image looks white */
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Wider cards */
    gap: 2rem;
    max-width: 1000px; /* Adjust max-width */
    margin: 0 auto 3rem auto;
}

.community-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Subtle shadow */
    border: 1px solid #f0f0f0;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.community-card h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.community-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Push buttons to bottom */
}

.card-buttons {
    display: flex;
    gap: 1rem;
}

.btn-card-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent; /* default */
}

/* Youtube Button Style */
.btn-card-outline.youtube {
    color: #ff0000;
    border-color: #ffe0e0;
    background: #fff5f56c;
}

.btn-card-outline.youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

/* Telegram/Join Button Style */
.btn-card-outline.telegram {
    color: #0088cc;
    border-color: #e0f2fa;
    background: #f0f9fd71;
}

.btn-card-outline.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.social-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-pill-wide {
    padding: 10px 32px;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-pill-wide:hover {
    border-color: black;
    background: black;
    color: white;
}

/* Footer */
footer {
    background: #111;
    color: #888;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid #222;
}

.footer-grid {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.footer-info h4 {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #666;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-logo {
    color: #fff;
    letter-spacing: 2px;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 1rem;
    opacity: 0.7;
}

.footer-socials a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.7rem;
    color: #444;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; /* Initially hidden */
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .social-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-pill-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 500px) {
    :root{
        font-size: 14px;
    }

    .about-text {
        font-size: 1.6rem;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 4rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .btn{
        padding: 8px 18px;
    }

    .about-section{
        padding-bottom: 5rem;
    }

    .partner-logo img{
        height: 3rem;
        object-fit: contain;
    }

    .partner-section{
        padding: 6rem 0;
    }

    .community-section{
        padding: 4rem 0;
    }
}