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

body{
  font-family: Arial, sans-serif;
  background-color: #fef9f6;
  color: #111;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

.fade-in{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible{
  opacity: 1;
  transform: translateY(0);
}

.top-bar{
  width: 100%;
  padding: 15px 30px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.top-bar nav{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}
.top-bar nav a{
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  background: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  color: #111;
  transition: background 0.3s ease;
}
.top-bar nav a:hover{
  background: #d4ebff;
}

.main-content{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;

  flex: 1 0 auto;
  min-height: 0;
}

.intro-left{
  flex: 1 1 300px;
  max-width: 400px;
}
.intro-left h3{
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.intro-left p{
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.download-cv{
  margin-bottom: 20px;
}
.download-cv a{
  text-decoration: none;
  color: #0078d4;
  font-weight: bold;
}
.download-cv a:hover{
  text-decoration: underline;
}

.social-icons{
  display: flex;
  gap: 10px;
}
.social-icons a{
  display: inline-block;
  width: 24px;
  height: 24px;
}
.social-icons img{
  width: 100%;
  height: auto;
}

.intro-right{
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 300px;
  max-width: 400px;
}

.photo-wrapper{
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 20px;
}
.shadow-shape{
  background-color: #000;
  width: 180px;
  height: 240px;
  border-radius: 50%;
  position: absolute;
  left: 22%;
  top: 22%;
  z-index: 1;
  opacity: 0.8;
}
.profile-photo{
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  z-index: 2;
  left: 0;
  top: 0;
}

.name-text{
  text-align: center;
}
.name-text h1{
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.subtext{
  font-size: 1rem;
  color: #666;
}

.site-footer{
  text-align: center;
  width: 100%;
  padding: 15px 0;
  background-color: #fff;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);

  flex-shrink: 0;
}
.site-footer p{
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 900px){
  .main-content{
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intro-left,
  .intro-right{
    max-width: 100%;
  }

  .photo-wrapper{
    margin: 0 0 20px 0;
  }

  .name-text{
    text-align: center;
  }
}

@media (max-width: 600px){
  .photo-wrapper{
    width: 220px;
    height: 220px;
  }
  .shadow-shape{
    width: 130px;
    height: 170px;
    left: 22%;
    top: 22%;
  }
  .profile-photo{
    width: 220px;
    height: 220px;
  }

  .name-text h1{
    font-size: 2rem;
  }

  .intro-left,
  .intro-right{
    padding: 0 10px;
  }

  .top-bar nav{
    flex-wrap: wrap;
    margin-top: 10px;
  }
}

/* =====================
   Enhancements & Unification
   ===================== */
:root{
  --bg: #fef9f6;
  --text: #111;
  --muted: #666;
  --card: #ffffff;
  --border: #e5e7eb;
  --primary: #0078d4;
  --primary-600: #0056b3;
  --hover: #d4ebff;
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
}

body{
  background-color: var(--bg);
  color: var(--text);
}

/* Sticky translucent header with nicer hover */
.top-bar{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  z-index: 100;
}
body.scrolled .top-bar{
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.top-bar nav{ gap: 12px; }
.top-bar nav a{
  color: var(--text);
  padding: 8px 2px;
  position: relative;
  transition: color 0.3s ease;
}
.top-bar nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 2px;
}
.top-bar nav a:hover{ color: var(--primary-600); }
.top-bar nav a:hover::after, .top-bar nav a.active::after{ transform: scaleX(1); }

/* Hero visual polish */
.shadow-shape{
  background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,0.15), rgba(0,0,0,0.5));
  opacity: 0.75;
  animation: float 10s ease-in-out infinite;
}
@keyframes float{
  0% { transform: translateY(0) rotate(0deg); filter: blur(0.2px); }
  50% { transform: translateY(-6px) rotate(2deg); filter: blur(0.6px); }
  100% { transform: translateY(0) rotate(0deg); filter: blur(0.2px); }
}
@media (prefers-reduced-motion: reduce){ .shadow-shape{ animation: none; } }
.profile-photo{ box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

.subtext{ color: var(--muted); }
.site-footer{ background-color: var(--card); box-shadow: 0 -2px 5px rgba(0,0,0,0.08); }
.site-footer p{ color: var(--muted); }

/* Shared interactive polish */
.photo img{ transition: transform 0.25s ease, box-shadow 0.25s ease; }
.photo img:hover{ transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); }
.shirt-section{ transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; border-color: rgba(0,0,0,0.08); }
.shirt-section:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Filter bar (migrated from style2.css to unify) */
.filter-bar{
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;
  border: 1px solid var(--border); background: #fafafa; padding: 14px; border-radius: 8px; margin: 14px 0 6px;
}
.filter-group label{ display:block; font-weight:600; font-size:0.95rem; color:#222; margin-bottom:6px; }
.filter-group select{
  width:180px; padding:8px 10px; border:1px solid #cfd8e3; border-radius:6px; background:#fff; font-size:0.95rem;
}
/* Focus styling for nicer UX */
.filter-group select:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,120,212,0.15);
}
@media (max-width:600px){ .filter-group select{ width:100%; } }
.filter-actions{ margin-left:auto; }
.filter-actions button{
  padding: 8px 12px; border:1px solid #cfd8e3; border-radius:6px; background:#fff; cursor:pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.filter-actions button:hover{ background: var(--hover); }
.filter-actions button:active{ transform: translateY(1px); }

/* Reveal effect kept only for explicit .fade-in blocks */
