:root {
    --primary-color: #b22222;
    --primary-dark: #8b0000;
    --primary-light: #e6f0ff;
    --accent-color: #ff6b6b;
    --text-color-light: #333333;
    --text-color-dark: #f5f5f5;
    --bg-light: #ffffff;
    --bg-dark: #121212;
    --card-light: #f9f9f9;
    --card-dark: #1e1e1e;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.3);
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.light-mode {
    background-color: var(--bg-light);
    color: var(--text-color-light);
}

.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-color-dark);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s;
}

.light-mode header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-light);
}

.dark-mode header {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: var(--shadow-dark);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-items {
    display: flex;
    align-items: center;
}

.nav-items a {
    margin-left: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.light-mode .nav-items a {
    color: var(--text-color-light);
}

.dark-mode .nav-items a {
    color: var(--text-color-dark);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    margin: 2px 0;
    transition: all 0.3s;
}

.light-mode .menu-toggle span {
    background-color: var(--text-color-light);
}

.dark-mode .menu-toggle span {
    background-color: var(--text-color-dark);
}

/* Theme Toggle Button */
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.light-mode .theme-btn {
    background-color: var(--primary-light);
}

.dark-mode .theme-btn {
    background-color: var(--primary-dark);
}

.theme-icon {
    font-size: 18px;
}

.light-mode .theme-icon.dark,
.dark-mode .theme-icon.light {
    display: none;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
}

.light-mode .btn-secondary {
    color: var(--primary-color);
}

.dark-mode .btn-secondary {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-secondary:hover {
    background-color: rgba(0, 86, 179, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
}

.hero-image img {
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 80px 0;
    text-align: center;
}

.light-mode .features {
    background-color: var(--primary-light);
}

.dark-mode .features {
    background-color: var(--primary-dark);
}

.features h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 30px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.light-mode .feature-card {
    background-color: var(--card-light);
    box-shadow: var(--shadow-light);
}

.dark-mode .feature-card {
    background-color: var(--card-dark);
    box-shadow: var(--shadow-dark);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    text-align: center;
}

.benefits h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* How To Use Section */
.how-to {
    padding: 80px 0;
    text-align: center;
}

.light-mode .how-to {
    background-color: var(--primary-light);
}

.dark-mode .how-to {
    background-color: var(--primary-dark);
}

.how-to h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    max-width: 250px;
    margin: 0 15px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
}

.light-mode .step-number {
    background-color: var(--primary-color);
    color: white;
}

.dark-mode .step-number {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Register Section */
.register {
    padding: 80px 0;
}

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

.register-content {
    flex: 1;
    max-width: 500px;
}

.register-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.register-content p {
    margin-bottom: 30px;
}

.register-image {
    flex: 1;
    max-width: 450px;
    margin-left: 40px;
}

.register-image img {
    width: 100%;
}

/* Footer */
footer {
    padding: 60px 0 20px;
}

.light-mode footer {
    background-color: var(--card-light);
}

.dark-mode footer {
    background-color: var(--card-dark);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.link-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.link-group a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.light-mode .link-group a {
    color: var(--text-color-light);
}

.dark-mode .link-group a {
    color: var(--text-color-dark);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}

.disclaimer {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.7;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container, .register .container {
        flex-direction: column;
    }

    .hero-content, .register-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-image, .register-image {
        max-width: 80%;
        margin-left: 0;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-items {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
        transform: translateY(-100vh);
        transition: transform 0.3s ease-in-out;
    }

    .light-mode .nav-items {
        background-color: var(--bg-light);
        box-shadow: var(--shadow-light);
    }

    .dark-mode .nav-items {
        background-color: var(--bg-dark);
        box-shadow: var(--shadow-dark);
    }

    .nav-items.active {
        transform: translateY(0);
    }

    .nav-items a {
        margin: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

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

    .footer-logo {
        margin-bottom: 30px;
    }

    .footer-links {
        width: 100%;
    }

    .link-group {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .features h2, .benefits h2, .how-to h2, .register-content h2 {
        font-size: 1.8rem;
    }

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

    .hero-image, .register-image {
        max-width: 100%;
    }
}