/* ---------------------------------------------
   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: 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; min-height: 100vh; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ---------------------------------------------
   BRAND COLORS & FONTS (tech_futuristic)
--------------------------------------------- */
:root {
  --color-primary: #253B46;
  --color-secondary: #E3E6E8;
  --color-accent: #D6A15D;
  --color-bg: #161C20;
  --color-surface: #232C33;
  --color-gradient-start: #232C33;
  --color-gradient-end: #253B46;
  --color-neon: #85d7ff;
  --color-error: #EF476F;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-elevate: 0 4px 20px 0 rgba(30,60,85,0.13), 0 1.5px 6px 0 rgba(20,36,59,0.12);
  --shadow-neon: 0 0 8px 2px #85d7ff80, 0 0 16px 2px #D6A15D33;
  --radius-medium: 16px;
  --radius-small: 8px;
  --transition-main: 0.2s cubic-bezier(.5,.2,.2,1);
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
  color: var(--color-secondary);
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------
   TYPOGRAPHY
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem;  }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, li, .content-wrapper > span, .content-wrapper > div {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
  margin-bottom: 0.5em;
}
strong, b { color: var(--color-neon); font-weight: 600; }
.link-arrow, a.link-arrow { color: var(--color-accent); font-family: var(--font-display); transition: color var(--transition-main); }
.link-arrow:hover { color: var(--color-neon); text-decoration: underline; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* ---------------------------------------------
   LAYOUT CONTAINER
--------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-elevate);
  padding: 32px 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  .container { padding: 0 10px; }
  .content-wrapper { padding: 24px 10px; margin-bottom: 28px; }
}

/* ---------------------------------------------
   SECTION SPACING PATTERN
--------------------------------------------- */
section {
  padding: 40px 20px;
  width: 100%;
}
@media (max-width: 768px) {
  section { padding: 24px 5px; margin-bottom: 36px; }
}

/* ---------------------------------------------
   HEADER & NAVIGATION (Desktop & Mobile)
--------------------------------------------- */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 16px rgba(34,48,77,0.15);
  z-index: 1201;
  position: sticky; top: 0; left: 0; width: 100%;
}
header .container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo-area { display: flex; align-items: center; }
.logo-area img { height: 48px; width: auto; filter: drop-shadow(0 0 10px #85d7ff80); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.02em;
  transition: color var(--transition-main);
  padding: 8px 4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}
.button-primary {
  background: linear-gradient(90deg, var(--color-accent) 60%, var(--color-neon) 100%);
  color: #253B46;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 24px;
  border: none;
  box-shadow: var(--shadow-neon);
  transition: box-shadow var(--transition-main),opacity var(--transition-main);
  cursor: pointer;
  margin-left: 16px;
  letter-spacing: 0.01em;
  outline: none;
  display: inline-block;
}
.button-primary:hover, .button-primary:focus {
  box-shadow: 0 0 0 3px var(--color-neon), 0 0 24px 4px #D6A15D44;
  opacity: 0.95;
}
.button-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 24px;
  padding: 9px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: color var(--transition-main), background var(--transition-main),box-shadow var(--transition-main);
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 8px;
  display: inline-block;
}
.button-secondary:hover, .button-secondary:focus {
  color: #fff;
  background: var(--color-accent);
  box-shadow: var(--shadow-neon);
}

/* Burger menu button */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-neon);
  font-size: 2rem;
  margin-left: 18px;
  display: none;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.15s;
  cursor: pointer;
  z-index: 1202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: #192327; }

@media (max-width: 1024px) {
  .main-nav a { font-size: 0.97rem; gap: 14px; }
  .button-primary { padding: 9px 16px; font-size: 0.98rem; }
}
@media (max-width: 900px) {
  header .container { height: auto; }
  .main-nav a, .button-primary { font-size: 0.93rem; }
}
@media (max-width: 768px) {
  header .container {
    height: 64px;
    padding: 0 10px;
  }
  .main-nav {
    display: none;
  }
  .button-primary { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
}

/* ---------------------------------------------
   MOBILE MENU
--------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,34,45,0.96);
  z-index: 1300;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.7,.1,.37,1.1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-accent);
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1401;
  cursor: pointer;
  transition: color var(--transition-main);
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--color-neon); }
.mobile-nav {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.mobile-nav a {
  color: var(--color-neon);
  font-family: var(--font-display);
  font-size: 1.35rem;
  padding: 13px 0;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

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

/* ---------------------------------------------
   CARDS & GRIDS
--------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-elevate);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-neon), 0 8px 24px 0 #253B4633;
  transform: translateY(-3px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
@media (max-width: 768px) {
  .section { margin-bottom: 32px; padding: 24px 7px; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card { min-width: 0; }
}

/* SERVICE CARDS (services.html) */
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-neon);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 22px 22px 22px;
  position: relative;
  min-width: 210px;
  flex: 1 1 270px;
  border: 1.5px solid var(--color-primary);
  transition: box-shadow var(--transition-main), border-color var(--transition-main);
}
.service-card img {
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 5px #85d7ff60);
}
.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 18px 2px #D6A15D44, 0 4px 20px 0 #85d7ff44;
}

