/* ===== CSS RESET & NORMALIZE ===== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/* ===== CUSTOM PROPERTIES (with fallbacks) ===== */
:root {
  --color-primary: #25283D;
  --color-secondary: #1BC47D;
  --color-accent: #FFF9EF;
  --color-bg-dark: #181A28;
  --color-bg-light: #222542;
  --color-text-main: #fff;
  --color-text-heading: #1BC47D;
  --color-text-body: #c7d2e2;
  --color-neon: #74F9FF;
  --color-neon-2: #52E5E7;
}

/* ====== BASE TYPOGRAPHY ====== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-text-body);
  background: var(--color-bg-dark);
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-text-main);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.2;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; color: var(--color-neon); }
h2 { font-size: 2rem; color: var(--color-secondary); }
h3 { font-size: 1.3rem; color: var(--color-main, #fff); }
h4, h5, h6 { font-size: 1.1rem; }

p, ul, li, label, input, select, textarea, article {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-body);
}
strong {
  font-weight: 700;
  color: #fff;
}

/* ======= CONTAINER & SPACING PATTERNS ====== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-light);
  border-radius: 16px;
  box-shadow: 0 3px 32px 0 rgba(20,245,255,0.04),0 2px 8px 0 rgba(20,245,255,0.10);
  margin-bottom: 20px;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-width: 260px;
  color: #fff;
}
.card:hover {
  box-shadow: 0 2px 24px 0 rgba(27,196,125, 0.2),0 6px 30px 0 rgba(20,245,255,.31);
  transform: translateY(-3px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #25283D;
  border-radius: 16px;
  padding: 20px 32px;
  margin-bottom: 20px;
  box-shadow: 0 3px 20px 0 rgba(40,255,220,0.10);
  border-left: 4px solid var(--color-neon);
  position: relative;
  transition: box-shadow 0.2s, border-left 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 2px 24px 0 rgba(27,196,125, 0.22),0 6px 32px 0 rgba(28,245,255,.22);
  border-left: 4px solid var(--color-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #23243d 0%, #1BC47D 100%);
  border-bottom: 3px solid var(--color-neon);
  padding: 72px 0 48px 0;
  position: relative;
}
.hero h1 {
  color: var(--color-neon);
  font-size: 2.3rem;
  margin-bottom: 12px;
  text-shadow: 0 0 14px #1BC47D, 0 0 32px #74F9FF90;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #eefeff;
}

/* ===== NAVIGATION ===== */
header {
  background: var(--color-bg-light);
  box-shadow: 0 1px 16px 0 rgba(20,245,255,0.04);
  padding: 0;
  position: sticky;
  top: 0; z-index: 40;
}
header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px 10px 20px;
}
header img { height: 44px; max-width: 240px; }
nav {
  display: flex;
  gap: 24px;
}
nav a {
  color: var(--color-neon);
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.009em;
  font-weight: 500;
  position: relative;
  padding: 8px 3px;
  transition: color 0.2s;
}
nav a:hover, nav a:focus {
  color: var(--color-secondary);
}
.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  padding: 11px 30px;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 18px 0 rgba(27,245,245,0.11);
  font-size: 1rem;
  outline: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
}
.cta.primary {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-neon));
  color: #232742;
  border: 2px solid var(--color-neon);
  box-shadow: 0 0 14px 0 #74F9FF43;
  text-shadow: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #22ffe9, var(--color-secondary));
  color: #181A28;
  transform: scale(1.045);
}
.cta.secondary {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  transition: background 0.16s, color 0.16s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-secondary);
  color: #232742;
  transform: scale(1.037);
}

/* ========= MOBILE NAVIGATION ========= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2.1rem;
  z-index: 102;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 37, 66, 0.99);
  box-shadow: 0 4px 45px 0 rgba(28,245,255,0.13);
  z-index: 110;
  transition: transform 0.34s cubic-bezier(.44,.07,0,1.33);
  transform: translateX(-100vw);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: var(--color-neon);
  align-self: flex-end;
  margin: 28px 24px 16px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  padding: 24px 32px;
  margin-top: 24px;
}
.mobile-nav a {
  color: var(--color-neon);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  padding: 13px 17px;
  border-radius: 10px;
  transition: background 0.14s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-neon);
  color: #222542;
}

@media (max-width: 1000px) {
  header .container nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Show mobile menu on open */
@media (max-width: 1000px) {
  .mobile-menu {
    display: flex;
  }
}

