/* CSS Variables for Customization */
:root {
    /* Primary brand + states */
    --primary-color: #2c3f4c;      /* button blue */
    --primary-dark: #2c3f4c;       /* darker edge/hover border */

    /* Supporting cool accents */
    --secondary-color: #93c5fd;    /* light blue for subtle accents */
    --accent-color: #4aa3d6;       /* sky/cyan accent */
    --success-color: #10b981;

    /* Typography aligned to main base */
    --text-dark: #2c3f4c;          /* main body/headings */
    --text-light: #718593;         /* secondary/muted */

    /* Surfaces */
    --bg-light: #f5f7f8;           /* light app background */
    --bg-white: #ffffff;

    /* Dividers & outlines */
    --border-color: #d0d7de;       /* light lines/dividers */
    --border-color-dark: #3b4b58;  /* optional dark lines */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Gradients (kept decorative; hero still uses explicit gradient below) */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #93c5fd 100%);
    --gradient-accent: linear-gradient(135deg, #e0e7ff 0%, #93c5fd 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ---------------------------------------------
   Minimal utility additions for accessibility
   --------------------------------------------- */

/* Generic primary button baseline (specific CTA rules still override) */
.btn.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-dark);
}

/* Visible focus aligned to palette */
:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

/* ============================================================
   MODERN HERO PAGE STYLES - ONLY applies to pages with modern-hero class
   ============================================================ */

/* Style the header container for modern hero pages */
#header.modern-hero {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    position: relative !important;
    overflow: visible !important;
}

#header.modern-hero #bg {
    display: none !important;
}

/* Style the menu with frosted glass effect - keep it in normal flow */
#header.modern-hero .ui.container {
    position: relative;
    z-index: 100;
}

#header.modern-hero #topleft_menu {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 20px !important;
    margin: 20px !important;
}

/* Make sure dropdown menus work properly */
#header.modern-hero .ui.dropdown .menu {
    z-index: 1001 !important;
}

/* Hero Section - appears after the menu in the header */
#header.modern-hero .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 180px 20px 60px;
    color: white;
    position: relative;
    overflow: hidden;
    margin: -80px 0 0 0 !important; /* Negative margin to overlap slightly with menu */
    width: 100vw;
    margin-left: calc(-50vw + 50%) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 100px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    align-items: center;
}

.hero-brand-text {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(90deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    padding: 15px 35px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.btn-primary.cta-button {
    background: white !important;
    color: var(--primary-color) !important;
    box-shadow: var(--shadow-lg);
}

.btn-primary.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Fix Watch Demo button styling to match Explore Competitions */
.cta-button-outline,
a.cta-button-outline {
    padding: 15px 35px !important;
    font-size: 1.1rem !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid white !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    min-height: 54px;
}

.cta-button-outline:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    color: white !important;
}

/* Ensure both CTA buttons have same height */
.hero-cta .cta-button,
.hero-cta .cta-button-outline {
    min-height: 54px;
    box-sizing: border-box;
}

/* Pulsating scroll down arrow - more visible version */
.scroll-indicator {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    padding-left: 2px;
}

.scroll-arrow:hover {
    background: white;
    transform: scale(1.1);
}

.scroll-arrow i {
    color: #667eea;
    font-size: 1.8rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Make sure hero section is positioned relative for the scroll indicator */
.hero-section {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-arrow {
        width: 50px;
        height: 50px;
    }

    .scroll-arrow i {
        font-size: 1.5rem;
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.stat-item {
    text-align: center;
    min-height: 90px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    padding-top: 5px;
    background: linear-gradient(90deg, #fff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
    color: var(--text-dark);
    font-weight: 600;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card.card-1 {
    top: 30px;
    left: 0px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 250px;
    left: 0px;
    animation-delay: 1s;
}

.floating-card.card-3 {
    top: 140px;
    left: 52%;
    transform: translateX(-50%);
    animation: floatCenter 3s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-card.card-4 {
    top: 250px;
    right: 0px;
    animation-delay: 1.5s;
}

.floating-card.card-5 {
    top: 30px;
    right: 0px;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes floatCenter {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

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

/* Organization Partners */
.organization-partners {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.partners-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.organization-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.organization-logo {
    height: 80px;
    width: auto;
    opacity: 0.9;
/*    filter: brightness(0) invert(1);*/
    transition: all 0.3s ease;
}

.organization-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: -20px 0 40px;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.announcement-content i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.announcement-text {
    flex: 1;
    color: var(--text-dark);
}

/* Section Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* Features Section */
.features-section {
    background: var(--bg-light);
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: #2c3f4c;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

.section-features {
    text-align: center;
    margin-top: 50px;
}

.section-features .btn-primary {
  background: #fff !important;
  color: var(--primary-color) !important;
  border: 1px solid #fff !important;
}

.section-features .btn-primary:hover {
  background: #fff !important;
  color: var(--primary-dark, #1e4ed8) !important;
}

/* Competitions Section */
.competitions-section {
    background: white;
    width: 100%;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--bg-light);
    width: 100%;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.step-item {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-title i {
    color: var(--primary-color);
}

.step-description {
    color: var(--text-light);
    line-height: 1.6;
    max-width: 250px;
    margin: 0 auto;
}

.step-connector {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    top: -60px;
}

/* Use Cases Section */
.use-cases-section {
    background: white;
    width: 100%;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.use-case-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.use-case-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gradient-primary);
}

.use-case-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.use-case-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.use-case-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-xl {
    padding: 18px 40px !important;
    font-size: 1.2rem !important;
    border-radius: 12px !important;
}

.cta-section .btn-primary {
    background: white !important;
    color: var(--primary-color) !important;
}

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid white !important;
}

/* About Section */
.about-section {
    background: var(--bg-light);
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.about-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.about-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.about-stats {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-light);
}

.about-stat i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);

}

.about-stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 10px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-brand-text {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 30px;
    }

    .step-connector {
        width: 3px;
        height: 50px;
        top: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

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

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

    .modern-hero#header {
        position: relative !important;
    }

    .hero-section {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 100px 15px 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .section-container {
        padding: 60px 15px;
    }

    .modern-hero#header {
        position: relative !important;
    }
}

/* Buttons Global Improvements */
.btn {
    transition: all 0.3s ease !important;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

/* Optional: if you want global borders/lines to pick up the new neutral */
hr, .divider, .ui.divider {
    border-color: var(--border-color);
}
