
@import url('https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --font-heading: 'Agdasima', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --max-width: 760px; /* narrow content container */
  --nav-height: 56px;
  --color-accent: #9179fa; /* muted violet / lavender */
  --color-bg-dark: #09090b; /* near-black / charcoal */
  --color-bg-white: #121214; /* slightly lighter for cards/sections */
  --color-text: #e0e0e0; /* soft light gray */
  --color-text-light: #9ca3af;
  --color-border: #27272a; /* thin subtle gray lines */
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.02em;
}

.top-bar {
  background: #000;
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.top-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.top-bar__links {
  display: flex;
  gap: 16px;
}

.top-bar__links a {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-bar__links a:hover {
  color: #fff;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  gap: 16px;
}

.nav-item > a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-text-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.05em;
}

.nav-item > a:hover,
.nav-item > a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-knowledge-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-profile-btn img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  filter: grayscale(100%);
  transition: filter 0.2s, border-color 0.2s;
}

.nav-profile-btn:hover img {
  filter: grayscale(0%);
  border-color: var(--color-accent);
}

.nav-toggle { display: none; }

main {
  min-height: calc(100vh - 36px - var(--nav-height));
  padding-bottom: 60px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
  border-bottom: 1px solid var(--color-border);
}

.container:last-child {
  border-bottom: none;
}

.section-header {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-accent {
  width: 2px;
  height: 16px;
  background: var(--color-accent);
}

.section-header h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  font-weight: 400;
}

.profile-header {
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.profile-cover {
  width: 100%;
  height: 180px;
  background-color: var(--color-bg-white);
  overflow: hidden;
}

.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: grayscale(30%);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 40px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid var(--color-bg-dark);
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.profile-avatar:hover {
  filter: grayscale(0%);
}

.profile-name {
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-weight: 400;
}

.profile-tagline {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.profile-stats {
  display: flex;
  gap: 16px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.simple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .simple-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.simple-card {
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  padding: 24px;
  border-radius: 4px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.simple-card.has-image {
  padding: 0;
}

.simple-card.has-image .card-image {
  width: 100%;
  height: 180px;
  background: var(--color-bg-dark);
}

.simple-card.has-image .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.3s;
}

.simple-card:hover .card-image img {
  filter: grayscale(0%);
}

.simple-card.has-image .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-box {
  display: inline-block;
  background-color: transparent;
  border: 1px solid var(--color-border);
  padding: 4px 8px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-radius: 2px;
  user-select: all;
  -webkit-user-select: all;
  cursor: pointer;
}


.simple-card:hover {
  border-color: var(--color-accent);
}

.simple-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 400;
}

.simple-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  font-family: monospace;
  font-size: 0.7rem;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-light);
  background: var(--color-bg-dark);
}

.card-links {
  display: flex;
  gap: 12px;
}

.card-links a {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-links a:hover {
  text-decoration: underline;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.simple-table th, .simple-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.simple-table th {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-bg-white);
  width: 30%;
  letter-spacing: 0.05em;
}

.simple-table td {
  color: var(--color-text-light);
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-item {
  border-left: 2px solid var(--color-border);
  padding-left: 16px;
}

.exp-item h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.exp-meta {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.exp-item ul {
  list-style: square;
  padding-left: 16px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.exp-item ul li {
  margin-bottom: 6px;
}

.text-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.text-content p:last-child {
  margin-bottom: 0;
}

.fav-divider {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 24px 0 12px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 600px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-item {
  aspect-ratio: 16/9;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.media-item:hover img {
  opacity: 1;
}

.media-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.8);
  padding: 8px;
  font-size: 0.75rem;
  font-family: monospace;
  color: #fff;
}

.media-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
}

.media-tabs a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.media-tabs a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.media-tab {
  display: none;
}

.media-tab.active {
  display: block;
}

.site-footer {
  background: #000;
  border-top: 1px solid var(--color-border);
  padding: 40px 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.social-icon {
  color: var(--color-text-light);
  transition: color 0.2s;
}

.social-icon:hover {
  color: var(--color-accent);
}

.footer-copyright {
  font-family: monospace;
  font-size: 0.75rem;
  color: #666;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  will-change: opacity, transform;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

.page-load-animation {
  animation: page-fade 0.5s ease-out forwards;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets & Mobile Devices (e.g. 16:9 vertical, 4:3) */
@media (max-width: 820px) {
  /* Top Bar */
  .top-bar__inner {
    padding: 0 16px;
  }
  
  /* Main Nav */
  .nav-inner {
    padding: 0 16px;
    justify-content: space-between;
  }
  
  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
  
  .nav-menu.open {
    max-height: 350px;
  }

  .nav-item > a {
    height: 52px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
  }

  .nav-item > a:hover,
  .nav-item > a.active {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.03);
  }
  
  /* Nav Toggle Hamburger */
  .nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    align-items: center;
    z-index: 1001;
  }
  
  .nav-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
  }
  
  .nav-toggle__icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  }
  
  /* Container Padding */
  .container {
    padding: 32px 16px;
  }
  
  /* Tables */
  .simple-table th, .simple-table td {
    padding: 10px 12px;
  }
  .simple-table th {
    width: 35%;
  }
}

/* Extra Small Mobile (Phones in Portrait) */
@media (max-width: 480px) {
  .profile-name {
    font-size: 1.6rem;
  }
  .profile-tagline {
    font-size: 0.75rem;
  }
  .top-bar__brand {
    font-size: 0.9rem;
  }
  .top-bar__links a {
    font-size: 0.65rem;
  }
  .nav-actions {
    gap: 12px;
  }
  .nav-knowledge-btn {
    font-size: 0.75rem;
  }
  .nav-profile-btn img {
    width: 20px;
    height: 20px;
  }
  .simple-card {
    padding: 16px;
  }
  .simple-card.has-image .card-content {
    padding: 16px;
  }
}