html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  height: 100%;

}

* {
  font-family: 'roc-grotesk', serif;
  font-weight: 400;
  font-style: normal;

}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fefefe;
  z-index: 1;
}

/* Header */
header {
  padding: 6rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1 {
  font-size: 3rem;
  font-family: "roc-grotesk", sans-serif;
  font-weight: 600;
  font-style: normal;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.tagline {
  font-size: 1.1rem;
  color: #666;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation */
nav {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffffb0;
  backdrop-filter: blur(5px);
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: #666;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #4a5568;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #4a5568;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  margin: 5rem 0;
}

h2 {
  font-size: 1.5rem;
  font-family: "roc-grotesk", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 2rem;
  color: #2d3748;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #4a5568, #a0aec0);
  border-radius: 1px;
}

/* About Section */
.about-text {
  font-size: 1.4rem;
  line-height: 1.4;
  color: #555;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Skills Section */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

h4 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #364051;
}

.skill-category p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 3rem;
  align-items: start;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-2px);
}

.portfolio-item:nth-child(1) {
  animation-delay: 0.1s;
}

.portfolio-item:nth-child(2) {
  animation-delay: 0.2s;
}

.portfolio-item:nth-child(3) {
  animation-delay: 0.3s;
}

.portfolio-item:nth-child(4) {
  animation-delay: 0.4s;
}

.portfolio-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portfolio-image {
  width: 250px;
  height: auto;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 0.8rem;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-image>img {
  width: 100%;
  padding: 5px;
}

div.portfolio-image>img.logo-background {
  padding: 0;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.portfolio-item:hover .portfolio-image::before {
  left: 100%;
}

.portfolio-item:hover .portfolio-image {
  border-color: #cbd5e0;
  transform: scale(1.02);
}


/* Background container */

.backgrounds {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  background: #f0f0f0 center/cover no-repeat;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
}

.background.visible {
  opacity: 1;
}


/* Thumbnail grid */
.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.thumb {
  cursor: pointer;
  transition: transform 0.6s ease;
}

.thumb:hover {
  transform: scale(1.14);
}

.thumb img {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

details {
  inline-size: 50ch;

  @media (prefers-reduced-motion: no-preference) {
    interpolate-size: allow-keywords;
  }

  &::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 1s allow-discrete,
      opacity 1s,
      block-size 1s;
  }

  &[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
}


.portfolio-content {
  min-width: 0;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.portfolio-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2d3748;
}

.portfolio-year {
  font-size: 0.9rem;
  color: #999;
}

.portfolio-description {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  color: #4a5568;
  font-size: 0.85rem;
  background: #f7fafc;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.portfolio-links {
  display: flex;
  gap: 2rem;
}

.portfolio-link {
  color: #2d3748;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.portfolio-link:hover {
  color: #4a5568;
  border-color: #4a5568;
}

/* Contact Section */
.contact-content {
  text-align: left;
}

.contact-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.contact-link {
  color: #2d3748;
  text-decoration: none;
  font-size: 1.3rem;
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
  position: relative;
}

.contact-link:hover {
  padding-left: 0.5rem;
  color: #4a5568;
}

.contact-link:hover span:last-child {
  transform: translateX(4px);
}

.contact-link span:last-child {
  transition: transform 0.3s ease;
}

.contact-link:last-child {
  border-bottom: none;
}

/* Footer */
footer {
  margin-top: 6rem;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .header-content,
  .nav-container,
  main {
    padding: 0 1.5rem;
  }

  nav ul {
    gap: 2rem;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

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

  .portfolio-item {
    grid-template-columns: auto;
    gap: 1rem;
  }

  .portfolio-image {
    width: 100%;
    max-width: 300px;
    justify-self: center;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


@media (max-width: 480px) {
  nav {
    position: relative;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: #e2e8f0;
  color: #2d3748;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a5568, #a0aec0);
  z-index: 1000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}