/* Kubernetes color palette */
:root {
  --kube-blue: #326ce5;
  --kube-dark-blue: #254fad;
  --kube-light-blue: #8ab4f8;
  --kube-gray-light: #f9fafb;
  --kube-gray-dark: #2f3e46;
  --kube-accent: #f2be22;
  --bg-color: #f9fafb;
  --container-bg: white;
  --text-color: #2f3e46;
  --shadow: rgba(50, 108, 229, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --kube-gray-light: #1a1a1a;
    --kube-gray-dark: #e5e5e5;
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 2rem 1rem;
}

/* Container styles */
.container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--container-bg);
  border-radius: 12px;
  box-shadow: 0 8px 20px var(--shadow);
  padding: 3rem 2rem;
}

/* Portfolio specific styles */
.portfolio-container {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 2rem 1.5rem;
}

.portfolio-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--shadow);
}

body.portfolio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

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

/* Typography */
h1 {
  color: var(--kube-dark-blue);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h2 {
  color: var(--kube-blue);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  color: var(--kube-dark-blue);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Portfolio specific typography */
.portfolio-container h1 {
  font-size: 1.75rem;
  margin: 0.3rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-container h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

/* Legal page specific typography */
.legal-container h2 {
  border-bottom: 2px solid var(--kube-light-blue);
  padding-bottom: 0.5rem;
}

/* Photo styles */
.photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--kube-blue);
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo:hover {
  transform: scale(1.05);
  border-color: var(--kube-accent);
}

.photo-fallback {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--kube-blue);
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, var(--kube-light-blue), var(--kube-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-fallback:hover {
  transform: scale(1.05);
  border-color: var(--kube-accent);
}

/* Text styles */
p.role {
  font-weight: 500;
  color: var(--kube-blue);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

p.intro {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0 0 1.5rem 0;
}

/* Skills and certifications */
.skills {
  margin: 1.5rem 0 2rem 0;
}

.certifications {
  margin: 1.5rem 0 2rem 0;
}

.skills-list, .cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.skill-tag {
  background: linear-gradient(135deg, var(--kube-light-blue), var(--kube-blue));
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(50, 108, 229, 0.3);
}

.cert-tag {
  background: linear-gradient(135deg, var(--kube-accent), #e6a81a);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.cert-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(242, 190, 34, 0.4);
}

/* Contact and navigation */
.contact {
  margin: 1.5rem 0 2rem 0;
}

.contact-link, .back-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--kube-blue), var(--kube-dark-blue));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(50, 108, 229, 0.2);
}

.contact-link:hover,
.contact-link:focus {
  box-shadow: 0 6px 20px rgba(50, 108, 229, 0.4);
  outline: 2px solid var(--kube-accent);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.back-link:hover {
  box-shadow: 0 6px 20px rgba(50, 108, 229, 0.4);
  outline: 2px solid var(--kube-accent);
  outline-offset: 2px;
}

.back-link {
  margin-bottom: 2rem;
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kube-light-blue);
  color: var(--kube-dark-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
  background-color: var(--kube-accent);
  color: white;
  outline: 3px solid var(--kube-blue);
  outline-offset: 2px;
  box-shadow: 0 6px 15px rgba(50, 108, 229, 0.4);
}

.social-links a:focus {
  outline: 3px solid var(--kube-accent);
}

/* Social icons */
.social-links a.github::before {
  content: "🐙";
  font-size: 20px;
}
.social-links a.linkedin::before {
  content: "in";
  font-weight: 700;
  font-size: 18px;
  font-family: Arial, sans-serif;
}
.social-links a.credly::before {
  content: "🏆";
  font-size: 18px;
}

/* Legal page specific styles */
.contact-info {
  background: linear-gradient(135deg, var(--kube-light-blue), var(--kube-blue));
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.legal-text {
  margin: 1rem 0;
}

.disclaimer {
  background-color: var(--kube-gray-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--kube-accent);
  margin: 2rem 0;
}

/* Footer */
.footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(50, 108, 229, 0.1);
  font-size: 0.75rem;
  color: var(--kube-light-blue);
  opacity: 0.7;
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .container {
    animation: none;
  }
  
  .photo:hover {
    transform: none;
  }
  
  .photo-fallback:hover {
    transform: none;
  }
  
  .portfolio-container:hover {
    transform: none;
  }
  
  .social-links a:hover {
    transform: none;
  }
  
  .contact-link:hover {
    transform: none;
  }
  
  .skill-tag:hover {
    transform: none;
  }
  
  .cert-tag:hover {
    transform: none;
  }
  
  * {
    transition: none !important;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .portfolio-container {
    max-width: 90vw;
    padding: 1.5rem 1rem;
  }
  
  .photo {
    width: 120px;
    height: 120px;
  }
  
  .photo-fallback {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
  }
  
  .portfolio-container h1 {
    font-size: 1.5rem;
  }
  
  .skills-list {
    gap: 0.4rem;
  }
  
  .skill-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .cert-list {
    gap: 0.4rem;
  }
  
  .cert-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .contact-link {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-links a {
    width: 36px;
    height: 36px;
  }
}
