:root {
  --background-body: #f5f5f5; 
  --text-main: #252121; 
  --text-light: #747f80;
  --brand-orange: #f26822; 
  --white: #ffffff; 
  --menu-sand: #eaddd7;
  --font-family: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body { 
  background-color: var(--background-body); 
  color: var(--text-main); 
  font-family: var(--font-family); 
  font-size: 1.125rem; 
  line-height: 1.6; 
  margin: 0; 
  padding-top: 60px; 
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* Header & Nav */
header { background-color: var(--menu-sand); border-bottom: 1px solid var(--text-main); padding: 0; position: fixed; top: 0; width: 100%; z-index: 1000; height: 60px; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.header-left-group { display: flex; align-items: center; gap: 20px; }
.logo { font-family: var(--font-family); font-weight: 800; text-transform: uppercase; }
.logo img { height: 40px; width: auto; display: block; }
.social-icons { display: flex; gap: 15px; align-items: center; margin-left: 15px; position: relative; z-index: 1005; }
.social-icons a { text-decoration: none !important; color: var(--text-main); font-size: 1.2rem; transition: color 0.15s; display: flex; align-items: center; }
.social-icons a:hover { color: var(--brand-orange) !important; text-decoration: none !important; }
.nav-links { display: flex; gap: 20px; z-index: 999; }
.nav-links a { font-family: var(--font-family); color: var(--text-main); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; margin-left: 1.75rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--brand-orange); }
.burger-menu { display: none; }
#menu-icon { width: 30px; text-align: center; font-size: 24px; z-index: 1001; position: relative; }

/* Hero Section */
.hero-container { display: flex; flex-direction: column; align-items: center; padding: 6rem 0; }
.hero-wrapper { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 4rem; width: 100%; }
.hero-text { flex: 1; text-align: left; }
.hero-text p { font-size: 1.25rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-main); }
.hero-title { font-family: var(--font-family); font-weight: 800; font-size: 3.75rem; text-align: center; margin: 0 auto 2rem auto; display: block; width: 100%; }
.hero-buttons { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 1rem; margin-top: 2rem; justify-content: center; width: 100% }
.hero-profile img { width: 320px !important; height: 320px !important; border: 4px solid var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.btn-dark { display: inline-flex; justify-content: center; align-items: center; font-family: var(--font-family); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: var(--white); background-color: var(--text-main); text-decoration: none; padding: 0.95rem 1.2rem; border-radius: 30px; transition: all 0.2s ease; }
.btn-dark:hover { background-color: var(--brand-orange); }

/* Sections & Typography */
section { padding-top: 3rem; padding-bottom: 3rem; }
h2, h3, h4 { font-family: var(--font-family); font-weight: 800; text-transform: uppercase; }
h2 { font-size: 2.25rem; margin: 0 0 0.25rem 0; }
h3 { font-size: 1.4rem; margin: 0.5rem 0; }
.chapter-subtitle { font-style: italic; color: var(--text-light); margin: 0 0 2.5rem 0; font-size: 1.25rem; font-family: var(--font-family); }

hr { border: none; border-top: 1px solid var(--text-main); margin: 0; padding: 0; }

/* About Page Specific Image */
.about-header { text-align: center; margin-top: 3rem; margin-bottom: 3rem; }
.about-img-rect { width: 100%; max-width: 960px; height: auto; border-radius: 12px; display: block; margin: 2rem auto; }

/* Toolshed / Project Cards */
.project-link { text-decoration: none; color: inherit; display: block; margin-bottom: 1rem; }
.card-box { background-color: #f3f2ef; padding: 1.5rem; border-radius: 8px; width: 100%; border: 1px solid #e0e0e0; transition: all 0.2s ease; }
.project-card { display: flex; margin-bottom: 2rem; transition: all 0.2s ease; }
.project-card:hover .card-box { background-color: #edece9; border-color: #d1d0ce; }
.project-card:hover h3 { color: var(--brand-orange); }
.project-card:hover .skill-tag { background: var(--brand-orange); border-color: var(--brand-orange); color: var(--white); }
.project-card h3 { color: var(--text-main); }
.project-meta { color: var(--brand-orange); font-weight: 700; font-size: 0.85rem; }
.impact { display: block; margin-top: 0.8rem; font-weight: 600; }
.project-date { font-family: var(--font-family); font-size: 0.8rem; color: var(--text-light); font-weight: 700; }

.archive-link, .back-home { display: inline-flex; align-items: center; font-family: var(--font-family); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; color: var(--text-main); text-decoration: none; margin-left: 0.5rem; margin-top: 1rem; transition: all 0.2s ease }
.archive-link:hover, .back-home:hover { color: var(--brand-orange); }
.archive-link .arrow { margin-left: 0.5rem; transition: transform 0.2s ease; display: inline-block; }
.archive-link:hover .arrow { transform: translateX(5px); }
.back-home .arrow-left { margin-right: 0.8rem; transition: transform 0.2s ease; display: inline-block; }
.back-home:hover .arrow-left { transform: translateX(-5px); }

.skill-tag { display: inline-block; white-space: nowrap; border: 1px solid var(--text-main); font-family: var(--font-family); font-weight: 700; padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.75rem; }

/* Archive All Projects Page */
.archive-page-container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.archive-project-card { background-color: #f3f2ef; padding: 1.5rem; border-radius: 8px; border: 1px solid #e0e0e0; margin-top: 0; margin-bottom: 0; display: block; }
.project-content h3 { color: var(--brand-orange); }
.company-link { display: inline-flex; align-items: center; text-decoration: none; color: var(--text-light); font-family: var(--font-family); font-size: 0.8rem; font-weight: 700; transition: color 0.2s ease; margin-bottom: 0.5rem; }
.company-link:hover { color: var(--brand-orange); }
.company-link .arrow { margin-left: 0.5rem; margin-top: -4px; transition: transform 0.2s ease; display: inline-block; }
.company-link:hover .arrow { transform: translateX(5px); }
.atingi-link { color: inherit; font-weight: bold; text-decoration: none; transition: color 0.2s ease; }
.atingi-link:hover { color: var(--brand-orange); }
.tag-container { margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0; }
.static-tag { display: inline-block; white-space: nowrap; background: var(--brand-orange); color: var(--white); padding: 0.3rem 1rem; border-radius: 20px; font-size: 0.75rem; font-family: var(--font-family); font-weight: 700; margin-top: 0.8rem; }

/* Container for the side-by-side layout */
.projects-tabs { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; margin-top: 2rem; align-items: start; }

/* Sidebar navigation */
.tab-list { list-style: none; padding: 0; border-left: 2px solid #e0e0e0; }
.tab-button { padding: 1rem; cursor: pointer; transition: all 0.2s ease; color: #666; font-weight: 500; }
.tab-button.active { border-left: 2px solid var(--brand-orange, #f37021); color: var(--brand-orange, #f37021); background-color: #f9f9f9; }

/* Content area */
.tab-content { display: none; flex-direction: column; gap: 2rem; }
.tab-content.active { display: flex; }

/* Research page */
.research-list { display: flex; flex-direction: column; gap: 20px; max-width: 960px; margin: 3rem auto; }
.research-card { display: flex; align-items: center; gap: 20px; padding: 1.5rem; background: #f3f2ef; border-radius: 8px; border: 1px solid #e0e0e0; transition: all 0.2s ease; text-decoration: none; }
.research-card:hover { background: #edece9; border-color: #d1d0ce; }
.research-card:hover h3 { color: var(--brand-orange); }
.card-image { flex: 0 0 250px; }
.card-image img { width: 100%; height: auto; border-radius: 4px; display: block; }
.card-content { flex: 1; }
.card-content h3 { margin: 0 0 0.5rem 0; color: var(--text-main); font-family: var(--font-family); font-weight: 800; text-transform: uppercase; transition: color 0.2s ease; }
.card-content p { margin: 0; color: var(--text-main); font-size: 1rem; }
.card-image { flex: 0 0 250px; }
.card-image img { width: 100%; height: auto; border-radius: 4px; display: block; }
.article-meta { margin-top: 1rem; color: var(--text-light); font-size: 0.95rem; font-family: var(--font-family); font-weight: 500; }
.article-meta span { display: inline-block; }

/* Footer */
footer { background-color: var(--text-main); color: var(--white); padding: 0; margin-top: 3rem; height: 60px; }
.footer-wrapper { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.copyright { font-size: 0.8rem; color: var(--text-light); }
.legal-nav a { color: var(--white); text-decoration: none; font-family: var(--font-family); font-size: 0.8rem; text-transform: uppercase; margin-left: 1.5rem; }
.legal-nav a:hover { color: var(--brand-orange); }
.footer-navigation { margin: 2rem 0; }


/* Responsive Adjustments */
@media (max-width: 768px) {
  /* Hide the desktop nav links */
  .nav-wrapper { flex-direction: row !important; gap: 0 !important; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; right: 20px; width: auto; background: var(--menu-sand); padding: 20px; text-align: right; align-items: flex-end; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
  .nav-links.active { display: flex; }
  .nav-links a { margin-left: 0 !important; padding: 10px 0; display: block; }
  .burger-menu { display: block; font-size: 30px; cursor: pointer; }

  section { padding: 1.5rem 0; }
  h2 { font-size: 1.75rem; margin: 0 0 0.5rem 0; }
  .chapter-subtitle { margin-bottom: 1rem !important; font-size: 1.1rem; }
  section p { margin-bottom: 0.5rem !important; }
  .hero-container { padding: 2rem 0; }
  .hero-title { font-size: 2rem !important; margin-bottom: 1rem !important; }
  .hero-wrapper { flex-direction: column; text-align: center; gap: 1.5rem !important; margin-bottom: 1.5rem !important;}
  .hero-text { text-align: center; }
  .hero-text p { margin-bottom: 1rem !important; }
  .hero-buttons { flex-direction: column; align-items: center; margin-top: 1rem !important; margin-bottom: 0; gap: 0.5rem !important; }
  .hero-profile { order: -1 !important; }
  .btn-dark { width: 100%; margin: 0.5rem 0 !important; }
  hr { margin: 1.5rem 0; }
  .nav-wrapper { flex-direction: column; gap: 1rem; }

  footer { height: auto; padding: 1rem 0; }
  .footer-wrapper { flex-direction: row; justify-content: center; gap: 10px; font-size: 0.75rem; }
  .legal-nav { display: flex; gap: 10px; }
  
  .project-card { flex-direction: column; gap: 0.5rem !important; padding: 0.5rem !important; }
  .project-date { min-width: 100%; }
  .archive-link { justify-content: center; margin-left: 0; padding: 1rem; }
  .archive-project-card { grid-template-columns: 1fr; gap: 0.5rem; padding: 1rem; }
  .archive-project-card .project-date { margin-bottom: 0.5rem; }
  .archive-project-card h3 { margin: 0.25rem 0; }
  
  .projects-tabs { grid-template-columns: 1fr; gap: 1rem; }
  .tab-list { display: flex; overflow-x: auto; border-left: none; border-bottom: 2px solid #e0e0e0; margin-bottom: 1rem; }
  .tab-button { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .tab-button.active { border-left: none; border-bottom: 2px solid var(--brand-orange, #f37021); }

  .research-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem; }
  .card-image { flex: 0 0 100%; width: 100%; }
  .card-content h3 { font-size: 1.2rem; }
  .card-content p, .tab-content p { font-size: 0.95rem; line-height: 1.5; }
}
