:root {
  /* Light Theme Variables */
  --bg-color: #f8fafc;
  --bg-color-alt: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --signature-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme Variables */
    --bg-color: #0f172a;
    --bg-color-alt: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.1);
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --signature-filter: invert(1) brightness(0.9);
  }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.3;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  gap: 60px;
  position: relative;
}

/* Sidebar Section */
.sidebar {
  flex: 0 0 320px;
}

.sidebar-sticky {
  position: sticky;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-card {
  text-align: left;
}

.profile-photo-wrapper {
  margin-bottom: 24px;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: block;
}

.name-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.signature-img {
  max-width: 160px;
  height: auto;
  margin-bottom: 16px;
  display: block;
  opacity: 0.8;
  filter: var(--signature-filter);
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.contact-section h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.contact-msg {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.contact-msg.hidden {
  display: none;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.contact-btn:hover {
  text-decoration: none;
  border-color: var(--accent-color);
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.lang-controls {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.lang-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Main Content Section */
.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-bottom: 40px;
}

.section {
  position: relative;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: inline-block;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* Lists */
.styled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.styled-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.styled-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.highlight-list li {
  padding-left: 0;
}

.highlight-list li::before {
  display: none;
}

.boxed-list li {
  padding: 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boxed-list li::before {
  display: none;
}

.boxed-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent-light);
}

.footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Animations Scroll Reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .page-container {
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
  }
  
  .sidebar {
    flex: none;
    width: 100%;
  }
  
  .sidebar-sticky {
    position: relative;
    top: 0;
  }
  
  .profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .signature-img {
    margin: 10px auto 16px;
  }

  .contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lang-controls {
    justify-content: center;
  }

  .section-title {
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
}
