@font-face {
  font-family: 'CustomFont';
  src: url("./asset/custom.ttf") format('truetype');
  font-display: swap;
}

:root {
  --font-heading: 'CustomFont', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Light Theme Colors */
  --bg-color: #f0f2f5;
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(255, 255, 255, 0.4);
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --accent-color: #00b894;
  --accent-hover: #00cec9;
  --shadow-color: rgba(0, 0, 0, 0.08);
  
  /* Ambient Light Colors (Light) */
  --orb-1: rgba(0, 184, 148, 0.25);
  --orb-2: rgba(9, 132, 227, 0.25);
  
  --transition-speed: 0.4s;
}

html[data-theme='dark'] {
  /* Dark Theme Colors */
  --bg-color: #0f1115;
  --card-bg: rgba(30, 34, 45, 0.6);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #dfe6e9;
  --text-secondary: #b2bec3;
  --accent-color: #55efc4;
  --accent-hover: #81ecec;
  --shadow-color: rgba(0, 0, 0, 0.3);
  
  /* Ambient Light Colors (Dark) */
  --orb-1: rgba(85, 239, 196, 0.15);
  --orb-2: rgba(116, 185, 255, 0.15);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  position: relative;
}

/* Ambient Background Animation */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 20s infinite alternate ease-in-out;
}

.ambient-light.one {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--orb-1);
  animation-delay: -5s;
}

.ambient-light.two {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--orb-2);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 50px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Glass Card Container */
.glass-container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  z-index: 1;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem;
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 20px 50px var(--shadow-color);
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px var(--shadow-color);
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card-bg);
  box-shadow: 0 10px 25px var(--shadow-color);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-wrapper:hover .avatar {
  transform: scale(1.05) rotate(3deg);
}

.status-indicator {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  background-color: #2ecc71;
  border: 3px solid var(--card-bg);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Content */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 0.2rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.instruction {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.4;
}

/* Social Buttons */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.social-btn svg {
  transition: transform 0.3s ease;
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.social-btn.github {
  background-color: var(--text-primary);
  color: var(--bg-color);
}

.social-btn.github:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-btn.email {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}

.social-btn.email:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: rgba(0, 184, 148, 0.05);
  transform: translateY(-2px);
}

/* Theme Toggle */
.theme-switch-wrapper {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 10;
}

.theme-switch {
  cursor: pointer;
  display: block;
}

.theme-switch input {
  display: none;
}

.theme-icon {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--shadow-color);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.theme-icon:hover {
  transform: scale(1.1);
  background: var(--accent-color);
  color: #fff;
}

.sun-icon, .moon-icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: all 0.4s ease;
}

html[data-theme='light'] .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
html[data-theme='light'] .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme='dark'] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
html[data-theme='dark'] .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Footer */
footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  z-index: 1;
}

.footer-decoration {
  color: var(--accent-color);
  font-size: 0.8rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .content-wrapper {
    align-items: center;
  }

  .name {
    font-size: 2.8rem;
  }

  .avatar {
    width: 130px;
    height: 130px;
  }

  .social-links {
    flex-direction: column;
    width: 100%;
  }
  
  .social-btn {
    width: 100%;
    justify-content: center;
  }
}