/* Base Styles */
:root {
  --yellow: #ffda22;
  --black: #151515;
  --gray: #f5f5f5;
  --light-gray: #e0e0e0;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--yellow);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  border: none;
  font-size: 1rem;
}

.btn.primary {
  background-color: var(--yellow);
  color: var(--black);
}

.btn.secondary {
  background-color: var(--black);
  color: var(--white);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn.primary:hover {
  background-color: #e6c41f;
  transform: translateY(-3px);
}

.btn.secondary:hover {
  background-color: #2a2a2a;
  transform: translateY(-3px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--yellow);
  border-radius: 50%;
  color: var(--black);
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background-color: var(--white);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 30px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 15px;
}

.hero-content h2 {
  font-size: 1.8rem;
  color: var(--yellow);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-visual {
  width: 340px;
  height: 340px;
  background-color: var(--black);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 70%;
  width: 75%;
  gap: 12px;
  position: relative;
}

.chart-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  opacity: 0.8;
}

.chart-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background-color: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  opacity: 0.8;
}

.bar {
  width: 30px;
  background-color: var(--yellow);
  border-radius: 6px 6px 0 0;
  animation: barGrow 2.5s ease forwards;
  position: relative;
  box-shadow: 0 0 15px rgba(255, 218, 34, 0.5);
}

.bar::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--white);
  border-radius: 50%;
  opacity: 0;
  animation: dotAppear 3s ease forwards;
  animation-delay: 2s;
}

@keyframes dotAppear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.bar1 {
  height: 0;
  animation-delay: 0.2s;
  animation-duration: 2.1s;
}

.bar2 {
  height: 0;
  animation-delay: 0.4s;
  animation-duration: 1.8s;
}

.bar3 {
  height: 0;
  animation-delay: 0.6s;
  animation-duration: 2.5s;
}

.bar4 {
  height: 0;
  animation-delay: 0.8s;
  animation-duration: 2.2s;
}

.bar5 {
  height: 0;
  animation-delay: 1s;
  animation-duration: 1.9s;
}

@keyframes barGrow {
  0% {
    height: 0;
  }
  100% {
    height: var(--bar-height, 80%);
  }
}

.bar1 { --bar-height: 65%; }
.bar2 { --bar-height: 85%; }
.bar3 { --bar-height: 95%; }
.bar4 { --bar-height: 75%; }
.bar5 { --bar-height: 80%; }

/* About Section */
#about {
  background-color: var(--gray);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.about-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-category h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-left: 15px;
}

.skill-category h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background-color: var(--yellow);
}

.skill-item {
  margin-bottom: 15px;
}

.skill-item span {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.skill-bar {
  height: 10px;
  background-color: var(--light-gray);
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--yellow);
  border-radius: 5px;
  width: 0;
  animation: skillGrow 2s ease forwards;
}

@keyframes skillGrow {
  from {
    width: 0;
  }
  to {
    width: var(--width, 80%);
  }
}

/* Projects Section */
#projects {
  background-color: var(--gray);
}

/* Projects Slider Styles */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px auto;
  max-width: 1200px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.slider-arrow {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  position: relative;
}

.slider-arrow:hover {
  background: var(--black);
  color: var(--yellow);
  transform: scale(1.1);
}

.slider-arrow-left {
  margin-right: 20px;
}

.slider-arrow-right {
  margin-left: 20px;
}

.projects-slider {
  overflow: hidden;
  width: 100%;
  max-width: 1200px; /* Allow full width usage */
  flex: 1;
  position: relative;
  margin: 0 auto; /* Center the slider */
}

.projects-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 30px;
  width: fit-content; /* Let content determine width */
}

.project-card {
  min-width: 300px;
  max-width: 350px;
  flex: 0 0 auto; /* Let cards size naturally */
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: fit-content;
  margin-right: 0;
}

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

.project-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  flex-shrink: 0;
}

.project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.project-content p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: var(--light-gray);
  color: var(--black);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
  order: 4;
  width: 100%;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.dot.active {
  background-color: var(--yellow);
  transform: scale(1.2);
}

.dot:hover {
  background-color: var(--yellow);
}

.project-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
}

.project-image i {
  font-size: 4rem;
  color: var(--black);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-content p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tags span {
  background-color: var(--light-gray);
  color: var(--black);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Projects: GitHub-powered buttons row */
.project-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: center;
  white-space: nowrap;
}

/* Projects: Loading Skeletons */
.skeleton-card {
  pointer-events: none;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background-color: var(--light-gray);
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shine 1.4s ease-in-out infinite;
}

@keyframes skeleton-shine {
  100% {
    left: 150%;
  }
}

.skeleton-line {
  border-radius: 4px;
  margin-bottom: 6px;
}

.skeleton-tags {
  display: flex;
  gap: 8px;
  margin: 10px 0 15px;
}

.skeleton-tag {
  width: 60px;
  height: 22px;
  border-radius: 20px;
}

/* Projects: Error State */
.projects-error {
  min-width: 300px;
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 30px;
  text-align: center;
}

.projects-error i {
  font-size: 2.5rem;
  color: var(--yellow);
  margin-bottom: 15px;
}

.projects-error p {
  margin-bottom: 20px;
  color: #555;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  padding-right: 30px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-method i {
  width: 40px;
  height: 40px;
  background-color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.contact-method a {
  color: var(--black);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--yellow);
  color: var(--black);
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 218, 34, 0.2);
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 30px 0;
  text-align: center;
}

/* Form status messages */
.form-status {
  padding: 10px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  font-weight: 500;
}

