/* ============================================
   DESIGN SYSTEM — Kiran Biradar Portfolio
   Glassmorphic + Bold Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables (Light Theme) --- */
:root {
  --bg-page: #f0ede6;
  --bg-card: rgba(255, 255, 255, 0.55);
  --bg-card-inner: rgba(255, 255, 255, 0.6);
  --bg-pill: rgba(240, 240, 240, 0.8);
  --bg-nav: rgba(255, 255, 255, 0.6);
  --bg-footer: #111111;
  --bg-input: rgba(255, 255, 255, 0.7);
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-on-dark: #f0ede6;
  --border-color: rgba(200, 200, 210, 0.4);
  --border-card: rgba(255, 255, 255, 0.7);
  --border-input: rgba(180, 180, 190, 0.5);
  --green-status: #22c55e;
  --accent: #111111;
  --accent-hover: #333333;
  --arrow-bg: rgba(220, 220, 225, 0.6);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255,255,255,0.7) inset;
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.06);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 50px;
  --container-width: 1200px;
  --container-narrow: 780px;
  --section-gap: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-title-size: clamp(56px, 10vw, 130px);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg-page: #0a0a0a;
  --bg-card: rgba(22, 22, 24, 0.85);
  --bg-card-inner: rgba(32, 32, 36, 0.7);
  --bg-pill: rgba(42, 42, 46, 0.9);
  --bg-nav: rgba(18, 18, 20, 0.8);
  --bg-footer: #060606;
  --bg-input: rgba(32, 32, 36, 0.8);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a8;
  --text-muted: #6a6a72;
  --text-on-dark: #f0f0f0;
  --border-color: rgba(60, 60, 68, 0.5);
  --border-card: rgba(50, 50, 56, 0.6);
  --border-input: rgba(70, 70, 78, 0.5);
  --accent: #f0f0f0;
  --accent-hover: #cccccc;
  --arrow-bg: rgba(50, 50, 56, 0.7);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.03) inset;
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* --- Smooth Theme Transition --- */
*, *::before, *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================
   STICKY NAVIGATION
   ============================================ */

.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 10px 12px 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-nav);
  max-width: 600px;
  width: auto;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  margin-right: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--arrow-bg);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-primary);
  stroke: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-page);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 8px 24px;
  transition: all var(--transition);
}

.mobile-menu a:hover {
  opacity: 0.6;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
}

/* ============================================
   LAYOUT
   ============================================ */

.page-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Card */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

/* Section Label Pill */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-pill);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}

/* Inner Card */
.inner-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.inner-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-title-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-title-line {
  font-size: var(--hero-title-size);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  opacity: 0.12;
  text-transform: uppercase;
  user-select: none;
}

.hero-title-line.outline {
  -webkit-text-stroke: 2px var(--text-primary);
  color: transparent;
  opacity: 0.15;
}

.hero-photo-float {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 3px solid var(--bg-page);
}

.hero-info-below {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.hero-name {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 500px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-pill);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-status);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-page);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-pill);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.hero-decorative {
  position: absolute;
  font-size: 48px;
  opacity: 0.7;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-decorative.star-1 {
  top: 25%;
  left: 12%;
  animation-delay: 0s;
}

.hero-decorative.star-2 {
  bottom: 30%;
  right: 10%;
  animation-delay: 3s;
}

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

.hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: var(--container-width);
  margin-top: 60px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text p:last-of-type {
  margin-bottom: 24px;
}

/* Skills Preview */
.skills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  transition: all var(--transition);
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.skill-tag svg,
.skill-tag img {
  width: 16px;
  height: 16px;
}

/* About Right Card */
.about-card-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   FEATURED PROJECTS SECTION
   ============================================ */

.projects-section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.view-all-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  transform: translateY(-2px);
}

.view-all-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.view-all-link:hover svg {
  transform: translateX(4px);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-detail-link {
  color: inherit;
  text-decoration: none;
}

.project-detail-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-bottom: 8px;
}

.project-category {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

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

.project-tech-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-pill);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.project-action-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--arrow-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all var(--transition);
}

.project-action-btn:hover {
  background: var(--accent);
  color: var(--bg-page);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.arrow-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--arrow-bg);
  flex-shrink: 0;
  transition: all var(--transition);
}

.arrow-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-primary);
}

.project-card-actions .arrow-btn:hover {
  background: var(--accent);
}

.project-card-actions .arrow-btn:hover svg {
  stroke: var(--bg-page);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-left p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  transition: stroke var(--transition);
}

.social-link:hover svg {
  stroke: var(--bg-page);
}

/* Contact Form */
.contact-form-card {
  padding: 32px;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(240, 240, 240, 0.08);
}

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

.form-group .field-error {
  font-size: 12px;
  color: #ef4444;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.error .field-error {
  display: block;
}

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

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  background: var(--accent);
  color: var(--bg-page);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: var(--green-status);
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: 80px 0 40px;
  margin-top: 40px;
}

[data-theme="dark"] .site-footer {
  background: #060606;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-tagline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f0ede6;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: rgba(240, 237, 230, 0.5);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 237, 230, 0.8);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(240, 237, 230, 0.15);
  transition: all var(--transition);
}

