* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #800020;
  --secondary-color: #5b0216;
  --text-color: #1f2937;
  --light-bg: #f3f4f6;
  --white: #ffffff;
  --border-color: #e5e7eb;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 80px 20px;
}

section h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
}

/* About Section */
.about {
  background-color: var(--light-bg);
  text-align: center;
}

.about p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Profile image and about layout */
.about .about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: wrap;
}

.about .about-content img.profile-img,
.about img.profile-img {
  flex: 0 0 auto;
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.about-text {
  flex: 1 1 320px;
}

@media (max-width: 768px) {
  .about .about-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
}

/* Projects Section */
.projects {
  text-align: center;
}

.github-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tech-list {
  list-style: none;
  margin: 1rem 0;
}

.tech-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.tech-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Resume Section */
.resume {
  background-color: var(--light-bg);
}

.resume-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.resume-header {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.resume-header p {
  margin: 0;
  font-size: 0.95rem;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.resume-item {
  margin-bottom: 2rem;
}

.resume-item h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: var(--text-color);
}

.resume-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.resume-date {
  font-size: 0.9rem;
  color: #6b7280;
  font-style: italic;
}

.resume-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0.25rem 0 0.5rem 0;
  font-size: 0.95rem;
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.resume-list li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  line-height: 1.5;
  color: #374151;
}

.resume-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.skills-resume {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.skills-resume p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.resume-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.resume-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.skill-category h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-category p {
  line-height: 1.8;
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

/* Social Links */
.social-links {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(128, 0, 32, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 2rem;
  }

  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
