/* ==========================================================================
   Portfolio - Bishal | style.css
   ========================================================================== */
:root {
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typography System */
  /* Header Sizes - Xiaoyang style is large and bold */
  --header-h1-size: 80px;
  --header-h2-size: 56px;
  --header-h3-size: 40px;
  --header-h4-size: 32px;
  --header-h5-size: 24px;
  --header-h6-size: 18px;

  /* Body Sizes */
  --body-large-size: 18px;
  --body-medium-size: 16px;
  --body-small-size: 14px;

  --color-bg: #F9F9F7; /* Slate 50 */
  --color-bg-card: #FFFFFF;
  --color-bg-glass: rgba(255, 255, 255, 0.7);
  
  --color-primary: #0f172a; /* Slate 900 */
  --color-primary-light: #334155; /* Slate 700 */

  --section-tag-color: #3517EE;
  --section-header-color: #2B3437;
  --section-subtext-color: #586064;

  --feature-item-card-background-color: #FFFFFF;
  --feature-item-card-title-color: #020617;
  --feature-item-card-subtitle-color: rgba(12, 19, 27, 0.6);
  --feature-item-card-tag-border-color: #E2E8F0;
  --feature-item-card-tag-text-color: #64748B;

  --journey-card-background-color: #FFFFFF;
  --journey-card-back-text-color: #64748B;
  --journey-card-border-color: rgba(0, 0, 0, 0.05);
  --journey-card-title-color: #020617;
  --journey-card-subtitle-color: #64748B;
  --journey-card-date-color: #94A3B8;
  --journey-card-tag-background-color: rgba(0, 0, 0, 0.0);
  --journey-card-tag-border-color: #E2E8F0;
  --journey-card-tag-text-color: #64748B;

  --btn-outline-background-color: rgba (255, 255, 255, 0.0);
  --btn-outline-border-color: #E2E8F0;
  --btn-outline-text-color: #020617;
  --btn-outline-hover-background-color: rgba (255, 255, 255, 0.0);
  --btn-outline-hover-border-color: #E2E8F0;
  --btn-outline-hover-text-color: #020617;

  --about-intro-card-background-color:#FFFFFF;
  --about-intro-card-icon-color:#4330F9;
  --about-intro-card-icon-background-color:rgba(67, 48, 249, 0.1);
  --about-intro-card-title-color:#2B3437;
  --about-intro-card-subtitle-color:#586064;
  --about-contact-card-background-color:#F1F4F6;
  --about-contact-card-icon-color:#525151;
  --about-contact-card-icon-background-color:#E5E2E1;
  --about-contact-card-title-color:#2B3437;
  --about-contact-card-subtitle-color:#64748B;

  --connect-card-background-color: #020617;

  --skills-card-1-background-color: #FFFFFF;
  --skills-card-2-background-color: #F1F4F6;
  --skills-card-title-color: #2B3437;
  --skills-card-subtitle-color: #586064;
  --skills-card-number-color: #3517EE;
  --skills-card-icon-1-color: #5F5E5E;
  --skills-card-icon-1-background-color: #E3E9EC;
  --skills-card-icon-2-color: #5F5E5E;
  --skills-card-icon-2-background-color: #FFFFFF;
  --skills-card-icon-3-color: #3517EE;
  --skills-card-icon-3-background-color: rgba(67, 48, 249, 0.1);
  --skills-card-icon-4-color: #525151;
  --skills-card-icon-4-background-color: #E5E2E1;
  --skills-card-icon-5-color: #5F5E5E;
  --skills-card-icon-5-background-color: #E3E9EC;

  --color-dark: #020617; /* Slate 950 */
  --color-gray-dark: #1e293b; /* Slate 800 */
  --color-gray-medium: #64748b; /* Slate 500 */
  --color-gray-light: #e2e8f0; /* Slate 200 */
  
  --color-accent: #3b82f6; /* Blue 500 (Subtle accents) */

  --spacing-container: 1440px;
  --spacing-gutter: 24px;
  --radius-card: 32px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-floating: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --color-border: rgba(255, 255, 255, 0.4);
  
  --color-nav-bg: rgba(255, 255, 255, 0.65);
  --color-nav-border: rgba(255, 255, 255, 0.4);
  --color-nav-link: var(--color-gray-dark);
  --color-nav-hover: white;
  --color-nav-hover-text: var(--color-dark);
  --color-tooltip-bg: var(--color-dark);
  --color-tooltip-text: white;
  --nav-box-shadow: 0px 10px 40px 0px rgba(0,0,0,0.1), 0px 20px 25px -5px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
  --color-bg: #020617;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-bg-glass: rgba(15, 23, 42, 0.7);
  
  --color-primary: #818cf8;
  --color-primary-light: #cbd5e1;

  --section-tag-color: #818CF8;
  --section-header-color: #F8FAFC;
  --section-subtext-color: #94A3B8;

  --feature-item-card-background-color: rgba(255, 255, 255, 0.04);
  --feature-item-card-title-color: #F8FAFC;
  --feature-item-card-subtitle-color: #94A3B8;
  --feature-item-card-tag-border-color: rgba(255, 255, 255, 0.1);
  --feature-item-card-tag-text-color: #94A3B8;

  --journey-card-background-color: rgba(255, 255, 255, 0.01);
  --journey-card-back-text-color: #64748B;
  --journey-card-border-color: rgba(255, 255, 255, 0.1);
  --journey-card-title-color: #F8FAFC;
  --journey-card-subtitle-color: #94A3B8;
  --journey-card-date-color: #94A3B8;
  --journey-card-tag-background-color: rgba(15, 23, 42, 0.5);
  --journey-card-tag-border-color: rgba(255, 255, 255, 0.1);
  --journey-card-tag-text-color: #94A3B8;

  --btn-outline-background-color: rgba (255, 255, 255, 0.0);
  --btn-outline-border-color: rgba(255, 255, 255, 0.1);
  --btn-outline-text-color: #E2E8F0;
  --btn-outline-hover-background-color: rgba (255, 255, 255, 0.0);
  --btn-outline-hover-border-color: rgba(255, 255, 255, 0.1);
  --btn-outline-hover-text-color: #E2E8F0;

  --about-intro-card-background-color:rgba(255, 255, 255, 0.04);
  --about-intro-card-icon-color:#4330F9;
  --about-intro-card-icon-background-color:#DBDEFF;
  --about-intro-card-title-color:#F8FAFC;
  --about-intro-card-subtitle-color:#94A3B8;
  --about-contact-card-background-color:rgba(255, 255, 255, 0.06);
  --about-contact-card-icon-color:#D6D6D6;
  --about-contact-card-icon-background-color:rgba(255, 255, 255, 0.06);
  --about-contact-card-title-color:#F8FAFC;
  --about-contact-card-subtitle-color:#94A3B8;

  --connect-card-background-color: rgba(255, 255, 255, 0.05);

  --skills-card-1-background-color: rgba(255, 255, 255, 0.04);
  --skills-card-2-background-color: rgba(255, 255, 255, 0.06);
  --skills-card-title-color: #F8FAFC;
  --skills-card-subtitle-color: #94A3B8;
  --skills-card-number-color: #818CF8;
  --skills-card-icon-1-color: #FFFFFF;
  --skills-card-icon-1-background-color: rgba(255, 255, 255, 0.06);
  --skills-card-icon-2-color: #E6E5E5;
  --skills-card-icon-2-background-color: rgba(255, 255, 255, 0.04);
  --skills-card-icon-3-color: #4330F9;
  --skills-card-icon-3-background-color: #DBDEFF;
  --skills-card-icon-4-color: #D6D6D6;
  --skills-card-icon-4-background-color: rgba(255, 255, 255, 0.06);
  --skills-card-icon-5-color: #D6D6D6;
  --skills-card-icon-5-background-color: rgba(255, 255, 255, 0.06);
  --color-dark: #f8fafc;
  --color-gray-dark: #e2e8f0;
  --color-gray-medium: #94a3b8;
  --color-gray-light: #334155;
  
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-floating: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --color-border: rgba(255, 255, 255, 0.1);
  
  --color-nav-bg: #192033;
  --color-nav-border: rgba(255, 255, 255, 0.1);
  --color-nav-link: #ffffff;
  --color-nav-hover: rgba(255, 255, 255, 0.1);
  --color-nav-hover-text: #ffffff;
  --color-tooltip-bg: #ffffff;
  --color-tooltip-text: #0f172a;
  --nav-box-shadow: 0px 10px 40px rgba(0,0,0,0.1), 0px 20px 25px rgba(0,0,0,0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark);
  font-size: var(--body-large-size);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 { font-size: var(--header-h1-size); font-weight: 600; }
h2 { font-size: var(--header-h2-size); font-weight: 600; }
h3 { font-size: var(--header-h3-size); font-weight: 600; }
h4 { font-size: var(--header-h4-size); font-weight: 600; }
h5 { font-size: var(--header-h5-size); font-weight: 600; }
h6 { font-size: var(--header-h6-size); font-weight: 600; }

.text-regular { font-weight: 400; }
.text-medium { font-weight: 500; }
.text-semibold { font-weight: 600; }
.text-bold { font-weight: 700; }

.body-large { font-size: var(--body-large-size); }
.body-medium { font-size: var(--body-medium-size); }
.body-small { font-size: var(--body-small-size); }

.section-label {
  display: block;
  color: var(--color-gray-medium);
  font-size: 14px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Button Styles */
.btn-black {
  background-color: #18181b; /* Zinc 900 */
  border: 1px solid #2f2f37;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--header-h6-size);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
}

.btn-black:hover {
  background-color: #09090b; /* Zinc 950 */
  border-color: #2f2f37;
  box-shadow: 0 0 16px #615FFF;
}

.btn-black:focus-visible,
.btn-black:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-primary);
}

