@charset "UTF-8";

/* =========================================================================
   VARIABLES (Awwwards Style - Bright & Dynamic Mode)
   ========================================================================= */
:root {
  --bg-color: #f8fafc; /* Light Slate base */
  --text-main: #0f172a; /* Slate 900 for high contrast */
  --text-muted: #334155; /* Slate 700 */
  --text-dark: #64748b; /* Slate 500 */
  
  --accent-color: #2563eb; /* Vibrant Blue 600 */
  --accent-hover: #1d4ed8; /* Blue 700 */
  
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --transition-speed: 0.3s;
}

/* =========================================================================
   RESET & BASE FORMATTING
   ========================================================================= */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(37, 99, 235, 0.2);
  color: var(--accent-hover);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

/* =========================================================================
   CINEMATIC INTRO SCREEN (Unseen Studio Style)
   ========================================================================= */
.no-scroll {
  overflow: hidden !important;
}

.intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background-color: #030712; /* Deep dark slate for cyber space */
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden;
}

/* True 2.5D Layered Parallax */
.parallax-layer {
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%; /* Extra size for panning */
  background-size: cover;
  background-position: center;
  transition: transform 0.05s linear; /* Smooth tracking */
}

#intro-layer-back {
  z-index: 0;
  filter: brightness(0.6) contrast(1.2); 
}

#intro-layer-front {
  z-index: 1;
  background-size: contain; 
  /* Lift character up to compensate for the -10% parralax overflow */
  background-position: center 88%;
  background-repeat: no-repeat;
  /* Multiply blend: White becomes transparent, black silhouette remains */
  mix-blend-mode: multiply;
  opacity: 0.9;
  filter: drop-shadow(0 -5px 15px rgba(249, 115, 22, 0.4));
}

#intro-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}

.intro-content {
  position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center;
}

#flash-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: #ffffff;
  opacity: 0; pointer-events: none;
}

.intro-logo {
  font-size: 3rem; font-weight: 900; letter-spacing: 0.1em;
  color: #ffffff; margin-bottom: 2rem;
  font-family: var(--font-sans);
}
@media (min-width: 640px) { .intro-logo { font-size: 6rem; letter-spacing: 0.15em; } }

.intro-hint {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em;
  color: #64748b; font-family: var(--font-mono); cursor: pointer;
  transition: color 0.3s;
}
.intro-hint:hover { color: #f8fafc; }

.blink-slow {
  animation: blink 2s infinite ease-in-out;
}
@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* =========================================================================
   DYNAMIC BRIGHT BACKGROUND (Glassmorphic Frost)
   ========================================================================= */
.animated-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.animated-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: multiply; pointer-events: none;
}

/* Base gradients to simulate gentle ambient light */
.ambient-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.6;
}
.glow-1 { width: 50vw; height: 50vw; background: rgba(96, 165, 250, 0.15); top: -10%; left: -10%; }
.glow-2 { width: 40vw; height: 40vw; background: rgba(251, 146, 60, 0.1); bottom: -10%; right: -10%; }

/* Mouse Spotlight is replaced by a very subtle dodge highlight */
.pointer-spotlight {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 30;
  background: radial-gradient(400px circle at 0px 0px, rgba(255, 255, 255, 0.4), transparent 80%);
  transition: background 0.1s ease;
  mix-blend-mode: overlay;
}

#bg-canvas { display: none; /* Removed for frost mode readability */ }

/* =========================================================================
   LAYOUT WRAPPER (SPLIT-SCREEN)
   ========================================================================= */
.layout-wrapper {
  margin: 0 auto;
  min-height: 100vh;
  max-width: 1280px;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
  opacity: 0; /* JS will fade in */
  transition: opacity 1s;
}

@media (min-width: 768px) {
  .layout-wrapper { padding: 5rem 3rem; }
}

