* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #004D98, #A50044),
              url('https://images.unsplash.com/photo-1620802050080-2d990b6ce6c7') no-repeat center center/cover;
  background-blend-mode: overlay;
  color: #fff;
  overflow-x: hidden;
  animation: fadeIn 2s ease-in forwards;
  transition: background 0.3s, color 0.3s;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Loader Styles */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #004D98;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 5px solid #A50044;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 77, 152, 0.7), rgba(165, 0, 68, 0.3));
  transition: background 0.8s ease, transform 0.3s ease, opacity 0.5s ease;
}

header:hover {
  opacity: 0.95;
  transform: translateY(-4px);
}

header.scrolled {
  background-color: #2e003e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  flex-grow: 1;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 77, 152, 0.3);
  z-index: 1;
}

.hero-video,
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 30px 40px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  margin: 120px auto 0 auto;
  text-align: center;
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #ffcc00;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #eaeaea;
}

/* Info Box */
.info-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.info-box h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.info-box p {
  color: #e0e0e0;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
}

/* Facts Section */
.facts-section {
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.fact-tile {
  width: 300px;
  height: 400px;
  background: rgba(165, 0, 68, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s, width 0.5s;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.fact-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: opacity 0.3s;
}

.fact-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.fact-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 77, 152, 0.8);
  color: #fff;
  padding: 20px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s, transform 0.5s;
  z-index: 3;
  overflow-y: auto;
}

.fact-tile:hover {
  transform: scale(1.05);
  width: 350px;
}

.fact-tile:hover .fact-content {
  opacity: 1;
  transform: translateY(0);
}

.fact-tile:hover img {
  opacity: 0.3;
}

/* Model Section */
.model-section {
  padding: 60px 20px;
}

.video-frame {
  border: 2px solid #ccc;
  padding: 10px;
  width: 480px; /* Increased from 400px */
  height: 280px; /* Increased from 250px */
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.video-frame:hover {
  transform: scale(1.03);
}
.text-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-align: justify;
  transition: transform 0.3s ease;
}

.text-box:hover {
  transform: scale(1.02);
}

.text-box h2 {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-white {
  font-size: 18px;
}

/* Use Model Button */
.use-model-btn {
  background: linear-gradient(135deg, #8e2de2, #4a00e0);
  height: 80px;
  width: 250px;
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(142, 45, 226, 0.4);
  transition: all 0.3s ease;
}

.use-model-btn:hover {
  background: linear-gradient(135deg, #000000, #dff802,#000000);
  color:#000000;
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(142, 45, 226, 0.6);
}

/* Justified Center Text */
.justified-center-text {
  text-align: justify;
  margin: 0 auto;
  width: 90%;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-content,
  .info-box,
  .video-frame {
    padding: 20px;
    width: 90%;
    height: auto;
  }

  .fact-tile {
    width: 90%;
    height: auto;
  }

  .fact-tile:hover {
    width: 100%;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .use-model-btn {
    width: 100%;
    font-size: 1rem;
    height: 60px;
  }
  
}