/* --- 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: #1b1d22;
  color: #f5f5f7;
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a {
  color: #C7A469;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #fff;
}
ul, ol {
  margin-left: 1.5em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* --- CSS Variables (w/fallbacks for older browsers) --- */
:root {
  --color-primary: #23202A;
  --color-primary-dark: #18161c;
  --color-secondary: #C7A469;
  --color-secondary-hover: #e1b76f;
  --color-accent: #ffffff;
  --color-bg-1: #1b1d22;
  --color-bg-2: #23202A;
  --color-bg-hero: #23202A;
  --color-neutral-800: #23202A;
  --color-neutral-600: #312e38;
  --color-card-bg: #23202A;
  --color-testimonial-bg: #f8f8f8;
  --color-testimonial-text: #18161c;
  --neon-blue: #00fff0;
  --neon-purple: #a259ff;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --shadow-card: 0 6px 32px 0 rgba(0,0,0,0.15);
  --radius: 12px;
}

/* --- Typography Scale --- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--color-accent);
  line-height: 1.14;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--color-secondary);
  line-height: 1.18;
}
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--color-accent);
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--color-secondary);
}
p, li, blockquote {
  color: #ececf2;
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font-body);
}
strong {
  color: var(--color-secondary);
  font-weight: 600;
}
blockquote {
  font-style: italic;
  color: var(--color-testimonial-text);
  opacity: 0.99;
  border-left: 4px solid var(--neon-blue);
  padding-left: 16px;
  margin-bottom: 12px;
}

/* --- Layout Container Patterns --- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.card-container,
.card-grid,
.features-grid,
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 290px;
  min-width: 260px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover,
.feature:hover,
.service-card:hover {
  box-shadow: 0 0 0 3px var(--neon-blue), 0 4px 28px 0 rgba(34,224,242,0.13);
  border-color: var(--neon-blue);
  z-index: 2;
}

.feature,
.service-card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 270px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1.5px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.text-section,
.contact-details {
  margin-bottom: 28px;
  padding: 20px 0;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  border-radius: var(--radius);
  box-shadow: 0 3px 18px 0 rgba(50,53,62,0.11);
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card blockquote {
  color: var(--color-neutral-800);
  border-left: 4px solid var(--neon-purple);
}

.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: var(--color-neutral-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 36px 20px;
  margin: 0 auto;
}

/* --- HERO & SPECIAL SECTIONS --- */
.hero, .insights-hero {
  background: var(--color-bg-hero);
  background: linear-gradient(135deg, #23202A 30%, #282a36 65%, #1b1d22 100%);
  padding-top: 64px;
  padding-bottom: 70px;
  border-bottom: 2px solid var(--color-secondary);
}

.hero h1, .insights-hero h1 {
  font-size: 2.8rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hero h2, .insights-hero h2 {
  color: var(--neon-blue);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(0,255,240,0.15);
}
.hero p, .insights-hero p {
  color: #e8e7f3;
  margin-bottom: 22px;
  font-size: 1.12rem;
}
.hero .cta-btn, .insights-hero .cta-btn {
  margin-top: 10px;
}

/* --- HEADER/NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 99;
  box-shadow: 0 2px 8px 0 rgba(36,34,54,0.14);
  position: relative;
  min-height: 62px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
nav.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}
nav.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  position: relative;
  padding: 8px 4px;
  transition: color 0.13s;
}
nav.main-nav a::after {
  content: '';
  display: block;
  height: 2.5px;
  width: 0;
  background: linear-gradient(90deg, var(--neon-blue), var(--color-secondary));
  border-radius: 2px;
  transition: width 0.19s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  color: var(--neon-blue);
}
nav.main-nav a:hover::after, nav.main-nav a:focus::after {
  width: 100%;
}
.cta-btn {
  background: linear-gradient(90deg, var(--neon-blue) 10%, var(--color-secondary) 90%);
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 13px 32px;
  margin-left: 18px;
  box-shadow: 0 2px 15px 0 rgba(0,255,240,0.08);
  transition: background 0.19s, color 0.13s, box-shadow 0.22s;
  position: relative;
}
.cta-btn:hover,
.cta-btn:focus {
  background: linear-gradient(90deg, var(--neon-purple) 8%, var(--color-secondary) 92%);
  color: #fff;
  box-shadow: 0 4px 22px 0 rgba(162,89,255,0.15);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 120;
  font-size: 2rem;
  color: var(--neon-blue);
  background: transparent;
  border: none;
  padding: 6px 8px;
  margin-left: 18px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-toggle:hover {
  background: rgba(49,242,255,0.05);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36, 34, 54, 0.96);
  z-index: 2000;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.7,0,0.3,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 24px 10px 0;
  font-size: 2rem;
  background: none;
  color: var(--color-secondary);
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(199,164,105,0.09);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 38px;
  gap: 28px;
  width: 100%;
  max-width: 350px;
}
.mobile-nav a {
  color: var(--neon-blue);
  font-family: var(--font-body);
  font-size: 1.3rem;
  padding: 10px 0 10px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: rgba(0,255,240,0.075);
  color: var(--color-secondary);
}
@media (max-width: 1100px) {
  nav.main-nav {
    gap: 18px;
  }
  .container {
    max-width: 994px;
  }
}
@media (max-width: 920px) {
  .container {
    max-width: 760px;
  }
}
@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
  }
  nav.main-nav {
    flex: 1 1 100%;
    gap: 14px;
  }
}
@media (max-width: 820px) {
  nav.main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: 5px;
    padding: 11px 23px;
    font-size: 1.07rem;
  }
}
@media (max-width: 570px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 47px;
    padding-bottom: 0;
  }
  .logo img {
    height: 32px;
  }
  .cta-btn {
    margin-left: 0;
    margin-top: 5px;
  }
  .mobile-menu {
    max-width: 100vw;
  }
}

/* --- CARD & FEATURE STYLING --- */
.features-grid {
  gap: 24px;
}
.feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px var(--neon-blue));
}
.feature h3 {
  color: var(--neon-blue);
  font-size: 1.15rem;
}
.feature p {
  color: #dedbe7;
  font-size: 1.02rem;
}

