/* Basic Reset & Body Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333; /* Dark Gray for text */
  background-color: #f8f9fa; /* Very light gray background */
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Styling */
header {
  background-color: rgba(33, 37, 41, 0.95);
  color: #e9ecef; /* Light gray for header text */
  padding: 1rem;
  position: relative;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 1rem;
}

header img.logo {
  height: 40px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: height 0.3s ease;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.5rem 0;
  padding: 0 80px;
  text-align: center;
}

/* Navigation Styling */
nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #ced4da;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #007bff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover,
nav a.active {
  color: #ffffff;
}

/* Main Content Section */
main {
  margin-top: 120px; /* Space for fixed header */
  padding: 2rem 1rem;
}

section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Styling */
.card {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover::before {
  opacity: 1;
}

.card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a73e8;
  position: relative;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.02);
}

.card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* List Styling */
.card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.card li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #555;
}

.card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #007bff;
}

/* Button Group */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Video Preview */
.video-preview {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.video-preview:hover {
  transform: scale(1.02);
}

.video-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.play-button {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.video-preview:hover .play-button {
  background: rgba(0, 123, 255, 1);
  transform: scale(1.1);
}

/* Footer Logo */
.footer-logo {
  margin: 2rem auto 0;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Lightbox Customization */
.lb-data .lb-caption {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 0.8;
}

.lb-data .lb-close {
  opacity: 0.8;
}

/* Specific Card Adjustments */
.card#about img, .card#data img, .card.announce img {
  cursor: pointer; /* Indicate clickability for lightbox */
}

.card.announce {
  background-color: #e2e6ea; /* Lighter gray for announcement */
  border: 1px solid #ced4da;
}

.card.announce strong {
    color: #212529;
    font-weight: 500;
}

/* Button Styling */
.btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn:hover::before {
  left: 100%;
}

/* Contact Section */
#contact {
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  padding: 3rem 2rem;
}

#contact img {
  margin: 2rem auto;
  height: 50px;
  transition: transform 0.3s ease;
}

#contact img:hover {
  transform: scale(1.1);
}

/* Footer Styling */
footer {
  background: linear-gradient(to right, #212529, #343a40);
  color: #adb5bd;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* Video Modal Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: -45px;
  right: -15px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.close-btn:hover {
  transform: scale(1.1);
  background-color: #f8f9fa;
}


.contact-form {
  max-width: 400px;
  margin: 1rem auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.contact-form button {
  width: 100%;
  margin-top: 1rem;
}


/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  header.scrolled {
    padding: 0.5rem;
  }

  header img.logo {
    height: 35px;
    position: static;
    transform: none;
    display: block;
    margin: 0 auto 0.5rem;
  }

  header h1 {
    font-size: 1.2rem;
    padding: 0;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  main {
    margin-top: 140px;
  }

  section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  .video-preview {
    height: 160px;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.1rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  main {
    margin-top: 160px;
  }

  .btn {
    width: 100%;
    padding: 10px 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} 
.cloud-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: linear-gradient(135deg, #FFD700, #FFC107); /* golden-yellow */
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 2000;
}

.cloud-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, #FFE082, #FFD54F);
}