.btn-black svg.btn-icon-leading {
  width: 24px;
  height: 24px;
}

.btn-black .lucide {
  width: 24px;
  height: 24px;
}

.btn-outline {
  border: 1px solid var(--btn-outline-border-color);
  background: var(--btn-outline-background-color);
  color: var(--btn-outline-text-color);
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.4s ease;
}
.btn-outline:hover {
  background: var(--btn-outline-hover-background-color);
  border-color: var(--btn-outline-hover-border-color);
  color: var(--btn-outline-hover-text-color);
  box-shadow: 0 0 20px #615FFF;
}

.btn-dark {
  background: var(--color-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.4s ease;
}
.btn-dark:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px #615FFF;
}

.btn-dark-full {
  background: var(--color-dark);
  color: white;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-top: 24px;
  transition: all 0.4s ease;
}

.w-full {
  width: 100%;
  justify-content: center;
}
/* Floating Navigation (Horizontal Pill Style) */
.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: row;
}

.nav-pill {
  background: var(--color-nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 13px 9px;
  border-radius: 9999px;
  border: 1px solid var(--color-nav-border);
  box-shadow: var(--nav-box-shadow);
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.nav-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: var(--color-nav-link);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.nav-link:hover {
  background: var(--color-nav-hover);
  color: var(--color-nav-hover-text);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Nav Tooltip Box */
.nav-link::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--color-tooltip-bg);
  color: var(--color-tooltip-text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

/* Nav Tooltip Arrow */
.nav-link::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--color-tooltip-bg) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  z-index: 1000;
}

/* Show Tooltip on Hover */
.nav-link:hover::before,
.nav-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-link.active {
  background: #4F39F6;
  color: white;
  box-shadow: 0 4px 12px 0px rgba(0,0,0,0.2);
}

.nav-link .lucide {
  width: 20px;
  height: 20px;
}

.nav-divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
  margin: 0;
}

