/* Neno Wasian Portfolio - Brand System Compliant */

/* ========== BRAND COLORS ========== */
:root {
  /* Primary Colors */
  --charcoal: #1F2933;
  --warm-gray: #6B7280;
  --off-white: #F8FAFC;
  
  /* Accent Color */
  --muted-sage: #8FAEA3;
  
  /* Utility Color */
  --soft-divider: #E5E7EB;
  
  /* Transitions */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--warm-gray);
  line-height: 1.6;
  background: var(--off-white);
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--off-white);
}

.hero-container {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 10px;
  max-width: 900px;
  width: 100%;
  position: relative;
}

/* Left Section - Overlapping with fixed width */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 250px;
  position: absolute;
  left: 0;
  z-index: 10;
  opacity: 0;
  transform: translateX(-100%);
  animation: slideInFromLeft 0.8s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-intro {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  display: block;
  padding: 12px 24px;
  background: var(--charcoal);
  color: var(--off-white);
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--ease-standard);
  text-transform: uppercase;
}

.nav-btn:hover {
  background: var(--muted-sage);
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 41, 51, 0.15);
}

.nav-btn.active {
  background: var(--muted-sage);
  color: var(--charcoal);
  box-shadow: 0 4px 12px rgba(143, 174, 163, 0.3);
}

.hero-social {
  display: flex;
  gap: 20px;
  padding-top: 20px;
}

.social-link {
  color: var(--warm-gray);
  transition: all 0.3s var(--ease-standard);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--muted-sage);
  transform: scale(1.1);
}

/* Center - Photo */
.hero-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -25px;
  opacity: 0;
  transform: scale(0.8);
  animation: zoomIn 0.8s ease-out 0.2s forwards;
  will-change: transform, opacity;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-photo {
  width: 425px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Right Section */
.hero-right {
  display: flex;
  align-items: center;
  justify-self: start;
  opacity: 0;
  transform: translateX(100%);
  animation: slideInFromRight 0.8s ease-out 0.4s forwards;
  will-change: transform, opacity;
}

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.title-hello {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--warm-gray);
  margin-bottom: 8px;
}

.title-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

/* ========== CONTENT SECTIONS ========== */
.section {
  padding: 100px 20px;
  background: var(--off-white);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-standard), transform 0.8s var(--ease-standard);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-alt {
  background: #ffffff;
}

.section-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 32px;
}

.section-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.section-list {
  list-style: none;
  padding: 0;
}

.section-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  color: var(--warm-gray);
}

.section-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 12px;
  background: var(--muted-sage);
  border-radius: 50%;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.portfolio-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--soft-divider);
  transition: all 0.3s var(--ease-standard);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--muted-sage);
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.card-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--warm-gray);
}

.card-text a {
  color: var(--muted-sage);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s var(--ease-standard);
}

.card-text a:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--off-white);
  color: var(--charcoal);
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.footer-social {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-social a {
  color: var(--warm-gray);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 0.3s var(--ease-standard);
}

.footer-social a:hover {
  color: var(--muted-sage);
}

/* ========== STICKY ELEMENTS (on scroll) ========== */
/* Sticky Photo - Bottom Right */
.sticky-photo-fixed {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 200px;
  height: auto;
  z-index: 1000;
  opacity: 0;
  transform: scale(1.44) translateY(-100px);
  transform-origin: bottom right;
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
  pointer-events: none;
}

.sticky-photo-fixed.visible {
  opacity: 1;
  transform: scale(0.8) translateY(0);
  pointer-events: all;
}

.sticky-photo-fixed img {
  width: 80%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Sticky Social - Bottom Right (near photo) */
.sticky-social-fixed {
  position: fixed;
  bottom: 25px;
  right: 220px;
  display: flex;
  gap: 16px;
  z-index: 1001;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s var(--ease-standard) 0.2s, transform 0.6s var(--ease-standard) 0.2s;
  pointer-events: none;
}

.sticky-social-fixed.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.sticky-icon {
  color: var(--warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-standard);
}

.sticky-icon:hover {
  color: var(--muted-sage);
  transform: scale(1.15);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
  .sticky-social-fixed {
    right: 20px;
    bottom: 100px;
    flex-direction: column;
  }
}
@media (max-width: 1200px) {
  .hero-container {
    gap: 30px;
    max-width: 1000px;
  }
  
  .hero-photo {
    width: 400px;
  }
  
  .title-name {
    font-size: 100px;
  }
  
  .hero-left {
    width: 250px;
  }
  
  .nav-btn {
    font-size: 10px;
    padding: 10px 20px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    gap: 48px;
    max-width: 600px;
  }
  
  .hero-left {
    position: static;
    width: 100%;
    align-items: center;
    order: 3;
  }
  
  .hero-center {
    order: 1;
    margin-right: 0;
  }
  
  .hero-photo {
    width: 480px;
  }
  
  .hero-right {
    text-align: center;
    order: 2;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .title-name {
    font-size: 80px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
  }
  
  .hero-photo {
    width: 420px;
  }
  
  .title-hello {
    font-size: 36px;
  }
  
  .title-name {
    font-size: 64px;
  }
  
  .nav-btn {
    padding: 12px 24px;
    font-size: 11px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .section-text,
  .section-list li {
    font-size: 16px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Sticky elements responsive */
  .sticky-photo-fixed {
    width: 144px;
    transform: scale(1.25) translateY(-60px);
  }
  
  .sticky-photo-fixed.visible {
    transform: scale(0.8) translateY(0);
  }
  
  .sticky-social-fixed {
    bottom: 70px;
    right: 15px;
    gap: 12px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    width: 360px;
  }
  
  .title-hello {
    font-size: 28px;
  }
  
  .title-name {
    font-size: 48px;
  }
  
  .hero-intro {
    font-size: 13px;
  }
  
  .nav-btn {
    padding: 10px 20px;
    font-size: 10px;
  }
  
  .hero-social {
    gap: 18px;
  }
  
  .social-link svg {
    width: 28px;
    height: 28px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  /* Sticky elements mobile */
  .sticky-photo-fixed {
    width: 112px;
    transform: scale(1.04) translateY(-48px);
  }
  
  .sticky-photo-fixed.visible {
    transform: scale(0.8) translateY(0);
  }
  
  .sticky-social-fixed {
    bottom: 50px;
    right: 10px;
    gap: 10px;
  }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--muted-sage);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--charcoal);
  color: var(--off-white);
  padding: 8px 16px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
