/* Custom styles for TOKYO Minimalist Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and Custom Base Styles */
html {
  scroll-behavior: smooth;
  background-color: #f5f5f5;
  color: #111111;
  font-family: 'Mulish', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Custom Serif Font class for premium editorial look */
.font-editorial {
  font-family: 'Playfair Display', serif;
}

.font-sans-inter {
  font-family: 'Inter', sans-serif;
}

/* Sleek Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #d5d5d5;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: #111111;
}

/* Floating outline circle animation */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

.animate-float-circle {
  animation: float 12s ease-in-out infinite;
}

/* Premium Editorial Reveal & Slide-in Animations on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Premium zoom-in reveal for images and media */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  filter: blur(10px);
  transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-zoom.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Premium Interactive Centered Profile Portrait Frame */
.avatar-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 40px -15px rgba(17, 17, 17, 0.1);
  border: 1px solid #e5e5e5;
  background-color: #ffffff;
}

.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0);
  transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.avatar-frame:hover {
  box-shadow: 0 25px 50px -12px rgba(17, 17, 17, 0.2);
  transform: scale(1.02);
}

.avatar-frame:hover::after {
  border-color: rgba(17, 17, 17, 0.8);
}

.avatar-img {
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(110%);
}

/* Timeline Custom Lines */
.timeline-line::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background-color: #e5e5e5;
}

/* Active navigation state transition */
.nav-link {
  transition: all 0.4s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #111111;
}

/* Service Box Micro-hover */
.service-card {
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover {
  border-color: #111111;
  transform: translateY(-4px);
}

/* Input Custom Styles */
.form-input {
  border-bottom: 1px solid #e5e5e5;
  background-color: transparent;
  width: 100%;
  padding: 1rem 0;
  color: #111111;
  outline: none;
  transition: border-color 0.4s ease;
}

.form-input:focus {
  border-color: #111111;
}

/* Custom styling to ensure mobile off-canvas is smooth */
.mobile-nav-active {
  overflow: hidden;
}

/* Portfolio Filters active styling */
.filter-btn {
  transition: all 0.3s ease;
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #111111;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.filter-btn.active::after {
  width: 100%;
}

.filter-btn.active {
  color: #111111;
  font-weight: 600;
}
