:root {
  --bg-color: #111111;
  --card-bg: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #4CAF50;
  --tag-bg: #2d2d2d;
  --border-color: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: "</>";
  color: var(--accent-color);
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero {
  text-align: center;
  padding: 80px 0 40px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.project-card-container {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-content {
  display: flex;
  gap: 40px;
  padding-bottom: 60px;
  align-items: flex-start;
}

.project-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-image-centered,
.project-video-centered {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.img-small-rounded,
.video-small-rounded {
  width: 100%; /* Use 100% width for responsiveness */
  height: auto; /* Allow the height to adjust based on aspect ratio */
  max-width: 800px; /* Set a maximum width for desktop view */
  max-height: 400px; /* Set a maximum height for desktop view */
  object-fit: cover;
  border-radius: 10px;
  border: none;
  box-shadow: none;
}

.project-content .project-description {
  max-width: 800px;
  margin: 0 auto;
}

.project-content .project-description p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.buttons {
  margin: 10px 0;
  display: flex;
  justify-content: flex-start;
}

.btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* No need for the media query for image/video height anymore */

@media (max-width: 992px) {
  .project-content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 15px;
  }

  .logo {
    font-size: 20px;
  }
  
  .hero {
    padding: 60px 0 30px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }

  .project-card-container {
    padding: 20px;
  }
  
  .project-content .project-description {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .buttons {
    flex-direction: column;
    gap: 10px;
  }
}
