html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { height: 100%; margin: 0; }
body {
  overflow-x: hidden;                 
  background-color: #FBE9D0;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 200;
}

.page-container { 
  display: flex; flex-direction: column; min-height: 100vh;
}
main { 
  flex: 1;
  width: min(2500px, 92%);          
  margin-inline: auto;
  padding-block: clamp(1rem, 3vw, 2rem);
  text-align: center;
}

/* NAVBAR  */
.navbar {
  background-color: #244855;
  padding: 0.6rem clamp(0.75rem, 3vw, 1.25rem);
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2.5vw, 2rem);    
  margin: 0; padding: 0;
}
.navbar li { margin: 0; }
.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem); 
  line-height: 1;                            
  padding: 0.25rem 0.1rem;                  
}
.navbar a:hover { text-decoration: underline; }

/* HERO */
.hero-image {
  background-image: url("../imgs/backdrop.jpeg");
  background-size: cover;
  background-position: center;
  height: 25vh;
  width: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-text {                            
  position: absolute;
  text-align: center;
  color: #fff;
  background-color: rgba(0,0,0,0.5);
  padding: 1rem 2rem;
  border-radius: 8px;
}

/* ABOUT */
.about-section {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap; gap: 3%;
  padding: clamp(1rem, 5vw, 3rem);
}
.about-text { flex: 1; min-width: 40%; }
.about-text h2 { color: #244855; margin-bottom: 1rem; }
.about-text p { font-size: 1rem; line-height: 1.6; color: #333; }

.about-image { flex: 1; min-width: 280px; text-align: center; }
.about-image img {
  width: 100%;                
  max-width: 500px;    
  max-height: 500px;        
  height: auto;               
  display: block;        
  object-fit: cover;       
  border-radius: 20%;     
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);      
}

/* FOOTER */
.footer {
  background-color: #244855;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: clamp(0.85rem, 1.1vw, 1rem);  
}
.footer a { color: #FBE9D0; text-decoration: none; margin: 0 0.5rem; }
.footer a:hover { text-decoration: underline; }

/* CONTACT PAGE */
.contact-page h1 { color: #244855; margin-bottom: 0.5rem; }
.contact-page p { font-size: 1.1rem; color: #333; margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;   
}

.section-title {
  margin: 0 0 1rem 0;
  color: #244855;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;   
  align-items: center;
  gap: 0.5rem;
  text-align: center;        
}

.section-title i { font-size: 1.2rem; color: #244855; }

.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}
.contact-details i { color: #244855; font-size: 1.2rem; min-width: 1.2rem; }
.contact-details a { color: #244855; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* CV PAGE */
.cv-page { width: min(1100px, 92%); margin-inline: auto; text-align: left; }

.cv-card {
  background: #fff;
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.cv-header-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}
.cv-name {
  margin: 0;
  color: #244855;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}
.cv-subtitle { margin: .5rem 0 0 0; color: #333; font-weight: 500; }

.cv-contact { list-style: none; padding: 0; margin: 0; }
.cv-contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.cv-contact i { color: #244855; min-width: 1.1rem; }

.cv-h2 {
  margin: 0 0 .9rem 0;
  color: #244855;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  display: flex; align-items: center; gap: .6rem;
}
.cv-h2 i { font-size: 1.05em; }

.cv-tags {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.cv-tags li {
  background: #244855;
  color: #FBE9D0;
  padding: .4rem .65rem;
  border-radius: 999px;
  font-size: .95rem; line-height: 1;
  white-space: nowrap;
}

.cv-item + .cv-item { margin-top: 1rem; }
.cv-item-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.cv-item h3 { margin: 0; color: #244855; font-size: 1.05rem; }
.cv-meta { color: #555; font-size: .95rem; white-space: nowrap; }
.cv-bullets { margin: .5rem 0 0 1.1rem; }
.cv-bullets li { margin: .25rem 0; }

@media (max-width: 900px) {
  .cv-header-row { grid-template-columns: 1fr; }
}