.nav-link.nav-external {
  color: var(--color-gray-dark);
}

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
}

/* Mobile Nav - Scale horizontally properly avoiding overflow constraints */
@media (max-width: 768px) {
  .floating-nav {
    /* Keep it identically bottom-centered! */
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    width: auto;
  }
  .hide-on-mobile {
    display: none !important;
  }
  /* Disable all hover & cursor tooltips on touch devices */
  .nav-link::before,
  .nav-link::after,
  .cursor-tooltip {
    display: none !important;
  }
  .nav-pill {
    padding: 8px 8px;
    gap: 8px;
  }
}
@media (max-width: 400px) {
  .nav-pill {
    padding: 6px 6px;
    gap: 6px;
  }
}


/* Hero Section (Updated) */
.hero {
  padding-top: 60px; /* Reduced since no top nav */
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Text larger */
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  width: fit-content;
  border: 1px solid rgba(0,0,0,0.03);
}

[data-theme="dark"] .hero-badge {
  background: var(--color-bg-card);
  color: var(--color-dark);
  border-color: var(--color-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e; /* Green */
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}


.hero-text h1 {
  font-size: var(--header-h1-size); /* 80px */
  font-weight: 500; /* Inter Display feel */
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--color-dark);
}

.hero-description {
  font-size: 20px;
  color: var(--color-gray-medium);
  line-height: 1.5;
  max-width: 500px;
}

/* Stickers */
.hero-stickers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  border: 1px solid var(--color-gray-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s ease;
  user-select: none;
  cursor: default;
}

.sticker:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.sticker.blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #dbeafe;
}

.sticker.dark {
  background: var(--color-dark);
  color: white;
  border-color: var(--color-dark);
}

[data-theme="dark"] .sticker {
  background: var(--color-bg-card);
  color: var(--color-dark);
  border-color: var(--color-border);
}

[data-theme="dark"] .sticker.blue {
  background: rgba(29, 78, 216, 0.15);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .sticker.dark {
  background: rgba(255, 255, 255, 0.9);
  color: #020617;
  border-color: rgba(255, 255, 255, 0.9);
}

.sticker .lucide {
  width: 16px;
  height: 16px;
}

/* Hero Media - "3D" Container */
.hero-media-container {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  overflow: hidden;
  transform: translateZ(0); /* For Safari video clipping */
}

/* Decorative Cards floating */
.glass-decoration {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-media-container {
  background: var(--color-bg-card);
  border-radius: 40px;
}

[data-theme="dark"] .glass-decoration {
  background: var(--color-bg-glass);
  border-color: var(--color-border);
  color: var(--color-dark);
}

.card-1 {
  top: 10%;
  right: 10%;
  width: 64px;
  height: 64px;
  border-radius: 24px;
}

.card-2 {
  bottom: 15%;
  left: 5%;
  padding: 12px 24px;
  border-radius: 999px; /* Pill */
  animation-delay: 2s;
}

.decoration-text {
  font-weight: 700;
  color: var(--color-dark);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-text .plus {
  color: var(--color-gray-medium);
  font-weight: 300;
}

.hero-subtitle {
  font-size: var(--header-h6-size);
  color: var(--color-gray-medium);
  letter-spacing: 1px;
  font-weight: 400;
}

.hero-image-wrapper {
  position: relative;
  width: 512px;
  height: 512px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  clip-path: inset(24px 12px 4px 50px);
}

/* Ticker */
.ticker-section {
  background: transparent;
  padding: 20px 0;
  border-top: 1px solid var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  width: max-content;
  animation: scroll 60s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 40px;
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 500;
  font-size: var(--body-large-size);
}
.ticker-item .lucide {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .ticker-section {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .ticker-item {
  color: #F8FAFC;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* About Section */
.section-padding {
  padding: 100px 0;
}

/* Universal Section Headers (Figma Exact Mapping) */
.section-header-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 80px;
}
.section-tag {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--section-tag-color);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  line-height: 1.3;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: var(--section-header-color);
  letter-spacing: -2.5px;
  line-height: 1;
  margin: 0;
}
.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--section-subtext-color);
  line-height: 1.625;
  max-width: 544px;
  margin: 16px 0 0 0;
}

.about-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Bottom alignment for button vs text */
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: 48px;
  margin-bottom: 64px;
}

.about-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-header-text .section-label {
  font-size: var(--header-h6-size);
  color: var(--color-gray-medium);
  font-weight: 600;
  text-transform: none; /* Reset if needed */
  letter-spacing: 0;
}

.about-header-text h2 {
  font-size: var(--header-h3-size);
  color: var(--color-gray-dark); /* Using #27272A equivalent if mapped, or dark vars */
  font-weight: 600;
  line-height: 1.2;
}

/* .btn-know-more removed */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; /* Large gap */
  align-items: center;
}

