:root {
    /* Dark theme variables (default) */
    --primary-color: #7FE622;
    --secondary-color: #1a1a1a;
    --accent-color: #f1c40f;
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: rgba(26, 26, 26, 0.8);
    --header-bg: rgba(26, 26, 26, 0.95);
    --footer-bg: linear-gradient(180deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,1) 100%);
    --border-color: rgba(127, 230, 34, 0.1);
}

[data-theme="light"] {
    --primary-color: #4CAF50;
    --secondary-color: #f5f5f5;
    --accent-color: #FF9800;
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: rgba(245, 245, 245, 0.9);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: linear-gradient(180deg, rgba(245,245,245,0.95) 0%, rgba(245,245,245,1) 100%);
    --border-color: rgba(76, 175, 80, 0.1);
}

/* Theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar-brand img {
    height: 20px;
    width: 132px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar {
    padding: 1rem 0;
}

.navbar .btn {
    margin-left: 0.5rem;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                         url('/static/desktop-banner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 40vh;
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bonus Amount Animations */
.bonus-amount {
    font-size: 4.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    font-family: 'Segoe UI', Arial, sans-serif;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #f1c40f, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 10px;
    transform: scale(1.1);
    position: relative;
    animation: glow 2s ease-in-out infinite;
}

.bonus-amount::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #f1c40f33, #f39c1233);
    border-radius: 15px;
    z-index: -1;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(241, 196, 15, 0.5),
                     0 0 20px rgba(241, 196, 15, 0.3),
                     0 0 30px rgba(241, 196, 15, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(241, 196, 15, 0.8),
                     0 0 30px rgba(241, 196, 15, 0.6),
                     0 0 40px rgba(241, 196, 15, 0.4);
    }
}

@keyframes pulse-border {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Hover effect for bonus amount */
.bonus-amount:hover {
    animation: shake 0.5s ease-in-out;
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: scale(1.1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

/* Features Section */
.features {
    padding: 2rem 0;  /* Reduced padding */
    background-color: var(--secondary-color);
    margin-bottom: 0; /* Remove bottom margin */
}

.feature-card {
    background-color: var(--card-bg);
    padding: 1.5rem;  /* Reduced padding */
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    margin-bottom: 1rem; /* Added margin bottom */
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(127, 230, 34, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
}


/* Countdown Timer Styles */
.countdown-timer {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

#timer {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

#timer span {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0.5rem;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.registration-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem; /* Reduced margin */
}

.step-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(127, 230, 34, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.step-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sub-steps {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-color);
}

.sub-step {
    margin-bottom: 1.5rem;
}

.sub-step h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Footer styles */
.modern-footer {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(26,26,26,0.98) 100%);
    padding: 3rem 0 2rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    height: 30px;
    margin-bottom: 1.5rem;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.brand-description {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section {
    position: relative;
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 60px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-menu li:hover {
    transform: translateX(5px);
}

.footer-menu a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-menu a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-extra {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.license-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(127, 230, 34, 0.1);
    transition: all 0.3s ease;
}

.license-info:hover {
    background: rgba(127, 230, 34, 0.2);
    transform: translateY(-2px);
}

.license-info i {
    font-size: 1.1rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        padding-right: 0;
    }

    .footer-logo {
        margin-inline: auto;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-menu a {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-extra {
        flex-direction: column;
        gap: 1rem;
    }

    .license-info {
        padding: 0.4rem 0.8rem;
    }
}

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

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

    .footer-menu li:hover {
        transform: translateY(-2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .bonus-amount {
        font-size: 3rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }
    .features {
        padding: 2rem 0; /* Further reduced padding on mobile */
    }

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

    .intro-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .registration-steps {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .step-card {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .modern-footer {
        padding: 2rem 0 1.5rem;
    }
}

/* Responsive design for registration guide */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-number {
        top: -15px;
        left: -15px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .step-card h3 {
        font-size: 1.3rem;
        padding-left: 1rem;
    }

    .sub-steps {
        padding-left: 0.5rem;
    }
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

/* Pulse animation for CTA buttons */
.pulse-animation {
    animation: pulse 2s infinite;
    position: relative;
}

.pulse-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    animation: pulse-border 2s infinite;
    z-index: -1;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(127, 230, 34, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(127, 230, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(127, 230, 34, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Language Toggle Button Styles */
.btn-lang {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.btn-lang i {
    margin-right: 5px;
    font-size: 0.9em;
}

/* Button styles and hover effects */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    transform-origin: center;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Primary button specific styles */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #9eff4f);
    color: var(--dark-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #9eff4f, var(--primary-color));
}

/* Outline button specific styles */
.btn-outline-light {
    border: 2px solid var(--text-color);
    background: transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--text-color);
    transition: all 0.3s;
    z-index: -1;
}

.btn-outline-light:hover {
    color: var(--dark-color);
}

.btn-outline-light:hover::before {
    width: 100%;
}

/* Language toggle button specific styles */
.btn-lang {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lang i {
    margin-right: 5px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn-lang:hover i {
    transform: rotate(360deg);
}

/* Theme toggle button styles */
.btn-theme {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-theme:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
    transform: rotate(180deg);
}

.theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-icon-light {
    display: inline-block;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

.theme-transition {
    transition: all 0.3s ease-in-out;
}