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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Page transition animations */
.page-transition {
  opacity: 0;
  transform: translateY(20px);
  animation: pageLoad 0.6s ease-out forwards;
}

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

/* Stagger animation for cards */
.stagger-animation {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerLoad 0.6s ease-out forwards;
}

.stagger-animation:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation:nth-child(6) { animation-delay: 0.6s; }

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

.container {
  width: 95%;
  max-width: 1200px;
  margin: auto;
  padding: 10px 0;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: #333;
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 0 0 20px 20px;
  margin-bottom: 20px;
  animation: slideDown 0.8s ease-out;
}

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

header h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #4a90e2, #7bb3f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

.contact {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact a {
  color: #1e3c72;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #1e3c72;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact a:hover {
  background: #1e3c72;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

/* Navigation Styles */
.tab-navigation {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  margin: 0 20px 20px 20px;
  animation: slideUp 0.8s ease-out 0.2s both;
}

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

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 2px solid #4a90e2;
  color: #4a90e2;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
}

.tab-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: #4a90e2;
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* Add navigation indicator for non-active tabs */
.tab-btn:not(.active)::after {
  content: '→';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-btn:not(.active):hover::after {
  opacity: 1;
}

/* Main Content Styles */
main {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 0 10px;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tab-content {
  position: relative;
  min-height: 500px;
}

.tab-pane {
  display: none;
  padding: 25px;
  animation: fadeIn 0.5s ease-in-out;
}

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

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

/* Typography */
h2 {
  color: #4a90e2;
  margin-bottom: 15px;
  font-size: 1.8rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(45deg, #4a90e2, #7bb3f0);
  border-radius: 2px;
}

h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 25px;
}

ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-weight: bold;
}

ul li:last-child {
  border-bottom: none;
}

/* Content Section Styles */
.about-content, .education-content, .experience-content, .certifications-content, .skills-content, .languages-content {
  display: grid;
  gap: 30px;
}

.about-section, .education-item, .experience-item, .certifications-section, .awards-section, .skills-section, .language-item {
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-section::before, .education-item::before, .experience-item::before, .certifications-section::before, .awards-section::before, .skills-section::before, .language-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #4a90e2, #7bb3f0);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-section:hover::before, .education-item:hover::before, .experience-item:hover::before, .certifications-section:hover::before, .awards-section:hover::before, .skills-section:hover::before, .language-item:hover::before {
  transform: scaleX(1);
}

.about-section:hover, .education-item:hover, .experience-item:hover, .certifications-section:hover, .awards-section:hover, .skills-section:hover, .language-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: #4a90e2;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.stat-card {
  background: linear-gradient(45deg, #4a90e2, #7bb3f0);
  color: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 5px;
  color: white;
}

.stat-card p {
  opacity: 0.9;
  color: white;
  margin-bottom: 0;
}

/* Skills Grid */
.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Certifications Links */
.certifications-section ul li a {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.certifications-section ul li a:hover {
  color: #2a5298;
  text-decoration: underline;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #eee;
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: #1e3c72;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card h3 {
  color: #1e3c72;
  margin-bottom: 10px;
}

.project-card p {
  color: #666;
  margin-bottom: 15px;
}

.project-link {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.project-link:hover {
  color: #2a5298;
  transform: translateX(5px);
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #333;
  margin-top: 30px;
  border-radius: 20px 20px 0 0;
  margin: 30px 20px 0 20px;
  animation: slideUp 0.8s ease-out 0.6s both;
}

footer a {
  color: #1e3c72;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #2a5298;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .tab-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    width: 200px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tab-pane {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 20px 0;
  }
  
  .contact {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-navigation {
    margin: 0 10px 20px 10px;
  }
  
  main {
    margin: 0 10px;
  }
  
  footer {
    margin: 20px 10px 0 10px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
  