/*
Theme Name: Project 2 Theme
Author: Sahib Dhaliwal
Description: My DGL233 Project 2 Classic Theme
Version: 1.0
*/

/* =========================
   Reset
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #f3f5f7;
  color: #1d2d44;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   Layout
========================= */

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-main {
  padding: 3rem 0;
}

/* =========================
   Header
========================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-branding img {
  max-width: 140px;
  height: auto;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
}

.site-title a {
  text-decoration: none;
  color: #1d2d44;
  font-weight: 600;
}

/* =========================
   Navigation
========================= */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-nav a {
  text-decoration: none;
  color: #2f6db3;
  font-weight: 500;
}

.site-nav a:hover {
  opacity: 0.8;
}

/* =========================
   Hero Section
========================= */

.hero {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0;
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #1f3f75;
}

.hero-intro {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #4c5d73;
}

.hero-image {
  flex: 1;
  max-width: 350px;
}

.hero-image img {
  border-radius: 16px;
}

/* =========================
   Sections
========================= */

.about,
.skills,
.education,
.cta {
  background: #ffffff;
  padding: 3rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.about h2,
.skills h2,
.education h2,
.cta h2 {
  text-align: center;
  font-size: 2rem;
  color: #1f3f75;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* =========================
   Buttons
========================= */

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: #1f3f75;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.button:hover {
  background: #2f6db3;
}

/* =========================
   CTA Section
========================= */

.cta {
  text-align: center;
}

/* =========================
   Footer
========================= */

.site-footer {
  background: #ffffff;
  border-top: 1px solid #ddd;
  padding: 2rem 0;
  text-align: center;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-nav a {
  color: #2f6db3;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  color: #4c5d73;
}

/* =========================
   404 Page
========================= */

.error-404 {
  padding: 5rem 0;
  text-align: center;
}

.error-404 h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.error-404 a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: #1f3f75;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

/* =========================
   Responsive
========================= */

@media (min-width: 768px) {

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 2rem;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

}
.hero-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card,
.project-single,
.contact-page,
.project-meta,
.project-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.project-card a {
  text-decoration: none;
  color: #1d2d44;
}

.project-card h2 {
  margin-top: 1rem;
}

.project-featured-image img,
.project-card-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.project-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.projects-home {
  background: #ffffff;
  padding: 3rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}

.projects-home h2 {
  text-align: center;
  font-size: 2rem;
  color: #1f3f75;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
}

.project-card a {
  text-decoration: none;
  color: #1d2d44;
}

.project-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.project-card-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}