.about-image-container {
  /* Dimensions controlled by image for now or fixed if needed */
  border-radius: 24px;
  overflow: hidden;
}

.about-main-image {
  width: 100%;
  height: auto;
  display: block;
}

/* About Details Card */
.about-details-card {
  border: 1px solid var(--color-gray-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0);
  display: flex;
  flex-direction: column;
}

.card-section {
  padding: 48px 32px;
}

.card-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.card-icon-large {
  width: 32px;
  height: 32px;
  color: var(--color-primary); /* Blue/Indigo */
}

.card-section-header h3 {
  font-size: var(--header-h4-size);
  font-weight: 500;
  color: var(--color-dark);
}

.intro-text {
  font-size: var(--body-large-size);
  color: var(--color-gray-medium); /* Zinc 500 */
  line-height: 1.6;
}

.card-divider {
  height: 1px;
  background: var(--color-gray-light);
  width: 100%;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 12px;
  color: var(--color-gray-medium);
}

.field-value {
  font-size: var(--body-large-size);
  color: var(--color-dark);
  font-weight: 500;
}

.btn-download-cv {
  background: #18181b;
  color: white;
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: var(--body-large-size);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.3s;
}
.btn-download-cv:hover {
  opacity: 0.9;
}

/* Projects */
.projects-header-wrapper,
.skills-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: 24px;
  margin-bottom: 64px;
}

.projects-header-text,
.skills-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.projects-header-text .section-label,
.skills-header-text .section-label {
  font-size: var(--header-h6-size);
  color: var(--color-gray-medium);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.projects-header-text h2,
.skills-header-text h2 {
  font-size: var(--header-h3-size);
  color: var(--color-gray-dark);
  font-weight: 600;
  line-height: 1.2;
}

.btn-view-all {
  background: #18181b;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: var(--body-large-size);
}
.btn-view-all:hover {
  opacity: 0.9;
}

/* Project Section (Xiaoyang Hu Style - Exact Replica) */
.projects-feature-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the cards */
  gap: 60px; /* Reduced gap from 80px */
  margin-top: 80px;
}

.feature-item {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  background-color: var(--feature-item-card-background-color);
  border-radius: 24px;
  padding: 0 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  text-decoration: none;
  gap: 48px;
}

/* Card Interaction */
.feature-item:hover {
  transform: translateY(-4px); /* Subtle lift */
  box-shadow: 
    0px 20px 25px -5px rgba(0, 0, 0, 0.1), 
    0px 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
  max-width: none;
  padding-top: 0;
}

.feature-title {
  font-family: var(--font-heading); /* Manrope/Inter Display */
  font-size: 22px; /* Precise size from analysis */
  font-weight: 500; /* Clean, elegant weight */
  color: var(--feature-item-card-title-color);
  margin: 0;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--feature-item-card-subtitle-color);
  line-height: 1.6;
  margin: 0;
  margin-bottom: 24px;
  white-space: normal;
  max-width: 100%;
}

/* Tags/Pills Style */
.feature-tags {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0px;
  flex-wrap: wrap;
}

.feature-tag {
  font-size: 14px;
  color: var(--feature-item-card-tag-text-color);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--feature-item-card-tag-border-color); /* Very subtle border */
  background: transparent;
  font-weight: 400;
}

/* Media Position: Image on Right */
.feature-media {
  margin-top: 0;
  width: 50%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
}

.feature-media-item {
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  margin-bottom: 0;
  object-fit: cover;
}

 .feature-item:hover .feature-media-item {
  transform: scale(1.15); 
}

/* Responsive */
@media (max-width: 768px) {
  .feature-item {
    flex-direction: column;
    height: auto;
    padding: 40px 24px;
    text-align: center;
    gap: 32px;
  }
  
  .feature-content-wrapper {
    width: 100%;
    align-items: center;
  }
  
  .feature-media {
    width: 100%;
    margin-top: 0;
  }
}


/* Skills */
/* Skills Layout */
.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}

