:root {
    --color-arctic: #FFFFFF;
    --color-charcoal: #1E1E1E;
    --color-ice: #A7D0E6;
    --color-cobalt: #004E89;
    --color-purple: #A259FF;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 3rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;

    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 2rem rgba(162, 89, 255, 0.4);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-arctic);
    background: linear-gradient(135deg, #0a0a1f 0%, #1a0a2e 50%, #16213e 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 30%, rgba(162, 89, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(0, 78, 137, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(167, 208, 230, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
            repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(167, 208, 230, 0.03) 2px, rgba(167, 208, 230, 0.03) 4px);
    animation: grid-scroll 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes grid-scroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 1;
}

.header {
    padding: var(--space-md) 0;
    position: relative;
    z-index: 100;
    background: rgba(10, 10, 31, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 208, 230, 0.1);
    animation: header-appear 0.8s ease-out;
}

@keyframes header-appear {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--color-arctic);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    position: relative;
    transition: var(--transition-base);
}

.logo::before {
    content: '';
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cobalt));
    border-radius: var(--radius-sm);
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.logo:hover {
    color: var(--color-ice);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    background: var(--color-arctic);
    margin: 0.25rem 0;
    transition: var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.nav {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    color: var(--color-arctic);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-purple), var(--color-ice));
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--color-ice);
}

.nav-link:hover::before {
    width: 100%;
}

.hero {
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url("../img/hero-bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(162, 89, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: hero-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgb(10, 10, 31, 0.6);
    padding: var(--space-lg);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-xxl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-arctic), var(--color-ice));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-appear 1s ease-out;
}

@keyframes title-appear {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text {
    font-size: var(--font-size-md);
    color: var(--color-ice);
    margin-bottom: var(--space-lg);
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    animation: text-appear 1s ease-out 0.2s backwards;
}

@keyframes text-appear {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 20rem;
    height: 20rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-purple), var(--color-cobalt));
    color: var(--color-arctic);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0 3rem rgba(162, 89, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--color-arctic);
    border: 2px solid var(--color-ice);
}

.btn-secondary:hover {
    background: var(--color-ice);
    color: var(--color-charcoal);
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--color-arctic);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cobalt));
    border-radius: var(--radius-sm);
}

.section-text {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto var(--space-lg);
    color: var(--color-ice);
}

.grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.card {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 208, 230, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.1), rgba(0, 78, 137, 0.1));
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--color-purple);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-purple);
    margin-bottom: var(--space-md);
    display: block;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-arctic);
}

.card-text {
    color: var(--color-ice);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.course-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 208, 230, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--color-purple), var(--color-cobalt));
    transform: scaleX(0);
    transition: var(--transition-base);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-glow);
}

.course-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

.course-content {
    padding: var(--space-md);
}

.course-category {
    font-size: var(--font-size-sm);
    color: var(--color-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.course-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-arctic);
}

.course-text {
    color: var(--color-ice);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(167, 208, 230, 0.2);
}

.course-duration,
.course-level {
    font-size: var(--font-size-sm);
    color: var(--color-ice);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.instructor-card {
    text-align: center;
}

.instructor-image {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-md);
    border: 0.25rem solid var(--color-purple);
    display: block;
    transition: var(--transition-base);
}

.instructor-card:hover .instructor-image {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.instructor-name {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-arctic);
}

.instructor-role {
    color: var(--color-purple);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

.instructor-bio {
    color: var(--color-ice);
    font-size: var(--font-size-sm);
}

.contact-container {
    max-width: 50rem;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));

    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.contact-info {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 208, 230, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-purple);
    flex-shrink: 0;
}

.contact-info-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-arctic);
}

.contact-info-text p {
    color: var(--color-ice);
    font-size: var(--font-size-sm);
}

.form {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 208, 230, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-arctic);
    font-size: var(--font-size-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid rgba(167, 208, 230, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(10, 10, 31, 0.6);
    color: var(--color-arctic);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 0.125rem rgba(162, 89, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.form-checkbox input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: var(--font-size-sm);
    color: var(--color-ice);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-purple);
    text-decoration: underline;
}

.map-container {
    margin-top: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(167, 208, 230, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 25rem;
    display: block;
    filter: grayscale(0.3) brightness(0.8) contrast(1.2);
}

.footer {
    background: rgba(10, 10, 31, 0.9);
    border-top: 1px solid rgba(167, 208, 230, 0.2);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-link {
    color: var(--color-ice);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-purple);
}

.footer-text {
    color: var(--color-ice);
    font-size: var(--font-size-sm);
    text-align: center;
    width: 100%;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(167, 208, 230, 0.1);
}

.privacy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(167, 208, 230, 0.2);
    padding: var(--space-md);
    z-index: 1000;
    transform: translateY(100%);
    transition: var(--transition-base);
}

.privacy-popup.show {
    transform: translateY(0);
}

.privacy-content {
    max-width: 60rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.privacy-text {
    color: var(--color-ice);
    font-size: var(--font-size-sm);
    flex: 1;
    min-width: 15rem;
}

.privacy-text a {
    color: var(--color-purple);
    text-decoration: underline;
}

.privacy-actions {
    display: flex;
    gap: var(--space-sm);
}

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content {
    max-width: 35rem;
}

.error-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cobalt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-arctic);
}

.error-text {
    color: var(--color-ice);
    margin-bottom: var(--space-lg);
}

.thank-you-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 40rem;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--color-purple);
    margin-bottom: var(--space-md);
    animation: check-appear 0.6s ease-out;
}

@keyframes check-appear {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.thank-you-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-arctic);
}

.thank-you-text {
    color: var(--color-ice);
    margin-bottom: var(--space-lg);
}

.legal-page {
    max-width: 50rem;
    margin: var(--space-xl) auto;
    padding: var(--space-lg);
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 208, 230, 0.2);
    border-radius: var(--radius-lg);
}

.legal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-arctic);
}

.legal-section {
    margin-bottom: var(--space-lg);
}

.legal-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-ice);
}

.legal-section p,
.legal-section li {
    color: var(--color-ice);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.legal-section ul {
    list-style-position: inside;
    margin-left: var(--space-md);
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    transition: var(--transition-fast);
}

.home-button:hover {
    color: var(--color-ice);
}

@media (max-width: 768px) {
    :root {
        --font-size-xxl: 2rem;
        --font-size-xl: 1.5rem;
        --font-size-lg: 1.25rem;
        --space-xl: 3rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        display: none;
        width: 70%;
        max-width: 20rem;
        height: 100vh;
        background: rgba(10, 10, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl) var(--space-md);
        transition: var(--transition-base);
        border-left: 1px solid rgba(167, 208, 230, 0.2);
    }

    .nav.active {
        right: 0;
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: left;
        padding: var(--space-sm);
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .privacy-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --font-size-sm: 0.8125rem;
    }

    .logo {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: var(--font-size-xl);
    }

    .error-code {
        font-size: 5rem;
    }

    .map-container iframe {
        height: 18rem;
    }
}

@media (min-width: 769px) {
    .contact-grid {
        grid-template-columns: 2fr 3fr;
    }
}

.menu-open{
    overflow: hidden;
}