/* Minimalist Light Design System */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-accent: #f1f5f9;

  --text-primary: #1a1a1a;
  --text-secondary: #525252;
  --text-light: #737373;

  --accent-primary: #2563eb;
  /* Clean tailored blue */
  --accent-secondary: #1d4ed8;

  --border-light: #e5e7eb;

  --font-main: 'Outfit', sans-serif;
  /* Keeping Outfit for modern feel, or could use Inter */

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: left;
  /* Aligned left for minimalism */
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 300;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-primary);
}

/* Specific Link Styles */
.project-link {
  color: var(--accent-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
}

.project-link:hover {
  border-bottom-color: var(--accent-primary);
  gap: 0.5rem;
  /* Prevent movement */
}

/* Layout */
.container {
  max-width: 1000px;
  /* Slightly tighter measure for reading */
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Left align */
  position: relative;
}

.hero-content {
  text-align: left;
  /* Left align */
  max-width: 700px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  /* Circle */
  object-fit: cover;
  margin-bottom: 2.5rem;
  background-color: var(--bg-secondary);
  /* Removed heavy shadow/border */
}

.role {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 2rem;
  display: block;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* Left align */
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.tech-tag {
  background: var(--bg-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  /* Slightly squarer */
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
}

.tech-tag:hover {
  background: var(--bg-accent);
  color: var(--text-primary);
}

/* Projects Section */
#projects {
  background-color: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem 3rem;
  /* More space between items */
}

.project-card {
  background: transparent;
  /* Removed border/box-shadow for pure minimalism */
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition-fast);
}

.project-card:hover {
  /* No lift, just subtle opacity change or focus */
}

.project-img-wrapper {
  overflow: hidden;
  height: 220px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  margin-bottom: 1.5rem;
  border: 1px solid var(--bg-accent);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
  filter: grayscale(100%);
  /* Elegant grayscale by default */
}

.project-card:hover .project-img {
  transform: scale(1.02);
  filter: grayscale(0%);
  /* Color on hover */
}

.project-content {
  padding: 0;
  /* Remove padding since card is transparent */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 4rem 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Clean up social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.social-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  .hero {
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    min-height: auto;
  }

  /* Allow scrolling on mobile */
  .container {
    padding: 0 1.5rem;
  }
}