@media (max-width: 900px) {
  .service-card { min-width: 180px; }
}
@media (max-width: 600px) {
  .service-card { min-width: 0; padding: 20px 10px; }
}

/* ---------------------------------------------
   FLEXBOX LAYOUTS
--------------------------------------------- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-elevate);
  color: #232C33;
  position: relative;
  flex: 1 1 270px;
  transition: box-shadow var(--transition-main), background var(--transition-main);
}
.testimonial-card p { color: #222; font-size: 1.03rem; margin-bottom: 4px;}
.testimonial-card span { color: var(--color-primary); font-weight: 600; font-family: var(--font-display); }
.testimonial-card .stars {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--color-accent);
  text-shadow: 0 0 8px #D6A15D33;
  letter-spacing: 2px;
}
.testimonial-card:hover { box-shadow: 0 2px 22px 2px #D6A15D42, 0 1.5px 8px 0 #D6A15D17; background: #f2f2f4; }

@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; padding: 18px 14px; gap: 10px; }
}

.badge {
  display: inline-block;
  background: var(--color-neon);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.97em;
  font-weight: 600;
  border-radius: 7px;
  padding: 4px 12px;
  margin-left: 10px;
  margin-top: 5px;
  letter-spacing: 0.045em;
  box-shadow: 0 0 6px #85d7ff50;
  vertical-align: middle;
}

/* Project briefs (references.html) */
.project-brief {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-medium);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-elevate);
  transition: box-shadow var(--transition-main);
}
.project-brief:hover {
  box-shadow: 0 4px 26px 0 #85d7ff33;
}

