/* ===== Base Styles ===== */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --text-color: white;
  --text-light: #6c757d;
  --success-color: #4bb543;
  --warning-color: #f0ad4e;
  --danger-color: #d9534f;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Poppins', sans-serif;
  background-color: #292929;
  /* color: #eeeeee; */
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* body {
  background-color: #f8f9fa;
} */

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ===== Header ===== */
header {
  background-color: #1a1a1a;
  padding: 12px;
  text-align: center;
  z-index: 20;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li.logo {
  margin-right: auto;
}

nav a {
  color: #eeeeee;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #8db2e5;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}


/* Grey background card */
.grey-background-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1640px;
  height: 80vh;
  min-height: 850px;
  background-color: #333;
  border-radius: 20px;
  z-index: 6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Grey about card */
.grey-about-card {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1000px;
  height: 35vh;
  min-height: 250px;
  background-color: #333;
  border-radius: 20px;
  z-index: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  margin-bottom: 100px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .grey-background-card {
    width: 95%;
    min-height: calc(100vh - 80px);
  }

  .grey-about-card {
    width: 95%;
    min-height: calc(100vh - 80px);
  }
  
  /* .home-carousel {
    width: 95%;
    margin-top: -60px;
  } */
}

@media (max-width: 768px) {
  .grey-background-card {
    width: 95%;
    border-radius: 10px;
    top: 80px;
    min-height: calc(100vh - 80px);
  }

  .grey-about-card {
    width: 95%;
    border-radius: 10px;
    top: 80px;
    min-height: calc(100vh - 80px);
  }
  
  /* .hero {
    height: 40vh;
    padding: 0 3%;
  }
  
  .home-carousel {
    width: 98%;
    margin-top: -40px;
    padding: 20px 0;
  } */
}

@media (max-width: 480px) {
  .grey-background-card {
    width: 100%;
    border-radius: 0;
    top: 60px;
    min-height: calc(100vh - 60px);
  }

  .grey-about-card {
    width: 100%;
    border-radius: 0;
    top: 60px;
    min-height: calc(100vh - 60px);
  }
  
  /* .hero {
    height: 40vh;
    padding: 0 10px;
  }
  
  .home-carousel {
    width: 100%;
    margin-top: -30px;
    padding: 10px 0;
  }
  
  .carousel-container {
    padding: 0 10px;
  } */
}

/* ===== Hero Section ===== */
.hero {
  padding: 120px 0 80px;
  /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  /* color: var(--dark-color); */
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-left: 50px;
  margin-right: 50px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration {
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #8db2e5;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-third {
  background-color: var(--primary-color);
  color: white;;
  margin-left: auto;
}

/* .btn-third {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: auto;
} */

.btn-third:hover {
  background-color: #8db2e5;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Skip link styling */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #333;
  color: white;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Home Page */
.hero {
  /* background: url('media/hero-bg.jpg') no-repeat center center/cover; */
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #eeeeee;
  z-index: 6;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Hero Size and Text*/
.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  /* color: var(--dark-color); */
  color: white;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Button Links*/
.btn-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-links .btn {
  padding: 10px 20px;
  background-color: #8db2e5;
  color: #292929;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
}

.btn-links .btn:hover {
  background-color: #6a8fc1;
}

/* Home Carousel Section */
.carousel-section {
  background-color: #1a1a1a;
  padding: 40px 0;
  text-align: center;
}

.carousel-container {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 70px;
  z-index: 6;
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carousel-arrow {
  position: absolute;
  display: flex;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 15px;
  z-index: 1;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.left-arrow {
  left: 0;
  justify-content: center;
}

.right-arrow {
  right: 0;
}

.left-arrow::before,
.right-arrow::before {
  content: "←"; /* For left arrow */
  display: block;
  margin-top: -7px; /* Adjust this value (try -2px to -5px) */
}

.right-arrow::before {
  content: "→"; /* For right arrow */
}

.home-carousel .carousel-card {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: center;
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  min-width: 0;
}

.home-carousel .carousel-card:hover {
  transform: translateY(-10px);
}

.home-carousel .carousel-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.home-carousel .carousel-card .card-content {
  padding: 15px;
}

.home-carousel .carousel-card h3 {
  margin: 0;
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .home-carousel .carousel-card {
    flex: 0 0 calc(33.333% - 13.333px); /* 3 cards */
  }
  
  .carousel-container {
    padding: 0 30px;
  }
}

@media (max-width: 900px) {
  .home-carousel .carousel-card {
    flex: 0 0 calc(50% - 10px); /* 2 cards */
  }
  
  .carousel-container {
    padding: 0 25px;
  }
  
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .home-carousel .carousel-card {
    flex: 0 0 calc(100% - 10px); /* 1 card */
  }
  
  .carousel-container {
    padding: 0 15px;
  }
  
  .carousel-section {
    padding: 30px 0;
  }
  
  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    padding: 10px;
  }
}

/* .btn {
  padding: 10px 20px;
  background-color: #8db2e5;
  color: #292929;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
}

.btn:hover {
  background-color: #6a8fc1;
} */

.home-btn {
  padding: 10px 15px;
  margin: 5px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: #007bff;
  color: white;
  border-radius: 5px;
}

.home-btn:hover {
  background: #000000;
}



/* ===== Skills Section ===== */
.skills-section {
  padding: 80px 0;
  /* background-color: var(--dark-color); */
  background-color: #292929;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
}

/* .tbrpg-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  padding-left: 0;
  padding-right: 0;
} */

.skill-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-name {
  font-weight: 500;
}

/* ===== About Preview ===== */
.about-preview {
  /* padding: 80px 0; */
  text-align: center; /* Add this to center text */
  /* background-color: #292929; */
  background-color: black;
}

.about-preview .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  max-width: 800px; /* Limit width for better readability */
}

.about-content {
  text-align: center; /* Center the text */
  margin-bottom: 30px;
}

.about-image {
  margin-top: 30px;
}

.profile-photo {
  max-width: 300px;
  /* border-radius: 50%; Makes the image circular */
  /* border: 5px solid var(--primary-color); */
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-info p {
  text-align: left;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 10;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
  z-index: 10;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Projects Page */
.projects {
  padding: 40px 20px;
  text-align: center;
}

.filters {
  margin-bottom: 20px;
}

.filters button {
  padding: 10px 20px;
  margin: 5px;
  background-color: #444;
  color: #eeeeee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.filters button.active {
  background-color: #8db2e5;
  color: #292929;
}

/* Projects Page */
.projects {
  padding: 40px 20px;
  text-align: center;
}

.filters {
  margin-bottom: 20px;
}

.filters button {
  padding: 10px 20px;
  margin: 5px;
  background-color: #444;
  color: #eeeeee;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.filters button.active {
  background-color: #8db2e5;
  color: #292929;
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.project-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
}

.project-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.project-card p {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 1rem;
  color: #aaaaaa;
}

/* Responsive Project Cards */
@media (max-width: 400px) {
  .project-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .project-card img {
      height: 150px;
  }
}

/* About Page */
.about {
  /* padding: 40px 20px; */
  text-align: center;
}

.list-container {
  display: flex;
  justify-content: center;
  gap: 5%;
}

.course-list {
  text-align: left;
}

@media (max-width: 768px) {
  .list-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    width: 100%;
  }

  .course-list {
    width: 60%;
    max-width: 400px;
    padding: 0;
    margin: 0 auto;
    list-style-position: inside;
    text-align: left;
    box-sizing: border-box;
    padding-left: 10%;
  }

  .course-list li {
    list-style-type: disc;
    padding: 5px 0;
    text-align: left;
  }
}


/* .list-container {
  display: flex;
  justify-content: center;
  gap: 5%;
}

.course-list {
  text-align: left;
}

@media (max-width: 768px) {
  .list-container {
      flex-direction: column;
      align-items: center;
  }
} */


/* About Carousel */
.about-carousel-section {
  background-color: #1a1a1a;
  padding: 40px 20px;
  text-align: center;
}

.about-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
}

.about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  justify-content: center;
}

.about-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding-left: 20px;
  padding-right: 20px;
  justify-content: center;
  margin: 0 20px;
}

/* Languages Carousel */
.languages-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.languages-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.languages-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.languages-carousel .language-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.languages-carousel .language-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.languages-carousel .language-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .languages-carousel .language-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .languages-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .languages-carousel .language-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .languages-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .languages-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .languages-carousel .language-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .languages-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .languages-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}

/* Frameworks Carousel */
.frameworks-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.frameworks-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.frameworks-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.frameworks-carousel .framework-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.frameworks-carousel .framework-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.frameworks-carousel .framework-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .frameworks-carousel .framework-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .frameworks-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .frameworks-carousel .framework-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .frameworks-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .frameworks-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .frameworks-carousel .framework-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .frameworks-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .frameworks-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}

/* Libraries Carousel */
.libraries-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.libraries-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.libraries-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.libraries-carousel .library-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.libraries-carousel .library-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.libraries-carousel .library-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .libraries-carousel .library-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .libraries-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .libraries-carousel .library-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .libraries-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .libraries-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .libraries-carousel .library-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .libraries-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .libraries-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}
/* Databases Carousel */
.databases-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.databases-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.databases-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.databases-carousel .database-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.databases-carousel .database-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.databases-carousel .database-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .databases-carousel .database-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .databases-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .databases-carousel .database-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .databases-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .databases-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .databases-carousel .database-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .databases-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .databases-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}

