/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  /* Fonts */
  --font-heading: 'Geologica', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Theme: Light Mode (Premium Refined Blue-Grey) */
  --background: #f1f5f9;
  /* Softer, cleaner page background */
  --foreground: #0f172a;
  /* High contrast dark charcoal */
  --card: #ffffff;
  --card-foreground: #0f172a;

  --secondary: #f8fafc;
  /* Very light grey for tags/inputs */
  --secondary-hover: #e2e8f0;

  --muted: #cbd5e1;
  --muted-foreground: #64748b;
  /* Highly readable grey */

  --accent: #2563eb;
  /* True royal blue accent */
  --accent-hover: #1d4ed8;

  --border: rgba(0, 0, 0, 0.08);
  /* Soft borders */
  --border-divider: rgba(15, 23, 42, 0.06);
  --input-background: #f8fafc;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 10px 20px -5px rgba(0, 0, 0, 0.03);
  --shadow-love: 0 4px 15px rgba(244, 63, 94, 0.15);

  --radius-lg: 16px;
  /* Refined roundness */
  --radius-md: 10px;

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
body.dark-theme {
  --background: #090d16;
  --foreground: #f8fafc;
  --card: #121824;
  --card-foreground: #f8fafc;

  --secondary: #1a202c;
  --secondary-hover: #2d3748;

  --muted: #334155;
  --muted-foreground: #94a3b8;

  --accent: #38bdf8;
  --accent-hover: #7dd3fc;

  --border: rgba(255, 255, 255, 0.08);
  --border-divider: rgba(255, 255, 255, 0.06);
  --input-background: #191f2d;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-love: 0 4px 15px rgba(244, 63, 94, 0.25);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================
   PORTFOLIO LAYOUT CONTAINER
   ========================================== */
.portfolio-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Floating Theme Toggle (Locked at top of page) */
.theme-toggle-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

body.dark-theme .theme-toggle-btn {
  background-color: rgba(18, 24, 36, 0.85);
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  color: var(--foreground);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: transform 0.3s ease;
}

body.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
}

body:not(.dark-theme) .theme-toggle-btn .sun-icon {
  display: none;
}

body.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

body:not(.dark-theme) .theme-toggle-btn .moon-icon {
  display: block;
}

/* FLOATING LANGUAGE SELECTOR (Locked at top of page) */
.lang-selector {
  position: absolute;
  top: 1.5rem;
  right: 4.5rem;
  /* Next to theme toggle, which is at right: 1.5rem */
  z-index: 100;
}

.lang-selector-btn {
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

body.dark-theme .lang-selector-btn {
  background-color: rgba(18, 24, 36, 0.85);
}

.lang-selector-btn:hover {
  transform: scale(1.04);
  color: var(--foreground);
  box-shadow: var(--shadow-md);
}

.lang-selector-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;
  transition: transform 0.3s ease;
}

.lang-selector-btn:hover svg {
  transform: rotate(15deg);
}

.lang-code-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 130px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector.active .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
}

.lang-dropdown-item:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.lang-dropdown-item.active {
  background-color: var(--secondary-hover);
  color: var(--accent);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

/* Mobile responsive adjustment for floating controls */
@media (max-width: 640px) {
  .lang-selector {
    top: 1rem;
    right: 3.75rem;
  }

  .theme-toggle-btn {
    top: 1rem;
    right: 1rem;
  }
}

/* ==========================================
   FULL-WIDTH HEADER (EDGE-TO-EDGE)
   ========================================== */
.full-width-header {
  width: 100%;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.02);
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
}

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

/* Profile Block Inside Header */
.profile-block {
  padding-bottom: 2rem;
}

.profile-main-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.avatar-wrapper {
  position: relative;
  display: flex;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.profile-avatar-img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
}

