:root {
  --bg-color: #1a1a2e;
  --text-color: rgba(255, 255, 255, 0.85);
  --icon-color: rgba(255, 255, 255, 0.7);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Main wrapper for vertical centering */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  
  padding-top: 150px;
  /* justify-content: center; 
  align-items: center;*/
  position: relative;
}

/* Resume Header Link */
.resume-header-link {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.resume-header-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.resume-header-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.resume-header-link:hover {
  color: rgba(255,255,255,1);
}

/* Pipes screensaver overlay (easter egg) */
#pipesOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#pipesOverlay.active {
  display: flex;
}

#pipesOverlay canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.link-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon {
  color: var(--icon-color);
  transition: all 0.3s ease;
}

.link-card:hover .icon {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.9);
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
  }
  100% {
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
  }
}

.social-icons a {
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
}

.pulsating-box {
  animation: glowWave 4s infinite;
}

@keyframes glowWave {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.border-trace::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-sizing: border-box;
  pointer-events: none;
  border: 3px solid transparent;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(209, 77, 77, 0.224), rgba(255, 255, 255, 0.8));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 3px;
  clip-path: inset(0 100% 0 0);
  animation: drawBorder 10s linear infinite;
}

@keyframes drawBorder {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  25% {
    clip-path: inset(0 0 0 0);
  }
  50% {
    clip-path: inset(100% 0 0 0);
  }
  75% {
    clip-path: inset(0 0 0 100%);
  }
  100% {
    clip-path: inset(0 100% 0 0);
  }
}

/* Resume specific styles */
.resume-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resume-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.resume-section h2 {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.resume-section h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.job-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.job-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.job-company {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.25rem;
}

.job-duration {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.job-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.job-description ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.job-description li {
  margin-bottom: 0.3rem;
  padding-left: 0.5rem;
}

/* Contact page styles */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-info h1 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: grid;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.contact-method i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--icon-color);
}

.contact-method a {
  color: var(--text-color);
  text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .profile-pic {
    width: 100px;
    height: 100px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .resume-container,
  .contact-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .resume-section {
    padding: 1rem;
  }
}

/* Header / Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: rgba(26,26,46,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

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

.nav-brand {
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.04);
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.nav-cta:hover { transform: translateY(-2px); }

/* Resume Header Link */
.resume-header-link {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.resume-header-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.resume-header-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.resume-header-link:hover {
  color: rgba(255,255,255,1);
}