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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  z-index: 1000;
  border-bottom: 1px solid #1a1a1a;
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #6366f1;
}

section {
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

#hero {
  text-align: center;
}

#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #e0e0e0;
  /* Base color for "Hi, I'm" */
}

.name {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  font-size: 1.5rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: #6366f1;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  border: 2px solid #6366f1;
  text-align: center;
}

.btn:hover {
  background: transparent;
  transform: translateY(-2px);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.project-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.project-card h3 {
  font-size: 2rem;
  color: #6366f1;
  text-align: center;
}

.project-card h4 {
  font-size: 1.5rem;
  color: #f1b863;
  text-align: center;
}

.project-card h5 {
  font-size: .75rem;
  color: #646464;
  text-align: center;
}

.project-card p {
  color: #eaf1ff;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.skill-tag {
  background: #1a1a1a;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  border: 1px solid #2a2a2a;
  transition: all 0.3s;
}

.skill-tag:hover {
  background: #6366f1;
  border-color: #6366f1;
}

.contact-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #9ca3af;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: #e0e0e0;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #6366f1;
}


.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6366f1;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: transform 0.3s;
}

.back-btn:hover {
  transform: translateX(-5px);
}

.project-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.project-header h1 {
  font-size: 3rem;
  color: #6366f1;
  margin-bottom: 1rem;
}

.project-header h2 {
  font-size: 1.5rem;
  color: #f1b863;
  margin-bottom: 0.5rem;
}

.project-header h3 {
  font-size: 0.9rem;
  color: #646464;
  margin-bottom: 2rem;
}

.project-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #6366f1;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  border: 2px solid #6366f1;
}

.project-link:hover {
  background: transparent;
  transform: translateY(-2px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.info-section {
  padding: 4rem 2rem;
}

.info-section h2 {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  text-align: center;
}

.info-content {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 4rem;
}

.info-content p {
  color: #eaf1ff;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-content h3 {
  color: #6366f1;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.info-content ul {
  list-style-position: inside;
  color: #eaf1ff;
  margin-left: 1rem;
}

.info-content li {
  margin-bottom: 0.5rem;
}

.gallery-section {
  padding: 2rem;
}

.gallery-section h2 {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item-caption {
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
}

.image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #646464;
  font-size: 3rem;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: #6366f1;
  transform: rotate(90deg);
}

/* Testimonials Section */
#testimonials {
  min-height: 80vh;
  padding: 6rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonials-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
  width: max-content;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.testimonial {
  flex: 0 0 calc((1200px - 6rem) / 4);
  min-width: 250px;
  text-align: center;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.testimonial-quote {
  font-size: 1rem;
  color: #eaf1ff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  padding-top: 1rem;
  flex-grow: 1;
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: #6366f1;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

.testimonial-author {
  font-size: 1rem;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #9ca3af;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  color: #6b7280;
}

@media (max-width: 1024px) {
  .testimonial {
    flex: 0 0 calc((100vw - 8rem) / 3);
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  #hero p {
    font-size: 1.2rem;
  }

  .testimonial {
    flex: 0 0 calc(100vw - 6rem);
  }

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

  section {
    padding: 5rem 1rem 3rem;
  }

  .project-header h1 {
    font-size: 2rem;
  }

  .project-header h2 {
    font-size: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}