/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ROOT VARIABLES ===== */
:root {
  --text-color: #000000;
  --background: #000000;
  --accent-blue: #42b8e7;
  --accent-red: #f06b6b;
  --accent-gray: #a0a0a0;
  --glass-white: rgba(158, 208, 231, 0.24);
  --jet-black: #000000;
  --border-color: rgba(0, 0, 0, 0.8); /* Border color for sections */
  --transition-speed: 0.3s;
  --heading-font: 'Orbitron', sans-serif;
  --body-font: 'Roboto', sans-serif;
}

/* ===== BODY STYLES ===== */
html, body {
  width: 100%;
  height: 100%;
  font-family: var(--body-font);
  background: var(--background);
  color: var(--text-color);
  overflow-x: hidden;
}

body {
  background-image: url('/assets/images/background1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* ===== GLOBAL FONT STYLES ===== */
h1, h2, h3, h4, .page-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: black;
  text-shadow: 2px 2px 5px rgba(221, 216, 216, 0.6);
}

/* ===== BOLD & 3D TEXT INSIDE BOXES ===== */
.info-container p, 
.glass-box p, 
.bullet-points-container ul li, 
.info-list li {
  font-weight: 900;
  font-size: 1.1rem;
  color: black;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 3D Text Effect */
}

/* ===== HEADER ===== */
.site-header {
  background: var(--glass-white);
  border-bottom: 2px solid var(--jet-black);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-title {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

/* ===== MAIN CONTAINER ===== */
.main-container {
  width: 50%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--glass-white);
  border-top: 2px solid var(--jet-black);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.6);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links a {
  color: var(--jet-black);
  text-decoration: none;
  font-weight: 700;
}

/* ===== SECTIONS & HEADINGS ===== */
.section {
  margin-bottom: 40px;
}

.page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

/* ===== GLASS BOX / INFO SECTIONS - 3D EFFECT + OPTIONAL BORDER ===== */
.glass-box, 
.info-container, 
.bullet-points-container {
  background: var(--glass-white);
  backdrop-filter: blur(4px);
  border: 2px solid var(--border-color); /* Optional border */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.6); /* 3D Effect */
  transition: transform var(--transition-speed);
}

.glass-box:hover, 
.info-container:hover, 
.bullet-points-container:hover {
  transform: translateY(-5px);
}

/* ===== BULLET POINTS FIX - OFFSET PROPERLY ===== */
.info-list {
  list-style-type: disc;
  margin-left: 30px;
  padding-left: 20px;
}

.bullet-list {
  list-style-type: disc;
  margin-left: 30px;
  padding-left: 20px;
}

/* Ensures nested bullet points have correct spacing */
.info-list ul, .bullet-list ul {
  margin-left: 20px;
  list-style-type: circle;
}

/* ===== CHARTS SECTION (FIXED) ===== */
.charts-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 30px;
}

/* Flexbox to FORCE two charts side by side */
.charts-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  max-width: 900px;
  width: 100%;
}

.chart-box {
  flex: 0 0 50%; /* Prevents the box from growing or shrinking */
  min-width: 350px;
  max-width: 450px;
  height: 350px;
  background: rgba(218, 226, 230, 0.144);
  padding: 15px;
  border-radius: 8px;
  border: 2px solid var(--border-color); 
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.692);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: perspective(800px) rotateY(10deg);
  transition: transform 0.5s ease-in-out;
}


/* Click to Reset Chart */
.chart-box:hover,
.chart-box.clicked {
  transform: perspective(800px) rotateY(0deg);
}

/* Ensures charts resize properly */
.chart-box canvas {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 900 !important;
  color: black !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Main content box - Ensure full width */
  .main-container {
    padding: 5px 10px;        /* Tight padding to avoid overflow */
    width: 100%;              /* Full width of the screen */
    box-sizing: border-box;
    margin: 0 auto;           /* Center content */
    display: flex;
    flex-direction: column;   /* Stack content vertically */
    justify-content: flex-start;
    height: auto;             /* Allow height to expand */
  }

  /* Ensuring all child boxes use the available space */
  .content-box,
  .glass-box, .info-container, .bullet-points-container {
    padding: 10px;
    width: 100%;              /* Full width */
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;        /* Hide any overflows to force content fitting */
    word-wrap: break-word;    /* Break words when necessary */
    overflow-wrap: break-word; /* Ensure word breaks */
    display: block;
  }

  /* Reducing font sizes for mobile responsiveness */
  .main-container .content-box h1 {
    font-size: 1.4rem;        /* Adjust heading font size */
    line-height: 1.3;
    text-align: center;
    margin-bottom: 10px;
  }

  .main-container .content-box h2 {
    font-size: 1.2rem;        /* Adjust subheading font size */
    line-height: 1.3;
    text-align: center;
    margin-bottom: 10px;
  }

  .main-container .content-box p {
    font-size: 0.9rem;        /* Adjust paragraph font size */
    line-height: 1.5;
    margin-bottom: 15px;      /* Space between paragraphs */
  }

  /* Ensure list items fit */
  .main-container .content-box ul {
    padding-left: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Adjust the chart container */
  .charts-container {
    display: flex;
    flex-direction: column;   /* Stack charts vertically */
    justify-content: center;
    align-items: center;
    width: 100%;              /* Full width */
    gap: 20px;                /* Space between charts */
    flex-grow: 1;             /* Allow expansion */
  }

  .chart-box {
    width: 100%;              /* Full width */
    height: 200px;            /* Adjust chart height */
    margin-bottom: 20px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Footer adjustments */
  .site-footer {
    padding: 1rem;            /* Footer padding */
    font-size: 1rem;          /* Footer font size */
    text-align: center;
  }

  /* Page title adjustments */
  .page-title {
    font-size: 1.6rem;       /* Adjust title font size */
    margin-bottom: 10px;
  }
}
