/* ==========================================================================
   Sourag Anil - Luxury White Paper-Like Design System & CSS Architecture
   ========================================================================== */

:root {
  /* White Paper Design Tokens */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --color-primary: #2563eb;
  --color-accent: #4f46e5;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #e11d48;
  
  --border-color: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(37, 99, 235, 0.3);
  
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(15, 23, 42, 0.08);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 35px rgba(37, 99, 235, 0.14);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent);
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* Glassmorphism Paper Cards */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 40%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glass:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Top GSAP Scroll Progress Indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #4f46e5, #059669);
  z-index: 3000;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* GSAP Custom Cursor */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

body.cursor-hover #cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--color-accent);
  background-color: rgba(79, 70, 229, 0.08);
}

/* Header & Floating Navigation */
#main-header {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1240px;
  z-index: 1000;
  transition: all 0.4s ease;
}

.header-container {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 0.65rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

#main-header.scrolled .header-container {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-code { color: var(--color-primary); }
.logo-accent { color: var(--color-accent); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-success);
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.2rem;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.25s ease;
}

nav a:hover, nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.icon-btn {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
}

.btn-terminal {
  background: #0f172a;
  color: #38bdf8;
  font-family: var(--font-mono);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

.btn-terminal:hover {
  background: #1e293b;
  color: #38bdf8;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 7rem;
}

#hero-canvas-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text-block {
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--color-primary);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.typewriter-container {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.typewriter-prefix { color: var(--color-primary); font-weight: 600; }
.typewriter-text { color: var(--color-accent); font-weight: 700; }

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Quick Stats Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.stat-card {
  padding: 1.2rem 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-plus {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 0.2rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  padding: 2.2rem;
}

.about-icon {
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Skill Tabs & Matrix */
.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.skill-tab {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.skill-tab.active, .skill-tab:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.8rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(79, 70, 229, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

.skill-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  min-height: 2.8rem;
}

.skill-bar {
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
  border-radius: 4px;
  transition: width 1s ease;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.project-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.project-card:hover .project-img-wrapper img {
  transform: scale(1.06);
}

.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.project-info {
  padding: 1.8rem;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-primary);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.project-actions {
  display: flex;
  gap: 0.8rem;
}

/* CLI Terminal Section */
.terminal-window {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
  background: #1e293b;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
}

.terminal-line {
  margin-bottom: 0.4rem;
}

.term-highlight { color: #38bdf8; font-weight: 600; }
.term-cmd { color: #f43f5e; font-weight: 600; }
.term-success { color: #34d399; }
.term-error { color: #fb7185; }

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-prompt {
  font-family: var(--font-mono);
  color: #38bdf8;
  font-weight: 600;
  margin-right: 0.8rem;
  font-size: 0.88rem;
}

#terminal-input {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #4f46e5, #059669);
}

.timeline-item {
  position: relative;
  margin-left: 50px;
  margin-bottom: 2.5rem;
  padding: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 2.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}

.timeline-company {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info {
  padding: 2.5rem;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-list {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-item i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.contact-item strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.social-row {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-icon:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.contact-form {
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

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

.modal-card {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-color: var(--border-glow);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.3);
}

.resume-modal-card {
  background: #ffffff;
}

.resume-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.8rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.resume-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.resume-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resume-header-actions .modal-close {
  position: static;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.resume-header-actions .modal-close:hover {
  background: var(--color-danger);
  color: #ffffff;
  border-color: var(--color-danger);
}

.resume-preview-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  background: #f1f5f9;
}

.resume-sheet {
  background: #ffffff !important;
  color: #1e293b !important;
  padding: 2.5rem 2.8rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  line-height: 1.6;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.res-name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: -0.5px;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.res-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0284c7 !important;
  margin-bottom: 0.4rem;
}

.res-contact-bar {
  font-size: 0.85rem;
  color: #64748b !important;
  font-weight: 500;
}

.res-divider {
  height: 2px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  margin: 1rem 0 1.5rem 0;
  border-radius: 2px;
}

.res-sec {
  margin-bottom: 1.6rem;
}

.res-sec-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a !important;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid #cbd5e1;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.res-summary-text {
  font-size: 0.92rem;
  color: #334155 !important;
  line-height: 1.6;
}

.res-job-item {
  margin-bottom: 1.2rem;
}

.res-job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.res-job-title {
  font-weight: 700;
  color: #0f172a !important;
  font-size: 0.98rem;
}

.res-job-date {
  font-family: var(--font-mono);
  color: #0284c7 !important;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.res-job-company {
  color: #475569 !important;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.res-job-bullets {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: #334155 !important;
  display: grid;
  gap: 0.35rem;
}

.res-skills-list {
  list-style: square;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: #334155 !important;
  display: grid;
  gap: 0.4rem;
}

/* Footer */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Lenis Support */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .mobile-toggle { display: block; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: none;
    box-shadow: var(--shadow-md);
  }
  nav.show { display: block; }
  nav ul { flex-direction: column; gap: 1rem; }
  .toast-card { right: 1rem; left: 1rem; bottom: 1rem; max-width: none; }
}

/* Custom Luxury Toast Notification UI */
.toast-card {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.8rem;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #059669;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(5, 150, 105, 0.2);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
}

.toast-card.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.8rem;
  color: #059669;
  flex-shrink: 0;
}

.toast-card.error {
  border-color: #e11d48;
  box-shadow: 0 15px 40px rgba(225, 29, 72, 0.2);
}

.toast-card.error .toast-icon {
  color: #e11d48;
}

.toast-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.toast-content p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Print & Native Browser PDF Export Stylesheet (@media print)
   ========================================================================== */
@media print {
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body * {
    visibility: hidden !important;
  }

  #scroll-progress, #cursor-dot, #cursor-ring, header, .hero-section, .section, footer, .modal-overlay {
    display: none !important;
  }

  #resume-modal,
  #resume-modal *,
  #resume-printable-sheet,
  #resume-printable-sheet * {
    visibility: visible !important;
  }

  #resume-modal {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .resume-modal-card {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .resume-preview-header {
    display: none !important;
  }

  .resume-preview-body {
    padding: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .resume-sheet {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .res-name { color: #000000 !important; }
  .res-subtitle { color: #0284c7 !important; }
  .res-job-title, .res-sec-title { color: #000000 !important; }
  .res-job-date { color: #0284c7 !important; }
}