.skills-grid-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.skills-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-card {
  padding: 48px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border: none;
  align-items: flex-start;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.skill-icons-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.tags-group {
  display: flex;
  gap: 12px;
}

.tags-row {
  display: flex;
  gap: 12px;
  margin-top: -16px; /* Pull closer to header */
}

.tags-group-multiline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Icon Containers */
.icon-circle {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.icon-square {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.icon-circle img,
.icon-square img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.icon-circle .lucide {
  width: 24px;
  height: 24px;
}

/* Tags */
.tag {
  background: white;
  padding: 10px 20px;
  border-radius: 9999px; /* Pill shape */
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  white-space: nowrap;
}

/* Typography override for this section based on design */
.skill-card h3 {
  font-size: var(--header-h5-size);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.skill-card p {
  font-size: var(--body-large-size);
  color: var(--color-gray-medium);
  line-height: 1.6;
}

.skill-content {
  margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .skills-grid-top,
  .skills-grid-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .skill-card {
    padding: 32px;
  }
}

/* Footer */
.footer {
  padding-bottom: 120px;
  background: var(--color-bg);
}

/* Skills Bar */
.footer-skills-bar {
  padding: 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary); /* Indigo 500 */
  font-weight: 500;
  font-size: 14px;
  font-family: var(--font-body);
}

.footer-skill-item .lucide {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* Main Footer Layout */
.footer-main-layout {
  border-bottom: 1px solid var(--color-gray-light);
}

.footer-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px; /* Large vertical space */
}

/* Columns with Borders */
.footer-col-left {
  border-left: 1px solid var(--color-gray-light);
  /* border-right removed to avoid double border with right column */
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-col-right {
  border-right: 1px solid var(--color-gray-light);
  border-left: 1px solid var(--color-gray-light); /* Added left border per Figma */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 80px; /* Figma: py-[100px] px-[80px] */
}

/* Left Content */
.footer-tagline {
  font-size: var(--header-h6-size);
  color: var(--color-gray-medium);
  margin-bottom: 40px;
  font-weight: 600;
}

.footer-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.cta-text {
  font-family: var(--font-heading);
  font-size: var(--header-h3-size);
  font-weight: 600;
  color: #27272a; /* Zinc 800 */
  line-height: 1.2;
}

.cta-icon-btn {
  background: #4f39f6; /* Indigo 600 */
  width: 100px;
  height: 52px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}
.cta-icon-btn .lucide {
  color: white;
  width: 32px;
  height: 32px;
}
.cta-icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #615FFF;
}

/* Right Content */
.footer-brand-large {
  font-family: var(--font-heading);
  font-size: 180px; /* Massive size */
  font-weight: 600;
  color: var(--color-gray-light); /* Very light gray */
  letter-spacing: -5px;
  line-height: 1;
  user-select: none;
  /* padding removed, handled by container */
}

/* Bottom Bar */
.footer-bottom-bar {
  padding: 40px 0;
  padding-bottom: 128px;
}

.bottom-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-gray-medium);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-links .separator {
  color: var(--color-gray-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid-container {
    grid-template-columns: 1fr;
  }
  .footer-col-right {
    border-right: 1px solid var(--color-gray-light);
    border-left: 1px solid var(--color-gray-light);
    border-top: 1px solid var(--color-gray-light);
    padding: 60px;
  }
  .footer-brand-large {
    font-size: 100px;
  }
  .cta-text {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .footer-col-left {
    padding: 30px;
    border-right: 1px solid var(--color-gray-light);
  }
  .footer-skill-item {
    font-size: 12px;
  }
}

/* Floating Navigation */
.floating-nav-container {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.floating-nav {
  background: var(--color-bg-card); /* Dynamically maps to white in Light, or #12121A in Dark */
  padding: 8px;
  border-radius: 9999px;
  display: flex;
  box-shadow: var(--shadow-floating);
  pointer-events: auto;
  border: 1px solid var(--color-border);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 14px;
  color: var(--color-gray-dark);
}

.nav-item-mobile {
  display: none;
}

.nav-item.active {
  background: var(--color-primary);
  color: white;
}

.nav-item:hover:not(.active) {
  background: var(--color-bg-secondary);
}

.divider {
  width: 1px;
  background: var(--color-gray-light);
  margin: 8px 12px;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-gray-dark);
}
.nav-icon:hover {
  background: var(--color-bg-secondary);
}
.nav-icon .lucide {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-row h2 {
    font-size: 36px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    font-size: 80px;
  }
  
  /* Tablet Typography */
  h1 {
    font-size: 64px;
  }
  .hero-text h1 {
    font-size: 64px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text {
    align-items: center;
    width: 100%;
  }

  .hero-stickers {
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 48px;
  }
  
  .hero-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: auto;
    align-self: center;
  }
  
  .hero-media-container {
    height: 300px; /* Reduced height for mobile */
  }

  /* Header */
  header .container {
    padding: 16px 20px;
  }
  .logo {
    font-size: 18px;
  }

  /* About */
  .about-header-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-bottom: 40px;
  }
  .about-header-text {
    align-items: center;
  }
  .about-header-text h2 {
    font-size: 36px;
  }
  
  .card-section {
    padding: 32px 24px;
  }

  /* Projects */
  .projects-header-wrapper,
  .skills-header-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    margin-bottom: 40px;
  }
  .projects-header-text,
  .skills-header-text {
    align-items: center;
  }
  .projects-header-text h2,
  .skills-header-text h2 {
    font-size: 36px;
  }
  
  .project-image-container {
    height: 300px;
  }

  /* Footer */
  .footer-col-left {
    padding: 40px 24px;
    border: none;
    align-items: center;
    text-align: center;
  }
  .footer-tagline {
    text-align: center;
  }
  .footer-cta-wrapper {
    justify-content: center;
  }
  .footer-col-right {
    padding: 40px 24px;
    border: none;
    display: flex;
    justify-content: center;
  }
  .cta-text {
    font-size: var(--header-h3-size);
  }
  .footer-brand-large {
    font-size: 22vw;
  }
  
  /* Footer Bottom Bar Mobile */
  .bottom-bar-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  
  .floating-nav {
    transform: translateX(-50%) scale(0.9);
    left: 50%;
    bottom: 20px;
  }
  .nav-item {
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-text h1 {
    font-size: 48px;
    margin-top: 12px;
  }
  
  .hero-subtitle {
    font-size: var(--body-large-size);
  }

  .hero-image-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .hero-media-container {
    height: 280px;
  }
  
  /* Scale down decorations */
  .glass-decoration.card-1 {
    width: 48px;
    height: 48px;
    right: 5%;
    border-radius: 16px;
  }
  .glass-decoration.card-2 {
    padding: 8px 16px;
    font-size: 12px;
    left: 0;
    bottom: 10%;
  }
  .glass-decoration .lucide {
    width: 20px;
    height: 20px;
  }
  
  .btn-black {
    padding: 14px 20px;
    font-size: 18px;
  }
  
  /* About Card Mobile */
  .about-details-card .card-section {
    padding: 24px 16px;
  }
  .card-section-header h3 {
    font-size: var(--header-h5-size);
  }
  
  /* Projects */
  .projects-header-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  .projects-header-text {
    align-items: center;
    text-align: center;
  }
  
  /* Icon Only Button */
  .projects-header-wrapper .btn-black {
     width: 48px;
     height: 48px;
     padding: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0; /* Hide text */
     border-radius: 12px;
  }
  .projects-header-wrapper .btn-black i {
    margin-left: 0; /* Reset margin if any */
    width: 20px;
  }
  
  .project-image-container {
    height: 320px;
  }
  
  .skill-card {
    padding: 24px;
  }
  
  .footer-skills-bar {
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 16px;
  }
  
  .cta-text {
    font-size: var(--header-h4-size);
    line-height: 1.2;
    text-align: center;
  }
  .footer-brand-large {
    font-size: 13vw;
  }
  
  /* Contact grid stack */
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-info-grid .btn-black {
     grid-column: auto !important;
  }
  
  /* Floating Nav Toggle */
  .nav-item-desktop {
    display: none;
  }
  .nav-item-mobile {
    display: flex;
  }
}

/* Typewriter Animation */
.typewriter-cursor {
  display: inline-block;
  width: 0.1em;
  height: 1em;
  background-color: currentColor;
  margin-left: 0.1em;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Creative Text Animation */
.creative-text {
  display: inline-block;
  animation: fadeInUp 0.8s ease-out forwards;
}

.creative-text.exit {
  animation: fadeOutUp 0.6s ease-in forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-15px);
    filter: blur(8px);
  }
}

/* Subtle Gradient Animation */
.creative-text-gradient {
  background: linear-gradient(135deg, #4F39F6, #9F8CFF, #4F39F6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out forwards, gradientShift 4s ease infinite;
}

.creative-text-gradient.exit {
  animation: fadeOutUp 0.6s ease-in forwards;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gradient Span for Typewriter */
.gradient-span {
  background: linear-gradient(135deg, #4F39F6, #9F8CFF, #4F39F6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
}

/* Icon Animation Styles */
.icon-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 40px 0;
  list-style: none;
  perspective: 1000px;
}

.grid-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.bouncer {
  animation: float 4s ease-in-out infinite;
}

/* Stagger animation based on child index (approximate using nth-child) */
.grid-col:nth-child(2n) .bouncer { animation-delay: 0.5s; animation-duration: 3.5s; }
.grid-col:nth-child(3n) .bouncer { animation-delay: 1s; animation-duration: 4.5s; }
.grid-col:nth-child(5n) .bouncer { animation-delay: 1.5s; animation-duration: 3.8s; }
.grid-col:nth-child(7n) .bouncer { animation-delay: 0.2s; animation-duration: 4.2s; }

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.grid-col .icon-circle {
  width: 80px;
  height: 80px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.grid-col:hover .icon-circle {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(97, 95, 255, 0.2);
  border: 2px solid var(--color-primary);
}

.grid-col img {
  width: 40px;
  height: 40px;
}


/* Connect Section (Xiaoyang Hu Style Footer) */
.connect-section {
  padding: 80px 0;
  margin-top: 80px;
}

.connect-card {
  background: var(--connect-card-background-color);
  color: white; /* Often black card with white text for Connect */
  border-radius: var(--radius-card); /* 32px */
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-floating);
}

.connect-title {
  font-family: var(--font-heading);
  font-size: 64px; 
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -2px;
}

.connect-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
}

.connect-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.connect-btn.primary {
  background: white;
  color: #020617;
}
.connect-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.connect-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.connect-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-external-links {
  display: flex;
  gap: 24px;
}

.footer-external {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-external:hover {
  color: white;
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.connect-btn .lucide {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .connect-title { font-size: 40px; }
  .connect-card { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 24px; }
  .connect-btn { height: 44px; padding: 0 24px; font-size: 14px; }
}

/* Journey Section */
.journey-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: 24px;
  margin-bottom: 48px;
}

.journey-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.journey-header-text .section-label {
  font-size: var(--header-h6-size);
  color: var(--color-gray-medium);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.journey-header-text h2 {
  font-size: var(--header-h3-size);
  color: var(--color-gray-dark);
  font-weight: 600;
  line-height: 1.2;
}

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.journey-card {
  height: 128px; /* Fixed height match padding + logo size */
  perspective: 1000px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

.journey-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 24px;
}

.journey-card.flipped .journey-card-inner {
  transform: rotateY(180deg);
}

.journey-card-front, .journey-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  background: var(--journey-card-background-color);
  border: 1px solid var(--journey-card-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  box-shadow: 0 4px 6px -4px rgba(0,0,0,0.05);
  top: 0;
  left: 0;
}

.journey-card-front {
  background: var(--journey-card-background-color);
  z-index: 2;
  transform: rotateY(0deg);
}

.journey-card-back {
  background: var(--journey-card-back-text-color); /* Default paper color, overridden inline */
  transform: rotateY(180deg);
  justify-content: center;
  flex-direction: column;
  color: var(--journey-card-back-text-color); /* Base color */
  z-index: 1;
}

.journey-card-back .journey-description {
  color: var(--journey-card-back-text-color) !important; /* Override specific text colors */
  opacity: 0.95;
  font-family: 'Mynerve', cursive;
  font-weight: 400; /* Mynerve looks best at regular weight */
  font-size: 18px; /* Slightly larger for readability */
}

.journey-card-back .journey-description .lucide {
  color: var(--journey-card-back-text-color) !important; /* Override icon color */
  opacity: 0.9;
}

/* Hover lift effect for the inner container */
.journey-card:hover .journey-card-inner {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px rgba(0,0,0,0.1);
}

.journey-card.flipped:hover .journey-card-inner {
  transform: rotateY(180deg) translateY(-2px);
}

.journey-card-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.journey-logo-container {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  flex-shrink: 0;
}

.journey-logo-container .lucide {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.journey-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start; /* Ensure left alignment of flex children */
  text-align: left; /* Ensure text aligns left */
}

.journey-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--journey-card-title-color);
  margin: 0;
  line-height: 1.3;
}

.journey-role {
  font-size: 15px;
  color: var(--journey-card-subtitle-color);
  margin: 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.journey-role .lucide {
  width: 16px;
  height: 16px;
}

.journey-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 140px; /* Ensure alignment */
}

.journey-date {
  font-size: 14px;
  color: var(--journey-card-date-color);
  font-weight: 500;
}

.journey-tag {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--journey-card-tag-border-color);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--journey-card-tag-text-color);
  background: var(--journey-card-tag-background-color);
}

@media (max-width: 768px) {
  .journey-card {
    height: 128px; /* Restored tight height because content right is hidden */
  }
  
  .journey-card-front {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
  }
  
  .journey-card-left {
    width: 100%;
    gap: 16px;
  }
  
  .journey-logo-container {
    width: 64px; /* Smaller logo on mobile */
    height: 64px;
    min-width: 64px;
  }
  
  .journey-info {
    flex: 1; /* Take remaining space */
  }
  
  .journey-title {
    font-size: 18px;
  }
  
  .journey-card-right {
    display: none; /* Hide entirely on mobile screens per user request */
  }
}

.journey-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Custom Cursor Tooltip */
.cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: #4F39F6;
  border: 2px solid #432DD7;
  color: white;
  padding: 12px 24px;
  border-radius: 4px 50px 50px 50px; /* Sharp top-left, pill right, rounded bottom-left */
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(10px, 10px) scale(0.9); /* Closer offset for the sharp point */
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cursor-tooltip.active {
  opacity: 1;
  transform: translate(10px, 10px) scale(1);
}

/* 6sense & CRM Card Image Adjustment */
.project-6sense-img,
.project-crm-img,
.project-ds-img {
  align-self: flex-start; /* Fix layout to top to allow smooth transform */
  object-position: top center;
  /* Smoother Transition with simulated center start */
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.6s ease, box-shadow 0.6s ease;
  transform: translateY(56px); /* Simulate visual center (pushed down) */
  transform-origin: top left;
}

.feature-item:hover .project-6sense-img {
  align-self: flex-start; /* Align to top of container */
  transform: scale(1.35); /* Zoom to fill right side */
  border-radius: 0;
  box-shadow: 0 10px 30px 0 rgba(186, 141, 70, 0.25);
}

.feature-item:hover .project-ds-img {
  align-self: flex-start; /* Align to top of container */
  transform: scale(1.35); /* Zoom to fill right side */
  border-radius: 0;
  box-shadow: 0 10px 30px 0 rgba(9, 44, 88, 0.25);
}

.feature-item:hover .project-crm-img {
  align-self: flex-start; /* Align to top of container */
  transform: scale(1.35); /* Zoom to fill right side */
  border-radius: 0;
  box-shadow: 0 10px 30px 0 rgba(209, 13, 116, 0.25);
}

/* Agami & DFA Project Card Styles */
.project-agami-images,
.project-dfa-images {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-right: 32px; /* As per Figma design */
}

.agami-img,
.dfa-img {
  width: 120px; /* Adjusted slightly for fit */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  /* Include opacity and transform in transition */
  transition: transform 0.8s ease, opacity 0.8s ease, box-shadow 0.8s ease;
}

@media (max-width: 768px) {
  .project-agami-images,
  .project-dfa-images {
    padding-right: 0;
  }
  .agami-img,
  .dfa-img {
    width: 96px; /* 20% smaller than 120px */
  }
}

.feature-item:hover .agami-img,
.feature-item:hover .dfa-img {
  opacity: 0;
  transform: scale(0.5);
}

.feature-item:hover .agami-img.img-2 {
  opacity: 1;
  transform: scale(1.2); /* Zoom focus to populate the card */
  z-index: 10;
  box-shadow: 0 10px 30px 0 rgba(209, 13, 116, 0.16);
  transition-delay: 0s;
}

/* Specific focus for DFA Card (Image 1 moves to center) */
.feature-item:hover .dfa-img.img-1 {
  opacity: 1;
  transform: translateX(136px) scale(1.2); /* 120px width + 16px gap = 136px shift */
  z-index: 10;
  box-shadow: 0 10px 30px 0 rgba(209, 13, 116, 0.16);
  transition-delay: 0s;
}

/* Skills Bento Grid (Figma Design) */
.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skills-card {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  min-height: 272px; /* Matches bottom row elements */
}
.skills-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 24px 48px 0px rgba(43,52,55,0.08); /* slight lift */
}

