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

:root {
  --primary-dark: #343153;
  --primary-gold: #f6b620;
  --secondary-gold: #cf9924;
  --background-dark: #1f1a39;
  --light-gray: #c0c0d1;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--primary-dark) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Animated background particles */
body::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(246, 182, 32, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(207, 153, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(192, 192, 209, 0.05) 0%, transparent 50%);
  animation: float 15s ease-in-out infinite;
}

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

.container {
  max-width: 900px;
  width: 100%;
  background: rgba(52, 49, 83, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(246, 182, 32, 0.2);
}

.header {
  text-align: center;
  margin-bottom: 50px;
}

.logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  animation: pulse 3s ease-in-out infinite;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(246, 182, 32, 0.4));
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  font-weight: 400;
  margin-bottom: 10px;
}

.university {
  font-size: 1rem;
  color: var(--light-gray);
  opacity: 0.8;
  font-weight: 300;
}

.divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  margin: 40px auto;
}

.links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.link-card {
  background: linear-gradient(135deg, rgba(246, 182, 32, 0.1), rgba(207, 153, 36, 0.05));
  border: 2px solid rgba(246, 182, 32, 0.3);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(246, 182, 32, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.link-card:hover::before {
  right: -150%;
}

.link-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-gold);
  box-shadow: 0 15px 40px rgba(246, 182, 32, 0.3);
  background: linear-gradient(135deg, rgba(246, 182, 32, 0.2), rgba(207, 153, 36, 0.1));
}

.link-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 1;
}

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: block;
  transition: all 0.3s ease;
}
.icon.journal {
    width: auto;
}

.link-card:hover .icon {
  transform: scale(1.1);
}
.link-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-gold);
  margin-bottom: 10px;
}

.link-description {
  font-size: 0.9rem;
  color: var(--light-gray);
  opacity: 0.9;
}

.journal-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(207, 153, 36, 0.15), rgba(246, 182, 32, 0.1));
  border: 2px solid var(--secondary-gold);
}

.journal-card:hover {
  border-color: var(--primary-gold);
  box-shadow: 0 15px 40px rgba(207, 153, 36, 0.4);
}

.footer {
  text-align: center;
  margin-top: 40px;
  color: var(--light-gray);
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .container {
    padding: 40px 25px;
    border-radius: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .logo {
    width: 100px;
    height: 100px;
  }
  .links-container {
    grid-template-columns: 1fr;
  }

  .link-card {
    padding: 25px;
  }

  .icon {
    width: 50px;
    height: 50px;
  }
  .icon.journal {
    width: auto;
  }
  .link-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .logo {
    width: 80px;
    height: 80px;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeIn 0.8s ease-out;
}

.link-card {
  animation: fadeIn 0.8s ease-out backwards;
}

.link-card:nth-child(1) {
  animation-delay: 0.1s;
}
.link-card:nth-child(2) {
  animation-delay: 0.2s;
}
.link-card:nth-child(3) {
  animation-delay: 0.3s;
}
.link-card:nth-child(4) {
  animation-delay: 0.4s;
}