@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ======= FOOTER ======= */
footer {
  background: var(--color-bg-light);
  padding: 35px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
.footer-nav, .footer-social {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-brand {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-text-body);
  font-size: 0.93rem;
  margin-top: 14px;
}
.footer-social a img {
  height: 32px;
  filter: brightness(1.2) drop-shadow(0px 0px 2px #74F9FFaa);
  transition: filter 0.15s, transform 0.19s;
}
.footer-social a:hover img {
  filter: brightness(1.8) drop-shadow(0px 0px 7px #1BC47Dbb);
  transform: scale(1.15);
}

/* ==== CARD GRID (COURSES) ==== */
.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.course-grid > div {
  border-radius: 16px;
  background: var(--color-bg-light);
  padding: 26px 18px;
  min-width: 270px;
  flex: 1 1 240px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px 0 rgba(20,245,255,0.07),0 2px 8px 0 rgba(20,245,255,0.13);
  transition: box-shadow 0.15s, transform 0.14s;
}
.course-grid > div:hover {
  box-shadow: 0 6px 30px 4px rgba(31,255,226,.15);
  transform: translateY(-2px) scale(1.03);
}

/* ==== TEXT-SECTION ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.text-section h3 {
  color: var(--color-secondary);
}
.text-section input[type='text'],
.text-section select {
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1rem;
  border: 2px solid var(--color-bg-light);
  background: #262A43;
  color: #fff;
  margin-right: 15px;
  margin-top: 7px;
  transition: border 0.17s;
}
.text-section input[type='text']:focus,
.text-section select:focus {
  border: 2px solid var(--color-neon);
}

/* ==== LIST, ICONS IN LIST === */
ul {
  padding-left: 0;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  font-size: 1rem;
  color: #dbeafe;
}
ul li img {
  height: 26px; width: 26px;
  filter: drop-shadow(0 0 4px #1BC47D55);
}

/* ==== ARTICLE/BLOG CARDS ===== */
article {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(20,245,255,0.09);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow 0.17s, transform 0.13s;
}
article a {
  color: var(--color-neon);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  transition: color 0.16s;
}
article a:hover, article a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}
article:hover {
  box-shadow: 0 5px 33px 0 rgba(52,255,146,.11);
  transform: translateY(-3px) scale(1.02);
}

/* ============ MAP BLOCK ========== */
.map-block {
  background: var(--color-bg-light);
  border-radius: 16px;
  box-shadow: 0 1px 14px 0 rgba(27,245,245,0.11);
  padding: 22px 16px;
  margin-bottom: 20px;
}
.map-block h3 {
  color: var(--color-secondary);
}
.map-block div { margin-bottom: 6px; }

/* ====== FORMS & LABELS ======== */
label {
  font-weight: 500;
  color: #8DE0C1;
  margin-bottom: 4px;
  font-size: 1rem;
}
input, select, textarea {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid #313556;
  background: #23243d;
  color: #fff;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-neon);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 24px;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 44px;
  }
  .course-grid, .card-container, .content-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 19px;
    align-items: stretch;
  }
  .testimonial-card {
    padding: 17px 14px;
    font-size: 1rem;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .testimonial-card, .card, article, .course-grid > div {
    padding: 13px 9px !important;
  }
}

/* ============== BUTTON HOVER & FOCUS TRANSITIONS =========== */
button, .cta, a.cta {
  transition: background 0.18s, color 0.17s, border 0.13s, box-shadow 0.12s, transform 0.14s;
}

/* =========== CUSTOM SCROLLBAR (NEON) ========== */
::-webkit-scrollbar {
  width: 8px;
  background: #25283D;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--color-secondary), var(--color-neon));
  border-radius: 5px;
  box-shadow: 0 0 8px #1BC47D33;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-neon);
}

/* ============ MICRO-INTERACTIONS ============== */
a, button, .cta {
  cursor: pointer;
  outline: none;
}
a:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--color-neon);
  outline-offset: 2px;
}

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #222542ee;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  padding: 22px 30px 22px 23px;
  z-index: 200;
  box-shadow: 0 -2px 18px 0 #1BC47D66;
  font-size: 1rem;
  border-radius: 16px 16px 0 0;
  animation: cookieBannerIn 0.5s cubic-bezier(.55,1.2,.35,1) 1;
}
@keyframes cookieBannerIn {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  padding: 8px 23px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.13s, color 0.13s, box-shadow 0.16s;
  outline: none;
}
.cookie-accept {
  background: var(--color-secondary);
  color: #222542;
  box-shadow: 0 0 0 2px var(--color-secondary) inset;
}
.cookie-accept:hover {
  background: var(--color-neon);
  box-shadow: 0 0 9px 2px #1bc47d99;
}
.cookie-reject {
  background: transparent;
  border: 2px solid var(--color-neon);
  color: var(--color-neon);
}
.cookie-reject:hover {
  background: var(--color-neon);
  color: #181A28;
}
.cookie-settings {
  background: transparent;
  border: 2px solid #74F9FF;
  color: #74F9FF;
}
.cookie-settings:hover {
  background: #74F9FF;
  color: #232742;
}

/* ========== COOKIE MODAL PREFERENCES ========= */
.cookie-modal {
  position: fixed;
  z-index: 300;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,28,44,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.28s cubic-bezier(.1,.88,.3,1.03) 1;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.cookie-modal-content {
  background: #23243d;
  border-radius: 17px;
  box-shadow: 0 2px 30px 0 #1BC47D55;
  color: #fff;
  padding: 46px 32px 36px 32px;
  min-width: 320px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-modal-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 1.07rem;
}
.cookie-modal-row label {
  color: #e1fdfa;
  margin-bottom: 0;
}
.cookie-modal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Custom switch toggle for cookie categories */
.cookie-switch {
  position: relative;
  width: 38px;
  height: 20px;
  display: inline-block;
  margin-left: 9px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #222542;
  border-radius: 20px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: var(--color-secondary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.6px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.14s;
  box-shadow: 0 2px 8px 0 #1BC47D33;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: var(--color-neon);
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 18px;
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .cookie-modal-content {
    padding: 22px 7px 23px 10px;
    min-width: 0;
  }
}

/* =========== MISC ========== */
::-moz-selection {
  background: var(--color-neon);
  color: #222542;
}
::selection {
  background: var(--color-neon);
  color: #222542;
}

/* ============ COLOR/ACCESSIBILITY =========== */
.testimonial-card p,
.testimonial-card div,
.testimonial-card strong {
  color: #232742;
}
.testimonial-card img {
  margin-right: 2px;
}

/* ===================== END =================== */