/* Card 1: UI/UX (Spans 2 cols) */
.card-uiux {
  background-color: var(--skills-card-1-background-color);
  box-shadow: 0px 20px 40px 0px rgba(43, 52, 55, 0.04);
  grid-column: span 2;
  min-height: 380px;
  padding: 48px;
}
.card-uiux .card-bottom h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--skills-card-title-color);
}
.card-uiux p {
  font-size: 18px;
  color: var(--skills-card-subtitle-color);
  line-height: 1.6;
  max-width: 570px;
}

/* Card 2: Programming Languages (Spans 1 col, next to UI/UX) */
.card-programming {
  background-color: var(--skills-card-2-background-color);
  grid-column: span 1;
  min-height: 380px;
  padding: 32px;
  justify-content: flex-start;
}
.card-top-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

/* Row 2: Front-End, Visual, Version (3 cols) */
.card-frontend {
  background-color: var(--skills-card-1-background-color);
  box-shadow: 0px 20px 40px 0px rgba(43, 52, 55, 0.04);
  grid-column: span 1;
  padding: 32px;
}
.card-visual {
  background-color: var(--skills-card-2-background-color);
  grid-column: span 1;
  padding: 32px;
}
.card-version {
  background-color: var(--skills-card-1-background-color);
  box-shadow: 0px 20px 40px 0px rgba(43, 52, 55, 0.04);
  grid-column: span 1;
  padding: 32px;
}

