/* =========================
   default.css – FINAL Portfolio Styles
   ========================= */


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #1f2937;

  /* Brown background (clean + modern) */
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(139, 94, 52, 0.12), transparent 55%),
    radial-gradient(1000px 500px at 90% 0%, rgba(31, 77, 90, 0.08), transparent 55%),
    #b8ad98;

  line-height: 1.6;
}

/* -------------------------
   Layout
------------------------- */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------
   Header
------------------------- */
.portfolio-header {
  width: 100%;
  background-color: #f5efe6;
  border-bottom: 1px solid #e5e7eb;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.nav a {
  margin-left: 24px;
  text-decoration: underline;
  color: #2e54ad;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #f44d4d;
}

/* -------------------------
   Typography
------------------------- */
h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 50px;
}

h2 {
  font-size: 1.8rem;
  margin-top: 50px;
}

h3 {
  font-size: 1.2rem;
  margin-top: 30px;
}

p {
  margin-bottom: 20px;
  max-width: 65ch;
  color: #374151;
}

/* -------------------------
   Image Settings 
------------------------- */
figure {
  display: flex;
  flex-direction: column;   /* Making my fig captions centered */
  align-items: center;
  margin: 30px 0;
}

figure img {
  width: 100%;          /* fills container */
  max-width: 600px;     /* keeps it clean */
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* -------------------------
   Links
------------------------- */
a {
  color: #2e54ad;
  text-decoration: underline;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------
   Buttons
------------------------- */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #1f4d5a;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn:hover {
  background-color: #163943;
}

/* -------------------------
   Sections (card style)
------------------------- */
section {
  background: rgba(255, 255, 255, 0.8);
  padding: 28px;
  border-radius: 14px;
  margin-top: 40px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

/* -------------------------
   Footer
------------------------- */
.portfolio-footer {
  width: 100%;
  background-color: #f5efe6;
  border-top: 2px solid #e5e7eb;
  margin-top: 60px;
}

.footer-links a {
  margin-left: 25px;
  color: #2e54ad;
  text-decoration: underline;
}

.footer-links a:hover {
  color: #f44d4d;
}

/* =========================
   Certifications Section
   ========================= */

.certifications {
  margin-top: 20px;
}

.cert-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;  /* 👈 aligns with text top */
}

.cert-card img {
  width: 250px;        /* 👈 bigger but still clean */
  height: auto;
  border-radius: 8px;
  margin: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cert-card img:hover {
  transform: scale(1.05);  /* subtle UX effect */
}
/* =========================
   Contact Section
   ========================= */

.contact-grid {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
  margin-bottom: 10px;
}

.contact-card a {
  font-weight: 500;
  color: #2e54ad;
}

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

/* Fix footer spacing */
.portfolio-footer {
  margin-top: 80px;
  padding: 20px;
}