.service-card h2 {
  font-size: 1.22rem;
  color: var(--color-secondary);
}
.service-card p {
  color: #d8d7ea;
  font-size: 1.02rem;
}
.service-card strong {
  color: var(--neon-blue);
}

.card {
  background: var(--color-card-bg);
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary-dark);
  width: 100%;
  padding: 40px 20px 30px 20px;
  color: #f2edfc;
  border-top: 2px solid var(--color-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing: border-box;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-bottom: 4px;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: var(--neon-blue);
}
.footer-contact p, .footer-contact a {
  color: #e7e3f3;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 0 4px var(--neon-blue));
}
.footer-logo {
  align-self: flex-end;
}
.footer-logo img {
  width: 64px;
  height: 64px;
}
@media (max-width: 950px) {
  footer {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo { align-self: flex-start; margin-top: 12px; }
}
@media (max-width: 540px) {
  .footer-logo img {
    width: 38px;
    height: 38px;
  }
  .footer-nav, .footer-contact {
    gap: 8px;
  }
  footer { padding: 25px 10px 14px 10px; }
}

/* --- RESPONSIVE FLEX DIRECTION FOR .text-image-section & MAJOR SECTIONS --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .features-grid,
  .card-grid,
  .services-list,
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 590px) {
  .section, section { padding: 25px 5px; }
}

/* --- BUTTON & LINK ENHANCEMENTS --- */
button, .cta-btn {
  outline: none;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 -2px 22px 0 rgba(33,224,242,0.08);
  z-index: 3000;
  padding: 18px 12px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  font-size: 1rem;
  flex-wrap: wrap;
  border-top: 2px solid var(--color-secondary);
  animation: cookie-slide-in 0.8s cubic-bezier(.40,.95,0,.98);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 200px;
  margin-right: 16px;
}
.cookie-banner-actions {
  display: flex;
  gap: 13px;
}
.cookie-btn {
  border-radius: 99px;
  padding: 10px 23px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  background: var(--neon-blue);
  color: #1b1d22;
  transition: background 0.18s, color 0.13s;
  box-shadow: 0 1px 7px 0 rgba(0,255,240,0.06);
}
.cookie-btn.cookie-accept {
  background: var(--neon-blue);
  color: #18161c;
}
.cookie-btn.cookie-accept:hover,
.cookie-btn.cookie-accept:focus {
  background: var(--color-secondary);
  color: #23202A;
}
.cookie-btn.cookie-reject {
  background: var(--color-neutral-600);
  color: var(--neon-blue);
  border: 1.5px solid var(--neon-blue);
}
.cookie-btn.cookie-reject:hover,
.cookie-btn.cookie-reject:focus {
  background: var(--neon-purple);
  color: #fff;
  border-color: var(--neon-purple);
}
.cookie-btn.cookie-settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.cookie-settings:hover,
.cookie-btn.cookie-settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* --- Cookie Modal --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,34,54,0.83);
  z-index: 3050;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--color-bg-1);
  border-radius: var(--radius);
  padding: 38px 25px 25px 25px;
  min-width: 300px;
  max-width: 97vw;
  box-shadow: 0 8px 38px 0 rgba(0,255,240,0.08); 
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: slideUp 0.38s cubic-bezier(.41,.82,0,1);
}
@keyframes slideUp {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-secondary);
  letter-spacing: 0.01em;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 500;
  color: var(--neon-blue);
  margin-right: 6px;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-blue);
  margin: 0;
}
.cookie-category input[disabled] {
  opacity: 0.6;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.7rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  border-radius: 10px;
  padding: 3px 7px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: rgba(199,164,105,0.10);
}
@media (max-width: 400px) {
  .cookie-modal {
    padding: 18px 5px 12px 5px;
  }
}

