:root {
  --primary-color: #007bff;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --white-color: #ffffff;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cedarville-cursive-regular {
  font-family: "Cedarville Cursive", cursive;
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
  overflow: hidden;
}

h1,
h2 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* h1, h2, h3 {
    font-family: 'Cedarville Cursive', cursive;
} */

section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background-color: var(--white-color);
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background: #0056b3;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: var(--white-color);
  box-shadow: var(--box-shadow);
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  /* font-family: 'Cedarville Cursive', cursive; */
}

/* .navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--dark-color);
} */

.navbar ul {
  list-style: none;
  display: flex;
}

.navbar ul li {
  margin: 0 1.5rem;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: var(--primary-color);
}

/* Hero Section */
#home {
  padding-top: 8rem;
  text-align: center;
}

#home h1 {
  font-size: 3rem;
}

#home p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

#home .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: left;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Makes it so that the image is a circle */
    object-fit: cover;
    border: 3px solid var(--dark-color);
}

/* .home-text {
    max-width: 600px;
} */

.social-links a {
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-color);
}

/* Skills Section */
#skills h2 {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-category h3 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category ul li {
  background: var(--light-color);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

/* Projects Section */
#projects h2 {
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white-color);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content .tech-stack {
  margin: 1rem 0;
}

.project-content .tech-stack span {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.project-links a {
  margin-right: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-color);
}

/* About & Contact Section */
#about {
  text-align: center;
}

#about p {
  max-width: 600px;
  margin: 1rem auto;
  text-align: justify;
}

.hidden {
    display: none;
}

/* style for the language toggle buttons */
.language-toggle {
    text-align: center;
    margin-bottom: 1.5rem;
}

.language-toggle button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin: 0 5px;
    border-radius: 5px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.language-toggle button.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    opacity: 1;
}

/*  Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--dark-color);
  color: var(--white-color);
}

/* Responsive Design for mobile users*/
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }

  .navbar ul {
    padding-top: 1rem;
  }

  #home {
    padding-top: 10rem;
  }

  #home .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  #home h1 {
    font-size: 2.5rem;
  }
}
