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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Background */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="8" fill="%23333">code</text></svg>');
  opacity: 0.1;
  z-index: -2;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #411a61;
  z-index: 1000;
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 500;
  color: #fff;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #8328ce;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #d1d5db;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  padding-top: 80px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #d1d5db;
  max-width: 800px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 4rem;
}

/* projects Section */
.projects {
  padding: 5rem 0;
}

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

.project-card {
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-card:hover {
  border-color: #4b5563;
  transform: translateY(-5px);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.project-description {
  color: #9ca3af;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background-color: #374151;
  color: #d1d5db;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* Skills Section */
.skills {
  padding: 5rem 0;
  background-color: rgba(17, 24, 39, 0.5);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.skill-item {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 1rem;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon {
  color: #8328ce;
  font-size: 1.5rem;
}

.skill-name {
  font-size: 1.125rem;
  font-weight: 500;
  min-width: 120px;
}

.skill-bar {
  background-color: rgb(55, 65, 81);
  height: 12px;
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8328ce);
  border-radius: 9999px;
  width: 0%;
  transition: width 2s ease-out;
}

.skill-percentage {
  color: #9ca3af;
  font-size: 0.875rem;
  min-width: 40px;
  text-align: right;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 2rem;
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-card-description {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input,
.form-textarea {
  background-color: #374151;
  border: 1px solid #4b5563;
  border-radius: 0.375rem;
  padding: 0.75rem;
  color: #fff;
  font-size: 1rem;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #60a5fa;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-info-description {
  color: #9ca3af;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  color: #8328ce;
  font-size: 1.5rem;
}

.social-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: transparent;
  border: 1px solid #4b5563;
  border-radius: 0.375rem;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #374151;
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #4b5563;
  color: #d1d5db;
}

.btn-outline:hover {
  background-color: #374151;
  color: #fff;
}

.btn-primary {
  background-color: #8328ce;
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background-color: #8328ce;
}

.btn i {
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .skill-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .skill-info {
    justify-content: center;
  }

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

  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    margin: 0 0.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
