/* ===== 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 {
  background: #131624;
  color: #FAFAFA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  vertical-align: middle;
}
a {
  color: #7FD37D;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover,
a:focus {
  color: #1E375A;
}
ul, ol {
  list-style: none;
}

/* ===== VARIABLES & FONTS ===== */
:root {
  --color-primary: #1E375A;
  --color-secondary: #7FD37D;
  --color-accent: #FAFAFA;
  --color-bg-dark: #131624;
  --color-bg-card: #1A233A;
  --color-bg-footer: #16213A;
  --color-neon-blue: #3bb6ff;
  --color-neon-green: #53ffb0;
  --shadow-1: 0 4px 32px rgba(34, 238, 246, 0.08);
  --shadow-2: 0 2px 12px rgba(26, 36, 58, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --gradient-primary: linear-gradient(90deg, #1E375A 0%, #213969 100%);
  --gradient-accent: linear-gradient(90deg, #49f6ff 0%, #7fd37d 100%);
  --font-display: 'Oswald', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (max-width: 480px) {
  html { font-size: 14px; }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
  margin-bottom: 18px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, li, blockquote {
  font-family: var(--font-body);
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 12px;
}
blockquote {
  font-size: 1.15rem;
  color: #222e43;
  background: rgba(250, 250, 250, 0.8);
  border-left: 3px solid #53ffb0;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}
strong {
  color: var(--color-primary);
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}

/* ===== FLEX LAYOUTS ===== */
.feature-grid, .expertise-grid, .project-list, .project-card-grid, .content-grid, .team-list, .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 18px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { 
  box-shadow: 0 6px 48px 0 rgba(61,248,233,0.20);
  transform: translateY(-4px) scale(1.02);
}
.team-list {
  gap: 24px;
  margin-bottom: 28px;
}
.team-member {
  background: var(--color-bg-card);
  box-shadow: var(--shadow-2);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  min-width: 260px;
  flex: 1 1 210px;
  margin-bottom: 20px;
}
.expertise-grid > div {
  flex: 1 1 140px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  padding: 14px 8px;
  background: rgba(31, 55, 90, 0.7);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  margin-bottom: 18px;
}
.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;
  margin-bottom: 28px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #FAFAFA;
  color: #1E375A;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 18px 0 rgba(46, 255, 212, 0.13);
  margin-bottom: 20px;
  min-width: 240px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  margin-bottom: 18px;
}
.project-list > div, .project-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  padding: 20px 17px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 256px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.project-list > div:hover, .project-card:hover {
  box-shadow: 0 8px 40px 0 #53ffb034;
  transform: translateY(-2px) scale(1.012);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--gradient-primary);
  box-shadow: 0 4px 36px 0 #141d27bd;
  padding: 70px 0 60px 0;
  margin-bottom: 60px;
  border-radius: 0 0 46px 46px;
  position: relative;
}
.hero-section h1 {
  color: #FAFAFA;
  text-shadow: 0 2px 14px #49f6ff40;
  margin-bottom: 18px;
}
.hero-section p {
  color: #eeeeee;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

/* ===== BUTTONS ===== */
.button, .button-primary, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 2.1em;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  transition: background 0.20s, color 0.20s, transform 0.18s, box-shadow 0.22s;
  cursor: pointer;
  margin-top: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 28px 0 #3bb6ff10;
  outline: none;
  position: relative;
  z-index: 1;
}
.button-primary {
  background: var(--color-secondary);
  color: #1E375A;
  box-shadow: 0 2px 10px 0 #53ffb04a;
}
.button-primary:hover, .button-primary:focus {
  background: #53ffb0;
  color: #1E375A;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 8px 28px 0 #49f6ff50, 0 2px 6px 0 #1e375a11;
}
.button-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--color-secondary);
  color: #1E375A;
  border-color: var(--color-secondary);
}
.button:active {
  transform: scale(0.96);
}

/* ===== HEADER & NAVBAR ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(25, 35, 58, 0.90);
  padding: 18px 26px 18px 20px;
  box-shadow: 0 3px 36px 0 #1a233a2d;
  position: relative;
  z-index: 30;
}
.logo-link img {
  height: 42px;
  margin-right: 14px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.03rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.20s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #1E375A;
  text-decoration: none;
}
header .button-primary {
  margin-left: 18px;
  margin-top: 0;
  margin-bottom: 0;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 13px;
  right: 18px;
  z-index: 120;
  background: var(--color-secondary);
  color: #1E375A;
  font-size: 2.2rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 5px 13px 6px 13px;
  box-shadow: 0 2px 12px 0 #53ffb048;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #53ffb0;
  color: #18213A;
  box-shadow: 0 6px 20px 0 #49f6ff44;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25, 35, 58, 0.98);
  box-shadow: 0 0 60px 0 #49f6ff22;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.77,.42,.33,.95);
  display: flex;
  flex-direction: column;
  padding: 0 18px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #53ffb0;
  font-size: 2.15rem;
  background: none;
  border: none;
  margin: 28px 0 16px 0;
  align-self: flex-end;
  transition: color .18s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FAFAFA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #FAFAFA;
  font-size: 1.35rem;
  font-family: var(--font-display);
  padding: 14px 8px;
  border-radius: var(--radius-md);
  transition: background 0.20s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #1E375A;
}
@media (max-width: 990px) {
  header {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 98vw;
  }
  .logo-link img {
    height: 38px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  header .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 6vw;
  }
}

/* ===== CARDS, FEATURES, PROJECTS ===== */
.feature-grid > div, .project-list > div, .project-card, .expertise-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: 24px 16px 16px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.16s;
  position: relative;
}
.feature-grid > div:hover, .project-card:hover, .expertise-grid > div:hover {
  box-shadow: 0 10px 34px 0 #7fd37d34;
  transform: translateY(-2px) scale(1.017);
}
.feature-grid img, .expertise-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  filter: drop-shadow(0 0 11px #53ffb033);
}

/* ===== CONTACT INFO ===== */
.contact-info {
  gap: 24px;
  margin: 26px 0 12px 0;
}
.contact-info > div {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1 1 142px;
  padding: 18px 12px 14px 12px;
  margin-bottom: 20px;
}
.contact-info img {
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
}

/* ===== SECTION & GRID RESPONSIVE ===== */
@media (max-width: 768px) {
  .feature-grid, .project-card-grid, .content-grid, .team-list, .expertise-grid, .contact-info, .project-list {
    flex-direction: column;
    gap: 18px;
  }
  .section, .hero-section {
    padding: 22px 8px;
  }
  .hero-section {
    border-radius: 0 0 28px 28px;
    padding: 50px 0 35px 0;
    margin-bottom: 38px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 670px) {
  .container {
    max-width: 100vw;
    padding: 0 3vw;
  }
}
@media (max-width: 540px) {
  .section {
    padding: 10px 2px;
    margin-bottom: 34px;
  }
  .card, .testimonial-card {
    padding: 14px 6px;
  }
  .feature-grid > div, .project-card, .expertise-grid > div {
    padding: 16px 7px 8px 9px;
  }
}
@media (max-width: 430px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.14rem; }
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-bg-footer);
  color: #b4d4da;
  font-size: .98rem;
  padding: 32px 0 10px 0;
  margin-top: 40px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 0 26px #3bb6ff18;
}
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #7FD37D;
  margin: 0 3px;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: color 0.20s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #3bb6ff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.85;
}
.footer-contact p {
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  footer {
    font-size: 0.89rem;
    padding: 20px 0 6px 0;
    border-radius: 18px 18px 0 0;
  }
  .footer-nav { flex-direction: column; gap: 6px; }
  .footer-contact { font-size: 0.85rem; }
}

