/* =========================
   Base
========================= */

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

:root {
  /* background */
  --bg1: #ffb6f9;
  --bg2: #a0e9ff;
  --bg3: #caa8ff;

  /* glass */
  --glass: rgba(255,255,255,0.25);
  --glass-strong: rgba(255,255,255,0.45);

  /* colors */
  --text: #222;
  --btn-text: #1b94e0;
  --btn-hover-text: #ff6fa3;

  /* accents */
  --accent: #9a6cff;

  /* shadows */
  --shadow-sm: 0 8px 18px rgba(0,0,0,0.08);
  --shadow-md: 0 20px 40px rgba(0,0,0,0.14);
  --shadow-lg: 0 35px 70px rgba(0,0,0,0.18);

  /* blur */
  --blur: 14px;
  --blur-strong: 18px;
}

body {
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
  background-size: 300% 300%;
  animation: gradientMove 12s ease infinite;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Animations
========================= */

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

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

/* =========================
   Layout
========================= */

section {
  padding: 80px 20px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* =========================
   Glass Component
========================= */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-strong);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

/* =========================
   Hero Card
========================= */

.glass-card {
  max-width: 560px;
  width: 100%;
  padding: 48px;
  border-radius: 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: fadeUp .9s ease;
}

.glass-card.glass {
  backdrop-filter: blur(var(--blur-strong));
}

/* =========================
   Logo
========================= */

.logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.45);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .4s ease;
  opacity: 0;
  transform: scale(.85);
  transition: all 600ms cubic-bezier(.22,.9,.35,1);
}

.logo-visible {
  opacity: 1;
  transform: scale(1);
}

.logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.08) rotate(2deg);
}

/* =========================
   Typography
========================= */

h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.subtitle {
  opacity: .85;
  margin-bottom: 16px;
}

.description {
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* =========================
   Buttons
========================= */

.buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 22px;
  border-radius: 999px;

  font-weight: 600;
  text-decoration: none;

  color: var(--btn-text);

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.6);

  backdrop-filter: blur(8px);

  box-shadow: var(--shadow-sm);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(255,255,255,0.8)
  );

  color: var(--btn-hover-text);
}

/* =========================
   Portfolio
========================= */

.portfolio {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.portfolio h2 {
  font-size: 1.8rem;
  margin-bottom: 48px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 32px;
}

/* =========================
   Project Card
========================= */

.project-card {
  display: block;
  padding: 20px;
  border-radius: 20px;

  text-decoration: none;
  color: inherit;

  cursor: pointer;

  box-shadow: var(--shadow-md);

  opacity: 0;
  transform: translateY(40px);
  transition: all 700ms cubic-bezier(.2,.9,.3,1);

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

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

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* =========================
   Footer
========================= */

footer {
  padding: 40px 20px;
  text-align: center;
  opacity: .7;
}

/* =========================
   Responsive
========================= */

@media (max-width:600px) {

  .glass-card {
    padding: 28px;
  }

  h1 {
    font-size: 1.6rem;
  }

}