.profile-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.profile-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.name-title-group {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-university-group {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.profile-title {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

.university-logo {
  height: 28px;
  width: auto;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

body.dark-theme .university-logo {
  filter: brightness(0) invert(1);
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Social media links row */
.social-links-row {
  display: flex;
  gap: 0.6rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.social-icon-btn:hover {
  background-color: var(--secondary-hover);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Bio Text */
.profile-bio-text {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 700px;
}

/* Profile Tag Pills */
.profile-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.profile-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.profile-tag:hover {
  background-color: var(--secondary-hover);
  color: var(--foreground);
  transform: translateY(-1px);
}

/* ==========================================
   REFINED TAB SWITCHER (MINIMAL ACCENT LINE)
   ========================================== */
.tabs-navigation {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  border-bottom: 1px solid var(--border-divider);
}

.tab-btn {
  position: relative;
  padding: 0.75rem 1.5rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  background-color: transparent;
  color: var(--muted-foreground);
  transition: var(--transition-smooth);
  text-align: center;
}

.tab-btn:hover {
  color: var(--foreground);
}

.tab-btn.active {
  color: var(--foreground);
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.tab-btn.active::after {
  background-color: var(--accent);
}

/* ==========================================
   TAB PANEL DETAILS (READABILITY & CARDS)
   ========================================== */
/* ==========================================
   SIDE NAVIGATION WIDGET (LEFT SIDEBAR)
   ========================================== */
.side-nav-widget {
  width: 260px;
  flex: 0 0 260px;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.side-nav-widget:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}

.side-nav-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  padding-left: 0.5rem;
  border-bottom: 1px solid var(--border-divider);
}

.side-nav-icon {
  color: var(--accent);
  width: 22px;
  height: 22px;
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.side-nav-item {
  display: flex;
  align-items: center;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-left: 4px solid transparent;
  line-height: 1.4;
}

.side-nav-item:hover {
  background-color: var(--secondary);
  color: var(--foreground);
  transform: translateX(4px);
}

.side-nav-item.active {
  background-color: var(--secondary);
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
}

.tab-panels-wrapper {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: tabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.tab-inner-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Cardified Sections */
.about-section {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.about-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-foreground);
  letter-spacing: 0.15em;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* ==========================================
   TAB 1: ABOUT ME READABILITY
   ========================================== */
.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--foreground);
  opacity: 0.9;
}

.highlight-text {
  color: var(--foreground);
  font-weight: 700;
}

/* ==========================================
   TECHNICAL SKILLS GRID
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.skill-card:hover {
  background-color: var(--card);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}

.skill-card:hover .skill-name {
  color: var(--accent);
}

.skill-desc {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* ==========================================
   EDUCATION TIMELINE
   ========================================== */
.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-divider);
  margin-top: 0.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background-color: var(--accent-hover);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
}

.timeline-subtitle {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

/* ==========================================
   NEWS TIMELINE WIDGET
   ========================================== */
.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-divider);
  margin-top: 0.5rem;
}

.news-item {
  position: relative;
}

.news-dot {
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transition: var(--transition-smooth);
}

.news-item:hover .news-dot {
  transform: scale(1.3);
  background-color: var(--accent-hover);
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-header {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.35;
}

.news-body {
  font-size: 1.025rem;
  line-height: 1.7;
  color: var(--foreground);
  opacity: 0.9;
}

.news-body strong {
  color: var(--foreground);
  font-weight: 700;
}

.news-media {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.news-media:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================
   PROJECTS GRID
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.project-card-item:hover {
  background-color: var(--card);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-icon {
  font-size: 1.5rem;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--foreground);
}

.project-card-item:hover .project-name {
  color: var(--accent);
}

.project-desc {
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.p-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--border-divider);
  color: var(--foreground);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================
   HOBBIES LIST
   ========================================== */
.hobbies-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hobby-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.hobby-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background-color: var(--card);
}

.hobby-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.hobby-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hobby-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}

.hobby-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

/* ==========================================
   PAYMENT CARD & METHODS
   ========================================== */
.payment-card {
  border-left: 4px solid var(--accent);
}

.payment-intro {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-method-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.payment-method-item:hover {
  background-color: var(--card);
  border-color: var(--accent);
}

.method-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.method-emoji {
  font-size: 1.25rem;
}

.method-name {
  font-weight: 600;
  color: var(--foreground);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--card);
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.payment-method-item:hover .copy-field {
  background-color: var(--secondary);
}

.copy-value {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--foreground);
  font-weight: 500;
  user-select: all;
}

.btn-copy {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-copy:hover {
  background-color: var(--accent-hover);
}

.btn-copy.copied {
  background-color: #10b981;
}

/* ==========================================
   AUTHORIZATION CARD (SECRET CODES)
   ========================================== */
.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  margin: 2rem auto;
  padding: 3rem 2rem;
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.auth-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper .form-input {
  padding-right: 2.75rem;
}

.btn-toggle-visible {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn-toggle-visible:hover {
  opacity: 1;
}

.auth-error-msg {
  font-size: 0.85rem;
  color: #ef4444;
  margin-top: 0.5rem;
  display: none;
  font-weight: 600;
  text-align: left;
}

.shake-animation {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

.btn-auth-submit {
  width: 100%;
  padding: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================
   TAB 2: WISHLIST SECTIONS
   ========================================== */
/* Collapsible Wishlist Card */
.wishlist-toggle-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: var(--transition-smooth);
}

.wishlist-toggle-header:hover {
  color: var(--accent);
}

.wishlist-toggle-icon {
  font-size: 0.85rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted-foreground);
}

.wishlist-toggle-header:hover .wishlist-toggle-icon {
  color: var(--accent);
}

/* Collapsible list animation */
.wishlist-card-collapsible .wishlist-vertical-list {
  max-height: 4000px;
  opacity: 1;
  overflow: visible;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.4s ease;
}

.wishlist-card-collapsible.collapsed .wishlist-vertical-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.wishlist-card-collapsible .section-title {
  transition: margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-card-collapsible.collapsed .section-title {
  margin-bottom: 0;
}

.wishlist-card-collapsible.collapsed .wishlist-toggle-icon {
  transform: rotate(-90deg);
}

.wishlist-vertical-list {
  display: flex;
  flex-direction: column;
}

.wish-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  /* More padding */
  border-bottom: 1px solid var(--border-divider);
  gap: 2rem;
  transition: var(--transition-smooth);
}

.wish-row-item:first-child {
  padding-top: 0;
}

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

.wish-row-item:hover {
  padding-left: 4px;
}

.wish-item-left {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wish-item-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.wish-item-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-top: 0.35rem;
  max-width: 520px;
}

.wish-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Wishlist Item Photo Box */
.wish-item-photo-wrapper {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.wish-row-item:hover .wish-item-photo-wrapper {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.wish-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.wish-item-placeholder-emoji {
  font-size: 1.75rem;
}


/* ==========================================
   TAB 3: FOR PUPUNKA CUTE SECTIONS
   ========================================== */
.pupunka-tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.pupunka-centered-info {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 540px;
  width: 100%;
}

.pupunka-paw-icon {
  font-size: 4rem;
  margin-bottom: 0.8rem;
  line-height: 1;
  animation: pawWiggle 2.5s ease-in-out infinite;
}

@keyframes pawWiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-8deg);
  }

  75% {
    transform: rotate(8deg);
  }
}

.pupunka-heading {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.6rem;
}

.pupunka-greeting-text {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.pupunka-interactive-btns {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}

.btn-love {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-love);
}

.btn-love:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.22);
}

.btn-quote-cute {
  border: 2px solid var(--foreground);
  color: var(--foreground);
  background-color: transparent;
}

.btn-quote-cute:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.quote-display-box {
  background-color: #fff5f7;
  border-left: 4px solid #f43f5e;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.8rem;
  width: 100%;
  animation: quoteSlideIn 0.3s ease;
}

body.dark-theme .quote-display-box {
  background-color: rgba(244, 63, 94, 0.08);
  border-left-color: #f43f5e;
}

.quote-display-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.5;
}

/* Floating Hearts animations */
.floating-heart {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 1000;
  animation: floatHeart 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) scale(0.5) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-130px) scale(1.25) rotate(25deg);
    opacity: 0;
  }
}

