/* --- CSS RESET & BASE --- */
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,main,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;
}
/* HTML5 display-role reset for older browsers */
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display:block;
}
body {
  line-height:1.5;
  min-height:100vh;
  background: #191f31;
  color: #F4F7FA;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: #4CC4B7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #fff;
  text-shadow: 0 0 6px #4CC4B7;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: middle;
}

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
}
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px #28397080;
}
h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #4CC4B7;
}
p, ul, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #F4F7FA;
}
strong, b {
  font-weight: 700;
  color: #4CC4B7;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(28,38,60,0.8);
  border-radius: 18px;
  box-shadow: 0 2px 20px #28397014;
  padding: 32px 28px;
  margin-bottom: 20px;
}

.hero {
  background: linear-gradient(112deg,#283970 60%,#223154 100%);
  border: 0.5px solid #4CC4B733;
  box-shadow: 0 4px 50px 0 #4CC4B714;
  color: #F4F7FA;
  align-items: flex-start;
  padding: 48px 32px 40px 32px;
  position: relative;
}
.hero h1 {
  color: #fff;
  text-shadow: 0 0 26px #4CC4B799;
}

.text-section {
  background: none;
  box-shadow: none;
  padding: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  background: #20263C;
  border-radius: 14px;
  box-shadow: 0 2px 16px #2839701A;
  padding: 26px 22px;
  border: 1px solid #28397033;
  transition: box-shadow 0.2s,border 0.2s,transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 32px #4CC4B766, 0 2px 16px #28397044;
  border: 1.5px solid #4CC4B7AA;
  transform: translateY(-2px) scale(1.018);
  z-index: 1;
}

/* --- FLEXBOX GRIDS --- */
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f4f7fa;
  color: #252c47;
  border-radius: 16px;
  box-shadow: 0 0 16px 0 #28397028;
  margin-bottom: 24px;
  border-left: 4px solid #4CC4B7;
  transition: box-shadow 0.2s,border 0.2s;
  min-width: 0;
}
.testimonial-card blockquote {
  font-style: italic;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08rem;
  color: #222e4a;
  quotes: "\201C""\201D""\2018""\2019";
  margin-bottom: 0;
}
.testimonial-card blockquote:before {content: open-quote; color:#4CC4B7; font-size:1.7em; line-height:0; margin-right:8px;vertical-align:top;}
.testimonial-card strong {
  color: #283970;
  font-weight: 700;
  font-size: 1em;
}

.feature-grid,
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div, .feature-item {
  flex: 1 1 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #222e4a;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 2px 11px #4CC4B71a;
  margin-bottom: 20px;
  transition: box-shadow 0.2s,background 0.2s;
}
.feature-grid > div:hover, .feature-item:hover {
  background: #283970;
  box-shadow: 0 0 24px 0 #4CC4B7;
}
.feature-grid img,
.feature-item img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0px 0px 8px #4CC4B7cc);
  margin-bottom: 8px;
}

/* --- BUTTONS --- */
.cta-primary, .btn, button, input[type="submit"] {
  display: inline-block;
  background: #4CC4B7;
  color: #20263C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  padding: 14px 38px;
  margin-top: 6px;
  margin-bottom: 6px;
  box-shadow: 0 0 16px 0 #4CC4B799, 0 2px 7px #28397033;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s,box-shadow 0.18s,transform 0.18s, color 0.18s;
}
.cta-primary:hover, .btn:hover, button:hover, input[type="submit"]:hover,
.cta-primary:focus, .btn:focus, button:focus, input[type="submit"]:focus {
  background: #283970;
  color: #F4F7FA;
  box-shadow: 0 0 22px #4CC4B7cc, 0 2px 10px #28397099;
  outline: none;
  transform: scale(1.035) translateY(-1px);
}

/* --- NAVIGATION --- */
header {
  background: #20263Ccc;
  border-bottom: 2.5px solid #283970;
  box-shadow: 0 4px 22px #28397016;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.main-nav a {
  color: #F4F7FA;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.93;
  padding: 5px 8px;
  position: relative;
  transition: color 0.18s, text-shadow 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #4CC4B7;
  text-shadow: 0px 0px 8px #4CC4B7cc;
}
header img[alt="HazyFog Akademi"] {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 12px #28397066);
}
.cta-primary {
  margin-left: 12px;
}

