/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --social-bg: rgba(31, 41, 55, 0.5);
  --modal-bg: #ffffff;
  --modal-border: #e5e7eb;
  --email-box-bg: #f3f4f6;
  --gradient-start: #e0e7ff;
  --gradient-mid: #f0e6ff;
  --gradient-end: #e0f2fe;
}

html.dark {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111827;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --social-bg: rgba(255, 255, 255, 0.1);
  --modal-bg: #111827;
  --modal-border: #374151;
  --email-box-bg: #1f2937;
  --gradient-start: #000000;
  --gradient-mid: #050508;
  --gradient-end: #000000;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Fluid Canvas */
#fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Theme Toggle */
#theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

html.dark #theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

html:not(.dark) #theme-toggle {
  border-color: rgba(31, 41, 55, 0.3);
  background: rgba(31, 41, 55, 0.1);
}

/* Show/hide icons based on theme */
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }
html:not(.dark) .icon-sun { display: none; }
html:not(.dark) .icon-moon { display: block; }

/* Main Content */
main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

.container {
  max-width: 28rem;
  width: 100%;
  text-align: center;
}

/* Profile Image */
.profile-section {
  margin-bottom: 2rem;
}

.profile-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  background: var(--social-bg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.social-icon.hover-red:hover { color: #ef4444; }
.social-icon.hover-blue:hover { color: #60a5fa; }
.social-icon.hover-lightblue:hover { color: #93c5fd; }
.social-icon.hover-pink:hover { color: #f472b6; }
.social-icon.hover-green:hover { color: #4ade80; }

/* Bio Section */
.bio-section {
  margin-bottom: 2rem;
}

.label {
  color: hsl(227, 100%, 50%);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.name {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .name {
    font-size: 3rem;
  }
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 300;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-btn:hover .cta-icon {
  transform: translateX(4px);
}

.cta-icon {
  transition: transform 0.2s ease;
}

.icon-blue {
  color: hsl(227, 100%, 50%);
}

/* Button variants */
.cta-dark {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid hsl(227, 100%, 50%);
  color: #ffffff;
}
.cta-dark:hover {
  background: rgba(0, 0, 0, 1);
}

.cta-blue {
  background: hsl(227, 100%, 50%);
  color: #ffffff;
}
.cta-blue:hover {
  background: hsl(227, 100%, 40%);
}

.cta-orange {
  background: #de9018;
  color: #ffffff;
}
.cta-orange:hover {
  background: #c47f14;
}

.cta-purple {
  background: #9333ea;
  color: #ffffff;
}
.cta-purple:hover {
  background: #7e22ce;
}

.cta-green {
  background: #16a34a;
  color: #ffffff;
}
.cta-green:hover {
  background: #15803d;
}

/* Badge */
.badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.cta-btn:hover .badge {
  background: rgba(255, 255, 255, 0.3);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--modal-bg);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  width: calc(100% - 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--modal-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-email-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--email-box-bg);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.modal-email-box span {
  color: var(--text-primary);
  font-weight: 500;
}

.copy-email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background: hsl(227, 100%, 50%);
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.copy-email-btn:hover {
  background: hsl(227, 100%, 40%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-section { animation: fadeIn 0.5s ease forwards; }
.social-icons { animation: fadeIn 0.5s ease 0.1s forwards; opacity: 0; }
.bio-section { animation: fadeIn 0.5s ease 0.2s forwards; opacity: 0; }
.cta-buttons { animation: fadeIn 0.5s ease 0.3s forwards; opacity: 0; }
