* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --secondary: #6366F1;
    --accent: #10B981;
    --background: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', 'Inter', sans-serif;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:not([href]) {
    cursor: default;
    color: inherit;
}

a:not([href]):hover {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 320px) {
    .section {
        padding: 40px 0;
    }
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    width: 100%;
    min-height: 80px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background-color: var(--primary);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a.active {
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.1);
}

.nav-menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

@media (max-width: 768px) {
    header {
        min-height: 70px;
    }

    nav {
        padding: 1rem 0;
        min-height: 70px;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1.5rem 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: none;
        gap: 0.25rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 1rem 1.25rem;
        width: 100%;
        border-radius: 8px;
        text-align: left;
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 22px;
    }
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgba(99, 102, 241, 0.85) 100%),
                url('../images/bg.jpg') center center / cover no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 400px;
    }
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 20px;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.privacy-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.privacy-popup.active {
    display: block;
}

.privacy-popup p {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-popup-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.success-message {
    background-color: var(--accent);
    color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .privacy-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }
}

.text-center {
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animate-on-scroll.fade-in {
    opacity: 1;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out;
}

.card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--secondary);
}

.icon-animated {
    animation: float 3s ease-in-out infinite;
}

.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.icon-rotate {
    animation: rotate 20s linear infinite;
}

.hero-decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.hero-decoration-1 {
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-2 {
    bottom: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-decoration-3 {
    top: 50%;
    right: 20%;
    animation: rotate 25s linear infinite;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: scaleIn 0.8s ease-out;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.card:hover .step-number {
    animation: pulse 1s ease-in-out infinite;
}

.testimonial-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.animated-bg svg {
    position: absolute;
    opacity: 0.05;
}

.section-title-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--primary);
    animation: float 4s ease-in-out infinite;
}

.course-category-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.4s ease;
    animation: scaleIn 0.6s ease-out;
}

.card:hover .course-category-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--secondary);
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-icon-svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-icons a:hover .social-icon-svg {
    transform: scale(1.2) rotate(5deg);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.hero-illustration {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.15;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-decoration,
    .hero-illustration {
        display: none;
    }
}

.game-container {
    max-width: 700px;
    margin: 0 auto;
}

.game-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.game-score,
.game-question-num {
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
}

.game-question {
    margin-bottom: 2rem;
}

.game-question h3 {
    font-size: 24px;
    color: var(--text-primary);
    line-height: 1.5;
}

.game-answers {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-answer-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
}

.game-answer-btn:hover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
    transform: translateX(5px);
}

.game-answer-btn.correct {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.game-answer-btn.incorrect {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.game-answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.game-feedback {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.game-feedback.correct {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.game-feedback.incorrect {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 2px solid #ef4444;
}

#final-score-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin: 1rem 0;
}

#final-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .game-card {
        padding: 2rem 1.5rem;
    }

    .game-question h3 {
        font-size: 20px;
    }

    .game-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
        margin-top: 1.5rem;
    }
}

@media (max-width: 320px) {
    .map-container {
        height: 300px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
    }

    .hero {
        padding: 40px 0;
        min-height: 350px;
    }

    .hero .container {
        padding: 0 15px;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .course-category-icon {
        width: 56px;
        height: 56px;
    }

    .section-title-icon {
        width: 36px;
        height: 36px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .courses-grid {
        gap: 1.5rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section p {
        font-size: 16px;
    }

    form input,
    form textarea {
        padding: 10px;
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .privacy-popup {
        padding: 1.5rem;
        font-size: 14px;
    }

    .privacy-popup-buttons {
        flex-direction: column;
    }

    .privacy-popup-buttons .btn {
        width: 100%;
    }

    .game-card {
        padding: 1.5rem;
    }

    .game-question h3 {
        font-size: 18px;
    }

    .game-answer-btn {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }

    .game-score,
    .game-question-num {
        font-size: 16px;
    }

    #final-score-text {
        font-size: 20px;
    }

    #final-message {
        font-size: 16px;
    }

    .contact-section-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .nav-menu {
        padding: 1rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .hero {
        min-height: 400px;
        padding: 50px 0;
    }

    .card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }
}

.contact-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

@media (max-width: 640px) {
    .contact-section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 320px) {
    .contact-section-grid {
        gap: 1.5rem;
    }
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

* {
    -webkit-tap-highlight-color: transparent;
}

