* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    background: linear-gradient(to bottom, #ffffff, #e0f7fa);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.pixabay.com/photo/2017/08/30/01/05/milky-way-2695569_1280.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: 1400px;
    margin: 0 auto;
}

/* === HEADER === */
header {
    padding: 25px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    margin-bottom: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_logo {
    max-height: 60px;
    width: auto;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    font-size: 18px;
    color: #000000;
    padding: 12px 20px;
    transition: color 0.3s ease;
}

header nav ul li:not(.btn) a:hover {
    border-bottom: 2px solid #e11829;
}

header nav ul li.btn a {
    background-color: #e11829;
    color: white;
    border-radius: 5px;
    padding: 12px 20px;
    transition: background-color 0.3s ease;
}

header nav ul li.btn a:hover {
    background-color: #b71c1c;
}

/* === CATEGORIES SECTION === */
.categories-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.categories-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000000;
}

.categories-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e11829;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    width: 30%;
    padding-right: 20px;
}

.category-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.category-description {
    width: 70%;
    text-align: left;
}

.category-description h3 {
    font-size: 1.5rem;
    color: #e11829;
    margin-bottom: 10px;
}

.category-description p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* === FOOTER === */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav ul li a:hover {
    color: #e30613;
}

.footer-form {
    margin-bottom: 20px;
}

.footer-form input {
    padding: 10px;
    margin: 5px;
    border: none;
    border-radius: 5px;
}

.footer-form button {
    background-color: #e30613;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer-form button:hover {
    background-color: #c50511;
}

.footer-copyright {
    font-size: 12px;
    color: #ccc;
}

/* === DROPDOWN MENU === */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 250px;
    border: 1px solid #e11829;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #e11829;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dropdown-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

.dropdown-menu1 {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    min-width: 250px;
    border: 1px solid #e30613;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu1[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content1 h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #e30613;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.dropdown-content1 p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.signup-modal-content,
.success-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.policy-content h3,
.agreement-content h3,
.signup-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #e11829;
    margin-bottom: 10px;
}

.policy-content p,
.agreement-content p,
.signup-note {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.signup-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signup-icon {
    width: 30px;
    height: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.input-group input.valid {
    border-color: #28a745;
}

.input-group input.invalid {
    border-color: #dc3545;
}

.validation-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#submitBtn {
    background-color: #e11829;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

#submitBtn:hover {
    background-color: #b71c1c;
}

#submitBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e11829;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: #28a745;
    margin-bottom: 10px;
}

.success-modal-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.success-modal-content button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.success-modal-content button:hover {
    background-color: #218838;
}

/* === SCROLL TO TOP BUTTON === */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 80px;
    background-color: #e11829;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#scrollTopBtn::before {
    content: '↑';
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    display: block;
}

#scrollTopBtn:hover {
    background-color: #b71c1c;
}

/* === ACCESSIBILITY TOGGLE BUTTON === */
#accessibility-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    border: 2px solid #e11829;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

#accessibility-toggle:hover {
    transform: scale(1.1);
    background-color: #e11829;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#accessibility-toggle svg {
    width: 28px;
    height: 28px;
    transition: stroke 0.3s ease;
}

#accessibility-toggle:hover svg {
    stroke: #ffffff;
}

body.high-contrast #accessibility-toggle {
    background-color: #000000 !important;
    border-color: #ffffff !important;
}

body.high-contrast #accessibility-toggle svg {
    stroke: #ffffff !important;
}

body.high-contrast #accessibility-toggle:hover {
    background-color: #ffffff !important;
}

body.high-contrast #accessibility-toggle:hover svg {
    stroke: #000000 !important;
}

/* === HIGH-CONTRAST MODE === */
body.high-contrast {
    background: white !important;
    color: black !important;
}

body.high-contrast::before {
    background-image: none !important;
    opacity: 0 !important;
}

.high-contrast * {
    color: black !important;
    background: white !important;
    border-color: black !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.high-contrast a,
.high-contrast a:hover,
.high-contrast button,
.high-contrast button:hover,
.high-contrast input,
.high-contrast label,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast p,
.high-contrast li {
    color: black !important;
    background: white !important;
    border-color: black !important;
}

.high-contrast header,
.high-contrast .categories-section,
.high-contrast footer,
.high-contrast .modal-content,
.high-contrast .category-card,
.high-contrast .dropdown-menu,
.high-contrast .dropdown-menu1,
.high-contrast .signup-modal-content,
.high-contrast .success-modal-content {
    background: white !important;
    background-image: none !important;
    background-color: white !important;
}

.high-contrast img,
.high-contrast svg {
    filter: grayscale(100%) contrast(200%) !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1400px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .categories-section {
        padding: 30px 0;
    }

    .categories-section h2 {
        font-size: 2rem;
    }

    .category-card {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .category-image {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .category-description {
        width: 100%;
    }

    .footer-nav ul {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .footer-nav ul li {
        margin: 5px 0;
    }

    #accessibility-toggle {
        bottom: 15px;
        right: 15px;
        padding: 10px;
    }

    #accessibility-toggle svg {
        width: 24px;
        height: 24px;
    }

    #scrollTopBtn {
        bottom: 15px;
        right: 70px;
        width: 40px;
        height: 40px;
    }

    #scrollTopBtn::before {
        font-size: 20px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .categories-section h2 {
        font-size: 1.5rem;
    }

    .category-description h3 {
        font-size: 1.3rem;
    }

    .category-description p {
        font-size: 0.9rem;
    }

    .modal-content,
    .signup-modal-content,
    .success-modal-content {
        width: 90%;
    }
}