/* ----------------------------------------------------
  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;
  background: #F0F3F5;
  color: #31414D;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
strong, b {
  font-weight: 700;
}

/* ---------------------------------------------------
  Root Variables (Fallbacks included)
----------------------------------------------------*/
:root {
  --color-primary: #31414D;
  --color-secondary: #DDB66B;
  --color-accent: #F0F3F5;
  --color-electric-1: #30D8C3;   /* vibrant turquoise */
  --color-electric-2: #FF4272;   /* vivid pink */
  --color-electric-3: #4B65FD;   /* hyper blue */
  --color-electric-4: #F8AF30;   /* energetic orange */
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ----------------------------------------------------
  Layout Containers
-----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 24px 10px;
  }
}

/* ----------------------
  Header & Navigation
-----------------------*/
header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(49,65,77,0.04);
  position: sticky;
  top: 0;
  z-index: 200;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
header img {
  height: 40px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  padding: 8px 4px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
nav a:not(.cta-btn):hover, nav a:not(.cta-btn):focus {
  background: var(--color-electric-1);
  color: #fff;
}

.cta-btn {
  background: linear-gradient(90deg, var(--color-electric-2) 0%, var(--color-electric-4) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  border-radius: 28px;
  padding: 10px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(49,65,77,0.11);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.18s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--color-electric-4) 0%, var(--color-electric-2) 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 18px 0 rgba(49,65,77,0.16);
  color: #fff;
}

/* Hide nav on mobile */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ----------------------
  Mobile Menu
-----------------------*/
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--color-electric-2);
  padding: 8px 14px 8px 8px;
  border-radius: 50%;
  margin-left: 4px;
  display: none;
  z-index: 250;
  transition: background 0.2s, transform 0.2s;
}
.mobile-menu-toggle:active {
  background: var(--color-electric-1);
  color: #fff;
  transform: rotate(-12deg) scale(1.06);
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(49,65,77,0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 900;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 36px;
  color: #fff;
  background: transparent;
  border: none;
  margin: 30px 0 16px 24px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  z-index: 999;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-electric-1);
  transform: scale(1.14) rotate(9deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 32px 32px 32px 40px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 14px 8px 14px 0px;
  transition: background 0.17s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric-2);
  color: #fff;
}
@media (max-width: 500px) {
  .mobile-nav {
    padding: 32px 8vw 24px 7vw;
    gap: 18px;
  }
  .mobile-menu-close {
    margin-left: 12px;
    margin-bottom: 4px;
  }
}

/* ----------------------------------------------------
  Typography
-----------------------------------------------------*/
h1, .hero-section h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--color-electric-2);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-electric-1);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.subheadline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 4px;
}
ul, ol {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
}
li {
  position: relative;
  margin-bottom: 8px;
}
a {
  color: var(--color-electric-3);
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-electric-2);
}
blockquote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-electric-4);
  background: #fffbe9;
  border-left: 6px solid var(--color-electric-2);
  padding: 18px 24px;
  margin: 0 0 8px 0;
  border-radius: 12px 18px 12px 12px;
  box-shadow: 0 1px 8px rgba(49,65,77,0.10);
}
@media (max-width: 900px) {
  h1, .hero-section h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 19px;
  }
  .subheadline {
    font-size: 17px;
  }
}
@media (max-width: 500px) {
  h1, .hero-section h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }
  .subheadline { font-size: 15px; }
  p, ul li, ol li { font-size: 15px; }
}

/* ----------------------
  Hero & Main Sections
-----------------------*/
.hero-section {
  background: linear-gradient(120deg, var(--color-electr ic-1) 0%, var(--color-accent) 90%);
  border-radius: 32px 32px 18px 18px;
  padding: 48px 28px 36px 28px;
  margin-top: 38px;
  box-shadow: 0 6px 26px 0 rgba(34, 192, 178, 0.09), 0 2px 6px 0 rgba(49,65,77,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.hero-section:before {
  content: "";
  display: block;
  position: absolute;
  right: -70px;
  top: -50px;
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, var(--color-electric-2) 10%, var(--color-electric-4) 100%);
  opacity: 0.22;
  border-radius: 50%;
  z-index: 1;
}
.hero-section > * {
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) {
  .hero-section {
    margin-top: 24px;
    padding: 24px 5vw 24px 5vw;
    border-radius: 18px;
  }
  .hero-section:before { display: none; }
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

/* ----------------------
  Flexible Content Layouts
-----------------------*/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(49,65,77,0.10);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 275px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(34, 192, 178, 0.23);
  transform: translateY(-3px) scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 10px;
}

/* ----------------------
  Feature/Service Grid
-----------------------*/
.feature-grid, .service-list, .project-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 18px 0;
}
.feature-grid > div, .service-item, .project-item, .blog-post {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(49, 65, 77, 0.09);
  flex: 1 1 260px;
  padding: 28px 20px;
  min-width: 230px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.13s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .service-item:hover,
.project-item:hover, .blog-post:hover {
  box-shadow: 0 4px 14px 0 rgba(49,65,77,0.17);
  transform: translateY(-2px) scale(1.025);
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .project-list, .blog-list {
    gap: 18px;
  }
  .feature-grid > div, .service-item, .project-item, .blog-post {
    flex: 1 1 240px;
    padding: 16px 10px;
    min-width: 160px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .service-list, .project-list, .blog-list {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .service-item, .project-item, .blog-post {
    min-width: 0;
    width: 100%;
  }
}
.service-price {
  background: var(--color-electric-4);
  color: #fff;
  font-size: 16px;
  border-radius: 14px;
  margin-left: 10px;
  padding: 2px 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px 0 rgba(248,175,48, 0.12);
}

/* ----------------------
  List Styles & Icon List
-----------------------*/
.icon-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  margin: 20px 0 0 0;
  font-size: 17px;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.icon-list img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 3px rgba(49,65,77,0.08));
}
@media (max-width: 600px) {
  .icon-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
  }
}

