/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f3e8ff 100%);
}

:root {
  --primary-blue: #3b82f6;
  --primary-purple: #8b5cf6;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

/* SVG Icons */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: currentColor;
  vertical-align: middle;
}

.icon-lg {
  width: 1.5em;
  height: 1.5em;
}

.icon-xl {
  width: 2em;
  height: 2em;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #3b82f6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #64748b;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-purple);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.lang-btn {
  padding: 6px 12px;
  background: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}

.lang-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: 2px solid transparent;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-blue);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.profile-image {
  margin-bottom: 2rem;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: var(--gradient-primary);
  padding: 4px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.profile-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
}

/* About Section */
.about {
  background: white;
}

.about-card {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.about-card:hover,
.stat-card:hover,
.achievement-card:hover {
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

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

.card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: #64748b;
  font-size: 1.1rem;
}

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

.about-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.focus-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bullet {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card:nth-child(odd) .stat-number {
  color: var(--primary-blue);
}

.stat-card:nth-child(even) .stat-number {
  color: var(--primary-purple);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-description {
  color: #64748b;
  font-size: 0.9rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Skills Section */
.skills {
  background: white;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.skill-badge {
  background: #f1f5f9;
  color: #334155;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: var(--gradient-secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Experience Section */
.experience {
  background: #f8fafc;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.experience-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

.experience-card:hover {
  border-left-color: var(--primary-purple);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
  transform: translateX(5px);
}

.experience-date {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.experience-company {
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.experience-description {
  color: #475569;
  line-height: 1.6;
}

/* Projects Section */
.projects {
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.project-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

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

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: #f1f5f9;
  color: #334155;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.project-description {
  color: #475569;
  line-height: 1.6;
}

.achievements-subsection {
  max-width: 900px;
  margin: 3rem auto 0;
  padding-top: 3rem;
  border-top: 2px solid #e2e8f0;
}

.subsection-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.achievements-list {
  display: grid;
  gap: 2rem;
}

.achievement-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #fbbf24;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateX(5px);
}

.achievement-item .trophy-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.trophy-icon {
  fill: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

.achievement-item strong {
  display: block;
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.achievement-item p {
  color: #64748b;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.achievement-link {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.achievement-link:hover {
  color: var(--primary-purple);
  text-decoration: underline;
}

/* Achievements Section (Legacy - keeping for compatibility) */
.achievement-card {
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 2rem;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.achievement-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.achievement-description {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #1e293b;
  color: white;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #94a3b8;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu,
  .social-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .lang-switcher {
    position: absolute;
    right: 70px;
    margin-left: 0;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .about-card,
  .achievement-card,
  .experience-card,
  .project-card {
    padding: 1.5rem;
  }

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

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

  .achievement-item {
    flex-direction: column;
    gap: 1rem;
  }

  .experience-title {
    font-size: 1.2rem;
  }

  .project-title {
    font-size: 1.3rem;
  }

  .subsection-title {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

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

  .hero {
    padding: 100px 0 60px;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

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

  .skills-container {
    gap: 0.5rem;
  }

  .skill-badge {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

.hero-content,
.about-card,
.stat-card,
.achievement-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .nav-link,
  a {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}

/* Print Styles for Accessibility */
@media print {
  .navbar,
  .hamburger,
  .social-links {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  .skip-link {
    display: none;
  }
}
