/* Base styles */
:root {
  --primary-color: #f60;
  --text-color: #eee;
  --bg-color: #000000;
  --header-bg: rgba(26, 26, 46, 0.95);
  --border-color: #16213e;
  --card-bg: rgba(26, 26, 46, 0.7);
  --bio-border: #16213e;
  --button-bg: rgba(26, 26, 46, 0.7);
  --transition: all 0.3s ease;
  --gradient: linear-gradient(to bottom right, #000000, #1a1a2e, #16213e);
}

body.light-mode {
  --text-color: #16213e;
  --bg-color: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.95);
  --border-color: #e1e1e1;
  --card-bg: rgba(255, 255, 255, 0.7);
  --bio-border: #e1e1e1;
  --button-bg: rgba(255, 255, 255, 0.7);
  --gradient: linear-gradient(to bottom right, #f5f7fa, #c3cfe2, #e0eafc);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--gradient);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

/* Card and Container Styles */
.project-card, .blog-card, .skill-category, .timeline-content {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

body.light-mode .project-card,
body.light-mode .blog-card,
body.light-mode .skill-category,
body.light-mode .timeline-content {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.project-card:hover, .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .project-card:hover,
body.light-mode .blog-card:hover {
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.1);
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 85px;
  border-bottom: 1px solid var(--border-color);
  background: var(--header-bg);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
  transition: var(--transition);
}

.logo a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.logo a:hover {
  color: var(--primary-color);
} 	

.center-nav {
  display: flex;
  gap: 20px;
}

.center-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding-bottom: 4px;
  position: relative;
  transition: var(--transition);
}

.center-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.center-nav a:hover::after,
.center-nav a.active::after {
  width: 100%;
}

.center-nav a.active {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons a {
  color: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.social-icons i {
  font-size: 18px;
  cursor: pointer;
}

#darkModeToggle {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
  border-radius: 50%;
  color: var(--text-color);
}

#darkModeToggle:hover {
  background: var(--card-bg);
}

body.light-mode #darkModeToggle:hover {
  background: var(--card-bg);
}

/* Container styles */
.container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 0 5vw;
  gap: 40px;
}

.left, .right {
  flex: 1;
  padding: 20px;
  min-width: 300px;
}

h2 {
  font-size: 24px;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
}

.highlight {
  color: var(--primary-color);
  font-weight: 500;
}

.pdf-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.pdf-link:hover {
  text-decoration: underline;
}

.project-card {
  background: var(--card-bg);
  padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.linkedin-button, .copy-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  background: var(--button-bg);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
  color: var(--text-color);
}

.linkedin-button:hover, .copy-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

body.light-mode .linkedin-button:hover,
body.light-mode .copy-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.bio-box {
  border-left: 2px solid var(--bio-border);
  padding-left: 20px;
  margin-top: 10px;
  transition: var(--transition);
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
}

/* Mobile menu button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

/* Projects Page Styles */
.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.projects-header p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
  padding: 20px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: auto;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.project-header h2 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-color);
  flex: 1;
  min-width: 200px;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

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

.project-card p {
  margin: 15px 0;
  color: var(--text-color);
  opacity: 0.9;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tech-stack span {
  background: var(--bg-color);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--primary-color);
}

.more-projects {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.more-projects h2 {
  margin-bottom: 15px;
}

.more-projects a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.more-projects a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  color: var(--text-color);
  opacity: 0.8;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Active Navigation Link */
.center-nav a.active {
  color: var(--primary-color);
}

.center-nav a.active::after {
  width: 100%;
}

/* Media Queries */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  .mobile-menu-button {
    display: block;
  }

  .center-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
  }

  .center-nav.show {
    display: flex;
  }

  .container {
    flex-direction: column;
    padding: 0 20px;
  }

  .left, .right {
    padding: 10px;
  }

  /* Responsive Adjustments for Projects Page */
  .projects-container {
    padding: 20px;
  }

  .projects-header h1 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 10px;
  }

  .project-card {
    padding: 20px;
    min-height: 200px;
  }

  .project-header h2 {
    font-size: 1.3rem;
  }
}

/* Home Page Specific Styles */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
}

.hidden-header {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.hidden-footer {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.centered-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
}

.main-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.home-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 500;
  padding: 5px 5px;
  border: 2px solid transparent;
  border-radius: 0;
  transition: var(--transition);
  width: 100px; /* Fixed width for all links */
  text-align: center; /* Center the text within the fixed width */
  display: block; /* Ensure the width is respected */
}

.home-nav a:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Animation Delays */
.fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .home-nav {
    flex-direction: column;
    gap: 15px;
  }

  .home-nav a {
    width: 100px; /* Keep consistent width on mobile */
    margin: 0 auto;
  }
}

/* Home Page Styles */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  background: transparent;
  border-bottom: none;
  padding: 30px 85px;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin-top: -80px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
}

.main-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.greeting {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-color);
}

.name {
  font-weight: 700;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta-button {
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.cta-button:first-child {
  background: var(--primary-color);
  color: white;
}

.cta-button.outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-color);
  border-radius: 15px;
  display: inline-block;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

/* Blog Page Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-card.featured .blog-image {
  height: 100%;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  opacity: 0.8;
}

.blog-card:hover .blog-image img {
  opacity: 1;
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.blog-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-card p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.read-more:hover {
  opacity: 0.8;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-button {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-button.active,
.pagination-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Animations */
@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 0.8s ease-out 0.9s forwards;
  opacity: 0;
}

.slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-header {
    padding: 20px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .greeting {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .blog-card.featured {
    grid-template-columns: 1fr;
  }

  .blog-card.featured .blog-image {
    height: 200px;
  }
}

/* Home Page Styles */
.home-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  background: transparent;
  border-bottom: none;
  padding: 30px 85px;
}

.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  margin-top: -80px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
}

.main-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.greeting {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-color);
}

.name {
  font-weight: 700;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta-button {
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.cta-button:first-child {
  background: var(--primary-color);
  color: white;
}

.cta-button.outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-color);
  border-radius: 15px;
  display: inline-block;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

/* Blog Page Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.blog-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-card.featured .blog-image {
  height: 100%;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  opacity: 0.8;
}

.blog-card:hover .blog-image img {
  opacity: 1;
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.blog-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.blog-card p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.read-more:hover {
  opacity: 0.8;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-button {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-button.active,
.pagination-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Animations */
@keyframes scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 10px); opacity: 0; }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 0.8s ease-out 0.9s forwards;
  opacity: 0;
}

.slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .home-header {
    padding: 20px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .greeting {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .blog-card.featured {
    grid-template-columns: 1fr;
  }

  .blog-card.featured .blog-image {
    height: 200px;
  }
}

/* Resume Page Styles */
.resume-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.resume-header {
  margin-bottom: 50px;
  text-align: center;
}

.resume-intro {
  max-width: 800px;
  margin: 0 auto;
}

.resume-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.resume-actions {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.resume-section {
  margin-bottom: 50px;
}

.resume-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.resume-section h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--border-color);
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-date {
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.timeline-content {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  margin: 0 0 5px 0;
  color: var(--text-color);
}

.timeline-content h4 {
  margin: 0 0 15px 0;
  color: var(--text-color);
  opacity: 0.8;
  font-weight: normal;
}

.timeline-content ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-content li {
  margin-bottom: 8px;
  color: var(--text-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid var(--bg-color);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

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

.skill-category {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.skill-category h3 {
  margin: 0 0 15px 0;
  color: var(--text-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Responsive Adjustments for Resume Page */
@media (max-width: 768px) {
  .resume-container {
    padding: 20px;
  }

  .resume-intro h1 {
    font-size: 2rem;
  }

  .resume-actions {
    flex-direction: column;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -24px;
  }

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

/* Particles Background Adjustments */
body.light-mode #particles-js {
  background: var(--gradient);
}

body.light-mode .particle-star {
  background: rgba(0, 0, 0, 0.5);
}

/* Blog Image Placeholders */
.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), #ff8c42);
  color: white;
  font-size: 3rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.blog-tags span {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card-bg);
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.close {
  color: var(--text-color);
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover,
.close:focus {
  color: var(--primary-color);
}

.blog-full-content {
  margin-top: 20px;
  line-height: 1.8;
}

.blog-full-content h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.blog-full-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.blog-full-content li {
  margin-bottom: 8px;
  color: var(--text-color);
}

.blog-full-content p {
  margin-bottom: 15px;
  color: var(--text-color);
}

/* Resume Page Enhancements */
.resume-subtitle {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.resume-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  background: var(--button-bg);
  color: var(--text-color);
  cursor: pointer;
}

.resume-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

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

/* Contact Section */
.contact-section {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  justify-self: center;
}

.submit-button:hover {
  background: #e55a00;
  transform: translateY(-2px);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Contact Page Styles */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}

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

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-card h3 {
  margin: 0 0 10px 0;
  color: var(--text-color);
}

.contact-card p {
  margin: 0 0 15px 0;
  color: var(--text-color);
  opacity: 0.8;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-link:hover {
  opacity: 0.8;
}

.availability-section {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.availability-card {
  max-width: 600px;
  margin: 0 auto;
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-color);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-indicator.available {
  background: #28a745;
}

.status-indicator.busy {
  background: #ffc107;
}

.status-indicator.unavailable {
  background: #dc3545;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.availability-card ul {
  margin: 15px 0;
  padding-left: 25px;
}

.availability-card li {
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Animation Enhancements */
.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

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

/* Loading States */
body:not(.loaded) .project-card,
body:not(.loaded) .blog-card,
body:not(.loaded) .timeline-item {
  opacity: 0;
  transform: translateY(20px);
}

body.loaded .project-card,
body.loaded .blog-card,
body.loaded .timeline-item {
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Form Error Styles */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.error-message::before {
  content: '⚠️';
  font-size: 0.75rem;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Improved Focus States */
.project-card:focus-within,
.blog-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary-color);
}

/* Enhanced Hover Effects */
.contact-card:hover .contact-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.tech-stack span:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Improved Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #ff6600;
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
  }
  
  body.light-mode {
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
  }
}

/* Print Styles */
@media print {
  header, footer, .social-icons, #darkModeToggle, .mobile-menu-button {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .project-card, .blog-card, .timeline-content {
    border: 1px solid #ccc !important;
    background: white !important;
    break-inside: avoid;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  .highlight {
    background: yellow !important;
    color: black !important;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
    max-height: 85vh;
  }
  
  .close {
    right: 15px;
    top: 10px;
  }
  
  .resume-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-form {
    padding: 0 10px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    padding: 20px;
  }
  
  .contact-header h1 {
    font-size: 2rem;
  }
  
  .home-nav a {
    width: auto;
    min-width: 100px;
  }
}