/* Hamburger (Mobile menu) Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  line-height:1;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  padding: 8px 12px;
  z-index: 101;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #4CC4B7;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #191f31fb;
  z-index: 200;
  transform: translateX(-105%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.32,0.72,0.63, 1.02),opacity 0.24s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  padding: 18px 18px 8px 12px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4CC4B7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 24px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.95;
  padding: 12px 10px;
  border-radius: 8px;
  transition: background 0.18s,color 0.18s;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #283970;
  color: #4CC4B7;
}

/* --- FOOTER --- */
footer {
  background: #191f31;
  padding: 50px 0 28px 0;
  border-top: 2.5px solid #283970;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #4CC4B7;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: relative;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-shadow: 0 0 8px #4CC4B799;
}
footer address {
  font-style:normal;
  color:#fff;
  font-family:'Open Sans',Arial,sans-serif;
  font-size:1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer address img {
  filter: drop-shadow(0 0 7px #4CC4B7cc);
  margin-right: 7px;
  vertical-align: text-bottom
}
footer p {
  color: #4CC4B7cc;
  font-size: 0.97rem;
  margin-top: 6px;
}

/* --- LISTS, BLOCKQUOTES, ETC. --- */
ul, ol {
  margin: 0 0 20px 24px;
  padding-left: 16px;
}
ul li, ol li {
  margin-bottom: 7px;
  position: relative;
  font-size: 1rem;
}
ul li::marker {
  color: #4CC4B7;
}
blockquote {
  border-left: 4px solid #28397099;
  padding-left: 16px;
  color: inherit;
  margin: 0 0 10px 0;
  font-style: italic;
  background: none;
}

/* --- FORMS (future proof) --- */
input, textarea, select {
  background: #223154;
  color: #F4F7FA;
  border: 1.5px solid #4CC4B722;
  border-radius: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.17s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #4CC4B7;
  box-shadow: 0 0 9px #4CC4B766;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* --- COOKIE BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  width: 100vw;
  background: #222e4aF2;
  color: #fff;
  padding: 24px 20px 24px 22px;
  box-shadow: 0 -4px 36px #183c527a;
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(.46,.13,.64,.99),opacity 0.33s;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner strong {
  color: #4CC4B7;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.cookie-btn, .cookie-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 28px;
  padding: 11px 32px;
  margin: 0 0 0 0;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 12px #4CC4B7cc;
  background: #283970;
  transition: background 0.2s,color 0.18s,box-shadow 0.18s;
}
.cookie-btn.accept {
  background: #4CC4B7;
  color:#20263C;
}
.cookie-btn.reject {
  background: #283970;
  color: #fff;
}
.cookie-btn.settings {
  background: #20263C;
  color: #4CC4B7;
  border: 1.5px solid #4CC4B7;
}
.cookie-btn:hover,.cookie-actions button:hover,
.cookie-btn:focus,.cookie-actions button:focus {
  background: #4CC4B7;
  color:#20263C;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #191f31;
  color: #4CC4B7;
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 400;
  background: rgba(25,31,49,0.86);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #222e4a;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 44px #28397066;
  padding: 40px 30px 34px 30px;
  min-width: 290px;
  max-width: 96vw;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  color: #4CC4B7;
  font-size: 1.28rem;
  margin-bottom: 3px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #F4F7FA;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4CC4B7;
  outline: 1.5px solid #4CC4B7;
  border-radius: 4px;
  margin-top: 2px;
}
.cookie-category input[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.05rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #4CC4B7;
}

/* ---- RESPONSIVE DESIGN (MOBILE FIRST) ---- */
@media (max-width: 1150px) {
  .container {max-width: 98vw;}
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {max-width: 100vw; padding: 0 7px;}
  header .container {padding: 0 5px;}
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-primary {
    font-size: 1.08rem;
    padding: 12px 21px;
    margin: 8px 0 8px 5px;
  }
  .content-wrapper, .hero {
    padding: 18px 11px 22px 11px;
    border-radius: 12px;
  }
  .card,
  .feature-item,
  .feature-grid > div {
    min-width: 92vw;
    flex-basis: 92vw;
    padding: 20px 10px;
  }
  .feature-grid,.features,.card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  footer .container {
    padding: 0 6px;
    gap: 13px;
  }
  .section {
    margin-bottom: 46px;
    padding: 18px 7px; 
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.45rem;}
  h2 {font-size: 1.12rem;}
  .hero {padding: 10vw 2vw 11vw 2vw;}
  .cta-primary, .btn, button, input[type="submit"] {
    font-size: 0.96rem;
    padding: 9px 15vw;
  }
  .feature-item,
  .feature-grid > div,
  .card {
    padding: 11px 5vw;
    min-width:90vw;
  }
}

/* --- ADDITIONAL FUTURISTIC/TECH EFFECTS --- */
.hero:after {
  content: '';
  display: block;
  position: absolute;
  right: -22px; top: 14%;
  width: 78px; height: 140px;
  background: radial-gradient(circle, #4CC4B7 0%, #28397077 70%, transparent 100%);
  filter: blur(26px);
  opacity: 0.60;
  z-index: 0;
  pointer-events:none;
}
.content-wrapper, .hero {
  position: relative;
  overflow: hidden;
}
.content-wrapper:after {
  content: '';
  position: absolute;
  left: 0; bottom: -30px;
  width: 230px; height: 80px;
  background: radial-gradient(circle, #4CC4B7 0%, transparent 80%);
  opacity: 0.09;
  filter: blur(14px);
  z-index: 0;
  pointer-events:none;
}
.card, .feature-item, .feature-grid > div {
  position: relative;
}
.card:before, .feature-item:before, .feature-grid > div:before {
  content: '';
  display: block;
  position: absolute;
  top: -16px; right: 10px;
  width: 37px; height: 23px;
  background: radial-gradient(circle, #4CC4B7 10%, transparent 100%);
  opacity: 0.25;
  pointer-events:none;
  z-index: 0;
}

/* --- FOCUS VISIBLE STYLES --- */
a:focus, .cta-primary:focus, .btn:focus, button:focus, input[type=submit]:focus, .mobile-menu-toggle:focus, .cookie-btn:focus {
  outline: 2.5px solid #4CC4B7;
  outline-offset: 1.5px;
}

/* Utility: hide visually but keep for sr */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