/* ===== TESTIMONIAL & REVIEW SECTIONS ===== */
.testimonial-card {
  box-shadow: 0 4px 16px 0 #43dedf20;
  background: #FAFAFA;
  color: #283a5a;
  font-size: 1.05rem;
}
.testimonial-card blockquote {
  font-size: 1.16rem;
  border-left: 3px solid #7FD37D;
  color: #1E375A;
  background: #f3fcf3;
  margin-bottom: 4px;
}
.testimonial-card p {
  color: #2a335a;
}

/* ==== PUBLISH LIST SPECIAL ===== */
ul > li {
  margin-bottom: 25px;
  padding-bottom: 13px;
  border-bottom: 1.5px solid #23355333;
}
ul > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ==== MICRO-INTERACTIONS / TRANSITIONS ===== */
a, .button, .card, .project-card, .feature-grid > div, .team-member, .testimonial-card, .expertise-grid > div {
  transition: box-shadow 0.20s, color 0.17s, background 0.2s, transform 0.18s;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #18213A;
  color: #FAFAFA;
  padding: 26px 10px 18px 10px;
  box-shadow: 0 -2px 30px #0092e60e;
  z-index: 800;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: transform 0.35s cubic-bezier(.77,.42,.33,.95), opacity 0.2s;
  border-radius: 26px 26px 0 0;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .button {
  margin: 0 8px;
}
.cookie-banner .button-primary {
  background: var(--color-secondary);
  color: #1E375A;
}
.cookie-banner .button-secondary {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background: none;
}
.cookie-banner .button-secondary:hover {
  background: var(--color-secondary);
  color: #1E375A;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 1002;
  background: rgba(31, 39, 68, 0.92);
  align-items: center;
  justify-content: center;
  transition: opacity 0.20s;
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
}
.cookie-modal-content {
  background: #FAFAFA;
  color: #1E375A;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 44px #53ffb024;
  max-width: 380px;
  width: 94vw;
  padding: 34px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  color: #1E375A;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 24px; height: 24px;
  border-radius: 5px;
  margin-right: 8px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 14px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #7FD37D;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #1E375A;
}
@media (max-width: 430px) {
  .cookie-modal-content { padding: 18px 4vw 14px 4vw; }
}

/* ======= FOCUS OUTLINE ======= */
:focus-visible {
  outline: 2px solid #7FD37D;
  outline-offset: 2px;
}

/* ======= UTILS / EXTRA SPACING ======= */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ======= MISC ======= */
::-webkit-scrollbar {
  width: 8px;
  background: #1E375A;
}
::-webkit-scrollbar-thumb {
  background: #7FD37D;
  border-radius: 6px;
}
::selection {
  background: #53ffb0;
  color: #283a5a;
}

/****** ENSURE ALL CARDS/SECTIONS HAVE SPACING ******/
.section + .section, .section + section {
  margin-top: 60px;
}
.card + .card,
.testimonial-card + .testimonial-card,
.project-card + .project-card {
  margin-top: 24px;
}

/***** ENSURE NO FLEX OVERLAP *****/
.feature-grid > div,
.expertise-grid > div,
.team-list > .team-member,
.card-container > .card,
.contact-info > div,
.project-list > div,
.project-card-grid > .project-card {
  margin-right: 0;
  margin-bottom: 20px;
  min-width: 0;
}

/****** DARK-LIGHT ENFORCE CONTRAST IN TESTIMONIALS ******/
.testimonial-card, .testimonial-card blockquote, .testimonial-card p, .testimonial-card strong {
  color: #1E375A !important;
  background: #FAFAFA !important;
}

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