/* Tools Carousel */
.tools-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.tools-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.tools-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.tools-carousel .tool-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.tools-carousel .tool-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.tools-carousel .tool-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .tools-carousel .tool-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .tools-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .tools-carousel .tool-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .tools-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .tools-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .tools-carousel .tool-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .tools-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .tools-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}

/* Technical Skills Carousel */
.tech-skills-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.tech-skills-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.tech-skills-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.tech-skills-carousel .tech-skill-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.tech-skills-carousel .tech-skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.tech-skills-carousel .tech-skill-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .tech-skills-carousel .tech-skill-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .tech-skills-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .tech-skills-carousel .tech-skill-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .tech-skills-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .tech-skills-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .tech-skills-carousel .tech-skill-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .tech-skills-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .tech-skills-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}

/* Soft Skills Carousel */
.soft-skills-carousel .about-carousel-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.soft-skills-carousel .about-carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  width: 100%;
}

.soft-skills-carousel .about-carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.soft-skills-carousel .soft-skill-card {
  flex: 0 0 100px;
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.soft-skills-carousel .soft-skill-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.soft-skills-carousel .soft-skill-card p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  /* Tablet Styles */
  .soft-skills-carousel .soft-skill-card {
    flex: 0 0 120px; /* Reduce card width for tablets */
  }

  .soft-skills-carousel .about-carousel-container {
    padding: 0 30px; /* Reduce padding for arrows */
  }
}

