* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #B0C4DE;
  color: #222;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: #111;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links li a:hover {
  text-decoration: underline;
}

/* Main Content Area */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.photo-container img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.intro-box {
  flex: 1;
  background-color: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-weight: 500;
  color: #444;
  margin-bottom: 1rem;
}

.tagline {
  font-weight: 600;
  color: #111;
}

/* Skills Table */
.skills-section h2,
.skills-section h3 {
  margin-bottom: 1rem;
}

.skills-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #f4f4f4;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}

.skills-table thead {
  background-color: #e0e0e0;
}

.skills-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 700;
  color: #003366;
}

.skills-table td {
  vertical-align: top;
  padding: 1rem;
}

.skills-table ul {
  padding-left: 1.25rem;
}

.skills-table ul li {
  margin-bottom: 0.5rem;
}

/* Projects Page */
.project {
  background-color: #D3D3D3;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.project-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover {
  color: #004999;
  text-decoration: underline;
}

.project-description {
  font-size: 1rem;
  color: #444;
  white-space: pre-line;
}

/* Footer */
footer {
  background-color: #ffffff;
  color: #333;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #ddd;
  margin-top: 3rem;
}

.summary-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 1800px;
  flex-wrap: nowrap; /* ensure all 3 stay in one row */
}

/* Shared photo container sizing */
.photo-triangle,
.photo-square {
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  position: relative;
}

/* Shared photo styles */
.photo-triangle .photo,
.photo-square img {
  position: absolute;
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0.98;
}

/* Positioning for photo-triangle */
.photo-triangle .top-left {
  top: 0;
  left: 0;
}

.photo-triangle .top-right {
  top: 0;
  left: 210px;
}

.photo-triangle .bottom-left {
  top: 210px;
  left: 0;
}

.photo-triangle .bottom-right {
  top: 210px;
  left: 210px;
}

/* Positioning for photo-square */
.photo-square .example-left {
  top: 0;
  left: 0;
}

.photo-square .example-right {
  top: 0;
  left: 220px;
}

.photo-square .example-left-bottom {
  top: 220px;
  left: 0;
}

.photo-square .example-right-bottom {
  top: 220px;
  left: 220px;
}

/* Wider horizontal summary box */
.summary-box {
  flex: 1;
  max-width: 800px;
  background-color: #f0f0f0;
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 500px;
  align-self: center;
}