@media (min-width: 1024px) {
  .layout-wrapper { padding: 0 6rem; }
  .layout-split {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* =========================================================================
   SIDEBAR (LEFT - FIXED)
   ========================================================================= */
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    max-height: 100vh;
    width: 50%;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* --- PREMIUM TOP ELEMENTS --- */
.glass-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px; backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background-color: #10b981; /* Emerald green */
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-text {
  font-size: 0.75rem; font-weight: 700; font-family: var(--font-mono);
  color: #047857; text-transform: uppercase; letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.25rem; font-weight: 800; color: var(--text-main);
  letter-spacing: -0.05em; line-height: 1.1;
}
@media (min-width: 640px) { .hero-title { font-size: 3.5rem; } }

.flex-title {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}

/* Interactive Geo Icon */
.interactive-geo {
  display: inline-flex; justify-content: center; align-items: center;
  width: 48px; height: 48px; background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.05); border-radius: 12px;
  color: var(--accent-color); font-size: 1.5rem; cursor: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, border-color 0.3s;
}
.interactive-geo:hover {
  transform: rotate(90deg) scale(1.1);
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.hero-subtitle {
  margin-top: 1rem; font-size: 1.125rem; font-weight: 700;
  letter-spacing: 0.025em; line-height: 1.4;
}
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-desc {
  margin-top: 1.5rem; max-width: 320px; line-height: 1.6; color: var(--text-muted);
}
.typewriter-text {
  min-height: 80px; 
}

/* --- NAVIGATION --- */
.nav-menu {
  display: none;
}
@media (min-width: 1024px) {
  .nav-menu { display: block; margin-top: 4rem; width: max-content; }
}

.nav-menu ul { list-style: none; }
.nav-menu li { margin-bottom: 0.5rem; }

.nav-link {
  display: flex; align-items: center; padding: 0.75rem 0;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dark);
}

.nav-indicator {
  display: inline-block; margin-right: 1rem; height: 2px; width: 2rem;
  background-color: var(--text-dark);
  transition: width 0.3s, background-color 0.3s;
}

.nav-text {
  transition: color 0.3s;
}

.nav-link:hover .nav-indicator,
.nav-link:focus-visible .nav-indicator,
.nav-link.active .nav-indicator {
  width: 4rem; background-color: var(--text-main);
}

.nav-link:hover .nav-text,
.nav-link:focus-visible .nav-text,
.nav-link.active .nav-text {
  color: var(--text-main);
}

/* --- SOCIAL LINKS --- */
.social-links {
  list-style: none; display: flex; align-items: center;
  margin-top: 2rem; margin-left: 0.25rem;
}
@media (min-width: 1024px) { .social-links { margin-top: auto; } }

.social-links li { margin-right: 1.25rem; }
.social-links a {
  display: block; font-size: 1.5rem; color: var(--text-dark); transition: transform 0.3s, color 0.3s;
}
.social-links a:hover {
  color: var(--accent-color); transform: translateY(-3px);
}

/* =========================================================================
   MAIN CONTENT (RIGHT - SCROLLABLE)
   ========================================================================= */
.main-content {
  padding-top: 6rem;
}
@media (min-width: 1024px) {
  .main-content { width: 50%; padding-top: 6rem; padding-bottom: 6rem; }
}

.content-section {
  margin-bottom: 4rem; scroll-margin-top: 4rem;
}
@media (min-width: 768px) {
  .content-section { margin-bottom: 6rem; }
}
@media (min-width: 1024px) {
  .content-section { margin-bottom: 9rem; scroll-margin-top: 6rem; }
}

.mobile-section-header {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -1.5rem 1rem -1.5rem; padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-section-header h2 {
  font-size: 0.875rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-main);
}
@media (min-width: 768px) {
  .mobile-section-header { margin: 0 -3rem 1rem -3rem; padding: 1.25rem 3rem; }
}
@media (min-width: 1024px) {
  .mobile-section-header { display: none; }
}

/* Text styles inside main content */
.content-section p { margin-bottom: 1rem; }
.highlight-text { color: var(--accent-color); font-weight: 600; }

.executive-summary {
  font-size: 1.05rem; font-weight: 500; line-height: 1.7; color: var(--text-main); margin-bottom: 2rem !important;
}

/* About Grid Presentation */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem;
}
@media (min-width: 640px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .about-card.full-span { grid-column: span 2; }
}

.about-card {
  border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.6); padding: 1.5rem; backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  border-color: rgba(37, 99, 235, 0.2); background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.about-header {
  display: flex; align-items: center; margin-bottom: 0.75rem; color: var(--accent-color);
}
.about-icon { font-size: 1.35rem; margin-right: 0.5rem; }
.about-title {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-main);
}
.about-desc {
  font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 0 !important;
}


/* =========================================================================
   CARDS & LIST ITEMS (EXPERIENCE & PROJECTS)
   ========================================================================= */
.list-container {
  list-style: none;
}

.card-item {
  margin-bottom: 3rem; position: relative;
  transition: opacity 0.3s;
}

