/* General Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0a3d62, #3c6382);
  color: #f5f6fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header + Navigation */
header {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.8s ease-in-out;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

nav a {
  color: #f5f6fa;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #74b9ff;
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  flex: 1;
  animation: fadeIn 1s ease-in;
}

/* Footer */
footer {
  background: rgba(0,0,0,0.7);
  color: #dcdde1;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.4);
}

/* Cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: rgba(255,255,255,0.08);
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  text-align: center;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.5);
}

.card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.card img:hover {
  transform: scale(1.05);
}

.card h3 {
  margin: 0.7rem 0;
  color: #74b9ff;
}

.card a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #0984e3;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.card a:hover {
  background: #74b9ff;
  transform: scale(1.05);
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

form input, form textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  outline: none;
}

form button {
  background: #0984e3;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background: #74b9ff;
  transform: scale(1.05);
}

/* YouTube Embed */
.youtube-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  animation: fadeInUp 1s ease;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes slideDown {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* Popup Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.5s ease;
}

.modal-content {
  background: #2d3436;
  color: #f5f6fa;
  padding: 2rem;
  border-radius: 15px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  animation: fadeInUp 0.6s ease;
}

.modal button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #0984e3;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}
.modal button:hover {
  background: #74b9ff;
}

/* Navigation Buttons */
nav button {
  background: transparent;
  border: 2px solid #74b9ff;
  color: #74b9ff;
  padding: 0.5rem 1rem;
  margin: 0 6px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

nav button:hover {
  background: #74b9ff;
  color: #0a3d62;
}

/* Hero Section Buttons */
.hero-buttons button {
  background: #0984e3;
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.hero-buttons button:hover {
  background: #74b9ff;
  transform: scale(1.05);
}

/* Card Buttons */
.card button {
  margin-top: 0.7rem;
  background: #0984e3;
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.card button:hover {
  background: #74b9ff;
  transform: scale(1.05);
}

/* Social Buttons */
.social-icons button {
  background: rgba(255,255,255,0.1);
  border: 2px solid #74b9ff;
  color: #f5f6fa;
  padding: 0.7rem 1.2rem;
  margin: 0.5rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.social-icons button i {
  margin-right: 6px;
}

.social-icons button:hover {
  background: #74b9ff;
  color: #0a3d62;
  transform: scale(1.05);
}

/* Center text across main sections */
.hero-content, 
.about, 
.featured, 
.social-links {
  text-align: center;
}

/* Keep paragraphs neat */
.about p, 
.featured p, 
.social-links p {
  max-width: 800px;
  margin: 0 auto 1rem auto; /* centers text block */
  line-height: 1.6;
}

/* Social Page */
.social-page {
  text-align: center;
  margin: 3rem auto;
  padding: 1rem;
}

/* Responsive YouTube iframe */
.youtube-container {
  max-width: 900px;
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.youtube-container iframe {
  width: 100%;
  height: 100%;
}

/* Social Buttons */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-icons button {
  background: rgba(255,255,255,0.1);
  border: 2px solid #74b9ff;
  color: #f5f6fa;
  padding: 0.7rem 1.2rem;
  margin: 0.5rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.social-icons button i {
  margin-right: 6px;
}

.social-icons button:hover {
  background: #74b9ff;
  color: #0a3d62;
  transform: scale(1.05);
}

/* Social Page */
.social-page {
  text-align: center;
  margin: 3rem auto;
  padding: 1rem;
}

/* Responsive YouTube iframe */
.youtube-container {
  max-width: 900px;
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.youtube-container iframe {
  width: 100%;
  height: 100%;
}

/* Social Buttons */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-icons button {
  background: rgba(255,255,255,0.1);
  border: 2px solid #74b9ff;
  color: #f5f6fa;
  padding: 0.7rem 1.2rem;
  margin: 0.5rem;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.social-icons button i {
  margin-right: 6px;
}

.social-icons button:hover {
  background: #74b9ff;
  color: #0a3d62;
  transform: scale(1.05);
}
