@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

html {
  scroll-behavior: smooth;
}

:root {
  --bg-color: #121212;
  --text-color: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #0070f3;
  --card-bg: #1e1e1e;
  --hover-bg: #2a2a2a;
  --border-color: #333333;
}

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

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color);
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s ease;
}

.fixed-header.scrolled {
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(5px);
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-color);
}

main {
  padding-top: 80px; 
}

.hero {
  padding: 4rem 0;
}

.profile-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.profile-content {
  flex: 1;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.highlight {
  color: var(--accent-color);
}

.bio {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.twitter-link {
  color: var(--accent-color);
  text-decoration: none;
}

.profile-image-container {
  width: 150px;
  flex-shrink: 0;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* About Section */
#about {
  padding: 4rem 0;
}

.about-content {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.about-content p {
  margin-bottom: 1rem;
}

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

/* Projects Section */
#projects {
  padding: 4rem 0;
}

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

.project-card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  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 20px rgba(0, 0, 0, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 1.5rem;
}

.tech-stack {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-stack span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  background-color: var(--hover-bg);
  border-radius: 4px;
}

/* Contact Section */
#contact {
  padding: 4rem 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
}

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

.social-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--text-color);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

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