/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Dark Greyish Obsidian Theme with Fluid Rainbow Rays & Sticky Sidebar
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
  --bg-dark: #121316;
  --bg-dark-alt: #16171c;
  --bg-card: #1c1d24;
  --bg-card-hover: #23252e;
  --bg-card-subtle: rgba(255, 255, 255, 0.035);
  
  --accent-orange: #ff5c36;
  --accent-orange-hover: #ff471b;
  --accent-orange-glow: rgba(255, 92, 54, 0.35);
  --accent-orange-subtle: rgba(255, 92, 54, 0.14);
  
  --accent-lime: #b9ff24;
  --accent-lime-dark: #0d1a00;
  
  --text-white: #ffffff;
  --text-dim: #a6abb8;
  --text-muted: #737887;
  --text-ghost: #3a3d4a;
  --text-ghost-subtle: rgba(255, 255, 255, 0.22);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-orange: rgba(255, 92, 54, 0.4);

  --font-main: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-card: 28px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-pill: 9999px;

  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background ambient radial gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 92, 54, 0.04) 0%, rgba(18, 19, 22, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(185, 255, 36, 0.03) 0%, rgba(18, 19, 22, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Fluid Canvas */
#fluidCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- Floating Navigation Bar --- */
.floating-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(28, 29, 36, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  color: #8f94a4;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.09);
}

.nav-link.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.14);
}

.nav-link.active svg {
  stroke: var(--accent-orange);
}

.nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #23252e;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Layout Container --- */
.page-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 32px 60px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  position: relative;
  z-index: 2;
}

/* --- Left Column: Sticky Profile Card (Dark Greyish Theme) --- */
.sidebar-column {
  position: relative;
}

.sticky-profile-card {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  color: #ffffff;
  border-radius: 32px;
  padding: 24px 24px 28px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

/* Orange decorative SVG curves */
.card-decor-top {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 2;
}

.card-decor-mid {
  position: relative;
  height: 48px;
  margin: -10px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decor-curve-svg {
  position: absolute;
  width: 100%;
  height: 48px;
  pointer-events: none;
}

.decor-flame-badge {
  position: relative;
  z-index: 3;
  width: 32px;
  height: 32px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 92, 54, 0.5);
}

.decor-flame-badge svg {
  width: 17px;
  height: 17px;
  fill: #ffffff;
}

/* Profile Photo Frame */
.profile-photo-wrapper {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: #14151a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sticky-profile-card:hover .profile-photo-wrapper img {
  transform: scale(1.025);
}

/* Profile Details */
.profile-name {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-top: 6px;
  margin-bottom: 4px;
}

.profile-tagline {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  font-weight: 450;
  max-width: 290px;
  margin: 0 auto 16px;
}

/* Profile Availability Tag */
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Social Media Icons Row */
.profile-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c5c9d6;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 92, 54, 0.4);
}

/* Action Button */
.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.profile-action-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 92, 54, 0.38);
}

/* --- Right Column: Sections --- */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 92px;
}

section[id] {
  scroll-margin-top: 140px;
}

/* Typography signature header: Two-tone big titles */
.section-header {
  margin-bottom: 32px;
  padding-top: 12px;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.title-white {
  color: var(--text-white);
  display: block;
}

.title-ghost {
  color: var(--text-ghost);
  display: block;
  opacity: 0.95;
  transition: color 0.3s;
}

/* Hero Section */
.hero-section {
  padding-top: 8px;
}

.hero-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 590px;
  margin-bottom: 36px;
}

/* Metrics row */
.metrics-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-number {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* Bento Cards Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bento-card {
  border-radius: 22px;
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 175px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Bento Card 1: Warm Orange */
.bento-orange {
  background: linear-gradient(135deg, #ff603a 0%, #ff4b20 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 92, 54, 0.24);
}

.bento-orange:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(255, 92, 54, 0.4);
}

/* Bento Card 2: Electric Lime */
.bento-lime {
  background: var(--accent-lime);
  color: var(--accent-lime-dark);
  box-shadow: 0 12px 30px rgba(185, 255, 36, 0.18);
  position: relative;
  overflow: hidden;
}

.bento-lime:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(185, 255, 36, 0.32);
}

.lime-pattern-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.22;
}

