/* Design tokens */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --primary: #2a70e0;
  --primary-dark: #1e5bb9;
  --text: #1f2933;
  --muted: #5b6470;
  --shadow: 0 8px 24px rgba(23, 43, 77, 0.12);
  --radius: 12px;
}

/* General Styles */
body {
  font-family: 'Manrope', 'Space Grotesk', Roboto, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(42, 112, 224, 0.04), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(26, 91, 185, 0.06), transparent 28%),
              var(--bg);
  color: var(--text);
  margin: 0;
}

/* Utility */
.muted { opacity: 0.8; }

/* Header */
header {
  padding: 28px 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

header .row,
footer .row {
  display: flex;
  align-items: center;
}

/* Headings */
h1 {
  font-weight: 800;
  margin: 0;
  font-size: 2.4rem;
  color: var(--primary);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Navigation */
nav {
  display: flex;
  justify-content: flex-end;
}

nav a {
  padding: 10px 18px;
  margin: 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--primary);
  background: rgba(42, 112, 224, 0.08);
}

nav a.active {
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow);
}

/* Jumbotron */

.jumbotron {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(135deg, rgba(42,112,224,0.72), rgba(21,74,171,0.75)), url('./resources/images/iStock-1327449500.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  height: 420px;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.jumbotron h2 {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}

.jumbotron h3 {
  margin: 0 0 22px;
  color: #e8edff;
}

/* Section Styles */
section {
  padding: 48px 0;
}

section .row {
  margin-bottom: 24px;
}

section .row img {
  width: 100%;
  margin-bottom: 12px;
}

.col-md-6 {
  margin-bottom: 32px;
}

/* Button Styles */

.btn {
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(33, 82, 160, 0.35);
}

.btn.btn-outline-primary,
.btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: #fbd1d5;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added a subtle shadow */
}

.btn-secondary:hover {
  background-color: #f9b8c0; /*Darker pink on hover*/
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /*Increased the shadow on hover*/
}

/* Portrait Image */
.portrait {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 0 auto; /* Center the image horizontally */
}

.portrait-container{
  width: 100%;
}

/* Image in figures */
figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

figure {
  margin-bottom: 30px;
}

/* Footer */
footer {
  font-size: 1rem;
  padding: 32px 0;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -4px 12px rgba(17, 24, 39, 0.06);
}

footer .col-sm-4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

footer .col-sm-4 p, footer .footer-content img {
  margin-bottom: 0; /* Remove default bottom margin */
}

footer .col-sm-8 {
  display: flex;
  justify-content: flex-end;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer li{
    margin-bottom: 5px;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .jumbotron {
    height: auto;
    padding: 24px;
  }

  .jumbotron h2 {
    font-size: 2.4rem;
  }

  .portrait {
    width: 100%;
    height: auto;
  }

  header .row,
  footer .row {
    flex-direction: column;
    text-align: center;
  }
  nav {
    justify-content: center;
    margin-top: 10px;
  }
}

/* Projects */
.project-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

.project-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 112, 224, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 112, 224, 0.10);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08px;
  line-height: 1.1;
  border: 1px solid rgba(42, 112, 224, 0.22);
  box-shadow: 0 6px 14px rgba(33, 82, 160, 0.12), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(33, 82, 160, 0.18), inset 0 1px 0 rgba(255,255,255,0.45);
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.jumbotron p {
  color: white;
  max-width: 680px;
  line-height: 1.6;
}
