/* ---------- 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  background: #111C28;
  color: #F9FAFB;
  min-height: 100vh;
  letter-spacing: 0.03em;
  font-size: 16px;
}

/* ---------- FONT FACE ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700,800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #183153;
  --secondary: #5DAC81;
  --accent: #F9FAFB;
  --bg-dark: #111C28;
  --bg-card: #18213B;
  --text-main: #F9FAFB;
  --text-dark: #1A2638;
  --neon-teal: #5DAC81;
  --neon-pink: #FF6FD8;
  --btn-gradient: linear-gradient(90deg, #5DAC81 0%, #42E6A4 100%);
  --shadow-main: 0 6px 24px 0 rgba(0,0,0,0.18);
  --radius-main: 18px;
  --radius-btn: 28px;
  --shadow-card: 0 4px 24px rgba(90,172,129,0.14);
  --z-cookiebanner: 10000;
}

/* ---------- UTILITY CLASSES ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 40px;
  }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}
p, li, blockquote {
  color: var(--text-main);
  margin-bottom: 0.35em;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.subheadline {
  font-size: 1.15rem;
  opacity: 0.88;
  font-weight: 400;
  margin-bottom: 1em;
  color: var(--text-main);
}
a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #42E6A4;
  text-decoration: underline;
}
strong {
  font-weight: 600;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 1em;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(24,49,83,0.13);
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.logo img {
  height: 52px;
  display: block;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 4px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: rgba(90,172,129,0.14);
  color: var(--secondary);
}
.btn.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 26px;
  box-shadow: 0 2px 12px 0 rgba(66,230,164,0.13);
  transition: background 0.22s, transform 0.16s, box-shadow 0.18s;
  outline: none;
  text-shadow: 0 1px 4px rgba(24,49,83,0.18);
  position: relative;
  overflow: hidden;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: linear-gradient(90deg, #42E6A4 0%, #66FFD8 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 28px 0 rgba(66,230,164,0.20);
}
.btn {
  background: rgba(90,172,129,0.12);
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 32px;
  margin-bottom: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.btn:hover, .btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(90,172,129,0.18);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  margin-left: 30px;
  cursor: pointer;
  z-index: 1006;
  outline: none;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #66FFD8;
}
.mobile-menu {
  display: none;
}

/* --------- RESPONSIVE NAVIGATION --------- */
@media (max-width: 1024px) {
  header .container {
    flex-wrap: wrap;
    min-height: unset;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo img {
    height: 40px;
  }
  nav.main-nav {
    gap: 18px;
  }
  .btn.btn-primary {
    margin-left: 10px;
    font-size: 1rem;
    padding: 10px 22px;
  }
}
@media (max-width: 850px) {
  nav.main-nav, .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1005;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(100deg, #18213B 70%, #2e364c 100%);
    z-index: 1020;
    flex-direction: column;
    align-items: flex-end;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.8,0,0.2,1), opacity 0.4s cubic-bezier(0.5,0.4,0.3,1);
    box-shadow: -12px 0 48px rgb(0 0 0 / 40%);
    gap: 0;
  }
  .mobile-menu.open {
    transform: translateX(0%);
    opacity: 1;
    transition: transform 0.34s cubic-bezier(0.6,0,0.3,1.2), opacity 0.34s cubic-bezier(0.7,0.1,0.2,1.1);
  }
  .mobile-menu-close {
    background: none;
    color: #E9FFFB;
    border: none;
    font-size: 2.1rem;
    margin: 20px 36px 20px 0;
    cursor: pointer;
    outline: none;
    transition: color 0.22s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    color: #42E6A4;
  }
  nav.mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 0 44px 20px 44px;
  }
  .mobile-nav a {
    width: 100%;
    padding: 18px 0 15px 8px;
    font-size: 1.18rem;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    border-radius: 10px;
    transition: background 0.15s, color 0.13s;
    outline: none;
    margin-bottom: 0;
    display: block;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0px 1.5px 8px #1A2638;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: rgba(90,172,129,0.18);
    color: #42E6A4;
  }
}

@media (max-width: 568px) {
  nav.mobile-nav {
    padding: 0 14px 0 18px;
  }
}

