/* Komang Andre Sutri Yasa */
/*-- 240040093 */
body {
  box-sizing: border-box;
}

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

:root {
  --primary-blue: #003366;
  --accent-red: #c41e3a;
  --accent-yellow: #ffd700;
  --text-dark: #1a1a2e;
  --bg-light: #f8fafc;
}

html,
body {
  height: 100%;
  font-family: "Poppins", sans-serif;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

/* Hero Section */
.hero-gradient {
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 60%
  );
  animation: float 6s ease-in-out infinite;
}

/* Cards */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
}

/* Sistem Informasi */
.prodi-card.si {
  border-top: 6px solid var(--primary-blue);
}

/* Sistem Komputer */
.prodi-card.sk {
  border-top: 6px solid var(--accent-red);
}

/* Bisnis Digital */
.prodi-card.bd {
  border-top: 6px solid var(--accent-yellow);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-red) 0%, #a01830 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::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-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
  border: 2px solid var(--accent-yellow);
  color: var(--accent-yellow);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent-yellow);
  color: var(--primary-blue);
}

/* Stats */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.1);
  border-bottom: 4px solid var(--accent-yellow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-bottom-color: var(--accent-red);
  transform: scale(1.02);
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prodi Cards */
.prodi-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.prodi-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
}

/* News Cards */
.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.1);
}

.news-image {
  height: 220px;
  background: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  animation: slideDown 0.3s ease-out;
}

.mobile-menu.show {
  display: block;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px 0;
  background: var(--primary-blue);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Decorations */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

/* Footer */
.footer-wave {
  position: relative;
}

.footer-wave::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23003366' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,75 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E")
    no-repeat;
  background-size: cover;
}

/* Form Inputs */
.input-field {
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
  outline: none;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--accent-red);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--accent-red);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, var(--accent-red), var(--accent-yellow));
}

.timeline-item:last-child::after {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
}