.bento-top-icon {
  margin-bottom: 24px;
}

.bento-top-icon svg {
  width: 28px;
  height: 28px;
}

.bento-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.bento-text-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.bento-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.82;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bento-btn-arrow {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.bento-orange .bento-btn-arrow {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.bento-lime .bento-btn-arrow {
  border: 1.5px solid rgba(13, 26, 0, 0.35);
  color: var(--accent-lime-dark);
}

.bento-card:hover .bento-btn-arrow {
  transform: translateX(3px);
}

/* --- Recent Projects Section --- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.project-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.project-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.project-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #232530;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover .project-thumb img {
  transform: scale(1.05);
}

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

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-subtitle {
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 450;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-tag-pill {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  color: #b2b7c6;
  padding: 2px 8px;
  border-radius: 6px;
}

.project-arrow-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-item:hover .project-arrow-icon {
  transform: translate(3px, -3px);
  background: var(--accent-orange-subtle);
}

.project-arrow-icon svg {
  width: 20px;
  height: 20px;
}

/* --- Experience Section --- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px 26px;
  transition: var(--transition-smooth);
}

.experience-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-company-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.exp-company {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-role {
  font-size: 14px;
  color: var(--accent-orange);
  font-weight: 600;
}

.exp-date {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 8px;
}

.exp-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 13.5px;
  line-height: 1.55;
  color: #adb2c0;
  position: relative;
  padding-left: 18px;
}

.exp-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 14px;
}

/* Education Box */
.education-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.edu-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.edu-subtitle {
  font-size: 13.5px;
  color: var(--text-dim);
}

.edu-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.edu-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.edu-badge-cgpa {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.edu-badge-date {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

/* --- Tech Stack & Skills Section --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 22px;
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

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

.skill-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-cat-icon svg {
  width: 18px;
  height: 18px;
}

.skill-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: #cfd3dc;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 11px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.skill-chip:hover {
  background: rgba(255, 92, 54, 0.12);
  color: #fff;
  border-color: rgba(255, 92, 54, 0.35);
}

/* --- Research, Patents & Thoughts Section --- */
.thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.thought-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-smooth);
  position: relative;
}

.thought-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-orange);
  transform: translateY(-2px);
}

.thought-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.thought-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
}

.thought-arrow {
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.thought-card:hover .thought-arrow {
  transform: translate(3px, -3px);
}

.thought-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.thought-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.thought-tag {
  color: var(--accent-orange);
  font-weight: 600;
}

/* --- Contact Section --- */
.contact-section {
  padding-bottom: 20px;
}

.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 32px 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #adb2c0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 92, 54, 0.18);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #5d6170;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-btn {
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(255, 92, 54, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit-btn:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 92, 54, 0.48);
}

.form-submit-btn:active {
  transform: translateY(0);
}

/* Contact Badges Row */
.direct-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.direct-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9ccd5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.direct-contact-pill svg {
  color: var(--accent-orange);
  width: 15px;
  height: 15px;
}

.direct-contact-pill:hover {
  background: rgba(255, 92, 54, 0.1);
  border-color: rgba(255, 92, 54, 0.35);
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 40px 20px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent-orange);
}

/* --- Modal for Project Details --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #1c1d25;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.modal-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #c0c4d0;
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Toast message */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1c1d25;
  color: #fff;
  border: 1px solid var(--accent-orange);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1080px) {
  .page-wrapper {
    grid-template-columns: 320px 1fr;
    gap: 36px;
    padding: 90px 24px 50px;
  }
}

@media (max-width: 860px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 85px 20px 40px;
  }

  .sticky-profile-card {
    position: relative;
    top: 0;
    max-width: 440px;
    margin: 0 auto;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .floating-nav {
    top: 14px;
    padding: 4px 6px;
  }
  
  .nav-link {
    width: 36px;
    height: 36px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .metrics-row {
    gap: 24px;
  }

  .project-left {
    gap: 14px;
  }

  .project-thumb {
    width: 58px;
    height: 58px;
  }
}
