/* General Styles */
:root {
  --bg-900: #050507;
  --bg-800: #0b0b0d;
  --panel: #0f1113;
  --accent: #00f0e0;
  --accent-muted: rgba(0, 240, 224, 0.14);
  --muted: #9aa0a6;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.02);
  --radius: 12px;
  --max-width: 1100px;
  --section-pad: 64px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #050507, #0b0b0d);
  color: #e6f8f7;
  overflow-x: hidden;
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

header {
  background: var(--panel);
  color: var(--accent);
  padding: 1rem 0;
  text-align: center;
  text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  animation: slideDown 1.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--panel);
  box-shadow: 0 0 10px var(--accent);
  animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--accent);
  }
  50% {
    box-shadow: 0 0 20px var(--accent);
  }
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

nav ul li a:hover {
  color: #fff;
  text-shadow: 0 0 5px #fff, 0 0 10px #fff;
}

.site {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  visibility: hidden;
}

.site.visible {
  visibility: visible;
}

main {
  padding: 2rem;
}

section {
  margin-bottom: 2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 0 10px var(--accent);
  animation: fadeIn 2s ease-in;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background: var(--panel);
  color: var(--accent);
  text-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent);
  animation: fadeIn 2s ease-in;
}

/* Styles for the updated design */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(180deg, #0b0b0d, #050507);
  color: #e6f8f7;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .cta {
  background: #00f0e0;
  color: #050507;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.hero .cta:hover {
  background: #00c0b0;
}

.work {
  padding: 50px 20px;
  text-align: center;
}

.work h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.work p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.work-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.work-item {
  background: #0f1113;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  width: 300px;
  box-shadow: 0 0 10px rgba(0, 240, 224, 0.2);
}

.work-item img {
  width: 100%;
  border-radius: 10px;
}

.work-item h3 {
  margin-top: 10px;
  font-size: 1.2rem;
}

/* Skill Bars */
.skill {
  margin: 1rem 0;
}

.skill label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #fff;
}

.skill .bar {
  background: #222;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 20px;
  box-shadow: 0 0 5px #0ff;
  animation: growBar 2s ease-in-out;
}

@keyframes growBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.skill .bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #0ff;
  border-radius: 20px;
}

/* Styles for activities section images */
.activity-images img {
  width: 100%;
  max-width: 150px; /* Make images smaller */
  height: auto; /* Maintain aspect ratio */
  margin: 10px; /* Add spacing between images */
  display: inline-block; /* Align images in a row */
}

@media (max-width: 768px) {
  .activity-images img {
    max-width: 100px; /* Adjust size for smaller screens */
  }
}

@media (max-width: 480px) {
  .activity-images img {
    max-width: 80px; /* Further adjust size for very small screens */
  }
}

/* Global styles for all images */
img {
  width: 100%;
  max-width: 300px; /* Set maximum width to 300px */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Ensure images are block-level elements */
  margin: 0 auto; /* Center images */
}

@media (max-width: 768px) {
  img {
    max-width: 200px; /* Adjust size for smaller screens */
  }
}

@media (max-width: 480px) {
  img {
    max-width: 150px; /* Further adjust size for very small screens */
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 10px 0;
  }

  .hero {
    text-align: center;
    padding: 20px;
  }

  .projects-grid, .code-sample-grid, .skills-image-grid {
    flex-direction: column;
    gap: 15px;
  }

  .project-item, .code-item, .skill-image-item {
    max-width: 100%;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .download-cv-btn {
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 12px;
  }
}