/* Root Color Variables */
:root {
  --bg-color: #fffbe0;
  --text-color: #333;
  --card-bg: #fff7d6;
  --highlight: #f39c12;
  --accent: #e67e22;
  --link: #007bff;
  --footer-bg: #333;
  --footer-text: #fff;
}

/* Dark Mode Overrides */
body.dark-mode {
  --bg-color: #1a1a1a;
  --text-color: #f0f0f0;
  --card-bg: #2a2a2a;
  --highlight: #f39c12;
  --accent: #e67e22;
  --link: #4da3ff;
  --footer-bg: #111;
  --footer-text: #ccc;
}

/* Global Styles */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background 0.5s, color 0.5s;
}

h1, h2, .overlay-title {
  font-family: 'Patrick Hand', cursive;
}

/* Dark Mode Button */
#mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--highlight);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 3px 3px 0 var(--accent);
  z-index: 10001;
}

/* Overlay Intro */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffe14f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all 1s ease;
}

.overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.overlay-title {
  font-size: 3rem;
  animation: dropIn 1.2s ease forwards;
}

@keyframes dropIn {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 🖼️ Hero Section */
.hero {
  position: relative;
  background-color: #000;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('https://source.unsplash.com/1600x900/?germany,university') center/cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.tagline {
  font-size: 1.3rem;
  margin-top: 10px;
  color: #f9f9f9;
}

/* Layout Container */
.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
}

/* Sections */
section {
  background: var(--card-bg);
  padding: 30px;
  margin: 20px 0;
  border: 3px dashed var(--accent);
  border-radius: 15px;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.5s;
  position: relative;
}

section:hover {
  transform: scale(1.01);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: var(--card-bg);
  border: 2px dashed #ff8c00;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #aaa;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.card i {
  margin-bottom: 10px;
  color: var(--accent);
}

.card:hover {
  transform: rotate(-1deg) scale(1.05);
  box-shadow: 6px 6px 0 var(--accent);
}

/* List Styling */
ul li {
  margin: 10px 0;
  list-style-type: "\2713 ";
  padding-left: 10px;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

ul li:hover {
  color: var(--accent);
}

/* Offer Highlight */
.offer {
  background: var(--highlight);
  color: white;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--accent);
  margin-top: 20px;
  font-size: 1.1rem;
  animation: bounce 1.5s infinite alternate ease-in-out;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: #ff6347;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 4px dashed var(--accent);
  box-shadow: inset 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Testimonial Images */
blockquote img {
  float: left;
  margin-right: 15px;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 600px) {
  .overlay-title {
    font-size: 2rem;
  }
  .card {
    font-size: 0.95rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  #mode-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