/* Card typography */
.skills-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--skills-card-title-color);
  margin-bottom: 12px;
}
.skills-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--skills-card-subtitle-color);
  line-height: 1.6;
}

/* Card top header */
.skills-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.card-number {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--skills-card-number-color);
  opacity: 0.5;
}

/* Icon box */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box i {
  width: 24px;
  height: 24px;
}
.icon-uiux {
  background-color: var(--skills-card-icon-1-background-color);
  color: var(--skills-card-icon-1-color);
}
.icon-programming {
  background-color: var(--skills-card-icon-2-background-color);
  color: var(--skills-card-icon-2-color);
}
.icon-frontend {
  background-color: var(--skills-card-icon-3-background-color);
  color: var(--skills-card-icon-3-color);
}
.icon-visual {
  background-color: var(--skills-card-icon-4-background-color);
  color: var(--skills-card-icon-4-color);
}
.icon-version {
  background-color: var(--skills-card-icon-5-background-color);
  color: var(--skills-card-icon-5-color);
}

/* Card Tags */
.card-tags {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.skill-tag {
  background-color: #dbe4e7;
  color: #586064;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .skills-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .skills-bento-grid {
    grid-template-columns: 1fr;
  }
  .skills-card {
    gap: 24px;
    justify-content: flex-start;
    min-height: auto;
  }
  .card-uiux {
    grid-column: span 1;
    padding: 32px;
  }
  .card-uiux .card-bottom h3 {
    font-size: 24px;
  }
  .card-uiux p {
    font-size: 16px;
  }
}