/* Light mode hover effect for lists */
@media (min-width: 1024px) {
  .list-container:hover .card-item {
    opacity: 0.4; /* Dim all lines first */
  }
  .list-container .card-item:hover {
    opacity: 1 !important; /* Highlight hovered */
  }
}

.card-grid {
  display: flex;
  flex-direction: column; /* Mobile: natural vertical stacking */
  gap: 1.25rem; position: relative; padding: 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem; border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}
@media (min-width: 640px) {
  .card-grid { flex-direction: row; gap: 2rem; padding: 1.5rem; }
}

.card-grid:hover, .card-item:hover .card-grid {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.card-timeline, .card-body, .card-img-wrap { position: relative; z-index: 10; }

.card-timeline {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-dark);
}

@media (min-width: 640px) {
  .card-timeline { flex: 0 0 20%; /* Fixed width for dates on desktop */ }
  .card-img-wrap { flex: 0 0 28%; /* Fixed width for images on desktop */ }
}

.card-img-wrap img {
  border-radius: 0.5rem; border: 2px solid rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s, filter 0.3s, transform 0.3s; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  filter: grayscale(40%) sepia(10%);
}
.card-item:hover .card-img-wrap img {
  border-color: rgba(37, 99, 235, 0.2); filter: grayscale(0%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
  flex: 1; /* Body takes up all remaining space */
}

.card-title {
  font-weight: 700; color: var(--text-main); line-height: 1.3; font-size: 1.05rem;
}
.card-title a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem;
}
@media (min-width: 640px) {
  .card-title a { display: inline-flex; flex-direction: row; align-items: baseline; gap: 0; }
}
/* Make the entire card clickable */
.card-title a::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 20;
}
.card-title .group-hover-text {
  transition: color 0.3s;
}
.card-title a:hover .group-hover-text,
.card-item:hover .card-title a .group-hover-text {
  color: var(--accent-color);
}
.card-title i {
  margin-left: 0.25rem; font-size: 0.875rem; transform: translateY(1px);
  transition: transform 0.3s; display: inline-block;
}
.card-item:hover .card-title i,
.card-title a:hover i {
  transform: translateY(-3px) translateX(3px);
}

.card-subtitle {
  color: var(--text-dark); font-size: 0.875rem; margin-top: 0.35rem; font-weight: 500;
}

.card-desc {
  margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6;
}

.tech-tags {
  list-style: none; display: flex; flex-wrap: wrap; margin-top: 1rem;
}
.tech-tags li { margin-right: 0.5rem; margin-top: 0.5rem; }
.tech-tags span {
  display: flex; align-items: center; border-radius: 9999px; background: rgba(37, 99, 235, 0.1);
  padding: 0.35rem 0.85rem; font-size: 0.8rem; font-weight: 600; color: var(--accent-hover);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.view-more-link {
  display: inline-flex; align-items: center; font-weight: 700; font-size: 0.95rem;
  color: var(--text-main); margin-top: 1rem; transition: color 0.3s;
}
.view-more-link:hover { color: var(--accent-color); }
.view-more-link i { margin-left: 0.25rem; transition: transform 0.3s; }
.view-more-link:hover i { transform: translateX(5px); }


/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  max-width: 28rem; padding-bottom: 4rem; font-size: 0.875rem; color: var(--text-dark);
}
@media (min-width: 640px) { .site-footer { padding-bottom: 0; } }
.site-footer p { margin-bottom: 0; }
.site-footer .highlight { transition: color 0.3s; font-weight: 500; }
.site-footer .highlight:hover { color: var(--accent-color); }

/* =========================================================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================================================= */
@media (max-width: 1023px) {
  .layout-wrapper {
    padding: 2rem 1.5rem;
  }
  .sidebar {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    padding-top: 1rem;
    padding-bottom: 0;
  }
  .main-content {
    width: 100%;
    padding-top: 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .intro-logo {
    font-size: 3rem; /* Ensure TAKETAKE logo fits on narrow screens */
  }
  .content-section {
    margin-bottom: 3rem;
  }
  .about-card {
    padding: 1.25rem;
  }
  .card-img-wrap img {
    margin-bottom: 1rem;
  }
  .card-item {
    margin-bottom: 2.5rem;
  }
  /* Parallax Layer resizing for vertical screens (Mobile Portrait) */
  .parallax-layer {
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
  }
  #intro-layer-back {
    background-size: cover;
  }
  #intro-layer-front {
    /* Prevent character from getting tiny on portrait screens, and lift to compensate for -25% overflow */
    background-size: auto 60vh;
    background-position: center 80%;
  }
}

