@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  /* Light Theme Variables */
  --bg-color: #f4f7f6;
  --text-color: #333333;
  --header-bg: #ffffff;
  --header-text: #1b2a0d;
  --nav-bg: rgb(25, 71, 88);
  --nav-text: #ffffff;
  --nav-hover: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --accent-color: #4caf50;
  --accent-hover: #45a049;
  --footer-bg: rgb(25, 71, 88);
  --footer-text: #accfff;
  --link-color: #0066cc;
  --link-hover: #cc0000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  /* Dark Theme Variables */
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --header-bg: #1e1e1e;
  --header-text: #4caf50;
  --nav-bg: rgb(25, 71, 88);
  --nav-text: #ffffff;
  --nav-hover: #ffffff;
  --card-bg: #1e1e1e;
  --border-color: #333333;
  --accent-color: #4caf50;
  --accent-hover: #45a049;
  --footer-bg: rgb(25, 71, 88);
  --footer-text: #aaaaaa;
  --link-color: #64b5f6;
  --link-hover: #ff5252;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

a:hover {
  color: var(--link-hover);
}

/* Header & Nav */
header {
  background-color: var(--header-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title img {
  height: 40px;
}

.byline {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.1em;
  color: #ffffff;
}

.site-title h1 {
  font-size: 1.5rem;
  color: var(--header-text);
  margin: 0;
}

.site-title span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-color);
}

nav {
  background-color: var(--nav-bg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  display: block;
  padding: 15px 10px;
  color: var(--nav-text);
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--nav-hover);
  transition: width 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.current::after {
  width: 100%;
}

/* Theme Switch */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 30px;
  margin-left: 15px;
}

.theme-switch input {
  display: none;
}

.theme-switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  cursor: pointer;
  background-color: rgb(25, 71, 88);
  border: 2px solid #ffffff;
  background-clip: padding-box;
  transition: 0.4s;
}

.theme-switch-slider::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(to right, #ff512f, #dd2476);
  border-radius: 30px;
  z-index: -1;
  transition: 0.4s;
}

.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to right, #ff512f, #dd2476);
  z-index: 1;
  transition: transform 0.4s, background 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-switch-thumb svg {
  width: 14px;
  height: 14px;
  fill: #0b132b;
}

.icon-sun {
  display: block;
}

.icon-moon {
  display: none;
}

input:checked+.theme-switch-slider {
  background-color: #0b132b;
}

input:checked+.theme-switch-slider::after {
  background: linear-gradient(to right, #00c6ff, #0072ff);
}

input:checked+.theme-switch-slider .theme-switch-thumb {
  transform: translateX(30px);
  background: linear-gradient(to right, #00c6ff, #0072ff);
}

input:checked+.theme-switch-slider .icon-sun {
  display: none;
}

input:checked+.theme-switch-slider .icon-moon {
  display: block;
}

/* Main Layout */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Cards & Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.captcha img {
  width: 20%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h2 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Typography elements */
h1,
h2,
h3,
h4 {
  color: var(--header-text);
  margin-bottom: 15px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: scale(1.05);
}

/* Note box */
.note {
  background-color: rgba(76, 175, 80, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

/* Forms */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

/* Responsive Table Wrapper */
.table-responsive {
  overflow-x: auto;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--footer-text);
  font-weight: normal;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

/* Search Box */
.search-box {
  display: flex;
}

.search-box input {
  margin-bottom: 0;
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.search-box button {
  border-radius: 0 6px 6px 0;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: left;
}

.social-icons img {
  width: 32px;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: translateY(-3px);
}

/* Video Wrapper */
.video-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.video-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .nav-container {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
  }

  .theme-toggle {
    margin-bottom: 10px;
  }
}

/* CSS */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(45deg,
      #ff0000,
      #ff7300,
      #fffb00,
      #48ff00,
      #00ffd5,
      #002bff,
      #7a00ff,
      #ff00c8,
      #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 99;
  /* font-size: 18px; */
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 6px;
  border-radius: 2px;
}

#myBtn:hover {
  background-color: #555;
}

/* Responsive Video Container */
.video-responsive {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}