/* --- Animations and Micro-interactions --- */
.card, .feature, .service-card, .testimonial-card, .cta-section, .cookie-modal, .cookie-banner {
  transition: box-shadow 0.22s cubic-bezier(.44,.9,.22,1), border 0.19s, background 0.19s, color 0.18s;
}
h1, h2, h3, .cta-btn, .feature img {
  transition: color 0.2s, text-shadow 0.18s;
}
a, nav.main-nav a, .mobile-nav a {
  transition: color 0.18s, background 0.18s;
}
.cta-btn {
  transition: background 0.19s, color 0.13s, box-shadow 0.19s;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--neon-blue);
  outline-offset: 3px;
}

/* --- Miscellaneous --- */
::-webkit-scrollbar {
  width: 8px;
  background: #23202a;
}
::-webkit-scrollbar-thumb {
  background: var(--neon-blue);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

@media (max-width: 520px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.22rem; }
  .hero, .insights-hero { padding-top: 26px; padding-bottom: 38px; }
}

/****** ACCENT LINES AND NEON GLOWS (for tech_futuristic feel) ******/
.card, .feature, .service-card {
  border: 1.5px solid rgba(162,89,255,0.09);
  box-shadow: 0 3px 14px 0 rgba(0,255,240,0.055), var(--shadow-card);
}
.feature img, .footer-logo img, .logo img, .footer-contact img {
  filter: drop-shadow(0 0 10px var(--neon-blue));
}

/****** ENSURE NO OVERLAPPING OR ABSOLUTE CONTENT OVERLAYS ******/
.card, .feature, .service-card, .testimonial-card, .cta-section, .content-wrapper, .text-section {
  box-sizing: border-box;
}

/****** FORMS, INPUTS, TABLES (if present in contact or other pages) ******/
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--neon-blue);
  background: var(--color-bg-2);
  color: #fff;
  margin-bottom: 16px;
  transition: border 0.17s;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/****** UTILITIES ******/
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }

/****** ACCESSIBILITY: High contrast for testimonial text******/
.testimonial-card, .testimonial-card p, .testimonial-card blockquote {
  color: #252328;
  background: #f8f8f8;
}
.testimonial-card strong {
  color: var(--color-secondary);
}

/***** END CSS *****/