/* FAQ (process.html) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}
.faq-list li {
  background: var(--color-surface);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-elevate);
  padding: 18px 14px 14px 18px;
  color: var(--color-secondary);
  transition: background var(--transition-main);
}
.faq-list li strong { color: var(--color-neon); font-weight: 700; }

/* ---------------------------------------------
   OVERVIEWS & HIGHLIGHTS
--------------------------------------------- */
.badges img {
  height: 38px;
  margin-right: 16px;
  filter: drop-shadow(0 0 6px #85d7ff45);
}

/* ---------------------------------------------
   CONTACT DETAILS
--------------------------------------------- */
.contact-details {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  margin: 20px 0 15px 0;
}
.address-block, .email-block, .hours-block {
  background: var(--color-surface);
  border-radius: var(--radius-small);
  padding: 14px 18px;
  color: var(--color-secondary);
  min-width: 220px;
  box-shadow: var(--shadow-elevate);
  transition: box-shadow var(--transition-main);
}
.address-block strong, .email-block strong, .hours-block strong {
  color: var(--color-neon);
}
.email-block a { color: var(--color-accent); transition: color var(--transition-main); word-break: break-all; }
.email-block a:hover { color: var(--color-neon); text-decoration: underline; }

@media (max-width: 600px) {
  .contact-details { flex-direction: column; gap: 10px; }
  .address-block, .email-block, .hours-block { min-width: 0; font-size: 0.98em; }
}

/* ---------------------------------------------
   FOOTER
--------------------------------------------- */
footer {
  background: var(--color-primary);
  color: #f2f5f7;
  padding: 0 0 40px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-top {
  margin-top: 30px;
}
.footer-top img { height: 42px; filter: drop-shadow(0 0 7px #85d7ff80); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0 10px 0;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
}
.footer-links a {
  color: #a7ccdd;
  transition: color var(--transition-main);
  padding: 3px 6px;
  border-radius: 6px;
}
.footer-links a:hover, .footer-links a:focus { color: var(--color-accent); background: #22303688; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 0.98em;
  justify-content: center;
  margin-top: 10px;
}
.address, .footer-bottom span, .footer-bottom a {
  color: #b8cedc;
  font-size: 0.98em;
}
.footer-bottom a:hover { color: var(--color-accent); text-decoration: underline; }

@media (max-width: 600px) {
  .footer-links { gap: 8px; font-size: 0.97em; flex-direction: column; }
  .footer-bottom { gap: 8px; flex-direction: column; }
}

/* ---------------------------------------------
   COOKIE BANNER (bottom fixed)
--------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 1400;
  background: #21282f;
  color: #eee;
  padding: 26px 20px 20px 26px;
  box-shadow: 0 -6px 32px 0 #161c20b9;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.25s cubic-bezier(.5,.2,.2,1), opacity 0.2s;
}
.cookie-banner.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cookie-banner .cookie-text {
  flex: 1 1 320px;
  font-family: var(--font-body);
  color: #fff;
  font-size: 0.98rem;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  align-items: center;
}
.cookie-btn {
  border: none;
  border-radius: 18px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  margin-right: 8px;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
}
.cookie-btn.secondary {
  background: #232c33;
  color: var(--color-neon);
  border: 1.5px solid var(--color-neon);
  font-weight: 600;
}
.cookie-btn.settings {
  background: none;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-neon);
  color: #1e2a37;
  box-shadow: 0 0 8px #85d7ffd5;
}
.cookie-btn.settings:hover { background: var(--color-accent); color: var(--color-primary); }

@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 6px 10px 10px;
  }
  .cookie-buttons { gap: 8px; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1600;
  background: rgba(24,19,27,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #151a22;
  border-radius: var(--radius-medium);
  box-shadow: 0 5px 40px 2px #85d7ff44, 0 1.5px 8px 0 #D6A15D22;
  padding: 36px 24px 24px 24px;
  max-width: 400px;
  width: 94vw;
  color: #fff;
  font-family: var(--font-body);
  position: relative;
  animation: cookie-modal-appear 0.3s cubic-bezier(.66,.23,.46,1.11);
}
@keyframes cookie-modal-appear {
  from { opacity: 0; transform: scale(0.89); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-family: var(--font-display);
  color: var(--color-neon);
  font-size: 1.28em;
  margin-bottom: 16px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.cookie-modal .category label {
  font-weight: 500;
  color: #fff;
}
.cookie-modal .category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px; height: 20px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: var(--color-accent);
  cursor: pointer;
  transition: color var(--transition-main);
}
.cookie-modal .close-modal:hover { color: var(--color-neon); }

/* ---------------------------------------------
   MICRO-INTERACTIONS & EFFECTS (tech_futuristic)
--------------------------------------------- */
.card, .testimonials-card, .feature-item, .project-brief, .content-wrapper, .button-primary, .button-secondary, .badge {
  transition: box-shadow 0.18s cubic-bezier(.5,.2,.2,1),transform 0.14s,color 0.14s;
}
.button-primary:active, .button-secondary:active { transform: scale(0.97); }
.badge:hover { box-shadow: 0 0 12px 2px #85d7ffbb; }

/* Decorative neon underline effect for h2 */
h2 {
  position: relative;
}
h2:after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 48px;
  height: 6px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--color-neon) 60%, var(--color-accent) 100%);
  opacity: 0.6;
  pointer-events: none;
}

/* ---------------------------------------------
   GENERAL UTILITY CLASSES
--------------------------------------------- */
.hidden { display: none !important; visibility: hidden !important; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.bold { font-weight: bold; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }

/* ---------------------------------------------
   FIELDSET and FORMS
--------------------------------------------- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  border: 1.5px solid #425067;
  background: #1a232a;
  color: #e3e6e8;
  margin-bottom: 12px;
  transition: border-color var(--transition-main),box-shadow var(--transition-main);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-neon);
  outline: none;
  box-shadow: 0 0 6px #85d7ff70;
}
label { color: var(--color-accent); font-weight: 600; margin-bottom: 3px; display: inline-block; }

/* ---------------------------------------------
   OVERRIDE PRINT STYLES
--------------------------------------------- */
@media print {
  body, html, .container, .content-wrapper, section, main {
    background: #fff !important;
    color: #1a232a !important;
    box-shadow: none !important;
    filter: none !important;
  }
  .header, .footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}