/* ---------- HERO SECTION ---------- */
.hero {
  background: linear-gradient(120deg, #183153 74%, #5DAC81 110%);
  padding: 60px 0 50px 0;
  position: relative;
  margin-bottom: 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 18px;
}
.hero h1 {
  color: #fff;
  text-shadow: 0px 4px 16px #193a59ab;
}
@media (max-width: 850px) {
  .hero {
    padding: 38px 0 30px 0;
  }
  .hero .content-wrapper {
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}

/* ---------- FEATURES SECTION ---------- */
.features {
  background: var(--bg-dark);
  border-bottom: 1.5px solid rgba(92, 172, 129, 0.12);
}
.feature-grid,
.features .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  justify-content: flex-start;
}
.features .content-wrapper > ul > li, .feature-grid > li {
  min-width: 220px;
  flex: 1 1 220px;
  padding: 24px 22px 20px 22px;
  background: var(--bg-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  border: 1.2px solid rgba(90, 172, 129,0.14);
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, border 0.18s, transform 0.12s;
}
.feature-grid > li:hover,
.features .content-wrapper > ul > li:hover {
  box-shadow: 0 8px 32px rgba(90,172,129,0.31);
  border: 1.2px solid var(--secondary);
  transform: translateY(-3px) scale(1.015);
}
.feature-grid img {
  height: 40px;
  width: 40px;
  filter: drop-shadow(0 1px 6px #48e7a55c);
}

/* ---------- SERVICES SECTION ---------- */
.services {
  background: var(--bg-card);
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 20px 0;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 235px;
  flex: 1 1 270px;
  background: #172140;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-main);
  border: 1.2px solid rgba(92,172,129,0.12);
  margin-bottom: 20px;
  padding: 30px 22px 28px 22px;
  gap: 14px;
  position: relative;
  transition: box-shadow 0.17s, border 0.16s, transform 0.12s;
}
.service-card:hover {
  box-shadow: 0 10px 40px 0 rgba(66,230,164,0.08), 0 8px 38px rgba(90,172,129,0.24);
  border: 1.2px solid var(--secondary);
  transform: translateY(-4px) scale(1.015);
}
.price {
  margin-top: 10px;
  color: #66FFD8;
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
  background: var(--accent);
  padding: 30px 0 50px 0;
  border-top: 1.7px solid rgba(90, 172, 129, 0.10);
}
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: var(--text-dark);
  border-radius: var(--radius-main);
  box-shadow: 0 4px 24px 0 rgba(90,172,129,0.10), 0 2px 8px 0 rgba(24,49,83,0.10);
  padding: 20px 32px;
  margin-bottom: 20px;
  position: relative;
  border-left: 5px solid var(--secondary);
  min-width: 230px;
  flex: 1 1 100%;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 500;
  color: #1A2638;
  margin: 0 0 0 0;
  line-height: 1.5;
  quotes: "\201C" "\201D" "\2018" "\2019";
  position: relative;
}
.testimonial-author {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  margin-left: auto;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
}

/* ---------- LEGAL / TEXT SECTION CARDS ---------- */
.legal .content-wrapper, .about .content-wrapper {
  gap: 36px;
}
.text-section {
  background: var(--bg-card);
  border-radius: var(--radius-main);
  padding: 24px 18px 18px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.text-section h2, .text-section h3 { color: var(--secondary); }
.text-section ul, .text-section ol {
  margin-left: 16px;
}
.text-section a {
  color: var(--secondary);
  font-weight: 500;
}

/* ---------- CARD CONTAINERS ---------- */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- OTHER FLEXBOX LAYOUTS ---------- */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ---------- COURSE CURRICULUM / PRICE OVERVIEW ---------- */
.course-curriculum, .course-prices ul, .coaching-prices ul, .price-overview ul, .project-prices ul {
  background: var(--bg-dark);
  padding: 18px 18px 14px 18px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(90,172,129,0.07);
  margin-bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--accent);
  font-size: 1rem;
}
.course-prices h3, .coaching-prices h3, .price-overview h3, .project-prices h3 { color: var(--secondary); font-size: 1.05rem; }

/* -------- CONTACT SECTION --------- */
.contact-details-block {
  background: var(--bg-card);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.contact-hint {
  margin-top: 14px;
  font-style: italic;
  color: #ADEDD1;
}

/* ---------- FOOTER ---------- */
footer {
  background: #161B2D;
  border-top: 2px solid var(--secondary);
  padding: 38px 0 20px 0;
  margin-top: 60px;
  color: var(--accent);
  font-size: 0.96rem;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #b2ece6;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s;
  letter-spacing: 0.01em;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #42E6A4;
}
.contact-details {
  font-size: 0.98em;
  color: #dbefff;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
.contact-details strong {
  color: #66FFD8;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.footer-branding img {
  height: 44px;
  margin-bottom: 4px;
}
.tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
  font-weight: 600;
  font-size: 1.10rem;
  opacity: 0.82;
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #111C28;
  color: #fff;
  border-top: 2.5px solid #5DAC81;
  box-shadow: 0 -4px 32px rgba(24,49,83,0.13);
  padding: 22px 12px 18px 12px;
  z-index: var(--z-cookiebanner);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform 0.32s cubic-bezier(0.8,0,0.23,1);
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-banner-content {
  max-width: 600px;
  font-size: 1rem;
  color: #f3fcf9;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner .btn, .cookie-banner .btn-primary {
  font-size: 1rem;
  padding: 8px 22px;
  margin: 0 4px;
  box-shadow: 0 2px 12px rgba(90,172,129,0.09);
}
.cookie-banner .btn-settings {
  background: rgba(90,172,129,0.13);
  color: #66FFD8;
  font-weight: 600;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* ---------- COOKIE MODAL ---------- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: calc(var(--z-cookiebanner) + 10);
  left:0; top:0; width:100vw; height:100vh;
  background: rgba(17,28,40,0.86);
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #1A2638;
  color: #fff;
  padding: 32px 22px 28px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 60px 0 rgba(90,172,129,0.11);
  min-width: 320px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal-content h3 {
  color: #42E6A4;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #203756;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label{
  font-weight: 500;
}
.cookie-toggle {
  accent-color: #5DAC81;
  height: 20px;
  width: 20px;
}
.cookie-modal-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  right: 20px; top: 18px;
  background: none; border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  opacity: 0.8;
}
.cookie-modal-close:hover {
  color: #5DAC81;
  opacity: 1;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
  .card-container, .card-grid, .content-grid, .feature-grid, .service-cards {
    gap: 16px;
  }
  .testimonial-card {
    padding: 20px 12px;
    font-size: 0.99em;
  }
  .footer-branding img {
    height: 35px;
  }
}
@media (max-width: 840px) {
  .container {
    max-width: 97vw;
  }
  .footer-branding img {
    height: 22px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px; padding-right: 10px; max-width: 100vw;
  }
  .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .service-cards, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 14px 8px;
  }
  .features .content-wrapper > ul > li, .feature-grid > li,
  .service-card {
    min-width: unset;
    padding: 16px 11px 12px 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ---------- ACCESSIBILITY & FOCUS STYLES ---------- */
a, button, .btn, input, textarea {
  outline: none;
  transition: box-shadow 0.15s, border 0.13s, outline 0.13s;
}
a:focus, button:focus, .btn:focus {
  box-shadow: 0 0 0 3px #5DAC81aa;
}

/* ---------- SCROLLBAR (Webkit) ---------- */
::-webkit-scrollbar {
  width: 10px;
  background: #172140;
}
::-webkit-scrollbar-thumb {
  background: #5DAC81;
  border-radius: 6px;
}

/* ---------- MICRO-INTERACTIONS ---------- */
.card:hover::after, .service-card:hover::after, .feature-grid > li:hover::after {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1.5px solid #5DAC81;
  opacity: 0.27;
  animation: fadeIn 0.13s;
}

/* ---------- CUSTOM CLASSES FOR SPACING ---------- */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.gap-20 { gap: 20px !important; }
.pt-20 { padding-top: 20px !important; }

/* ---------- OVERRIDES & EDGE CASES ---------- */
.service-cards > li, .service-cards > .service-card {
  margin-bottom: 20px;
}
.footer-menu a:last-child { margin-bottom: 0; }

/* Prevent hovering overlap for mobile menu */
@media (max-width: 850px) {
  body, html {
    overscroll-behavior: none;
  }
}

/* Hide scroll behind cookie modal */
body.cookie-modal-open {
  overflow: hidden !important;
}

/* ---------- END ---------- */
