/* ========================================
   SITE 1101 Portfolio – Clean Styles
   Simple, responsive, beginner-friendly
   ======================================== */

/* CSS Variables for easy theming */
:root {
  --primary: #001f3f;
  --primary-light: #003366;
  --accent: #ffcc00;
  --text: #1a1a1a;
  --text-light: #f0f8ff;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --max-width: 1100px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ========== Header & Navigation ========== */
header {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: white;
  padding: 0.9rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

/* ========== Main Content ========== */
main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ========== Home / Hero Section ========== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 3.5rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 560px;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-content .tagline {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.05rem;
  color: #e0eaf5;
  margin-bottom: 1.5rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

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

.btn-primary:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* ========== Section Headings ========== */
.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2rem;
  color: #444;
}

/* ========== About Page ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: var(--bg-alt);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.about-card h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.about-card p,
.about-card ul {
  color: #333;
  font-size: 0.98rem;
}

.about-card ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.about-card li {
  margin-bottom: 0.4rem;
}

/* ========== Projects Page ========== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.project-image {
  height: 160px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 2.5rem;
  font-weight: 600;
}

.project-body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-body p {
  font-size: 0.92rem;
  color: #444;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-block;
  background: #e8f0fe;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-top: auto;
}

/* ========== Blog Page ========== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--accent);
}

.blog-card h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.7rem;
}

.blog-card p {
  font-size: 0.95rem;
  color: #333;
}

/* ========== Footer ========== */
footer {
  background: var(--primary);
  color: #ccc;
  padding: 1.75rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-text {
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.8;
}

.social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ========== Utility ========== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav ul {
    gap: 1rem;
    justify-content: center;
  }

  .hero {
    padding: 2.5rem 1rem;
  }
}
