/* General Styles */
html, body {
  height: auto;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #121212;
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1e1e1e;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  background-color: #333;
  transform: scale(1.08);
}

/* Linktree Container */
.linktree-container {
  margin: 60px auto 0 auto;
  padding: 40px 30px 120px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Profile Picture */
.linktree-container .profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Link Buttons */
.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.link-btn {
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.link-btn:hover {
  background-color: white;
  color: #2c3e50;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Header */
header {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 3rem;
}

header p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Navigation */
nav {
  background-color: #34495e;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #090909;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #2c3e50;
}

/* Footer */
footer {
  background-color: #030303;
  color: #ecf0f1;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
  margin: 0 auto;
  max-width: 500px;
  text-align: left;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 20px 0;
  position: relative;
}

.timeline-item .timeline-content {
  padding: 12px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  transition: background-color 0.3s ease;
}

.timeline-item:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #2c3e50;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd):before {
  left: calc(100% + 15px);
}

.timeline-item:nth-child(even):before {
  left: -15px;
}

.timeline-item .link-btn {
  background-color: #2c3e50;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  display: block;
  transition: background-color 0.3s ease;
}

.timeline-item .link-btn:hover {
  background-color: white;
  color: #2c3e50;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode .linktree-container {
  background-color: #1e1e1e;
}

body.dark-mode .link-btn {
  background-color: #2e2e2e;
  color: #f0f0f0;
}

body.dark-mode .link-btn:hover {
  background-color: #3a3a3a;
}

body.dark-mode h1, 
body.dark-mode p {
  color: #00ff00; /* Hacker green */
}

.linktree-container h1,
.linktree-container p {
  color: #000000;
}

/* Responsive Timeline */
@media (max-width: 1024px) {
  .timeline {
    max-width: 800px;
  }

  .timeline-item {
    flex-direction: row;
  }

  .timeline-item .timeline-content {
    margin-left: 20px;
  }
}

/* Large screen tweaks */
@media (min-width:1000px){
  .linktree-container {
    width: 70vw;
    padding-bottom: 120px;
  }

  .link-buttons {
    width: 100%;
  }

  .link-btn {
    font-size: xx-large;
  }
}

/* Phone and tablet adjustments */
@media (max-width: 768px) {
  .timeline {
    max-width: 90%;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item .timeline-content {
    width: 100%;
  }

  .timeline-item:before {
    left: 50%;
    transform: translateX(-50%);
  }

  header h1 {
    font-size: 2.5rem;
  }

  section {
    padding: 20px 0;
  }

  li {
    font-size: 1rem;
  }

  #resume a {
    font-size: 1rem;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  li {
    font-size: 0.9rem;
  }

  #resume a {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* Carousel Section */
.carousel-container {
  position: relative;
  margin: 60px auto;
  text-align: center;
  width: 90%;
}

.carousel img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  max-height: 600px;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 20px;
  font-size: 3rem;
  cursor: pointer;
  z-index: 100;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-prev:hover, .carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.2);
}
