:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent-color: #00ff88;
  --accent-hover: #00cc6a;
  --border-color: #333333;
  --shadow-color: rgba(0, 255, 136, 0.1);
}

/* Light theme variables */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --accent-color: #21ce4a;
  --accent-hover: #218838;
  --border-color: #dee2e6;
  --shadow-color: rgba(40, 167, 69, 0.1);
}

/* Theme toggle button styles */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--bg-secondary);
  color: var(--accent-color);
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 2px solid var(--border-color);
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
  transform: scale(1.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Profile Section */
.profile-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.profile-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: sticky;
  top: 40px;
  height: fit-content;
  transition: background-color 0.3s ease;
}

.profile-image {
  position: relative;
  margin-bottom: 20px;
}

.profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.availability {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.profile-info h1 {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* LinkedIn button styles */
.linkedin-button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  text-decoration: none;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  margin: 0 auto 20px auto;
}

.linkedin-button:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.linkedin-button i {
  font-size: 16px;
}

/* Intro Section */
.intro-section {
  padding-left: 20px;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.wave {
  font-size: 18px;
  animation: wave 2s infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(20deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.intro-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.highlight {
  color: var(--accent-color);
}

.location {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat {
  text-align: center;
}

.stat .number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 5px;
}

.stat .label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Section Headers */
section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  margin-bottom: 30px;
  font-weight: 600;
}

section h3 i {
  color: var(--accent-color);
}

/* Experience Section */
.experience-section {
  margin-bottom: 60px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.timeline-icon {
  position: absolute;
  left: -40px;
  top: 25px;
  width: 30px;
  height: 30px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.timeline-content h4 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 600;
}

.timeline-content .period {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 15px;
  display: block;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Projects Section */
.projects-section {
  margin-bottom: 60px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
  position: relative;
}

.project-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 600;
}

.project-info p {
  color: var(--text-muted);
  font-size: 14px;
}

.project-link {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
}

.load-more {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.load-more:hover {
  background: var(--accent-color);
  color: var(--bg-primary);
}

/* Education Section */
.education-section {
  margin-bottom: 60px;
}

.education-item {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.education-item:hover {
  background: var(--bg-tertiary);
  border-left-color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.education-item h4 {
  font-size: 20px;
  margin-bottom: 5px;
  font-weight: 600;
}

.education-item .period {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.education-item .institution {
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.education-item p:last-child {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Skills Section */
.skills-section {
  margin-bottom: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.skill-item {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.skill-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px var(--shadow-color);
}

.skill-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skill-item span {
  font-size: 14px;
  font-weight: 500;
}

/* Interests Section */
.interests-section {
  margin-bottom: 60px;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.interest-item {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.interest-item:hover {
  background: var(--bg-tertiary);
  border-left-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-color);
}

.interest-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.interest-item:hover .interest-icon {
  transform: scale(1.1);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.interest-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.interest-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

/* Contact Section */
.contact-section {
  margin-bottom: 60px;
}

.contact-intro {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.contact-item i {
  color: var(--accent-color);
  width: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: border-color 0.3s ease;
}

.footer i {
  color: #ff4757;
  margin: 0 5px;
}

.footer-signature {
  margin-top: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-card {
    position: static;
  }

  .intro-section {
    padding-left: 0;
  }

  .intro-section h2 {
    font-size: 32px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }

  .intro-section h2 {
    font-size: 28px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }
}