/* ----------------------
  Special Section Patterns
-----------------------*/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border-left: 5px solid var(--color-electric-2);
  background: #fffaf3;
  border-radius: 10px 5px 16px 5px;
  padding: 18px 20px;
}

.results-section {
  background: #f0faff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(49,65,77,0.07);
  padding: 18px 26px;
  margin: 28px 0;
  font-size: 17px;
}
@media (max-width: 900px) {
  .results-section {
    padding: 12px 10px;
    font-size: 15px;
  }
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 15px 26px 18px 15px;
  padding: 20px 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 14px 0 rgba(49,65,77,0.10);
  border: 2px solid var(--color-electric-1);
  position: relative;
  min-width: 240px;
}
.testimonial-card blockquote {
  background: none;
  padding: 0;
  border: none;
  color: var(--color-primary);
  font-size: 20px;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-electric-2);
  font-size: 17px;
  margin-left: 8px;
}
@media (max-width: 800px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 6px;
  }
  .testimonial-meta {
    font-size: 15px;
    margin-left: 0;
  }
  .testimonial-card blockquote {
    font-size: 16px;
  }
}

/* ----------------------
  Contact Section
-----------------------*/
.contact-details {
  display: flex;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 16px;
  margin-bottom: 20px;
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details img {
  width: 26px;
  height: 26px;
}
@media (max-width: 700px) {
  .contact-details {
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
  }
}

/* ----------------------
  Footer
-----------------------*/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 32px 0 0 0;
  margin-top: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 12px;
}
footer menu {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
footer menu a {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 16px;
  opacity: 0.88;
  letter-spacing: 0.01em;
  transition: opacity 0.17s, color 0.17s;
}
footer menu a:hover, footer menu a:focus {
  color: var(--color-electric-4);
  opacity: 1;
}
footer address {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
  margin-right: 10px;
}
footer .cta-btn {
  margin-left: 18px;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .cta-btn {
    margin-left: 0;
  }
}

/* ----------------------------------------------------
  Spacing & Gaps
-----------------------------------------------------*/
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  main > section {
    margin-bottom: 32px;
    padding: 24px 10px;
  }
}

/* ----------------------------------------------------
  Cookie Consent Banner
-----------------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 26px 0 rgba(49,65,77,0.13);
  padding: 20px 8vw 22px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 1000;
  animation: cc-slide-up 0.7s cubic-bezier(.33,1.2,.76,1.03) both;
}
@keyframes cc-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  font-size: 15px;
  color: var(--color-primary);
  flex: 1 1 60%;
  margin: 0 8px 0 0;
}
.cookie-btn {
  background: var(--color-electric-2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  margin-right: 10px;
  transition: background 0.17s, transform 0.12s;
  box-shadow: 0 2px 8px 0 rgba(49,65,77,0.09);
  cursor: pointer;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-electric-1);
  transform: scale(1.07);
}
.cookie-btn.cookie-secondary {
  background: var(--color-electric-4);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 4vw 18px 4vw;
  }
  .cookie-btn { width: 100%; margin: 0 0 6px 0; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1100;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(49,65,77,0.77);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cm-fade-in 0.33s linear both;
  pointer-events: auto;
}
@keyframes cm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 46px 0 rgba(49,65,77,0.19);
  max-width: 96vw;
  min-width: min(340px, 98vw);
  padding: 38px 32px 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cm-slide-in 0.25s cubic-bezier(.64,.08,.17,1.12) both;
}
@keyframes cm-slide-in {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 23px;
  color: var(--color-electric-2);
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f6f6f8;
  border-radius: 8px;
  padding: 15px 12px;
  font-size: 16px;
}
.cookie-category .toggle {
  margin-left: auto;
}
.cookie-modal .modal-action-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 17px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: var(--color-electric-2);
  cursor: pointer;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-electric-1);
  transform: rotate(12deg) scale(1.10);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 8px 18px 8px;
  }
}

/* Custom Toggle (switch) */
.toggle {
  position: relative;
  width: 46px;
  height: 23px;
}
.toggle input { display: none; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #d6d9de;
  border-radius: 23px;
  transition: background 0.18s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px 0 rgba(49,65,77,0.14);
  transition: transform 0.19s;
}
input:checked + .toggle-slider {
  background: var(--color-electric-2);
}
input:checked + .toggle-slider:before {
  transform: translateX(23px);
}

/* ----------------------
  Utilities & Animations
-----------------------*/
.shadow-xl {
  box-shadow: 0 8px 36px rgba(49,65,77,0.16);
}
.rounded-xxl {
  border-radius: 38px;
}
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.39,1.09,.41,1) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Micro-interactions */
.button-bounce {
  animation: bounce 0.22s cubic-bezier(.5,1.35,.44,1.1) both;
}
@keyframes bounce {
  0%   { transform: scale(1) }
  60%  { transform: scale(1.15) }
  100% { transform: scale(1) }
}

/* ----------------------
  Miscellaneous Fixes
-----------------------*/
::selection {
  background: var(--color-electric-1);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  background: #f0f3f5;
}
::-webkit-scrollbar-thumb {
  background: var(--color-electric-1);
  border-radius: 6px;
}

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