html {
  scroll-behavior: smooth;
}

/* Catppuccin Theme Variables */
:root {
  --background: #1e1e2e;
  --text: #cdd6f4;
  --accent: #f38ba8;
  --hover-bg: rgba(30, 30, 46, 0.8);
}

/* Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background-color: var(--background);
  scroll-behavior: smooth;
  font-size: 18px;
  font-family: "Roboto", sans-serif;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

nav a:hover {
  color: var(--accent);
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 40px 20px;
}

section > * {
  margin-bottom: 10px;
}

h1,
h2,
h3 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

section p,
.project-description {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  line-height: 1.6;
  text-align: center;
}

.project-text {
  max-width: 800px;
  padding: 0 40px;
  margin: 20px auto;
  text-align: center;
}

/* Project Section */
.projects-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.project-tile {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: inherit;
  transition: transform 0.3s ease;
}

.project-tile:hover img {
  transform: scale(1.1);
}

.project-tile .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hover-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--text);
  font-size: 1.5rem;
}

.project-tile:hover .overlay {
  opacity: 1;
}

/* Experience Section Styles */
#experience {
  padding: 80px 20px;
  min-height: 100vh;
}

.experience-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.experience-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(243, 139, 168, 0.2);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.experience-header h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--accent);
}

.experience-header h3 a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.experience-header h3 a:hover {
  color: #ff6b9d;
}

.experience-header .location {
  color: var(--text);
  font-size: 1rem;
  opacity: 0.8;
}

.experience-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(205, 214, 244, 0.2);
  flex-wrap: wrap;
}

.experience-subheader .role {
  font-style: italic;
  font-size: 1.1rem;
  color: #89dceb;
}

.experience-subheader .duration {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.7;
}

.experience-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-details li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text);
}

.experience-details li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.experience-details strong {
  color: #89dceb;
  font-weight: 600;
}

/* Skills Section */
.skills-section {
  color: #f9f9f9;
  text-align: center;
  padding: 5rem 1rem;
  font-family: "Inter", sans-serif;
}

.skills-title {
  font-size: 2.5rem;
  color: #ff6e96;
  margin-bottom: 3rem;
}

.skill-group {
  margin-bottom: 2.5rem;
  line-height: 2;
}

.skill-group span {
  display: block;
  font-size: 1.1rem;
}

#skills {
  padding: 40px;
  background-color: #2b2d42;
  color: #fff;
  text-align: center;
}

#skills h2 {
  margin-bottom: 20px;
  font-size: 36px;
}

#skills ul {
  list-style-type: none;
  padding: 0;
}

#skills li {
  font-size: 18px;
  margin: 10px 0;
}

#projects h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

.project-tile {
  display: inline-block;
  width: 30%;
  margin: 20px;
  text-align: center;
}

.project-tile img {
  width: 100%;
  height: 100%;
}

a {
  color: #ff4081;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: none;
  color: #e91e63;
}

/* Responsive Design */
@media (max-width: 768px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-header .location {
    margin-top: 5px;
  }

  .experience-subheader {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-subheader .duration {
    margin-top: 5px;
  }

  .experience-item {
    padding: 20px;
  }
}