/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  text-align: center;
  padding: 40px 0;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.confetti {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, #ff6b6b 2px, transparent 2px),
    radial-gradient(circle, #4ecdc4 2px, transparent 2px),
    radial-gradient(circle, #45b7d1 2px, transparent 2px),
    radial-gradient(circle, #f9ca24 2px, transparent 2px);
  background-size: 50px 50px, 60px 60px, 70px 70px, 80px 80px;
  background-position: 0 0, 20px 20px, 40px 40px, 60px 60px;
  animation: confetti-fall 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
  }
  50% {
    transform: translateY(5px) rotate(180deg);
  }
  100% {
    transform: translateY(-10px) rotate(360deg);
  }
}

.graduation-cap {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: #f8f9fa;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
  margin-bottom: 40px;
}

.congratulation-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e9ecef;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 3rem;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.graduate-name {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.graduate-origin {
  font-size: 1.1rem;
  color: #7f8c8d;
  font-weight: 300;
}

/* Achievement Section */
.achievement-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.achievement-item {
  display: flex;
  align-items: center;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
}

.achievement-item.completed {
  background: linear-gradient(135deg, #56ab2f, #a8e6cf);
  color: white;
}

.achievement-item.upcoming {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.achievement-icon {
  font-size: 2.5rem;
  margin-right: 20px;
}

.achievement-details h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.achievement-date {
  font-size: 1.1rem;
  margin-bottom: 10px;
  opacity: 0.9;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.status-badge.completed {
  background: rgba(255, 255, 255, 0.2);
}

.status-badge.upcoming {
  background: rgba(255, 255, 255, 0.2);
}

/* Countdown Section */
.countdown-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.countdown-section h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.time-unit {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px;
  border-radius: 10px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.time-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.time-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 5px;
}

/* Message Section */
.message-section {
  margin-bottom: 40px;
}

.congratulation-message {
  background: #e8f4f8;
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #667eea;
}

.congratulation-message p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #2c3e50;
}

.congratulation-message p:last-child {
  margin-bottom: 0;
  font-weight: 500;
}

/* Action Section */
.action-section {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #56ab2f, #a8e6cf);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(86, 171, 47, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  z-index: 1001;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Certificate Styles */
.certificate {
  padding: 40px;
  text-align: center;
  background: linear-gradient(45deg, #f7f9fc, #fff);
  border: 10px double #667eea;
  border-radius: 20px;
}

.certificate-header i {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 20px;
}

.certificate-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

.certificate-body {
  margin: 30px 0;
}

.certificate-body p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 10px;
}

.certificate-body h3 {
  font-size: 2.5rem;
  color: #667eea;
  margin: 20px 0;
  font-weight: 700;
}

.certificate-body h4 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin: 20px 0;
}

.certificate-footer {
  margin-top: 40px;
  text-align: right;
}

.signature p {
  margin: 5px 0;
  color: #666;
}

/* Wishes Section */
.wishes-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wishes-section h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}

.wishes-container {
  margin-bottom: 40px;
}

.wish-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid #667eea;
}

.wish-author {
  font-weight: 600;
  color: #667eea;
  margin-bottom: 8px;
}

.wish-message {
  color: #555;
  line-height: 1.5;
}

.wish-date {
  font-size: 0.9rem;
  color: #999;
  margin-top: 10px;
}

/* Add Wish Form */
.add-wish {
  background: #e8f4f8;
  padding: 30px;
  border-radius: 15px;
}

#wishForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#wishForm input,
#wishForm textarea {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#wishForm input:focus,
#wishForm textarea:focus {
  outline: none;
  border-color: #667eea;
}

#wishForm textarea {
  min-height: 100px;
  resize: vertical;
}

#wishForm button {
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#wishForm button:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: white;
  backdrop-filter: blur(10px);
}

.footer i {
  color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .sub-title {
    font-size: 1.4rem;
  }

  .congratulation-card {
    padding: 25px;
  }

  .achievement-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .countdown-timer {
    gap: 10px;
  }

  .time-unit {
    min-width: 60px;
    padding: 15px 10px;
  }

  .time-value {
    font-size: 1.5rem;
  }

  .action-section {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .certificate {
    padding: 20px;
  }

  .certificate-body h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .graduate-name {
    font-size: 1.8rem;
  }

  .achievement-item {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .achievement-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}
