/* FinanzSchool CSS - Chill + Interactive Theme */

:root {
  --bg: #fdfdfd;
  --text: #111;
  --accent: #00c897;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  --bg: #111;
  --text: #fdfdfd;
  --accent: #00ffbb;
  --card-bg: #1e1e1e;
  --shadow: 0 4px 20px rgba(0, 255, 200, 0.15);
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

header.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: url("Financijsko planiranje i ulaganja.png") no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Overlay gradient for smooth color fade on hero bg */
header.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.9) 90%,
    #000 100%
  );
  transition: background 0.3s ease;
  z-index: 1;
}

/* Adjust overlay gradient in light mode */
body:not(.dark-mode) header.hero::before {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(253, 253, 253, 0.7) 70%,
    rgba(253, 253, 253, 0.9) 90%,
    #fdfdfd 100%
  );
}
/* Sign Up Button Style */
.signup-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.signup-btn:hover {
  transform: scale(1.05);
  background: var(--accent-hover);
}

/* Popup Base */
.popup {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;

  /* Center stuff */
  display: flex; /* makes justify + align work */
  justify-content: center;
  align-items: center;

  animation: fadeIn 0.3s ease;
}


/* Popup Content */
.popup-content {
  background: var(--bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  text-align: center;
  animation: slideIn 0.3s ease;
  max-width: 350px;
  width: 90%;
}

/* Close Button */
.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
.signup-btn{
  display: none;
}
/* Sign Up Inside Popup */
.go-signup {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
  cursor: pointer;
}
.go-signup:hover {
  background: var(--accent-hover);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


nav {
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2; /* Make sure nav is above overlay */

  padding: 0.8rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3); /* outline */
  border-radius: 12px; /* smooth corners */
  backdrop-filter: blur(8px); /* glassy vibe */
  background: rgba(0, 0, 0, 0.2); /* translucent bg for better visibility */
}


nav .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  z-index: 2; /* above overlay */
}

nav ul li a:hover {
  color: var(--accent);
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.finanzschoollogo {
  position: relative;
  max-width: 100px;
  height: auto;
  margin: 1rem auto;
  display: block;
  left: -50px;
  top: 20px;
  z-index: 2;
}

html {
  scroll-behavior: smooth;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgb(190, 194, 194);
  position: relative;
  z-index: 2;
}

.cta {
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  position: relative;
  z-index: 2;
}

.cta:hover {
  transform: scale(1.05);
}

section.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  justify-content: center;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  width: 280px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--accent);
  color: white;
}

section.seo-text {
  padding: 3rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: #f0f0f0;
  color: #555;
}

.dark-mode footer {
  background: #1a1a1a;
  color: #ccc;
}

/* Blog Page Styling */
.hero.small {
  background: linear-gradient(to right, #ffdde1, #ee9ca7);
  padding: 60px 20px;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.hero.small .hero-text h1 {
  font-size: 2.8rem;
  color: #222;
  font-weight: 700;
  margin-top: 1rem;
  animation: fadeInUp 0.8s ease;
}

.blog-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 20px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  animation: fadeInUp 0.8s ease;
}

.blog-content p {
  margin-bottom: 1.5rem;
  background-color: #c2bfbf;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(209, 100, 100, 0.05);
  transition: transform 0.3s ease;
}

.blog-content p:hover {
  transform: translateY(-4px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dark-mode #contactform {
  background-color: #3f3d3d;
}

body.dark-mode #contactform li {
  color: #e6e6e6;
}

#contactform {
  list-style: none; /* remove default bullets */
  padding: 20px 30px;
  margin: 40px auto;
  max-width: 400px;
  background: #fdfdfd; /* clean white background */
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* subtle shadow */
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Each form item */
#contactform li {
  padding: 12px 0;
  border-bottom: 1px solid #44832b;
  font-size: 1.1rem;
  color: #333;
}

/* Remove border for last element */
#contactform li:last-child {
  border-bottom: none;
}

/* Hover effect */
#contactform li:hover {
  background: #319219;
  border-radius: 8px;
  transition: 0.3s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-25px);
  }
  60% {
    transform: translateY(-12px);
  }
}

.bouncingtext {
  animation: bounce 1.5s infinite;
  position: relative;
  top: -20px;
}

/* Courses Section */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 40px 20px;
}

.course-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark .course-card {
  background: #1e1e1e;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card h2 {
  font-size: 1.4rem;
  margin: 15px;
}

.course-card p {
  font-size: 0.95rem;
  margin: 0 15px 15px;
  color: #161313;
}

body.dark .course-card p {
  color: #111010;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 1em;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.cookie-banner button {
  background: #f25c05;
  color: white;
  border: none;
  padding: 1em 1em;
  cursor: pointer;
  position: relative;
  right: 10%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: bold;
}

/* Hide hamburger by default */
#hamburger {
  display: none;
}

/* === MOBILE FIXES === */
@media (max-width: 600px) {
  header.hero {
    padding: 3rem 5rem;
    min-height: auto;
  }

  /* Adjust overlay gradient for mobile */
  header.hero::before {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.5) 70%,
      rgba(0, 0, 0, 0.7) 90%,
      #000 100%
    );
  }
  body:not(.dark-mode) header.hero::before {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(253, 253, 253, 0.5) 70%,
      rgba(253, 253, 253, 0.7) 90%,
      #fdfdfd 100%
    );
  }

  .hero-text h1 {
    font-size: 1.7rem !important;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
  }

  nav {
    top: 0.3rem;
    left: 0.8rem;
    right: 0.8rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
  }

  .logo {
    font-size: 1.3rem;
  }

  #theme-toggle {
    font-size: 1.2rem;
    padding: 0.3rem;
  }

  #hamburger {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: block;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  nav ul.show {
    display: flex !important;
  }

  nav ul li a {
    font-size: 0.95rem;
    display: block;
  }

  section.pillars {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .card {
    width: 90%;
    padding: 1.2rem;
  }

  .courses {
    grid-template-columns: 1fr !important;
    padding: 5px 5px !important;
  }

  .course-card {
    margin-bottom: 1.2rem;
  }

  footer {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }

  .cookie-banner button {
    padding: 0.6em 0.9em;
    font-size: 0.85rem;
  }
}
