/* --- COMPACT, RESPONSIVE, CONSISTENT UI REFACTOR --- */
:root {
  --primary: #007BFF;
  --secondary: #28a745;
  --bg: #f8f9fa;
  --card-bg: #fff;
  --text: #222;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,0.07);
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
.container {
  max-width: 1100px;
  margin: 4.5rem auto 0 auto;
  padding: 0 1rem;
}
.section {
  margin-bottom: 1.2rem;
  padding: 0.7rem 0;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.7rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
  justify-content: flex-start;
  gap: 0.3rem;
}
.card img {
  width: 36px;
  height: 36px;
  margin-bottom: 0.2rem;
}
.card h3 {
  margin: 0.1rem 0 0.2rem 0;
  font-size: 1rem;
  color: var(--primary);
}
.card p {
  margin: 0;
  font-size: 0.93rem;
  text-align: center;
}
.btn {
  background: var(--primary);
  color: #fff;
  padding: 0.3em 1em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.3em;
  font-size: 0.97em;
}
.socials {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.7rem 0;
}
footer.section {
  background: #f7f7f7;
  border-top: 1px solid #eee;
  text-align: center;
  padding-bottom: 1.2rem;
}
.copyright {
  font-size: 0.93em;
  color: #888;
  margin-top: 0.7rem;
}
.navbar {
  background: linear-gradient(90deg, #007BFF 60%, #28a745 100%);
  border-bottom: 3px solid #f7b828;
  position: fixed;
  width: 100%;
  z-index: 100;
  top: 0;
  left: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.3rem 1rem;
}
.navbar .logo {
  font-weight: 900;
  color: #fff;
  font-size: 1.1rem;
  margin: 1.3vw ;
  letter-spacing: 1px;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
}
.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.navbar a:hover {
  color: #f7b828;
  border-bottom: 2px solid #f7b828;
}
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .navbar { display: flex !important; flex-direction: row; align-items: center; justify-content: center; width: 100vw; }
  .navbar ul { display: none !important; }
  .navbar .logo { font-size: 1.2rem; padding: 0.7rem 0; color: #fff; }
  .footer, footer.section {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    overflow-x: hidden !important;
  }
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100vw;
    min-height: 100vh;
  }
  .container {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100vw;
    padding: 0 0.5rem;
  }
}
.footer, footer.section {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}
body, .container, .section, .section-header, .card-grid, .card, .footer, .copyright {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}
.section-header {
  flex-direction: column !important;
  gap: 0.5rem !important;
}
.card-grid {
  margin: 0 auto !important;
}
.card {
  margin: 0 auto !important;
}
/* --- END REFACTOR --- */
/* --- IMAGE/CONTENT SIDE-BY-SIDE LAYOUT --- */
.section-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 80vw;
  max-width: 1100px;
  margin: 0 auto 1.5rem auto;
  gap: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 1.2rem 1.5rem;
}
.section-flex .section-img-large {
  width: 320px;
  max-width: 40vw;
  border-radius: 10px;
  object-fit: cover;
}
.section-flex .section-content {
  flex: 1;
  text-align: left;
}
@media (max-width: 900px) {
  .section-flex {
    width: 90vw;
    flex-direction: column-reverse;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .section-flex .section-img-large {
    width: 100%;
    max-width: 90vw;
    margin-bottom: 0.5rem;
  }
  .section-flex .section-content {
    text-align: center;
  }
}
/* --- END IMAGE/CONTENT SIDE-BY-SIDE LAYOUT --- */
/* --- CARD HIGHLIGHT STYLE --- */
.card-highlight {
  border-bottom: 4px solid #f7b828;
  box-shadow: 0 2px 8px rgba(247,184,40,0.08);
}
/* --- END CARD HIGHLIGHT STYLE --- */
/* --- SECTION FLEX BORDER BOTTOM --- */
.section-flex {
  border-bottom: 4px solid #007BFF;
}
.section-flex.vision {
  border-bottom: 4px solid #28a745;
}
@media (max-width: 900px) {
  .section-flex, .section-flex.vision {
    border-bottom-width: 3px;
  }
}
/* --- END SECTION FLEX BORDER BOTTOM --- */
/* --- REVEAL ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal-visible {
  opacity: 1 !important;
  transform: none !important;
}
/* --- END REVEAL ON SCROLL ANIMATION --- */
/* --- CONTACT SECTION CARD GRID ADJUSTMENTS --- */
#contact .card-grid {
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
#contact .card {
  padding: 0.5rem 0.3rem;
  min-height: 80px;
}
@media (max-width: 600px) {
  #contact .card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  #contact .card {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
}
/* --- END CONTACT SECTION CARD GRID ADJUSTMENTS --- */
/* --- HOBBIES SECTION CARD GRID ADJUSTMENTS --- */
#hobbies .card-grid {
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}
#hobbies .card {
  padding: 0.5rem 0.3rem;
  min-height: 80px;
}
@media (max-width: 600px) {
  #hobbies .card-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  #hobbies .card {
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
}
/* --- END HOBBIES SECTION CARD GRID ADJUSTMENTS --- */