/* ========================================
   GLOBAL STYLES FOR c2o TECH WEBSITE
   Applied across all pages
======================================== */

:root {
  /* Color Variables */
  --bg-start: #021330;
  --bg-end: #A8EDF3;
  --accent1: #A8EDF3;
  --accent2: #52F1FF;
  /* ✅ Updated from #00C6FF */
  --muted: #E9E9E9;
  --text-light: #EFEFEF;
  --glass: rgba(255, 255, 255, 0.02);
  --glass-2: rgba(255, 255, 255, 0.03);
}

/* ========================================
   GLOBAL RESET & BASE STYLES
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  background: linear-gradient(180deg,
      #021330 0%,
      #021330 30%,
      #2B466C 50%,
      #7CCBDD 70%,
      #A8EDF3 100%);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   GLOBAL LAYOUT & WIDTH RULES
======================================== */
.page {
  max-width: 2550px;
  margin: 0 auto;
  position: relative;
}

/* Content sections - 80% width, centered */
.page > *:not(header):not(footer) {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Header and Footer - 100% width */
.page > header,
.page > footer {
  width: 100% !important;
  max-width: 100% !important;
}

/* Content Container - 80% of page width, centered */
.content-container {
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
}

/* Full-width backgrounds */
.full-width-bg {
  width: 100%;
  position: relative;
}

/* ========================================
   TYPOGRAPHY RULES
======================================== */

/* Headings */
h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.2;
  color: #ffffff;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.3;
  color: #ffffff;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
}

h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
}

h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}

h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
}

/* Body Text */
p,
body,
li,
a,
span,
div {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
}

/* ========================================
   ACCENT COLOR UPDATES
======================================== */

/* Apply accent2 color to all heading accents */
.accent,
.highlight,
.text-accent {
  color: var(--accent2);
}

/* Gradient text with accent colors */
.gradient-text {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   VERTICAL ALIGNMENT RULES
======================================== */

/* Natural top-to-bottom flow */
section {
  display: block;
  position: relative;
}

/* Consistent section spacing */
section+section {
  margin-top: 80px;
}

/* Remove vertical centering unless explicitly needed */
.no-vertical-center {
  align-items: flex-start;
  justify-content: flex-start;
}

/* ========================================
   FOOTER BACKGROUND FIX
======================================== */

/* Footer wrapper with full-width background */
.footer-section {
  margin-top: 150px;
  background: url("media/footer-bg1.png") no-repeat center bottom;
  background-size: cover;
  background-position: center bottom;
  padding-top: 120px;
  padding-bottom: 20px;
  width: 100%;
  position: relative;
}

/* Ensure footer background displays fully on large screens */
@media (min-width: 1920px) {
  .footer-section {
    background-size: 100% auto;
    background-position: center bottom;
    min-height: 600px;
  }
}

/* Footer content box */
.footer {
  max-width: 100%;
  width: 80%;
  margin: 0 auto;
  padding: 70px 60px;
  background: rgba(2, 19, 48, 0.75);
  border-radius: 16px;
  color: #fff;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */

@media (max-width: 1440px) {
  .page > *:not(header):not(footer) {
    width: 85%;
  }

  .content-container {
    width: 85%;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .page > *:not(header):not(footer) {
    width: 90%;
  }

  .content-container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

  p,
  body,
  li,
  a,
  span,
  div {
    font-size: 16px;
  }

  .page > *:not(header):not(footer) {
    width: 95%;
  }

  .content-container {
    width: 95%;
  }

  .footer {
    padding: 50px 25px;
  }
}

/* ========================================
   UTILITY CLASSES
======================================== */

/* Full width section backgrounds */
.section-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Centered content within full-width sections */
.section-content-centered {
  max-width: 100%;
  width: 80%;
  margin: 0 auto;
  padding: 0 20px;
}