/* -------------------------------------------------------------
   Modern Resets & Variables
------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0f0c20;
  --text-light: #ffffff;
  --text-muted: #b3b3b3;
  --accent-color: #7000ff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.353);
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* -------------------------------------------------------------
   Fun Moving Bubble Background
------------------------------------------------------------- */
.bubble-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -150px;
  background: radial-gradient(
    circle,
    rgba(112, 0, 255, 0.4) 0%,
    rgba(0, 212, 255, 0) 70%
  );
  border-radius: 50%;
  animation: floatUp 12s infinite linear;
}

/* Distribute sizing and positioning for variety */
.bubble:nth-child(1) {
  width: 300px;
  height: 300px;
  left: 10%;
  animation-duration: 14s;
}
.bubble:nth-child(2) {
  width: 450px;
  height: 450px;
  left: 45%;
  animation-duration: 18s;
  animation-delay: 2s;
}
.bubble:nth-child(3) {
  width: 250px;
  height: 250px;
  left: 75%;
  animation-duration: 10s;
  animation-delay: 4s;
}
.bubble:nth-child(4) {
  width: 350px;
  height: 350px;
  left: 25%;
  animation-duration: 16s;
  animation-delay: 1s;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.25) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}
.bubble:nth-child(5) {
  width: 200px;
  height: 200px;
  left: 60%;
  animation-duration: 12s;
  animation-delay: 6s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/* -------------------------------------------------------------
   Layout & Typography
------------------------------------------------------------- */
/* -------------------------------------------------------------
   Layout & Typography (Fixed for Responsiveness)
------------------------------------------------------------- */
.main-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 3rem 1.5rem;
  text-align: center;
  box-sizing: border-box; /* Ensures padding keeps content safely inside */
}

.hero-header h1 {
  /* Adjusted font sizing boundaries so it never overflows smaller displays */
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2; /* Prevents tight vertical clipping on word wraps */
  margin-bottom: 0.75rem;
  background: linear-gradient(45deg, #ffffff, #a370ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Modern text wrapping safety fallbacks */
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: breakdown;
}

.hero-header .subtitle {
  font-size: clamp(
    0.9rem,
    3vw,
    1.25rem
  ); /* Keeps subtitle legible on tiny viewports */
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.4;
  margin-bottom: 4rem;
  padding: 0 0.5rem;
}

/* -------------------------------------------------------------
   Project Cards Section
------------------------------------------------------------- */
.projects-section h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: 500;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-card {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  text-decoration: none;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.3s;
  background-size: cover;
  background-position: center;
  border: 2px solid #ffffff79;
}

/* Aesthetic Card Backgrounds (Using high-quality abstract layout placeholders) */
.card-lagravinese {
  background-image: url("https://unsplash.com");
}

.card-hooligans {
  background-image: url("https://unsplash.com");
  cursor: default;
}

/* Dark elegant gradient overlay for text readability */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(15, 12, 32, 0.9) 10%,
    rgba(15, 12, 32, 0.2) 100%
  );
  z-index: 1;
  transition: opacity 0.3s;
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Status Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
}

.badge.launch {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.badge.soon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* Hover Interactive Effects */
a.project-card:hover {
  transform: translateY(-8px);
  border: 2px solid var(--accent-color);
}

a.project-card:hover .card-overlay {
  opacity: 0.85;
}

/* -------------------------------------------------------------
   Footer Details
------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #a370ff;
}

/* -------------------------------------------------------------
   Project Card Background Images (Local Pathing)
------------------------------------------------------------- */
.card-lagravinese {
  background-image: url("images/lagrav.jpg"); /* Replace with your local filename */
}

.card-hooligans {
  background-image: url("images/hooligans.webp"); /* Replace with your local filename */
  cursor: default;
}