.footer-links a:hover {
  background: rgba(240, 237, 230, 0.1);
  color: #f0ede6;
}

.footer-contact-email {
  font-size: 15px;
  color: rgba(240, 237, 230, 0.7);
  transition: color var(--transition);
}

.footer-contact-email:hover {
  color: #f0ede6;
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 48px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(240, 237, 230, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(240, 237, 230, 0.4);
}

/* ============================================
   RESUME PAGE
   ============================================ */

.resume-page {
  padding: 120px 0 60px;
}

.resume-header {
  text-align: center;
  margin-bottom: 48px;
}

.resume-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.resume-header p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.resume-contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.resume-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.resume-contact-item svg {
  width: 14px;
  height: 14px;
}

.resume-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resume-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-pill);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

/* Experience Timeline */
.experience-list,
.education-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-item,
.education-item {
  padding: 24px;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.company-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-name {
  font-size: 16px;
  font-weight: 700;
}

.experience-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.experience-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.experience-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.experience-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.experience-footer svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Education */
.school-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.degree-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.education-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.education-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.education-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.education-footer svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Certifications */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
}

.cert-title {
  font-size: 15px;
  font-weight: 600;
}

.cert-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cert-date svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

/* Skills Grid */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.skill-category-card {
  padding: 24px;
}

.skill-category-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.skill-category-items .skill-tag {
  font-size: 12px;
  padding: 6px 12px;
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

.project-detail-page {
  padding: 100px 0 60px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-card-inner);
  transition: all var(--transition);
}

.back-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card);
  transform: translateX(-4px);
}

.back-btn svg {
  width: 16px;
  height: 16px;
}

.project-page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.project-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.detail-cell {
  padding: 16px;
  background: var(--bg-card-inner);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.detail-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
}

.project-description {
  padding-top: 8px;
}

.desc-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.project-description p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: auto;
}

.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  cursor: pointer;
}

.next-project:hover {
  transform: translateY(-2px);
}

.next-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.next-name {
  font-size: 20px;
  font-weight: 700;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in.delay-1 { transition-delay: 0.1s; }
.animate-in.delay-2 { transition-delay: 0.2s; }
.animate-in.delay-3 { transition-delay: 0.3s; }
.animate-in.delay-4 { transition-delay: 0.4s; }

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .site-nav {
    padding: 10px 12px 10px 20px;
  }

  .hero-section {
    padding: 100px 16px 60px;
    min-height: 90vh;
  }

  :root {
    --hero-title-size: clamp(40px, 14vw, 80px);
  }

  .hero-photo-float {
    width: 140px;
    height: 170px;
    bottom: -20px;
  }

  .hero-info-below {
    margin-top: 40px;
  }

  .hero-bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

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

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-decorative {
    display: none;
  }

  .resume-contact-row {
    flex-direction: column;
    align-items: center;
  }

  .skills-categories {
    grid-template-columns: 1fr;
  }

  .project-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-left h2 {
    font-size: clamp(28px, 8vw, 42px);
  }
}

@media (max-width: 480px) {
  .page-wrapper,
  .page-wrapper-narrow {
    padding: 0 16px;
  }

  .section-card {
    padding: 20px;
    border-radius: 16px;
  }

  .inner-card {
    padding: 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }
}

/* ============================================
   PROJECT DETAILS PAGE LAYOUT
   ============================================ */

.project-cols-layout {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.project-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-side-col {
  position: sticky;
  top: 100px;
}

/* Project Info Sidebar Card */
.project-info-card {
  padding: 28px;
}

.project-info-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.project-info-cell {
  margin-bottom: 16px;
}

.project-info-cell:last-of-type {
  margin-bottom: 24px;
}

.project-info-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.project-info-value {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  margin-top: 12px;
}

.info-btn.live-demo {
  background: var(--text-primary);
  color: var(--bg-page);
  border: 1px solid var(--text-primary);
}

.info-btn.live-demo:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.info-btn.github-repo {
  background: var(--bg-card-inner);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.info-btn.github-repo:hover {
  background: var(--bg-pill);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.info-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Bento Showcase Images Grid */
.project-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

.project-images-grid .image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
}

.project-images-grid .image-wrapper.span-1 { grid-column: span 1; }
.project-images-grid .image-wrapper.span-2 { grid-column: span 2; }
.project-images-grid .image-wrapper.span-3 { grid-column: span 3; }

.project-images-grid .image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-images-grid .image-wrapper:hover img {
  transform: scale(1.03);
}

/* Bento Metric Cards */
.metric-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent) 0%, rgba(20,22,25,0.95) 100%);
  color: var(--bg-page);
  border: none;
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .metric-bento-card {
  background: linear-gradient(135deg, var(--accent) 0%, rgba(10,10,12,0.95) 100%);
}

.metric-number {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Responsive detail page */
@media (max-width: 900px) {
  .project-cols-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-side-col {
    position: static;
  }

  .project-images-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-images-grid .image-wrapper.span-2,
  .project-images-grid .image-wrapper.span-3 {
    grid-column: span 1;
    height: auto;
  }
  
  .metric-bento-card {
    grid-column: span 1;
    height: auto;
    min-height: 140px;
  }
}


