/* Main Variables */
:root {
  --primary: #2c3e50;
  --secondary: #34495e;
  --accent: #3498db;
  --light: #f8f9fa;
  --gray: #95a5a6;
  --dark: #1a202c;
  --text: #2d3748;
  --border: #e2e8f0;
}

/* Base Styles */
body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--text);
  line-height: 1.7;
  background-color: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar, .btn {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

.code {
  font-family: 'JetBrains Mono', monospace;
}

/* Navbar */
.navbar {
  padding: 1.5rem 0;
  background-color: white;
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text);
  margin: 0 0.75rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

/* Header */
#header {
  padding: 150px 0 100px;
  position: relative;
}

.header-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.header-content p {
  font-size: 1.25rem;
  max-width: 600px;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.title-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.profile-image {
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* About Section */
#about {
  padding: 120px 0;
  position: relative;
}

/* Projects Section */
#projects {
  padding: 120px 0;
  background-color: var(--light);
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

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

.project-image {
  border-radius: 4px 4px 0 0;
  height: 200px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.project-image img {
  max-height: 100%;
  border-radius: 12px;
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.project-description {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background-color: #f1f5f9;
  border-radius: 2px;
  color: var(--secondary);
}

/* Skills Section */
#skills {
  padding: 120px 0;
}

.skills-container {
  max-width: 700px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: 3rem;
}

.skill-category-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.skill-item {
  width: 50%;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--secondary);
}

/* Contact Section */
#contact {
  padding: 120px 0;
  background-color: var(--light);
}

.contact-info {
  max-width: 500px;
  margin: 0 auto;
}

.contact-method {
  margin-bottom: 2.5rem;
}

.contact-method-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-method-value {
  font-size: 1.25rem;
  font-weight: 400;
}

.contact-method-value a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.contact-method-value a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

.social-link {
  color: var(--secondary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
}

/* Footer */
footer {
  padding: 3rem 0;
  background-color: white;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--gray);
}

/* Button */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline {
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Section title */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-title p {
  font-size: 1.25rem;
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-content {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .header-content h1 {
    font-size: 2.5rem;
  }
  
  .profile-image-container {
    text-align: center;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .skill-item {
    width: 100%;
  }
}