:root {
  --primary: #2c3e50;       /* Header/Footer background */
  --accent: #00796b;        /* Unified accent color */
  --bg: #f9f9fb;            /* Page background */
  --text: #333;              /* Base text */
  --card-bg: #fff;           /* Cards */
  --radius: 12px;
  --shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* Header & Footer */
header, footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1.5rem;
}
header h1 { margin-bottom: 0.3rem; }
nav ul { display: flex; justify-content: center; list-style: none; gap: 1rem; margin-top: 1rem; }
nav a { color: white; text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

/* Sections */
section { padding: 3rem 2rem; max-width: 1200px; margin: auto; }
h2 { margin-bottom: 1.5rem; font-size: 1.8rem; border-bottom: 2px solid var(--accent); display: inline-block; }

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease; /* smooth zoom */
}

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

.card:hover img {
  transform: scale(1.05); /* subtle zoom-in */
}

.card-content { padding: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: #555; }
.year { font-size: 0.85rem; color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.btn:hover { background: darken(var(--accent), 10%); transform: scale(1.05); }

/* Filters & Search */
.filters { margin: 1rem 0; text-align: center; }
.filters button {
  margin: 0 0.3rem;
  padding: 0.5rem 1rem;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.filters button:hover,
.filters button.active {
  background: var(--accent);
  transform: scale(1.05);
}

input[type="text"] {
  padding: 0.6rem;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}
input[type="text"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 5px rgba(0,121,107,0.4);
}

/* Testimonials */
.testimonial blockquote { font-style: italic; color: #555; }
.testimonial p { margin-top: 0.5rem; font-weight: bold; color: var(--primary); }

/* Contact Section */
#contact {
  text-align: center;
  padding: 3rem 1rem;
  background: #f9f9f9;
}
#contact h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}
.contact-icons a {
  font-size: 3rem;
  color: #333;
  transition: color 0.3s, transform 0.2s;
}
.contact-icons a:hover {
  color: var(--accent);
  transform: scale(1.25);
}

.about-image img {
  width: 160px;        /* reduced from 220px */
  height: 160px;       /* keep it proportional */
  object-fit: cover;
  object-position: top; /* keep face fully visible */
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

/* Make image scale smoothly on small screens */
@media (max-width: 600px) {
  .about-image img {
    width: 140px;
    height: 140px;
  }
}

/* About Section */
.about-container {
  display: flex;
  align-items: flex-start;   /* align top edges of image & text */
  gap: 2.5rem;
  flex-wrap: wrap;
}

.about-image {
  text-align: center;
  flex: 0 0 200px; /* keep left column fixed */
}

.about-image img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: top; /* keep face fully visible */
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

/* Bigger icons under profile picture */
.about-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.about-social a {
  font-size: 2.5rem;   /* larger than before */
  color: #333;
  transition: color 0.3s, transform 0.2s;
}

.about-social a:hover {
  color: var(--accent);
  transform: scale(1.25);
}

/* Author text sits to the right */
.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* Mobile view: stack */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-text {
    margin-top: 1rem;
  }
}

/* Footer */
footer p { font-size: 0.85rem; }
