:root {
  --bg-gradient: linear-gradient(135deg, #fff0f5 0%, #f7e8ff 100%);
  --header-bg: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.9);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: #e0d0e6;
  --primary: #ff85a2;
  --primary-hover: #ff6b8b;
  --accent: #b19ffb;
  --text-dark: #4a3e4e;
  --text-muted: #7d6b85;
  --white: #ffffff;
  --shadow: 0 8px 25px rgba(255, 133, 162, 0.15);
  --radius: 20px;
}

body.dark-mode {
  --bg-gradient: linear-gradient(135deg, #181124 0%, #251638 100%);
  --header-bg: rgba(28, 20, 41, 0.85);
  --card-bg: rgba(35, 25, 51, 0.85);
  --card-border: rgba(78, 55, 107, 0.6);
  --input-bg: rgba(45, 32, 66, 0.9);
  --input-border: #523a73;
  --primary: #ff9ebb;
  --primary-hover: #ff80a5;
  --accent: #c4b5fd;
  --text-dark: #f3eef8;
  --text-muted: #c2b3d1;
  --white: #ffffff;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .logo {
  font-family: 'Fredoka', cursive;
  color: var(--text-dark);
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 8%;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease;
}

.nav-icon {
  width: 50px;
  height: 50px;
  vertical-align: middle;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

.theme-toggle {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  font-size: 1.1rem;
  padding: 0.4rem 0.7rem;
  margin-left: 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 70%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.sparkle-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--white);
  border-radius: 50%;
  padding: 6px;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-tagline {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.container {
  max-width: 850px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
  text-align: center;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 133, 162, 0.25);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.grid.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hobby-card {
  text-align: center;
  padding: 1.5rem;
}

.hobby-card .icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.hobby-card h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.goal-card {
  position: relative;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--accent);
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.badge.highlight {
  background: var(--primary);
}

.goal-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.goal-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card {
  text-align: center;
}

.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--input-bg);
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 133, 162, 0.2);
}

.submit-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: var(--primary-hover);
}

.divider {
  color: var(--text-muted);
  margin: 1rem 0;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-btn {
  background-color: #1877f2;
}

.ig-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}