/* Index Page Specific Styles */

:root {
  --container-w: 1200px;
}

html,
body {
  height: 100%;
}

body {
  scroll-behavior: smooth;
  background: transparent;
}

.page-wrap {
  padding: 40px;
  display: flex;
  justify-content: center;
}

.frame {
  width: 100%;
  max-width: var(--container-w);
  padding: 40px;
  border: 1px solid var(--border-medium);
  background: #ffffff;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 16px 0;
  margin-left: -40px;
  margin-right: -40px;
  padding-left: 40px;
  padding-right: 40px;
  margin-top: -40px;
  z-index: 100;
  border-bottom: 1px solid var(--border-medium);
  transition: padding 0.3s ease;
}

header.scrolled {
  padding: 8px 48px;
}

header.scrolled h1 {
  font-size: 20px;
}

header h1 {
  font-size: 24px;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: font-size 0.3s ease;
}

nav a {
  margin-left: 24px;
  font-size: 14px;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Work/Experience section heading */
.frame > h1 {
  scroll-margin-top: 100px;
  margin-top: 60px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  scroll-margin-top: 120px;
}

.item {
  border: 1px dashed var(--border-medium);
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  transition: border-color 0.2s ease;
  position: relative;
}

.item:hover {
  border-color: #000000;
}

.card-logo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1;
}

.item:hover .card-logo-overlay {
  opacity: 1;
}

.card-logo {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.card-logo.dark-variant {
  display: none;
}

.card-logo.light-variant {
  display: block;
}

.item h3 {
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.item p {
  font-size: 13px;
  color: #666666;
  margin-top: 6px;
}

.item .meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #000000;
}

/* About & Contact (scrollytelling sections) */
.scrolly-section {
  padding: 80px 0;
  border-top: 1px dashed var(--border-light);
  margin-top: 60px;
}

.scrolly-section:first-of-type {
  border-top: none;
  margin-top: 40px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 32px;
  align-items: stretch;
  position: relative;
}

.about-left {
  position: relative;
  border: 1px solid var(--border-medium);
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.about-photo-container {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px dashed var(--border-medium);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 100%;
  height: auto;
  max-height: 400px;
  display: block;
  object-fit: cover;
}

.about-info {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  flex: 1;
}

.about-info li {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px dashed var(--border-light);
  padding: 12px 16px;
}

.about-info li:last-child {
  border-bottom: none;
}

.about-info li strong {
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.about-info li span {
  color: #1a1a1a;
  font-size: 13px;
}

.about-right {
  border: 1px solid var(--border-medium);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-right h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.about-right p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a1a;
}

/* Contact */
#contact {
  padding: 40px 0;
}

#contact h2 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#contact p {
  font-size: 14px;
  line-height: 1.8;
  color: #1a1a1a;
}

#contact a {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #cccccc;
}

#contact a:hover {
  border-bottom-color: #000000;
}

footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-light);
  font-size: 13px;
  color: #666666;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-left {
    order: 2;
  }

  .about-right {
    order: 1;
  }
}
