/* CSS Variables for theming */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #0891b2;
  --primary-foreground: #f0f9ff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #fef2f2;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #0891b2;
  --radius: 0.5rem;
}

.dark-theme {
  --background: #020617;
  --foreground: #f8fafc;
  --card: #020617;
  --card-foreground: #f8fafc;
  --popover: #020617;
  --popover-foreground: #f8fafc;
  --primary: #0891b2;
  --primary-foreground: #f0f9ff;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --accent: #1e293b;
  --accent-foreground: #f8fafc;
  --destructive: #ef4444;
  --destructive-foreground: #fef2f2;
  --border: #1e293b;
  --input: #1e293b;
  --ring: #0891b2;
}

/* Normal link */
a {
  color: var(--foreground);       /* blue */
  text-decoration: none; /* remove underline */
  font-weight: 500;      /* optional */
}

/* Visited link */
a:visited {
  color: #551a8b;       /* purple-ish */
}

/* Hover effect */
a:hover {
  color: #ff6600;       /* orange */
  text-decoration: none; /* show underline on hover */
  transition: 0.2s;      /* smooth color change */
}

/* Active (when clicking) */
a:active {
  color: #ff0000;       /* red */
}
.theme-toggle {
  color: var(--foreground);
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(var(--background), 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.nav-icon:hover {
  transform: scale(1.1) rotate(12deg);
}

.nav-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  text-transform: capitalize;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--foreground);
  transform: scale(1.05);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 500;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.theme-icon {
  width: 1rem;
  height: 1rem;
}

/* Hero Section */
.hero {
  padding: 5rem 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  position: relative;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 500;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.contact-icon {
  width: 1rem;
  height: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-card-container {
  text-align: center;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

@media (min-width: 1024px) {
  .hero-card-container {
    text-align: right;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.9;
  box-shadow: 0 10px 25px rgba(8, 145, 178, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  color: var(--card-foreground);
}

.hero-card {
  background-color: rgba(var(--card), 0.8);
}

.current-role {
  text-align: center;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

.current-description {
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.7;
}

/* Main Content */
.main-content {
  padding: 4rem 1rem;
}

/* Tabs */
.tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2rem;
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 0.25rem;
}

.tab-trigger {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: calc(var(--radius) - 0.25rem);
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--muted-foreground);
}

.tab-trigger:hover {
  transform: scale(1.05);
  color: var(--foreground);
}

.tab-trigger.active {
  background-color: var(--background);
  color: var(--foreground);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

/* Content layouts */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skills-card {
  grid-column: 1 / -1;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 0.25rem);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  transform: scale(1.1);
  background-color: var(--accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Education and achievements */
.education-item {
  margin-bottom: 1rem;
}

.education-item:last-child {
  margin-bottom: 0;
}

.education-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.education-details {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Research */
.research-description {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.research-section h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.research-list {
  list-style: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.research-list li {
  margin-bottom: 0.25rem;
}

.project-item {
  margin-bottom: 1.5rem;
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-item h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-duties {
  list-style: none;
  color: var(--muted-foreground);
}

.experience-duties li {
  margin-bottom: 0.5rem;
}

/* Updates */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.update-item {
  border-left: 4px solid rgba(var(--primary), 0.2);
  padding-left: 1.5rem;
  padding-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.update-item:hover {
  border-left-color: rgba(var(--primary), 0.4);
}

.update-item:last-child {
  padding-bottom: 0;
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.update-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.update-icon {
  width: 1rem;
  height: 1rem;
}

.update-item h4 {
  font-weight: 600;
}

.update-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) - 0.25rem);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-completed {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-ongoing {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Certifications */
.certification-item {
  margin-bottom: 0.75rem;
}

.certification-item:last-child {
  margin-bottom: 0;
}

.certification-item h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.certification-date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: var(--muted);
  padding: 3rem 1rem;
  backdrop-filter: blur(8px);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.footer-icon:hover {
  transform: scale(1.1) rotate(12deg);
}

.footer-title {
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-quote {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact {
    flex-direction: row;
    gap: 0.5rem;
  }
}
