/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: relative;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  object-position: center;
  overflow: hidden;
  padding: 5px 0;
  clip-path: inset(30% 0 30% 0);
  transform: scale(2.0);
  margin: 0 -20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.right-links {
  justify-content: flex-start;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a:hover {
  color: #667eea;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Body Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #4a4a6a;
  background-color: #f5f7fa;
  background-image: url('../../decorations/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

/* Main Content Section */
.main-content {
  display: block;
}

/* Layer Base Style */
.layer {
  padding: 4rem 2rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

/* Grid Styles */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Card Styles */
.module-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #667eea;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.module-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* Link Styles */
.module-card a {
  display: inline-block;
  margin-top: auto;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.module-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Status Styles */
.module-card .status {
  font-weight: bold;
  color: #e74c3c;
}

/* Hero Layer */
.hero-layer {
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.hero-layer h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.current-time {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Content Layer */
.content-layer {
  background: rgba(255, 255, 255, 0.7);
}

.motto {
  text-align: center;
  margin-bottom: 3rem;
  font-style: italic;
  font-size: 1.3rem;
  color: #666;
  line-height: 1.8;
}

.motto .highlight {
  font-weight: bold;
  font-size: 1.5rem;
  color: #667eea;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.content-layer p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #555;
}

/* Contact Layer */
.contact-layer {
  background: rgba(102, 126, 234, 0.7);
  color: white;
  text-align: center;
}

.contact-layer h2 {
  margin-bottom: 2rem;
}

.contact-layer a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.contact-layer a:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar Responsive */
  .navbar {
    padding: 1.5rem 0;
  }
  
  .navbar .container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }
  
  .right-links {
    justify-content: center;
    width: 100%;
  }
  
  .nav-links li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
  }
  
  .left-links li:nth-child(1) { animation-delay: 0.1s; }
  .left-links li:nth-child(2) { animation-delay: 0.2s; }
  .right-links li:nth-child(1) { animation-delay: 0.3s; }
  .right-links li:nth-child(2) { animation-delay: 0.4s; }
  .right-links li:nth-child(3) { animation-delay: 0.5s; }
   
  .logo {
    height: 125px;
    width: auto;
    object-fit: contain;
    object-position: center;
    overflow: hidden;
    padding: 5px 0;
    clip-path: inset(35% 0 35% 0);
    transform: scale(0.5);
    margin: 0 -20px;
    animation: fadeInUp 0.5s ease forwards;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 2rem;
  }

  /* Section Title */
  .section-title {
    font-size: 2rem;
  }

  /* Grid Responsive */
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}