.form-status.success {
  background-color: rgba(39, 174, 96, 0.15);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-status.error {
  background-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .data-visual {
    width: 250px;
    height: 250px;
  }

  /* Slider responsive adjustments */
  .slider-wrapper {
    max-width: 95%;
    padding: 0 15px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-arrow-left {
    margin-right: 10px;
  }
  
  .slider-arrow-right {
    margin-left: 10px;
  }

  .project-card {
    min-width: 280px;
    max-width: 320px;
  }

  .projects-container {
    gap: 20px;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 20px 0;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    padding: 10px 30px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
    padding: 40px 0;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 0; /* Remove bottom margin since graphic is hidden */
  }

  .hero {
    min-height: auto; /* Adjust hero section height */
    height: auto;
    padding-top: 100px;
  }

  .hero-graphic {
    display: none; /* Hides the chart completely on mobile */
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 30px;
  }

  /* Mobile slider adjustments */
  .slider-wrapper {
    max-width: 100%;
    padding: 0 10px;
    flex-direction: column;
    gap: 20px;
  }
  
  .slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .slider-arrow-left,
  .slider-arrow-right {
    margin: 0;
  }
  
  .projects-slider {
    order: 2;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .slider-arrow-left {
    order: 1;
  }
  
  .slider-arrow-right {
    order: 3;
  }
  
  .project-card {
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-right: 0;
    border: 1px solid rgb(69, 69, 69);
  }

  .projects-container {
    gap: 0;
    width: fit-content; /* Use dynamic width for mobile */
  }

  .project-image {
    height: 150px;
  }

  .project-content {
    padding: 15px;
  }

  .project-content h3 {
    font-size: 1.1rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }

  .project-tags span {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
  
  .slider-dots {
    margin-top: 20px;
    order: 4;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-cta {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
  }
  
  .data-visual {
    width: 200px;
    height: 200px;
  }
}

/* Add these responsive styles at the end of your CSS file */

/* Large devices (laptops/desktops) */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .contact-container {
    gap: 30px;
  }

  /* Update the mobile menu styles */
  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Adds blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 999;
  }

  nav ul.show {
    left: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul li a {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 1; /* Keep text fully opaque */
  }

  .menu-toggle {
    display: block;
    z-index: 1000;
  }

  /* Add styles for the X icon state */
  .menu-toggle.active i::before {
    content: '\f00d';
  }
}

/* Small devices (landscape phones) */
@media (max-width: 768px) {
  header .container {
    padding: 15px;
  }

  .hero {
    padding-top: 100px;
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    text-align: center;
    padding: 0;
    margin-bottom: 40px;
  }

  .skill-category {
    margin-bottom: 40px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
  }

  .form-group {
    margin-bottom: 15px;
  }
}

/* Extra small devices (portrait phones) */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.4rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-method i {
    margin-bottom: 10px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
  }
}

/* Very small devices */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .logo span {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .section-title::after {
    width: 40px;
    height: 3px;
  }

  .project-card {
    margin-bottom: 20px;
    min-width: 240px;
  }

  .project-image {
    height: 120px;
  }

  .project-content {
    padding: 12px;
  }

  .project-content h3 {
    font-size: 1rem;
  }

  .project-content p {
    font-size: 0.8rem;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .skill-item span {
    font-size: 0.9rem;
  }
}

/* Adjust navigation for tablets and mobile */
@media (max-width: 992px) {
  nav ul {
    position: fixed;
    top: 70px; /* Reduce this value to remove the gap */
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 999;
  }

  nav ul.show {
    left: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1000;
  }

  /* Add styles for the X icon state */
  .menu-toggle.active i::before {
    content: '\f00d'; /* FontAwesome X icon */
  }
}

/* Fix for sticky header on mobile */
@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
  }

  main {
    padding-top: 80px;
  }
}

/* Improve form responsiveness */
@media (max-width: 576px) {
  .form-status {
    padding: 8px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .menu-toggle {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .logo {
  margin-right: 0;
  margin-left: 20px;
}

[dir="rtl"] nav ul li {
  margin-left: 0;
  margin-right: 30px;
}

[dir="rtl"] .contact-method i {
  margin-right: 0;
  margin-left: 15px;
}

/* Language Switcher */
.lang-switch {
  margin-left: 20px;
}

.lang-switch button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 0.9rem;
  background-color: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.lang-switch button:hover {
  background-color: var(--yellow);
  color: var(--black);
}

@media (max-width: 768px) {
  .lang-switch {
    margin-right: 15px;
  }
  
  [dir="rtl"] .lang-switch {
    margin-right: 0;
    margin-left: 15px;
  }
}

/* --- Projects Slider Styles --- */
.slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  margin: 0 auto 40px auto;
}

.slider-arrow {
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 2;
}
.slider-arrow:hover {
  background: var(--black);
  color: var(--yellow);
}
.slider-arrow-left {
  margin-right: 10px;
}
.slider-arrow-right {
  margin-left: 10px;
}

.projects-slider {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
}

.projects-container {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  gap: 30px;
}

.project-card {
  min-width: 300px;
  max-width: 350px;
  flex: 0 0 100%;
  border: 1px solid rgb(237, 237, 237);
}

@media (max-width: 992px) {
  .projects-slider {
    max-width: 95vw;
  }
  .project-card {
    min-width: 260px;
    max-width: 90vw;
  }
}

@media (max-width: 576px) {
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .project-card {
    min-width: 90vw;
    max-width: 95vw;
  }
}