/* Contact Message Card */
.pupunka-message-form-card {
  width: 100%;
  max-width: 540px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.pupunka-message-form-card:hover {
  box-shadow: var(--shadow-md);
}

.form-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  width: 100%;
  background-color: var(--input-background);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus {
  border-color: var(--accent);
  background-color: var(--card);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.dark-theme .form-input:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-textarea {
  min-height: 110px;
}

.form-error-msg {
  font-size: 11px;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
  font-weight: 600;
}

.form-group.invalid .form-input {
  border-color: #ef4444;
}

.form-group.invalid .form-error-msg {
  display: block;
}

.btn-submit-primary {
  background-color: var(--foreground);
  color: var(--card);
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-submit-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Premium Spinner Styles */
.submit-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.submit-spinner circle {
  stroke: var(--card);
  stroke-linecap: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 40;
}

/* Loading button state */
.btn-auth-submit.loading .submit-spinner {
  display: block;
}

.btn-auth-submit.loading span {
  display: none;
}

.btn-submit-primary:disabled,
.btn-submit-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================
   PORTFOLIO FOOTER
   ========================================== */
.portfolio-footer {
  text-align: center;
  padding: 2.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 900px) {
  .portfolio-container {
    flex-direction: column;
    padding: 1rem 1rem 3rem;
    gap: 1rem;
    align-items: stretch;
  }

  .side-nav-widget {
    width: 100% !important;
    flex: none !important;
    align-self: auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background-color: var(--background) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-divider) !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    margin: 0 0 0.5rem 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .side-nav-widget:hover {
    box-shadow: none !important;
    border-color: transparent !important;
  }

  .side-nav-header {
    display: none !important;
  }

  .side-nav-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.25rem 0.5rem;
    gap: 0.5rem;
    height: auto !important;
    min-height: 0 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .side-nav-list::-webkit-scrollbar {
    display: none;
  }

  .side-nav-item {
    white-space: nowrap;
    border-left: none !important;
    border-bottom: none !important;
    border: 1px solid var(--border) !important;
    padding: 0.45rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--card);
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
    flex-shrink: 0;
  }

  .side-nav-item:hover {
    transform: none;
    color: var(--foreground);
  }

  .side-nav-item.active {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  }

  body.dark-theme .side-nav-item.active {
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3) !important;
  }
}

@media (max-width: 768px) {
  .portfolio-container {
    padding: 1.25rem 1rem 3rem;
  }
}

@media (max-width: 640px) {
  .lang-selector {
    position: absolute;
    top: 1rem;
    right: 3.75rem;
  }

  .theme-toggle-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .header-content-inner {
    padding: 4.75rem 1rem 0;
  }

  .profile-block {
    padding-bottom: 1.5rem;
  }

  .profile-university-group {
    align-items: center;
    text-align: center;
  }

  .profile-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-header-meta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .profile-location {
    justify-content: center;
  }

  .social-links-row {
    margin-top: 0.25rem;
  }

  .profile-tags-row {
    justify-content: center;
  }

  .tabs-navigation {
    gap: 1.5rem;
  }

  .tab-btn {
    padding: 0.65rem 0 0.85rem;
    font-size: 0.9rem;
  }

  .portfolio-container {
    padding: 1.5rem 1rem 3rem;
    gap: 1.25rem;
  }

  .about-section {
    padding: 2rem 1.5rem;
  }

  .badges-row-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .expertise-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.9rem 0;
  }

  .expertise-note {
    text-align: left;
  }

  .writing-link-item {
    padding: 0.9rem 0;
  }

  .pupunka-centered-info,
  .pupunka-message-form-card {
    padding: 2rem 1.5rem;
  }

  .wish-row-item {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    justify-content: space-between;
  }

  .wish-item-right {
    width: auto;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .wish-item-photo-wrapper {
    width: 75px;
    height: 75px;
  }

  .wish-item-placeholder-emoji {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .badges-row-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 0.75rem;
  }

  .profile-name {
    font-size: 1.875rem;
  }

  .profile-avatar-img {
    width: 140px;
    height: 140px;
  }
}