/* About Section Cards Redesign */
.about-details-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-card {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
}

.card-intro {
  background-color: var(--about-intro-card-background-color);
  box-shadow: 0px 20px 40px 0px rgba(43,52,55,0.04);
}

.card-contact {
  background-color: var(--about-contact-card-background-color);
}

.card-intro .icon-box {
  background-color: var(--about-intro-card-icon-background-color);
  color: var(--about-intro-card-icon-color);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-contact .icon-box {
  background-color: var(--about-contact-card-icon-background-color);
  color: var(--about-contact-card-icon-color);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--about-intro-card-title-color);
  margin-bottom: 12px;
}

.card-intro p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--about-intro-card-subtitle-color);
  line-height: 1.6;
}

.contact-info-flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-flex .contact-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-field .field-label {
  font-size: 12px;
  color: var(--about-contact-card-subtitle-color);
}

.contact-field .field-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--about-contact-card-title-color);
}

.about-card .btn-black {
  margin-top: 0;
}
@media (max-width: 600px) {
  .contact-info-flex {
    flex-direction: column;
  }
}

.hidden-card {
  display: none;
}

/* Mobile Device Layout Resets & Responsive Scaling */
@media (max-width: 768px) {
  .section-header-block {
    margin-bottom: 48px;
  }
  .section-tag {
    font-size: 10px;
    margin-bottom: 12px;
  }
  .section-title {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .section-subtitle {
    font-size: 16px;
    line-height: 24px;
    margin-top: 12px;
  }
  
  /* Disable Hover Animations on Mobile Touch Devices */
  .nav-link:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-gray-dark) !important;
  }
  .nav-link.active:hover {
    background: #4F39F6 !important;
    color: white !important;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2) !important;
  }
  .feature-item:hover .feature-media-item {
    transform: none !important;
  }
  .skills-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .journey-card:hover .journey-card-inner {
    transform: none !important;
  }
  .journey-card.flipped:hover .journey-card-inner,
  .journey-card.flipped .journey-card-inner {
    transform: rotateY(180deg) !important;
  }
  .connect-btn.primary:hover,
  .connect-btn.secondary:hover,
  .btn-black:hover, 
  .btn-outline:hover, 
  .btn-dark:hover, 
  .btn-download-cv:hover,
  .footer-external:hover {
    transform: none !important;
  }
  
  /* Reset feature layout image effects to static native bounds */
  .feature-item:hover .project-6sense-img,
  .feature-item:hover .project-ds-img,
  .feature-item:hover .project-crm-img {
    transform: translateY(56px) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  }
  .feature-item:hover .agami-img,
  .feature-item:hover .dfa-img {
    opacity: 1 !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  }
}
