* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: url("https://www.inverness-courier.co.uk/_media/img/IHYD2U7KO7DN1YMINVUT.jpg") no-repeat center center fixed;
  background-size: cover;
  color: black;
  background-color: #fff5f5;
  line-height: 1.6;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

header {
  backdrop-filter: blur(12px);
  background: rgba(255, 77, 77, 0.85);
  color: white;
  padding: 15px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
}

nav {
  margin-top: 8px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

section {
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 0.8s ease;
}

section h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
  font-weight: 700;
}

section:first-of-type {
  background-color: white;
  border-radius: 10px;
  padding: 40px 10px;
  margin: 20px auto;
  max-width: 600px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.section-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.section-dark {
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: white;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 25px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

button, .btn {
  background: linear-gradient(135deg, #ff4d4d, #c40000);
  color: white;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover, .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 77, 77, 0.5);
}

.emergency-btn {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  box-shadow: 0 0 15px rgba(255,0,0,0.6);
  animation: pulse 1.5s infinite;
}

.emergency-btn:hover {
  box-shadow: 0 0 25px rgba(255,0,0,0.8);
}

.secondary-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.secondary-btn:hover {
  box-shadow: 0 4px 15px rgba(0,123,255,0.5);
}

form {
  max-width: 600px;
  margin: auto;
  text-align: left;
}

input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0 18px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  background: white;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
  outline: none;
}

.resource-item {
  padding: 14px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  margin: 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

footer {
  background: rgba(0,0,0,0.85);
  color: rgba(255,255,255,0.85);
  padding: 25px;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #ff4d4d;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 15px rgba(255,0,0,0.6); }
  50% { box-shadow: 0 0 25px rgba(255,0,0,0.8); }
  100% { box-shadow: 0 0 15px rgba(255,0,0,0.6); }
}

@media (max-width: 768px) {
  nav a {
    display: inline-block;
    margin: 6px 8px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .card {
    padding: 18px;
  }
}