/*--------------------------------------------------------------
# Minimalist Portfolio
# Inspired by musa.guide aesthetic
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables & Base
--------------------------------------------------------------*/
:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-150: #eeeceb;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --accent: #0ea5e9;
  --accent-hover: #0284c7;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 500ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--stone-700);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--stone-800);
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.75rem;
  font-weight: 500;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  margin: 0 0 1rem 0;
  color: var(--stone-600);
}

a {
  color: inherit;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Inline Link Button (musa-style)
--------------------------------------------------------------*/
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.4rem;
  background: rgba(120, 113, 108, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: var(--stone-600);
  border-radius: 0.375rem;
  transition: background-color var(--transition-slow);
  font-size: inherit;
}

.inline-link:hover {
  background: rgba(120, 113, 108, 0.15);
}

.inline-link svg {
  width: 0.75em;
  height: 0.75em;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    margin: 0 0 0 12%;
  }
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5rem 0;
  }
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-200);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 720px;
}

nav .logo {
  font-weight: 500;
  color: var(--stone-800);
  font-size: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

nav ul li a {
  display: block;
  padding: 0.375rem 0.75rem;
  color: var(--stone-500);
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--stone-800);
  background: var(--stone-100);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--stone-600);
}

@media (max-width: 640px) {
  .mobile-nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--stone-50);
    border-bottom: 1px solid var(--stone-200);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    padding: 0.75rem 1rem;
  }
}

/*--------------------------------------------------------------
# Header / Hero
--------------------------------------------------------------*/
#header {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#header .container {
  padding-top: 4rem;
  padding-bottom: 6rem;
  max-width: 720px;
}

#header .tagline {
  font-size: 1.125rem;
  color: var(--stone-600);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

#header .tagline .burn {
  color: white;
  mix-blend-mode: difference;
}

#header .tagline .inline-link {
  color: var(--stone-700);
}

@media (min-width: 768px) {
  #header .tagline {
    font-size: 1.25rem;
  }
}

#header .social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#header .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.4rem;
  background: rgba(120, 113, 108, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  color: var(--stone-600);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: background-color var(--transition-slow);
}

#header .social-links a:hover {
  background: rgba(120, 113, 108, 0.15);
}

#header .social-links a svg {
  width: 0.75em;
  height: 0.75em;
}

/*--------------------------------------------------------------
# Section Titles
--------------------------------------------------------------*/
.section-title {
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone-400);
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--stone-800);
  margin: 0;
}

@media (min-width: 768px) {
  .section-title p {
    font-size: 1.75rem;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
#about {
  padding-top: 0;
}

.about-me {
  margin-bottom: 3rem;
}

.about-me .profile-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .about-me .profile-section {
    flex-direction: row;
    align-items: flex-start;
  }
}

.about-me .profile-image {
  width: 120px;
  height: 120px;
  border-radius: 1rem;
  object-fit: cover;
  flex-shrink: 0;
}

.about-me .bio {
  flex: 1;
}

.about-me .bio h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--stone-800);
  margin-bottom: 0.75rem;
}

.about-me .bio p {
  color: var(--stone-600);
  line-height: 1.7;
}

.about-me .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .about-me .info-grid {
    grid-template-columns: 1fr;
  }
}

.about-me .info-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.about-me .info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-400);
}

.about-me .info-item .value {
  color: var(--stone-700);
  font-size: 0.9375rem;
}

/*--------------------------------------------------------------
# Skills (Tags style)
--------------------------------------------------------------*/
.skills-section {
  margin-bottom: 3rem;
}

.skills-section h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-700);
  margin-bottom: 1rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.375rem 0.75rem;
  background: var(--stone-100);
  color: var(--stone-600);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--stone-200);
}

/*--------------------------------------------------------------
# Interests (Simple list)
--------------------------------------------------------------*/
.interests-section h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-700);
  margin-bottom: 1rem;
}

.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
}

.interest-item {
  color: var(--stone-500);
  font-size: 0.9375rem;
}

.interest-item:not(:last-child)::after {
  content: " ·";
  color: var(--stone-300);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
#resume {
  background: rgba(120, 113, 108, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.resume-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .resume-columns {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.resume-column h3 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--stone-400);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--stone-300);
}

.resume-item {
  margin-bottom: 2rem;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-800);
  margin-bottom: 0.25rem;
}

.resume-item .date {
  font-size: 0.8125rem;
  color: var(--stone-400);
  margin-bottom: 0.5rem;
}

.resume-item .org {
  font-size: 0.875rem;
  color: var(--stone-500);
  margin-bottom: 0.75rem;
}

.resume-item p {
  font-size: 0.9375rem;
  color: var(--stone-600);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.resume-item ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--stone-600);
  font-size: 0.9375rem;
}

.resume-item ul li {
  margin-bottom: 0.375rem;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
#portfolio .section-title {
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.portfolio-item {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--stone-100);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

.portfolio-item:hover img {
  transform: scale(1.02);
}

.portfolio-item .info {
  padding: 1rem 1.25rem 1.25rem;
}

.portfolio-item .info h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone-800);
  margin-bottom: 0.375rem;
}

.portfolio-item .info p {
  font-size: 0.875rem;
  color: var(--stone-500);
  margin: 0;
  line-height: 1.5;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
#contact {
  background: var(--stone-100);
}

.contact-content {
  max-width: 480px;
}

.contact-content p {
  font-size: 1.0625rem;
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--stone-700);
  font-size: 1rem;
}

.contact-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--stone-400);
  flex-shrink: 0;
}

.contact-link span {
  transition: color var(--transition-fast);
}

.contact-link:hover span {
  color: var(--stone-900);
}

.contact-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background: var(--stone-200);
  color: var(--stone-700);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: background-color var(--transition-slow);
}

.contact-social a:hover {
  background: var(--stone-300);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8125rem;
  color: var(--stone-400);
  margin: 0;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth scroll offset */
section[id] {
  scroll-margin-top: 2rem;
}

/*--------------------------------------------------------------
# Portfolio Details (Lightbox styles kept for project pages)
--------------------------------------------------------------*/
.portfolio-details {
  padding: 60px 0 40px;
  background: var(--stone-50);
  min-height: 100vh;
}

.portfolio-details .container {
  max-width: 800px;
}

.portfolio-details .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--stone-500);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color var(--transition-fast);
}

.portfolio-details .back-link:hover {
  color: var(--stone-800);
}

.portfolio-details .portfolio-title {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.portfolio-details .portfolio-description {
  color: var(--stone-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.portfolio-details .portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--stone-100);
  border-radius: 0.75rem;
}

.portfolio-details .meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-details .meta-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-400);
}

.portfolio-details .meta-item .value {
  color: var(--stone-700);
}

.portfolio-details .gallery {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.portfolio-details .gallery img {
  width: 100%;
  border-radius: 0.75rem;
}
