:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #2d2416;
  --muted: #78725f;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-light: #fdba74;
  --secondary: #f59e0b;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #fff9f0, #faf9f7);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding-bottom: 0.5rem;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
}

header {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.contact {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact a:hover {
  color: var(--accent-dark);
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 1.5rem 4rem;
}

.icon_picture {
  display: block;
  font-size: 2.25rem;
  width: auto;
  height: auto;
  margin: 0.5rem auto 0.75rem;
  line-height: 1;
  text-align: center; 
}

/* avatar image styling */
.avatar,
.icon_picture img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0.25rem auto 0.75rem;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

@media (max-width: 600px) {
  .avatar,
  .icon_picture img { width: 96px; height: 96px; }
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
  padding-left: 0;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.card span {
  color: var(--muted);
  font-size: 0.85rem;
}

ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

ul li {
  margin-bottom: 0.5rem;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.skill {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
  transition: all 0.3s ease;
}

.skill:hover {
  background: rgba(253, 186, 116, 0.15);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.12);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
}

.project-card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

/* Intro Section */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.intro-content {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.1);
  transition: all 0.3s ease;
}

.intro-content:hover {
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

.intro-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.intro-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

/* Slideshow Wrapper */
.slideshow-wrapper {
  position: static;
  margin: 3rem auto;
  max-width: 400px;
  z-index: 100;
}

.slideshow {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.12);
}

.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  animation: fade 0.5s;
}

.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 10px 14px;
  color: white;
  background-color: rgba(249, 115, 22, 0.7);
  font-weight: bold;
  font-size: 16px;
  border-radius: 0.5rem;
  user-select: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.next {
  right: 8px;
}

.prev {
  left: 8px;
}

.prev:hover, .next:hover {
  background-color: var(--accent-dark);
}

.dots {
  text-align: center;
  padding: 10px 0;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: rgba(120, 114, 95, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent);
  transform: scale(1.3);
}

.dot:hover {
  background-color: var(--accent);
}

/* Audio Section */
.audio-section {
  background: transparent;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.audio-section h2 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

audio {
  width: 100%;
  max-width: 400px;
  height: 32px;
  filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.1));
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) {
  .intro-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .slideshow-wrapper {
    position: static;
    margin: 2rem auto;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .slideshow-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .intro-content {
    padding: 1.5rem;
  }
}
