/* ===== Global Styles ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

h1, h2, h3 {
  margin: 0 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ffcc00;
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background: #ff9900;
  color: #fff;
}

/* ===== Navbar ===== */
header {
  background: #0044cc;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
}
header .logo {
  font-size: 22px;
  font-weight: bold;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
header nav ul li a {
  color: white;
  font-weight: bold;
}
header nav ul li a.active {
  border-bottom: 2px solid #ffcc00;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #0044cc, #007bff);
  color: white;
}
.hero h1 {
  font-size: 2.8em;
}
.hero p {
  font-size: 1.2em;
  margin: 10px 0 20px;
}

/* ===== About Section ===== */
.about {
  padding: 50px 20px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.about h2 {
  color: #0044cc;
}
.about p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}
.about-section {
  font-size: 14px;   /* yahan chhota kar diya */
  line-height: 1.6;  /* readability ke liye */
  color: #333;
}
.about-section h2 {
  font-size: 20px;   /* "About Us" heading thoda bada */
  margin-bottom: 15px;
}
.about-section b {
  font-size: 15px;   /* Mission / Vision bold text */
}


/* ===== Featured Projects (Home Page) ===== */
.projects {
  padding: 50px 20px;
  text-align: center;
}
.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}
.card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  color: #0044cc;
}
.card .btn {
  margin-top: 10px;
  background: #0044cc;
  color: white;
}
.card .btn:hover {
  background: #002a80;
}
.card img {
  width: 100%;
  max-height: 140px; /* image chhoti ho jayegi */
  object-fit: cover;
  border-radius: 8px;
} 
/* ===== All Projects Page ===== */
.all-projects {
  padding: 50px 20px;
  text-align: center;
}
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project-card {
  width: 250px;   /* Fixed width */
  flex: 0 0 auto; /* Prevent stretching */
  background: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: #0044cc;
}

.project-card img {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-card img.loaded {
  opacity: 1;
  transform: scale(1);
}

/* ===== FEATURED VIDEOS SECTION ===== */
.featured-videos {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
}

.featured-videos h2 {
  font-size: 2rem;
  color: #0044cc;
  margin-bottom: 30px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-items: center;
}

.video-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
  max-width: 360px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9; /* Thumbnail ke jaisa perfect ratio */
  border-radius: 10px;
}

.video-card h3 {
  font-size: 1.1rem;
  color: #222;
  margin-top: 10px;
}

/* ===== Dark Mode Support ===== */
body.dark-mode .featured-videos {
  background: #1e1e1e;
}

body.dark-mode .video-card {
  background: #3a3a3a;
  color: white;
}

body.dark-mode .video-card h3 {
  color: #ffffff;
}

/* Search Box */
#searchBox {
  width: 80%;
  max-width: 200px;
  padding: 10px;
  margin: 20px auto;
  display: block;
  border: 2px solid #007BFF;
  border-radius: 8px;
  font-size: 16px;
}
/* ===== Contact Page ===== */
.contact {
  padding: 50px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}
.contact h2 {
  color: #0044cc;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px auto;
  max-width: 500px;
}
.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}
.contact-form button {
  background: #0044cc;
  color: white;
  border: none;
  cursor: pointer;
}
.contact-form button:hover {
  background: #002a80;
}
.contact-info {
  margin-top: 30px;
  line-height: 1.8;
}
.contact-info a {
  color: #0044cc;
  font-weight: bold;
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Image left, text center, button right */
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 850px;   /* bada card center me */
  width: 90%;         /* responsive */
  margin: 20px auto;  /* space between cards */
  gap: 20px;          /* image aur text ke beech gap */
}

.app-img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  object-fit: contain; /* image stretch na ho */
}

.app-info {
  flex: 1;   /* text ko expand karne ke liye */
}

.app-info h2 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.app-info p {
  margin: 6px 0;
  font-size: 15px;
  color: #555;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #28a745;  /* Green */
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
  font-size: 15px;
  white-space: nowrap;  /* text wrap na ho */
}

.download-btn:hover {
  background: #218838;
  transform: translateY(-2px);
}

/* ✅ Mobile friendly */
@media (max-width: 600px) {
  .app-card {
    flex-direction: column;
    text-align: center;
  }
  .app-img {
    width: 80px;
    margin-bottom: 10px;
  }
  .download-btn {
    margin-top: 10px;
  }
}

.apps-container {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  gap: 20px;
  padding: 20px;
  scroll-behavior: smooth;
}

.apps-container::-webkit-scrollbar {
  height: 8px;
}

.apps-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* Cards in Dark Mode */
body.dark-mode .project-card,
body.dark-mode .app-card {
  background: #1e1e1e;   /* Dark grey background */
  color: #f5f5f5;        /* White text */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Card heading links */
body.dark-mode .project-card h3,
body.dark-mode .app-card h3,
body.dark-mode .app-info h2,
body.dark-mode .contact-info a{
  color: #ffffff;   /* white text for headings */
}

/* Card description */
body.dark-mode .project-card p,
body.dark-mode .app-card p {
  color: #cccccc;   /* Light grey for descriptions */
}

/* Download button in Dark Mode */
/* Button styling */
#darkModeToggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background: #0044cc;
  color: white;
  font-weight: bold;
  z-index: 1000;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: loadingShimmer 1.2s infinite;
}

.card.loaded::before {
  display: none;
}

@keyframes loadingShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* Normal text inherits theme color */
#logo {
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

#logo span {
  display: inline-block;
  transition: transform 0.2s ease, color 0.3s ease, text-shadow 0.3s ease;
  color: inherit;
}

/* Glow effect */
#logo span.glow {
  color: #ffcc00;
  text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffaa00;
  transform: scale(1.3);
}


/* ===== Footer ===== */
footer {
  background: #0044cc;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}
