:root {
  --bg-dark: #1e1e1e;
  --bg-darker: #121212;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-color: #ff9800;
  --accent-light: rgba(255, 152, 0, 0.2);
  --link-color: #ff9800;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 800px;
  padding: 20px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* General link hover effect for work experience and projects */
.experience-item a:hover,
.project-item a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-top: 20px;
}

.skill-tag {
  background-color: var(--accent-light);
  color: var(--accent-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  margin-bottom: 8px;
  display: inline-block;
}

.skill-tag:hover {
  transform: scale(1.1);
}

.resume-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  color: var(--text-primary);
  padding: 10px 15px;
  border: 1px solid var(--accent-color);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  flex: 1;
  max-width: 50%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
  text-decoration: none; /* Ensure buttons don't get underlined */
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.header-title-section {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}

.header-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 20px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.2);
}

.header-intro-text {
  text-align: left;
  width: 100%;
  margin-top: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  text-decoration: none; /* Ensure social links don't get underlined */
}

.social-links a:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.social-links a:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.experience-item,
.project-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}

.experience-item:hover,
.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Add specific styling for links within project and experience sections */
.project-links a,
.experience-links a {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent-color);
  transition: all 0.3s ease;
  position: relative;
}

.project-links a:hover,
.experience-links a:hover {
  text-decoration: underline;
  transform: translateY(-2px);
}

.footer {
  text-align: center;
  padding: 20px;
  background-color: var(--background-dark);
  color: var(--text-primary);
  border-top: 1px solid var(--accent-color);
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
}

.footer-social a {
  color: var(--text-primary);
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  text-decoration: none; /* Ensure footer social links don't get underlined */
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
    width: 100%;
  }

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

  .header-content {
    align-items: center;
    width: 100%;
  }

  .header-title-section {
    order: 1;
  }

  .header-image {
    order: 2;
    width: 150px;
    height: 150px;
    margin: 15px auto;
  }

  .header-intro-text {
    order: 3;
  }

  .skills {
    order: 4;
  }

  .social-links {
    order: 5;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .btn {
    width: 100%;
    max-width: none;
  }

  .experience-item,
  .project-item {
    width: 100%;
    color: var(--text-primary);
    padding: 15px;
  }
}
