/**
 * Barista Portfolio - Warm Coffee Lounge Minimalism Theme
 * ========================================================
 * Color palette: Deep coffee browns, warm cream, soft white
 * Typography: Cormorant Garamond (display), Raleway (body)
 */

/* ========== CSS Custom Properties (Theming) ========== */
:root {
  --color-bg-dark: #1A1311;
  --color-bg-medium: #2C1810;
  --color-bg-gradient: linear-gradient(180deg, #1A1311 0%, #2C1810 50%, #1A1311 100%);
  --color-accent-cream: #E8DCC4;
  --color-accent-latte: #D4C4A8;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #E8DCC4;
  --color-card-bg: rgba(44, 24, 16, 0.6);
  --color-card-border: rgba(232, 220, 196, 0.15);
  --color-card-shadow: rgba(0, 0, 0, 0.3);
  --color-bean-cream: #8D6E63;
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Raleway', 'Segoe UI', sans-serif;
  
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --card-width-lg: 75%;
  --card-width-sm: 80%;
  --card-height: 220px;
  --header-height: 180px;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--color-bg-gradient);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== Three.js Canvas Background ========== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* ========== Content Wrapper ========== */
.content-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
}

/* ========== Header Section ========== */
.header {
  text-align: center;
  padding: var(--space-2xl) 0;
  min-height: var(--header-height);
}

.lang-switcher {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-md);
  color: var(--color-accent-cream);
  background: transparent;
  border: 1px solid var(--color-card-border);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: rgba(232, 220, 196, 0.4);
  color: var(--color-text-primary);
  outline: none;
}

.lang-btn.active {
  background: rgba(232, 220, 196, 0.15);
  border-color: rgba(232, 220, 196, 0.4);
  color: var(--color-text-primary);
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-lg);
  border: 3px solid var(--color-card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.barista-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-style: italic;
  color: var(--color-accent-cream);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  animation: fadeInDown 1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.social-links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  animation: fadeInDown 1s 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.social-link {
  color: var(--color-accent-cream);
  transition: var(--transition-normal);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--color-text-primary);
  transform: translateY(-2px);
  outline: 2px solid var(--color-accent-cream);
  outline-offset: 4px;
}

.social-link:focus { outline: none; }

/* ========== Experience Section - User Scroll ========== */
.experience-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.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;
}

.experience-track {
  width: var(--card-width-lg);
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

/* ========== Experience Card - 75% large / 80% small ========== */
.experience-card {
  width: 100%;
  min-height: var(--card-height);
  padding: var(--space-lg);
  background: var(--color-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--color-card-shadow);
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(232, 220, 196, 0.25);
}

/* Card Content - Lighter font weights for better visibility */
.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.card-company {
  font-size: 0.95rem;
  color: var(--color-accent-cream);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.card-date {
  font-size: 0.8rem;
  color: var(--color-accent-latte);
  opacity: 0.9;
  margin-bottom: var(--space-md);
  font-weight: 300;
}

.card-responsibilities {
  list-style: none;
  margin-bottom: var(--space-md);
}

.card-responsibilities li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 300;
}

.card-responsibilities li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-bean-cream);
  font-weight: 600;
}

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  font-size: 0.75rem;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(232, 220, 196, 0.15);
  border: 1px solid rgba(232, 220, 196, 0.2);
  border-radius: 20px;
  color: var(--color-accent-cream);
  font-weight: 400;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(232, 220, 196, 0.25);
}

/* ========== Footer ========== */
.footer {
  margin-top: auto;
  padding: var(--space-xl);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-accent-latte);
  opacity: 0.8;
  font-weight: 300;
}

/* ========== Animations ========== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive - Small screens 80% ========== */
@media (max-width: 767px) {
  :root { --card-height: 200px; --header-height: 150px; }
  
  .content-wrapper { padding: var(--space-md); }
  
  .experience-track {
    width: var(--card-width-sm);
  }
  
  .experience-card {
    padding: var(--space-md);
    min-height: 200px;
  }
  
  .card-title { font-size: 1.2rem; }
  .card-responsibilities li { font-size: 0.85rem; }
  .social-link { padding: var(--space-sm); }
  
  .profile-photo {
    width: 110px;
    height: 110px;
    margin-bottom: var(--space-md);
  }
}

/* ========== Large screens 75% ========== */
@media (min-width: 768px) {
  .experience-track {
    width: var(--card-width-lg);
  }
}

@media (min-width: 1025px) {
  .experience-card { min-height: 240px; }
}
