/* Reset & font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f5f5;
  color: #222;
  padding: 20px;
  line-height: 1.6;
  transition: background 1s ease, color 1s ease;
}

/* Header & Logo */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.logo {
  width: 250px;
  height: auto;
  object-fit: contain;
  margin: 10px;
}

.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

#theme-toggle {
  padding: 6px 10px;
  border-radius: 6px;
  background: #00008B;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#date {
  font-size: 0.9rem;
  color: #444;
}

.greeting {
  text-align: right;
}

.subtitle {
  font-size: 1rem;
}

.gold {
  color: #C8AA4B;
}

/* Layout */
main {
  max-width: 1200px;
  margin: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Glassmorphic Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(40px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.glass-card:hover {
  transform: scale(1.02);
}

.glass-card img {
  max-width: 100%;
  border-radius: 10px;
  transition: opacity 1s ease-in-out;
}

/* Carousel images */
.carousel img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.buttons button {
  padding: 10px 20px;
  border: 1px solid #00008B;
  background: transparent;
  color: #00008B;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.buttons button:hover {
  background: #00008B;
  color: white;
}

/* Call-to-action inside cards */
.cta-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #C8AA4B;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #00008B;
  color: white;
}

/* Disclaimer */
.disclaimer {
  margin-top: 40px;
  padding: 20px;
  border: 1px dashed #999;
  background: #fafafa;
  border-radius: 10px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid #ccc;
}

.gradient {
  background: linear-gradient(90deg, #C8AA4B, #00008B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 1.2em;
}

.social-icon {
  width: 24px;
  height: 24px;
  margin: 0 5px;
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 600px) {
  .greeting {
    text-align: left;
    margin-top: 10px;
  }
}

/* ========== DARK MODE ========== */
body.dark-mode {
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  color: #f0f0f0;
}
body.dark-mode #date {
  color: #f0f0f0;
}

body.dark-mode .glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .buttons button {
  border-color: #C8AA4B;
  color: #C8AA4B;
}

body.dark-mode .buttons button:hover {
  background: #C8AA4B;
  color: #000;
}

body.dark-mode .cta-button {
  background: #C8AA4B;
  color: black;
}

body.dark-mode .cta-button:hover {
  background: white;
  color: #00008B;
}

body.dark-mode .disclaimer {
  background: rgba(255, 255, 255, 0.05);
  color: #eee;
  border-color: rgba(255, 255, 255, 0.2);
}
