@charset "utf-8";

/* Theme Colour Variables*/

/* Blue Theme (Default) */
[data-theme="blue"] {
  --bg-main: linear-gradient(180deg, #00aaff, #005f99);
  --text-color: #ffffff;
  --card-bg: #000000;
  --navbar-bg: #000000;
  --accent: #4E95D9;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-main: #000000;
  --text-color: #ffffff;
  --card-bg: #111111;
  --navbar-bg: #000000;
  --accent: #FFFFFF;
}

[data-theme="dark"] .theme-switcher button {
  color: #000000;
}

[data-theme="dark"] .hero-text {
  color: #FFFFFF;
}

/* Light Theme */
[data-theme="light"] {
  --bg-main: #ffffff;
  --text-color: #FFFFFF;
  --card-bg: #f2f2f2;
  --navbar-bg: grey;
  --accent: #000000;
  --information-color: #000000;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styling - Everything */
body {
  font-family: Calibri, sans-serif;
  background: var(--bg-main);
  color: var(--text-color);
  min-height: 100vh;
  text-align: center;
  overflow-x: hidden;
}

/* Video Background */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 2rem 1rem;
  background: #000000;
  border-bottom: 2px solid #fff;
  text-align: center;
}

.logo {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  width: 150px;
  border-radius: 50%;
}

.hero-text h1 {
  font-size: 60px;
  text-align: center;
  color: var(--text-color);
}

/* Quote */
.tagline {
  font-size: 1.2rem;
  margin-top: 0.3rem;
  font-style: italic;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--navbar-bg);
  padding: 0.7rem 0;
  gap: 1.5rem;
  border-bottom: 2px solid #fff;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 7px;
  background: #4E95D9;
  transition: all 0.2s ease;
  font-weight: 500;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar a:hover,
.navbar a.active {
  background: #4ED977;
  transform: scale(1.05);
}

.nav-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

/* Content Grid */
.content-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 1.5rem;
  color: var(--information-color);
}

.card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1.6rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.JCC {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.intro h2 {
  margin-bottom: 1rem;
  border-bottom: 2px solid #fff;
  padding-bottom: 1rem;
  font-size: 2rem;
}

/* Footer */
.footer {
  background-color: rgba(0, 0, 0, 0.8);
  border-top: 2px solid #fff;
  padding: 30px 20px;
  color: white;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 16px;
}

.footer-right {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-right img {
  width: 35px;
  height: 35px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.footer-right img:hover {
  transform: scale(1.3);
}

/* JavaScript - Font Resizer */
.font-resizer {
  position: fixed;
  top: 5px;
  right: 10px;
  z-index: 9999;
}

.font-resizer button {
  padding: 5px 10px;
  margin: 8px;
  font-size: 18px;
  cursor: pointer;
  color: white;
  background-color: #138DFF;
  border: 1px solid white;
  width: 50px;
  border-radius: 6px;
	  transform: scale(1.1);
	transition: 0.2s;
}

/* Hover Effects */
#DecreaseFont:hover {
  background: #FF0000;
  transform: scale(1.20);
}
#DefaultFont:hover {
  background: #FFC107;
  transform: scale(1.20);
}
#IncreaseFont:hover {
  background: #00C853;
  transform: scale(1.20);
}

/* JavaScript - Live Clock */
#clock {
  font-size: 40px;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid #fff;
}

/* JavaScript - Background Colour Change */
.theme-switcher {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  display: flex;
  gap: 10px;
}

.theme-switcher button {
  font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.2s;
}

.theme-switcher button:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* JavaScript - Cursor Effect */
#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* JavaScript - Cookies Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg, #1e1e1e);
    border-top: 1px solid var(--border-color, #333);
    padding: 15px;
    display: none;
    z-index: 99999;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    color: var(--text-color);
    font-size: 14px;
}

#accept-cookies {
    padding: 8px 18px;
    border: none;
    background: var(--accent, #2c7bff);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#accept-cookies:hover {
    background: var(--accent-hover, #1a5ed9);
}

/* Animation */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Responsiveness */

/* Tablets */
@media (max-width: 900px) {

  /* Hero */
  .hero-text h1 {
    font-size: 2.4rem;
  }

  .logo img {
    width: 110px;
  }

  /* Navigation */
  .navbar {
    gap: 1rem;
    padding: 0.6rem;
  }

  .navbar a {
    font-size: 0.95rem;
    padding: 0.55rem 1.2rem;
  }

  /* Content cards */
  .content-container {
    gap: 2rem;
  }

  /* Font + Theme buttons spacing */
  .font-resizer {
    top: 10px;
    right: 10px;
  }

  .theme-switcher {
    top: 10px;
    left: 10px;
  }

  .font-resizer button,
  .theme-switcher button {
    margin: 6px;
    min-width: 44px; /* good touch size */
  }
}

/* Mobile */
@media (max-width: 600px) {

  /* Hero */
  .hero-section {
    padding: 1.2rem;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .logo {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }

  .logo img {
    width: 95px;
  }

  /* Navigation */
  .navbar {
    flex-direction: column;
    gap: 0.8rem;
  }

  .navbar a {
    width: 90%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  /* Content layout */
  .content-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1.5rem;
  }

  .card {
    padding: 1.3rem;
  }

  /* Clock */
  #clock {
    font-size: 26px;
  }

  .theme-switcher {
    position: static;
    justify-content: center;
    margin: 0.5rem auto;
    padding-bottom: 0.5rem;
  }

  .font-resizer {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .font-resizer button,
  .theme-switcher button {
    font-size: 16px;
    padding: 8px 12px;
    min-width: 48px;
  }

  /* Cookie Banner */
  .cookie-content {
    text-align: center;
    justify-content: center;
  }

  /* Footer */
  .footer-right img {
    width: 30px;
    height: 30px;
  }
}
