@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Sidebar styles */
.sidebar {
  height: 100vh;
  width: 220px;
  background: rgba(160, 82, 45, 0.95); /* Warm sienna with glassmorphism */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  color: #fff8f0;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 30px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-right: 2px solid rgba(255, 214, 165, 0.5);
  transition: transform 0.3s ease; /* For mobile toggle */
}

.sidebar h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #ffd194; /* Warm gold */
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to bottom, #8b2f23, #73221a);
  padding: 10px 0;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
}

.sidebar a {
  display: block;
  padding: 12px 20px;
  color: #fff8f0;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s, padding-left 0.2s, transform 0.2s;
  position: relative;
}

.sidebar a:hover {
  background: #d2691e; /* Chocolate orange */
  padding-left: 28px;
  transform: scale(1.02); /* Subtle scale effect */
  box-shadow: 0 0 10px rgba(210, 105, 30, 0.5); /* Glow effect */
}

.sidebar a::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #ffd27f; /* Warm gold */
  transition: width 0.3s;
}

.sidebar a:hover::after {
  width: 70%;
}

.sidebar a:focus {
  outline: 2px solid #ffd27f;
  outline-offset: 2px;
}

/* Main content wrapper */
.main-content {
  margin-left: 220px;
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Fun Background with Image */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: url('Slike/kalemegdan.pozadina.jpg') no-repeat center center; /* Replace with your image path */
  background-size: cover; /* Adjust based on image */
  color: #333;
  overflow-x: hidden;
  position: relative;
}

/* Animated Wave Overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 177, 128, 0.4), rgba(255, 228, 196, 0.2));
  background-size: 200% 200%;
  animation: wave 15s ease infinite;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); /* Organic wave shape */
}

@keyframes wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Shapes (e.g., leaves or circles) */
body::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 214, 165, 0.6); /* Light gold for floating elements */
  border-radius: 50%; /* Circular shape */
  animation: float 12s infinite alternate ease-in-out;
  z-index: 2;
  top: 15%;
  left: 15%;
  opacity: 0.8;
}

body::after:nth-child(2) {
  width: 25px;
  height: 25px;
  top: 70%;
  left: 75%;
  animation-delay: 4s;
}

body::after:nth-child(3) {
  width: 35px;
  height: 35px;
  top: 30%;
  left: 85%;
  animation-delay: 7s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

/* Header */
header {
  background: rgba(160, 82, 45, 0.9); /* Warm sienna with glassmorphism */
  backdrop-filter: blur(8px);
  color: #fff8f0;
  text-align: center;
  padding: 40px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: #ffd194;
}

header p {
  margin: 10px 0 0;
  font-size: 1.2rem;
  color: #fff8f0;
  font-family: 'Poppins', sans-serif;
}

/* Contact section */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  min-height: 100vh;
  position: relative;
  z-index: 3;
}

.contact-form {
  background: rgba(255, 228, 196, 0.95); /* Warm beige with glassmorphism */
  backdrop-filter: blur(12px);
  padding: 40px 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 165, 0.9);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.2); /* Neumorphic shadow */
  max-width: 500px;
  width: 100%;
  animation: fadeIn 1s ease;
  z-index: 4;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #8b4513; /* Warm brown */
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.contact-form label {
  display: block;
  margin: 15px 0 8px;
  font-weight: 600;
  color: #5a3e2b;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

/* Inputs */
.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #a0522d;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  padding-left: 42px;
  border: 1px solid #f5c6a5;
  border-radius: 10px;
  font-size: 1rem;
  background: #fffaf3;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #ff9966;
  box-shadow: 0 0 8px rgba(255, 153, 102, 0.4);
  outline: none;
}

.input-group input:focus + i,
.input-group textarea:focus + i {
  color: #ff9966;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  text-align: center;
  color: #b88a65;
  font-family: 'Poppins', sans-serif;
}

/* Button */
.contact-form button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff9966, #ff5e62);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 94, 98, 0.3);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.contact-form button:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #ffb380, #ff7a7a);
  box-shadow: 0 8px 25px rgba(255, 94, 98, 0.4);
  animation: pulse 1.5s infinite;
}

.contact-form button:focus {
  outline: 2px solid #ff9966;
  outline-offset: 2px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #3a2c2c, #5a3e2b); /* Warm gradient */
  color: #fff8f0;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-family: 'Poppins', sans-serif;
}

footer p {
  margin: 0;
  font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .contact-form {
    padding: 30px;
  }
  header {
    padding: 30px 15px;
  }
}