@media (max-width: 768px) {
  /* Mobile Styles */
  .soft-skills-carousel .soft-skill-card {
    flex: 0 0 100px; /* Further reduce card width for mobile */
  }

  .soft-skills-carousel .about-carousel-track {
    gap: 5px; /* Reduce gap between cards */
    padding: 0 10px;
  }

  .soft-skills-carousel .about-carousel-container {
    padding: 0 20px; /* Further reduce padding for arrows */
  }
}

@media (max-width: 480px) {
  /* Small Mobile Styles */
  .soft-skills-carousel .soft-skill-card {
    flex: 0 0 80px; /* Smallest card width for very small screens */
  }

  .soft-skills-carousel .about-carousel-track {
    gap: 5px; /* Minimal gap between cards */
    padding: 0 5px;
  }

  .soft-skills-carousel .about-carousel-container {
    padding: 0 10px; /* Minimal padding for arrows */
  }
}

footer {
  background-color: #1a1a1a;
  padding: 20px;
  text-align: center;
  margin-top: auto;
  color: var(--text-light);
}

footer p {
  /* color: white; */
  /* text-align: center; */
  margin: auto;
}

/* Project Page */
/* Main Content */

.project-page {
  margin-top: auto;
  padding-top: 20px;
}

/* .project-page {
  margin: 0 auto;
  padding: 20px;
} */

.project-container {
  max-width: 100%;
  width: 70%;
  margin: 0 auto;
  padding: 20px;
  background: rgb(66, 66, 66);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  flex-grow: 1;
}

/* Project Main */
.project-main {
  text-align: center;
}

.main-image {
  width: 45%;
  max-width: 1200px;
  height: auto;
  border-radius: 8px;
}

