@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --bg-color: #1a1a1a;
    --primary-color: #ff6b6b;
    --secondary-color: #f0e68c;
    --text-color: #ffffff;
    --container-bg: #2c2c2c;
    --pattern-color: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.23);
    --button-hover: #ff8787;
}

body.light-mode {
    --bg-color: #f7f4ec;
    --primary-color: #d94848;
    --secondary-color: #ffd166;
    --text-color: #242424;
    --container-bg: #ffffff;
    --pattern-color: rgba(0, 0, 0, 0.06);
    --shadow-color: rgba(0, 0, 0, 0.14);
    --button-hover: #e85d5d;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--pattern-color) 25%, transparent 25%, transparent 50%, var(--pattern-color) 50%, var(--pattern-color) 75%, transparent 75%, transparent);
    background-size: 8px 8px;
    z-index: -1;
}

.container {
    position: relative;
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px var(--shadow-color), 0 6px 6px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--container-bg);
    transform: translateY(-2px);
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    margin-bottom: 30px;
}

.numbers-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.number {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    opacity: 0;
}

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

#generate-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

#generate-btn:hover {
    background-color: var(--button-hover);
    box-shadow: 0 0 15px var(--button-hover), 0 0 30px var(--button-hover);
    transform: translateY(-3px);
}

#generate-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 32px);
        padding: 72px 24px 32px;
        box-sizing: border-box;
    }

    h1 {
        font-size: 2.1rem;
    }
}

.contact-section {
    margin-top: 40px;
    text-align: left;
}

.contact-section hr {
    border: 0;
    border-top: 1px solid var(--pattern-color);
    margin-bottom: 30px;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--pattern-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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