/* === EASY COLOR CONTROL === */
:root {
  --primary: #d87f36;
  --primary-hover: #af5810;
  --bg-dark: #0f172a;
  --gradient-top: rgba(0, 0, 0, 0.7);
  --gradient-bottom: rgba(15, 23, 42, 0.9);
  --text-muted: #d1d5db;
  --transition: all 0.3s ease;
}

/* === GLOBAL STYLES === */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: #fff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

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

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Subtle Text Fade-in for Header === */
header.fade-in {
  opacity: 1;
  transform: none;
  animation: none;
}

header.fade-in * {
  opacity: 0;
  animation: headerTextFade 1s ease-out forwards;
}

/* Delay nav links slightly for a staggered feel */
header.fade-in nav a:nth-child(1) { animation-delay: 0.05s; }
header.fade-in nav a:nth-child(2) { animation-delay: 0.06s; }
header.fade-in nav a:nth-child(3) { animation-delay: 0.07s; }

@keyframes headerTextFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HEADER LOGO === */
header img {
  height: 40px;
  margin-right: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

header img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(216, 127, 54, 0.5);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* === NAV LINKS === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.6s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 8px rgba(177, 123, 78, 0.4);
}

.nav-link:hover::after {
  width: 100%;
  background-color: var(--primary-hover);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--primary);
}

/* === HERO SECTION === */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('assets/banner.jpg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--gradient-top), var(--gradient-bottom));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 1.5s ease-out forwards;
}

/* === MAIN LOGO === */
.hero img {
  width: 70%;
  max-width: 800px;
  border-radius: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.hero img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 35px rgba(216, 127, 54, 0.6);
}

/* === MAIN ACTION BUTTON === */
.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 1rem 3rem;
  border-radius: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
  width: 25vw;
  min-width: 220px;
  max-width: 480px;
}

.main-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(0.95);
  box-shadow: 0 0 25px rgba(216, 127, 54, 0.5);
}

/* === SOCIAL ICONS === */
.socials {
  position: relative;
  margin-top: 12rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  z-index: 1;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 1.75rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(216, 127, 54, 0.5);
}

/* === DEPARTMENT BOXES === */
.dept-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 3rem 1.5rem;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  height: 90vh;
}

.dept-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(216, 127, 54, 0.2);
}

.dept-box img.absolute {
  object-fit: cover;
  opacity: 0.4;
}

.dept-box .relative.z-10 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 70%;
}

.dept-box .relative.z-10 img {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(216, 127, 54, 0.3));
  transition: transform 0.3s ease;
  margin-bottom: 1rem;
}

.dept-box:hover .relative.z-10 img {
  transform: scale(1.05);
}

.dept-box h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.dept-box p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 80%;
  opacity: 0.9;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .main-btn {
    width: 32vw;
  }

  .dept-box {
    height: auto;
    min-height: 70vh;
  }

  .dept-box h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero img {
    width: 85%;
  }

  .nav-links {
    gap: 1rem;
  }

  .main-btn {
    width: 60%;
    font-size: 0.95rem;
  }

  .dept-box {
    height: auto;
  }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

.fade-in { animation: fadeIn 1s ease-in-out forwards; }
.fade-in-delay { opacity: 0; animation: fadeIn 0.6s ease-in-out 0.3s forwards; }
.fade-in-delay-2 { opacity: 0; animation: fadeIn 0.6s ease-in-out 0.6s forwards; }
.fade-in-delay-3 { opacity: 0; animation: fadeIn 0.6s ease-in-out 0.9s forwards; }
