:root {
  --primary: #eb2f06;
  --accent: #4a9eff;
  --text: white;
  --muted-text: #b2b2b3;
  --background: #000000;
  --surface: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.02);
}

body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

body, * {
  font-family: "Poppins", sans-serif;
  color: var(--text);
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  background: radial-gradient(circle at center, #021027, var(--background));
  min-height: 100vh;
}

.content {
  max-width: 900px;
  padding: 32px 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  border: 3px solid var(--muted-text);
  border-radius: 50%;
}

.links {
  display: flex;
  gap: 16px;
}

.link, .social-link {
  padding: 4px 0;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.social-link {
  color: var(--text);
}

.social-link:after {
  content: '';
  display: block;
  height: 1px;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 0;
  background-color: var(--primary);
  transition: width 0.15s;
}

.social-link:hover:after {
  width: 100%;
}

.link:after {
  content: '';
  display: block;
  height: 1px;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 0;
  background-color: var(--primary);
  transition: width 0.15s;
}

.link:hover:after{
  width: 100%;
}

.title {
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 12px;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted-text);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Navigation Styles */
.nav {
  margin-bottom: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  padding: 8px 0;
  text-decoration: none;
  color: var(--text);
  position: relative;
  cursor: pointer;
}

.nav-link:after {
  content: '';
  display: block;
  height: 1px;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 0;
  background-color: var(--primary);
  transition: width 0.15s;
}

.nav-link:hover:after {
  width: 100%;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(2, 16, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  margin-bottom: 32px;
}

/* Dropdown active state */
.dropdown.active .dropdown-toggle:after {
  width: 100%;
}

/* About Section */
.about-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}

.about-intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 32px;
  color: var(--muted-text);
}

/* Expertise Section */
.expertise-section {
  margin-top: 18px;
}

.expertise-toggle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.expertise-toggle:hover {
  color: var(--accent);
}

.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.expertise-section.expanded .toggle-icon {
  transform: rotate(45deg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.expertise-section.expanded .skills-grid {
  max-height: 1000px;
  padding: 24px 0 0 0;
}

/* Hobby Section */
.hobby-section {
  margin-top: 18px;
}

.hobby-toggle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.hobby-toggle:hover {
  color: var(--accent);
}

.hobby-section .toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.hobby-section.expanded .toggle-icon {
  transform: rotate(45deg);
}

.hobby-content {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, padding 0.4s ease, visibility 0.4s ease, opacity 0.4s ease;
  padding: 0;
}

.hobby-section.expanded .hobby-content {
  max-height: 600px;
  padding: 16px 0 0 0;
  visibility: visible;
  opacity: 1;
}

.projects-section {
  margin-bottom: 24px;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.project-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.project-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-item {
  background: var(--surface);
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent);
}

.skill-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted-text);
  margin: 0;
}

.footer {
  margin-bottom: 24px;
}

.github-contrib {
  margin-bottom: 16px;
}

/* About Section */
.about-section {
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrapper {
    padding: 32px 0;
  }
  
  .content {
    padding: 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .title {
    font-size: 1.3rem;
  }
  
  .subtitle {
    font-size: 0.9rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .project-links {
    flex-direction: column;
    gap: 12px;
  }
  
  .project-link {
    padding: 10px 14px;
  }
  
  .dropdown-menu {
    min-width: 160px;
    right: 0;
    left: auto;
  }
  
  .links {
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 24px 16px;
  }
  
  .content {
    padding: 16px 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .title {
    font-size: 1.2rem;
  }
  
  .subtitle {
    font-size: 0.85rem;
  }
  
  .about-intro {
    font-size: 0.9rem;
  }
  
  .expertise-toggle, .hobby-toggle {
    font-size: 1.1rem;
  }
  
  .skill-item {
    padding: 10px 16px;
  }
  
  .project-name {
    font-size: 0.85rem;
  }
  
  .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 140px;
  }
}
