@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* Basic CSS Resets & Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scrolls from ripple scaling */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  
  /* Curated Premium Dynamic Gradient Background */
  /* --mouse-x and --mouse-y are interpolated in JS for 60fps tracking */
  background: radial-gradient(
    circle 55vmax at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(139, 92, 246, 0.45) 0%,     /* Glowing softer purple */
    rgba(37, 99, 235, 0.25) 45%,      /* Deep vibrant blue */
    rgba(10, 15, 30, 1) 100%          /* Sleek rich dark blue base */
  );
  background-color: #0a0f1e;
  
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  /* Smooth transitions for fallback background positioning */
  transition: background-color 0.5s ease;
  
  /* Prevent blue tap highlights and text selections for interactivity */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Interactive Canvas Dot Grid */
#grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2; /* Layered directly below content (5) and top bar (10) but above background gradient */
  pointer-events: none; /* Let clicks pass through for click event handler */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Transparent Top Bar */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 4rem;
  background: transparent;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.brand-name:hover {
  opacity: 0.85;
}
.job-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.7) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.divider {
  width: 1px;
  height: 1.25rem;
  background-color: rgba(255, 255, 255, 0.15);
}

.linkedin-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.linkedin-link:hover {
  color: #0077b5; /* Official LinkedIn Blue hover accent */
  transform: scale(1.15) rotate(2deg);
}

.linkedin-icon {
  width: 1.4rem;
  height: 1.4rem;
}

/* Clean, Neat Typography Block in the Center */
.content-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 5;
  pointer-events: none; /* Let click pass through for background ripple */
}

.heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.25rem, 6.5vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.95rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subheading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: fade-in-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0; /* Animated on load */
}

/* Subtly Animated Entry */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Interactive Ripple Element */
.ripple {
  position: absolute;
  top: var(--ripple-y);
  left: var(--ripple-x);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.03) 0%, rgba(255, 255, 255, 0) 80%);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.05);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: ripple-animation 1.3s cubic-bezier(0.1, 0.4, 0.1, 1) forwards;
}

@keyframes ripple-animation {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(35);
    opacity: 0;
  }
}

/* Media Queries for Small Viewports */
@media (max-width: 600px) {
  .top-bar {
    padding: 2rem 2rem;
  }
  
  .brand-name {
    font-size: 1.15rem;
  }
  
  .linkedin-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .content-center {
    padding: 1.5rem;
  }
}