.project-title {
  margin: 15px 0;
  font-size: 24px;
}

.project-description {
  font-size: 16px;
  line-height: 1.6;
}

.project-link {
  display: inline-block;
  text-align: center;
  margin: 15px 0;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  width: 150px;
}

.project-link:hover {
  background: #0056b3;
}

/* New Button Container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.scroll-btn {
  padding: 10px 20px;
  /* margin: 5px; */
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-align: center;
  background: #007bff;
  color: white;
  border-radius: 5px;
  min-width: 100px;
  /* height: 20px; */
}

.scroll-btn:hover {
  background: #0056b3;
}

/* Project Details */
.project-details {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #ddd;
}

.project-details h3 {
  text-align: center;
}

.project-details p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  padding-left: 10px;
}

.detail-image {
  width: 95%;
  max-width: 800px;
  border-radius: 8px;
  display: block;
  margin: 10px auto;
  text-align: center;
}

/* Project Images */
.project-images {
  margin-top: 40px;
  text-align: center;
}

.project-images h3 {
  margin-bottom: 10px;
}

.project-images p {
  text-align: center;
  max-width: 700px;
  margin: 10px auto;
}

.gallery-image {
  width: 90%;
  max-width: 700px;
  border-radius: 8px;
  margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .project-page {
    margin-top: 10px;
    padding-top: 5px;
  }

  .project-container {
    width: 95%;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .project-page {
    margin-top: 10px;
    padding-top: 5px;
  }

  .project-container {
    width: 95%;
    padding: 10px;
    margin: 0 auto;
  }

  .project-title {
    font-size: 20px;
  }

  .project-description {
    font-size: 14px;
  }

  .scroll-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .project-details p {
    max-width: 90%;
    padding-left: 5%;
  }
}

/* Everything from other script*/

/* ===== About Preview ===== */
.about-preview {
  padding: 80px 0;
  text-align: center; /* Add this to center text */
}

.about-preview .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  max-width: 800px; /* Limit width for better readability */
}

.about-content {
  text-align: center; /* Center the text */
  margin-bottom: 30px;
  color: var(--text-light);
}

.about-image {
  margin-top: 30px;
}

.profile-photo {
  max-width: 300px;
  /* border-radius: 50%; Makes the image circular */
  /* border: 5px solid var(--primary-color); */
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero-title {
      font-size: 2.5rem;
  }
  
  .hero-subtitle {
      font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
      display: block;
  }
  
  .main-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background-color: white;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      transition: var(--transition);
      padding: 80px 20px;
      z-index: 20;
  }
  
  .main-nav ul {
      flex-direction: column;
  }
  
  /* .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  } */
  
  .hero {
      padding: 100px 0 60px;
      text-align: center;
      z-index: 6;
  }
  
  .hero-cta {
      justify-content: center;
  }
  
  .about-preview .container {
      flex-direction: column;
      text-align: center;
  }
  
  .about-content {
      margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
      font-size: 2rem;
  }
  
  .hero-subtitle {
      font-size: 1.1rem;
  }
  
  .hero-cta {
      flex-direction: column;
  }
  
  .btn {
      width: 100%;
  }
  
  .skills-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  /* .tbrpg-skills-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  } */
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* ===== About Page Specific Styles ===== */
.about-main {
    padding-top: 100px;
}

.about-hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(0deg, #333 0%, #777 100%);
    color: white;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    padding: 60px 0;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.profile-info .title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.bio-section {
    margin-bottom: 60px;
}

.bio-section p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.skills-section {
    margin-bottom: 60px;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skills-category {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.skills-category h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.skills-list li {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.experience-section {
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -38px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
}

.timeline-date {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.position {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.education-section {
    margin-bottom: 60px;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.education-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.education-card h3 {
    margin-bottom: 5px;
}

.degree {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.date {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.courses h4 {
    margin: 15px 0 10px;
    font-size: 1rem;
}

.courses ul {
    padding-left: 20px;
}

.courses li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .projects-header h1 {
        font-size: 2.2rem;
    }
    
    .projects-header .subtitle {
        font-size: 1rem;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -28px;
    }
}

@media (max-width: 576px) {
    .projects-header h1 {
        font-size: 1.8rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .skills-categories {
        grid-template-columns: 1fr;
    }

}
