@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;600&display=swap');

:root {
  --bg: #f9f9f9;
  --text: #222;
  --accent: #0077ff;
  --card-bg: #fff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* 🌙 Dark Mode */
body.dark {
  --bg: #121212;
  --text: #f5f5f5;
  --accent: #66aaff;
  --card-bg: #1e1e1e;
  --shadow: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  transition: background 0.5s, color 0.5s;
}

.container {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.profile-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem 1.5rem 2rem;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s;
  overflow: hidden;
}

.profile-card:hover {
  transform: translateY(-5px);
}

/* Poster Background */
.poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 225px;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.profile-pic {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 120px;
  border: 4px solid var(--card-bg);
  box-shadow: 0 0 0 3px var(--accent);
}

/* Text */
.name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1rem;
}

.title {
  color: #777;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Toggle Button */
.toggle-btn {
  display: inline-block;
  margin-top: 1rem;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 0.9rem;
}

.toggle-btn:hover {
  background: #005fcc;
}

/* Info Section */
.info-section {
  margin-top: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
  
  /* Center contents */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.info-item:hover {
  transform: scale(1.03);
}

.info-item h3 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-item p, 
.info-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  word-break: break-word;
}

.info-item a:hover {
  color: var(--accent);
}

.footer {
  margin-top: auto;
  padding: 1rem 0;
  color: #777;
  font-size: 0.9rem;
  transition: color 0.3s;
}

body.dark .footer {
  color: #aaa;
}