/* Stop looking at my code me don't like that! :( */
:root {
  --accent-blue: #00d2ff;
  --accent-yellow: #ffd700;
  --accent-green: #366136; /* Breaking Bad Green */
  --glass: rgba(15, 20, 35, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #cbd5e1;
  --bg-fallback: url('https://raw.githubusercontent.com/code-andrewy/jumpman64beta/refs/heads/main/charlie-brown-snoopy-stargazing-desktop-wallpaper-preview.jpg');
  --ease-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --card-radius: 40px;
  --card-padding: clamp(24px, 5vw, 56px);
  --glass-blur: 35px;
  --max-width: 1100px;
}

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

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--bg-fallback);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Background Layers */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

#bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: -1;
  pointer-events: none;
}

/* The Glass Card */
.container {
  width: 100%;
  max-width: var(--max-width);
  perspective: 2000px;
  z-index: 2;
  animation: cardAppear 0.85s var(--ease-smooth);
}

.card {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.65);
  transform-style: preserve-3d;
  position: relative;
  isolation: isolate;
}

/* Mouse Glow Effect */
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 45%);
}

/* Profile Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.pfp-outer {
  width: clamp(140px, 20vw, 220px);
  height: clamp(140px, 20vw, 220px);
  background: var(--accent-yellow);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-bouncy);
}

.pfp-outer:hover {
  transform: scale(1.05) rotate(2deg);
}

.pfp-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(0, 0, 0, 0.2);
}

.pfp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Social Icons */
.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.28s var(--ease-smooth);
  position: relative;
}

.social-btn:hover {
  transform: translateY(-8px);
}

/* Hover Colors for Specific Icons */
.social-btn.youtube:hover { background: #ff0000; border-color: #ff0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3); }
.social-btn.github:hover { background: #333; border-color: #666; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.social-btn.contact:hover { background: var(--accent-blue); border-color: var(--accent-blue); box-shadow: 0 8px 20px rgba(0, 210, 255, 0.3); }

/* Tooltips */
.social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.9);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
  z-index: 1000;
}

.social-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Content & Breaking Bad Logo */
.content-section {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.greeting {
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  font-size: 0.75rem;
}

.name-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.element-box {
  background: var(--accent-green);
  border: 2px solid #fff;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.element-box small {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.8rem;
  opacity: 0.9;
}

.logo-text {
  font-family: 'Times New Roman', serif;
  letter-spacing: -2px;
}

/* Typewriter */
.typewriter-wrap {
  font-size: clamp(1.1rem, 2.8vw, 1.85rem);
  font-weight: 700;
  min-height: 1.5em;
}

#typewriter {
  color: var(--accent-blue);
  border-right: 2px solid var(--accent-blue);
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

.bio {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  background: rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Time & Weather Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stat-box i {
  color: var(--accent-blue);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stat-box span {
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-box small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Animations */
@keyframes cardAppear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { border-color: transparent; } }

/* Responsive Layout */
@media (min-width: 850px) {
  .card { grid-template-columns: 320px 1fr; align-items: center; gap: 50px; }
  .profile-section { border-right: 1px solid var(--border); padding-right: 50px; }
  .social-row { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .card { padding: 24px; border-radius: 30px; }
  .profile-section { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .element-box { width: 55px; height: 55px; font-size: 2rem; }
  .element-box small { font-size: 0.6rem; }
}
