/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Theme */
:root {
  --primary: #6366f1;
  --primary-soft: #eef2ff;
  --text-dark: #1f2937;
  --border: #e5e7eb;
}

body {
  font-family: system-ui, sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffffcc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
}

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

/* Layout */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Sections */
.section {
  margin-top: 3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--primary);
  padding-left: 0.5rem;
}

.section-text {
  font-size: 0.98rem;
  color: #444;
}

/* Hero */
.hero {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-soft), #ffffff);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.hero-content h1 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease;
}

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

.btn-primary:hover {
  background-color: #4f46e5;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

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

/* Projects Grid */
.projects-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Project Card */
.project-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: 0.12s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

.project-title {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.project-desc {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.5rem;
}

/* Bottom section inside card */
.project-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-tech {
  font-size: 0.85rem;
  color: #666;
}

.project-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary);
}

.project-link:hover {
  text-decoration: underline;
}

/* Contact */
.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-list span {
  font-weight: 600;
  margin-right: 0.25rem;
}

.contact-list a {
  text-decoration: none;
  color: var(--primary);
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #666;
}

/* Responsive */
@media (min-width: 640px) {
  .hero {
    padding: 2.5rem 2rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

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

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
