@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

/* * 1. CSS Variables for Theming 
 */
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Russo One', sans-serif;
  
  /* Light Theme Colors */
  --bg-color: #f4f4f9;
  --card-bg-color: #ffffff;
  --text-color: #333333;
  --heading-color: #111111;
  --accent-color: #007bff;
  --accent-hover-color: #0056b3;
}

[data-theme="dark"] {
  /* Dark Theme Colors */
  --bg-color: #121212;
  --card-bg-color: #1e1e1e;
  --text-color: #cccccc;
  --heading-color: #ffffff;
  --accent-color: #ffd700;
  --accent-hover-color: #e6c300;
}

/* * 2. General Body and Layout Styles
 */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  
  /* Use Flexbox to center the main content */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-wrapper {
  background-color: var(--card-bg-color);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .card-wrapper {
    border: 1px solid rgba(255,255,255,0.1);
}

/* * 3. Typography and Content Styling 
 */
.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--heading-color);
}

.name {
  font-size: 2.5rem;
}

.short-bio {
  font-size: 1.25rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about {
    font-size: 1rem;
    line-height: 1.6;
}

.find-me {
    font-size: 1rem;
    opacity: 0.7;
}

/* * 4. Social Icons 
 */
.social-icons a {
  font-size: 1.75rem;
  color: var(--text-color);
  margin: 0 12px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* * 5. Theme Toggle Switch
 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}