:root {
  --accent-color: #f4d03f;
  --bg-color: #121212;
  --text-color: #f4f4f4;
  --secondary-bg: #1a1a1a;
  --border-color: #333;
}

body:not(.dark-mode) {
  --bg-color: #f4f4f4;
  --text-color: #333;
  --secondary-bg: #eee;
  --border-color: #ccc;
  --accent-color: #e67e22;
}

/* Base */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* Header */
.header {
  text-align: center;
  background: linear-gradient(to bottom, var(--secondary-bg), #222);
  padding: 40px 0;
  color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100" stroke="%23f4d03f20" stroke-width="2"/></svg>');
  opacity: 0.05;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header h2 {
  font-size: 1.5rem;
  margin-top: 0;
  color: #e4c03f;
}

.header p {
  margin: 15px 0;
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--accent-color);
  color: #222;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.btn:hover {
  background: #e4b01f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

/* Tables */
.table-container {
  max-width: 900px;
  margin: 0 auto 30px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 80px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--secondary-bg);
  overflow: hidden;
}

table th, table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid var(--border-color);
  word-wrap: break-word;
}

table th {
  background: var(--secondary-bg);
  color: var(--accent-color);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

table tr:hover {
  background: #282828;
}

/* Light Mode Table Styles */
body:not(.dark-mode) table {
  background: #fff;
  color: #333;
}

body:not(.dark-mode) table th,
body:not(.dark-mode) table td {
  border-color: #ddd;
}

body:not(.dark-mode) table th {
  background: #f0f0f0;
  color: #333;
}

body:not(.dark-mode) table tr:hover {
  background: #fafafa;
}

/* Contact Form */
.contact {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to bottom, var(--secondary-bg), #222);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100" stroke="%23f4d03f20" stroke-width="2"/></svg>');
  opacity: 0.05;
  z-index: 0;
}

.contact-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
}

.contact form {
  width: 100%;
  padding: 30px;
  background: rgba(25, 25, 25, 0.9);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact form:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.contact label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  text-align: left;
  color: #f4f4f4;
  transition: all 0.3s;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background: #333;
  color: #f4f4f4;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 5px rgba(244, 208, 63, 0.5);
}

.contact textarea {
  height: 120px;
  resize: vertical;
}

.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.contact button {
  padding: 12px 25px;
  background: var(--accent-color);
  border: none;
  color: #222;
  cursor: pointer;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 150px;
}

.contact button:hover {
  background: #e4b01f;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.contact button:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form Status Messages */
.form-status {
  margin-top: 20px;
  padding: 0;
  border-radius: 5px;
  transition: all 0.3s;
}

.form-status .error {
  background-color: rgba(255, 0, 0, 0.1);
  color: #ff6666;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ff6666;
  animation: fadeIn 0.3s ease-out;
}

.form-status .success {
  background-color: rgba(0, 255, 0, 0.1);
  color: #66ff66;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #66ff66;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  background: var(--secondary-bg);
  color: #777;
  border-top: 1px solid var(--border-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}
