/* ==========================================
   Global Reset & Theme Foundations
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Georgia', serif;
  text-align: center;
  line-height: 1.6;
  background-color: #040907;
  color: #ffe5ab;
}

/* ==========================================
   Main Container Layout
   ========================================== */
.main {
  display: flex;
  flex-direction: column;    
  justify-content: center;  
  align-items: center;
  width: 95%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 30px 20px;
  background: rgba(18, 26, 22, 0.95);
  border: 1px solid #733c20;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 15px rgba(232, 184, 95, 0.15);
}

/* ==========================================
   Headers
   ========================================== */
.header, .header2, .header3 {
  background-color: #0d1117;   
  border: 2px solid #f4c07b;   
  border-radius: 8px;
  padding: 20px 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 12px rgba(232, 184, 95, 0.2); 
  display: flex;
  flex-direction: row;            
  justify-content: space-between; 
  align-items: center;            
  width: 100%;
}

.header {
  background-image: url("https://i.postimg.cc/5tmy1TjX/profile-header.jpg");
  background-size: cover;
  background-position: center;
}

.header2 {
  background-image: url("https://i.postimg.cc/c4C7rMNp/projects-header3.jpg");
  background-size: cover; 
  background-repeat: no-repeat; 
  background-position: center; 
  padding: 30px;
  border: 2px solid #f4c07b;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header3 {
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
}

.header3 .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.title-badge {
  background: rgba(4, 9, 7, 0.75);
  backdrop-filter: blur(6px);
  padding: 10px 30px;
  border-radius: 8px;
  border: 1px solid rgba(244, 192, 123, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.title-badge h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffe5ab;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  margin: 0;
  letter-spacing: 2px;
}

.header h1 {             
  font-family: 'Georgia', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 3px;
  margin: 0;
  color: #fff4c4;
  text-shadow: 0 0 10px rgba(255, 233, 158, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* ==========================================
   Contact Links
   ========================================== */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
}

.contact-item {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #ffe5ab;             
  background: #19241d;        
  border: 1px solid #f4c07b;  
  padding: 8px 16px;
  border-radius: 20px;        
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

a.contact-item:hover {
  color: #040907;             
  background: #ffe28a;
  border-color: #ffe28a;      
  box-shadow: 0 0 14px rgba(255, 226, 138, 0.6);
}

/* ==========================================
   Bio Grid Layout
   ========================================== */
.bio-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr minmax(240px, 320px);
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
}

.img1, .img2 {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border-radius: 8px;
  border: 1px solid #733c20;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.portfolio-bio {
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  margin: 0 auto;
  color: #e0e5df;
  text-align: left;
}

.portfolio-bio p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

blockquote {
  border-left: 4px solid #f4c07b; 
  padding-left: 20px;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #ffe5ab;
  background: rgba(255, 255, 255, 0.03);
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ==========================================
   Sections & Skills
   ========================================== */
.section {
  margin: 30px 0;
  width: 100%;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem; 
  margin-bottom: 15px;
  background: linear-gradient(180deg, #ffe99e 0%, #d8a468 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid #733c20;
  padding-bottom: 8px;
}

.item1, .item2, .proj1, .proj2, .proj3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #d1dcd4;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(115, 60, 32, 0.4);
}

.skills ul {
  list-style: none;
  padding: 0;
}

.skills ul li {
  display: inline-block;
  color: #ffe5ab;
  background: rgba(115, 60, 32, 0.3); 
  border: 1px solid #733c20;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 6px;
  font-size: 14px;
}

.closing {
  font-weight: bold;
  border-top: 1px solid #733c20;
  padding-top: 1rem;
  margin-top: 2rem;
  color: #ffe99e;
}

/* Dynamic GitHub Projects */
#projects-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  padding: 0 15px;
}

.project-card {
  background: rgba(18, 26, 22, 0.85);
  border: 1px solid #733c20;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  border-color: #f4c07b;
  transform: translateY(-2px);
}

.project-card h3 {
  font-family: 'Comic Sans MS', 'Comic Sans', 'Georgia', serif;
  font-size: 1.6rem;
  color: #ffe5ab;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 229, 117, 0.3);
}

.project-card .repo-link {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.85rem;
  color: #f4c07b;
  text-decoration: none;
  margin-bottom: 12px;
  border-bottom: 1px dashed #f4c07b;
  transition: color 0.2s ease;
}

.project-card .repo-link:hover {
  color: #ffe28a;
  border-bottom-style: solid;
}

.project-card .repo-desc {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  color: #d1dcd4;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .bio-layout {
    grid-template-columns: 1fr;
  }
  .img1 { order: 1; min-height: 280px; }
  .portfolio-bio { order: 2; }
  .img2 { order: 3; min-height: 280px; }
  .header, .header2 {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .main { padding: 15px 10px; }
  .header h1 { font-size: 1.6rem; text-align: center; }
  .section h2 { font-size: 1.5rem; }
  .contact-item { font-size: 11px; padding: 6px 10px; }
}
@media (max-width: 768px) {
  .header3 {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .header3 h1 {
    text-align: center;
  }

  .header3 .nav-links {
    width: 100%;
    justify-content: center;
  }

  .header3 .contact {
    justify-content: center;
  }
}