:root {
  --primary-color: #5e72e4;
  --secondary-color: #6c63ff;
  --accent-color: #00d4ff;
  --dark-bg: #0f0f23;
  --light-bg: #1a1a2e;
  --card-bg: rgba(26, 26, 46, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #a8b2d1;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.btn {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: inline-block;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--gradient-primary);
}

.header {
  background: transparent;
  position: relative;
  padding-bottom: 2rem;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(94, 114, 228, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.header .top-bar {
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.header .social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.header .social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
  border: 1px solid var(--border-color);
}

.header .social a:hover {
  background: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(94, 114, 228, 0.4);
}

.header .profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  margin: 2rem auto;
  display: block;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.header .name {
  text-align: center;
  margin: 2rem 0 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.header .intro {
  background: transparent;
  padding: 3rem 0;
}

.header .profile {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.header .contact-info {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.header .contact-info ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header .contact-info li {
  color: var(--text-secondary);
}

.header .contact-info li i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.page-nav-wrapper {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-color);
}

.page-nav-wrapper.fixed {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.page-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.page-nav li {
  list-style: none;
}

.page-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: var(--transition-base);
  position: relative;
}

.page-nav a:hover,
.page-nav a.active {
  color: var(--text-primary);
  background: rgba(94, 114, 228, 0.2);
}

.wrapper {
  padding: 4rem 0;
  position: relative;
}

.section {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(94, 114, 228, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(94, 114, 228, 0.3);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline {
  position: relative;
  padding-left: 3rem;
  border-left: 3px solid var(--primary-color);
}

.timeline .item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
  animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline .item::before {
  content: '';
  position: absolute;
  left: -3.6rem;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 20px rgba(94, 114, 228, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(94, 114, 228, 0.5); }
  50% { box-shadow: 0 0 40px rgba(94, 114, 228, 0.8); }
}

.timeline .place {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline .location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline .job-meta {
  margin-bottom: 1rem;
}

.timeline .job-meta .title {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline .job-meta .time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline .job-desc {
  line-height: 1.8;
  color: var(--text-secondary);
}

.timeline .job-highlights {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.timeline .job-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.timeline .job-highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.skills-section {
  text-align: center;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  transition: var(--transition-base);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(94, 114, 228, 0.05) 0%, transparent 70%);
  transition: var(--transition-base);
  transform: scale(0);
}

.skill-category:hover::before {
  transform: scale(1);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(94, 114, 228, 0.3);
  border-color: rgba(94, 114, 228, 0.3);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.skill-category:hover .skill-icon {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(94, 114, 228, 0.5);
}

.skill-name {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(94, 114, 228, 0.4);
}

.contact-section .intro {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-section .profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.contact-section .dialog {
  flex: 1;
  min-width: 300px;
}

.contact-section .service-list {
  list-style: none;
  padding: 0;
}

.contact-section .service-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.contact-section .service-list i {
  color: var(--accent-color);
  margin-right: 1rem;
}

.footer {
  background: rgba(15, 15, 35, 0.9);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .header .name {
    font-size: 2rem;
  }
  
  .header .title {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 2rem 1.5rem;
  }
  
  .timeline {
    padding-left: 1.5rem;
    margin-left: 0;
  }
  
  .timeline .item::before {
    left: -2.1rem;
  }
  
  .page-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .contact-section .intro {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .header .social a {
    width: 35px;
    height: 35px;
  }
  
  .header .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .section {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .page-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .page-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}