:root {
  --primary: #3b82f6;
  --primary-light: #eff6ff;
  --secondary: #e5e7eb;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border: #d1d5db;
  --background: #ffffff;
  --background-alt: #f9fafb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
}

.container {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.1), transparent);
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.profile-image-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(59, 130, 246, 0.2);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .hero .subtitle {
    font-size: 1.5rem;
  }
}

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

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  background-color: var(--background);
}

.social-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.chevron-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--text-secondary);
}

.chevron-down svg {
  width: 32px;
  height: 32px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

.about h2,
.skills h2,
.projects h2,
.certifications h2,
.contact h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

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

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

.skill-tag {
  padding: 0.75rem 1.25rem;
  background-color: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

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

.project-card {
  padding: 1.5rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--secondary);
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.github-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.github-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

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

.certification-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background-alt);
}

@media (max-width: 768px) {
  .certification-card {
    grid-template-columns: 1fr;
  }
}

.cert-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cert-issuer {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cert-date {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-instructor {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cert-image {
  overflow: hidden;
  border-radius: 0.5rem;
  max-height: 400px;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--background-alt);
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--background);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.contact-card:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.contact-card svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-card span {
  font-size: 0.875rem;
  word-break: break-all;
}

/* Footer */
.footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .about h2,
  .skills h2,
  .projects h2,
  .certifications h2,
  .contact h2 {
    font-size: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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