/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(-45deg, #1f1c2c, #928dab, #1f1c2c, #ff6584);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: #fff;
  overflow-x: hidden;
}

/* LINKS & BUTTONS */
a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.6em 1.5em;
  font-weight: 600;
  transition: all 0.4s ease;
  background: linear-gradient(45deg, #ff6584, #6c63ff);
  color: #fff;
  box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
  transform-style: preserve-3d;
}

button:hover {
  transform: translateY(-5px) rotateZ(2deg) scale(1.08);
  box-shadow: 0 15px 25px rgba(108, 99, 255, 0.6);
  background: linear-gradient(45deg, #6c63ff, #ff6584);
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 3em;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 30, 47, 0.75);
  backdrop-filter: blur(12px);
  animation: slideDown 1s ease forwards;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.logo {
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ff6584;
  animation: textPop 1s ease forwards;
}

.logo span {
  color: #6c63ff;
  animation: bounce 1.2s infinite;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 2em;
}

.nav-bar ul li .nav-link {
  position: relative;
  font-weight: 500;
  color: #fff;
  transition: 0.3s;
}

.nav-bar ul li .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ff6584;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

.nav-bar ul li .nav-link:hover::after {
  width: 100%;
  animation: underlineGrow 0.4s ease forwards;
}

/* MAIN CONTAINER */
.container {
  max-width: 1200px;
  margin: 3em auto;
  padding: 0 2em;
}

/* INTRO SECTION */
.intro {
  text-align: center;
  margin-bottom: 3em;
  animation: fadeInUp 1.2s ease forwards;
}

.intro .title {
  font-size: 2.8em;
  margin-bottom: 1em;
  background: linear-gradient(90deg, #ff6584, #6c63ff, #ffcb6b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 6s ease infinite;
}

.intro .subtitle {
  font-size: 1.2em;
  line-height: 1.8;
  color: #dcdcdc;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.5s;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
}

.card {
  background: rgba(40, 40, 60, 0.85);
  padding: 1.5em;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  animation: cardPop 1s ease forwards;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,101,132,0.3), rgba(108,99,255,0.3), rgba(255,203,107,0.3));
  animation: rotateBG 8s linear infinite;
  z-index: 0;
  transform-origin: center;
}

.card h2 {
  margin-bottom: 0.8em;
  color: #6c63ff;
  font-size: 1.3em;
  position: relative;
  z-index: 1;
}

.card p, .card ul {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-15px) rotateX(3deg) rotateY(3deg);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.6);
}

/* CONTACT SECTION */
.contact {
  text-align: center;
  margin: 4em 0;
  animation: fadeIn 1.5s ease forwards;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #ff6584;
  animation: gradientText 6s ease infinite;
}

.contact a button {
  margin-top: 1em;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2em 0;
  background: rgba(30, 30, 47, 0.85);
  backdrop-filter: blur(10px);
  animation: fadeIn 2s ease forwards;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

/* BOX FLOATING DECOR */
.box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6em;
  color: rgba(108, 99, 255, 0.2);
  animation: float 6s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ANIMATIONS */
@keyframes float {
  0% { transform: translate(-50%, -50%) translateY(-30px); }
  50% { transform: translate(-50%, -50%) translateY(30px); }
  100% { transform: translate(-50%, -50%) translateY(-30px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

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

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  0% { transform: translateY(-120px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes textPop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes cardPop {
  0% { opacity: 0; transform: translateY(50px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rotateBG {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes underlineGrow {
  0% { width: 0%; }
  100% { width: 100%; }
}