/* =====================
   CSS Reset & Base Styles
   ===================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =====================
   Utility Classes
   ===================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #f8f9fa;
}

.highlight {
  color: #2563eb;
}

/* =====================
   Navigation
   ===================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: #2563eb;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2563eb;
}

/* =====================
   Hero Section
   ===================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

/* =====================
   Buttons & Links
   ===================== */

.btn {
  display: inline-block;
  background-color: #2563eb;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

.link {
  color: #2563eb;
  font-weight: 500;
  transition: color 0.2s;
}

.link:hover {
  color: #1d4ed8;
}

/* =====================
   About Section
   ===================== */

.about-content {
  max-width: 700px;
}

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

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

/* =====================
   Projects Section
   ===================== */

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

.project-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-info p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

/* =====================
   Contact Section
   ===================== */

#contact {
  text-align: center;
}

.contact-text {
  color: #666;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  margin-bottom: 2rem;
}

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

.social-link {
  color: #666;
  transition: color 0.2s;
}

.social-link:hover {
  color: #2563eb;
}

/* =====================
   Footer
   ===================== */

.footer {
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  color: #666;
  font-size: 0.9rem;
}

/* =====================
   Responsive Design
   ===================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .section {
    padding: 3rem 0;
  }
}
