/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #e5e7eb;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #6366F1;
  color: white;
  text-shadow: none;
}

::selection {
  background: #6366F1;
  color: white;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #374151;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles - Resend 2025 rebrand inspired design
   ========================================================================== */

/* CSS Variables - Dark mode first with Resend's color system */
:root {
  /* Dark mode primary colors */
  --bg-primary: #0f0f12;
  --bg-secondary: #11111a;
  --bg-tertiary: #161621;
  --bg-card: rgba(28, 28, 40, 0.9);
  --bg-hover: rgba(48, 48, 70, 0.85);
  
  /* Neutral grays inspired by physical materials */
  --eggshell: #fafafa;
  --iron: #f4f4f5;
  --stone: #e5e7eb;
  --zinc: #d1d5db;
  --slate: #94a3b8;
  --gray: #6b7280;
  --muted: #71717a;
  
  /* Accent colors */
  --accent-color: #6366F1;
  --accent-hover: #5558e3;
  --accent-subtle: #4f46e5;
  
  /* Text colors */
  --text-primary: #fafafa;
  --text-secondary: #d1d5db;
  --text-muted: #94a3b8;
  --text-inverse: #0a0a0a;
  
  /* Border and shadows */
  --border-color: rgba(148, 163, 184, 0.18);
  --border-subtle: rgba(148, 163, 184, 0.1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  
  /* Material-inspired gradients */
  --gradient-surface: linear-gradient(180deg, #11111a 0%, #0d0d12 100%);
  --gradient-accent: linear-gradient(135deg, #6366F1 0%, #4f46e5 100%);
  --gradient-card: linear-gradient(145deg, rgba(45, 45, 68, 0.75) 0%, rgba(20, 20, 32, 0.95) 100%);
  --glow-primary: rgba(99, 102, 241, 0.18);
  --glow-secondary: rgba(56, 189, 248, 0.12);
  --glow-muted: rgba(148, 163, 184, 0.08);
  
  /* Typography */
  --font-serif: 'Space Mono', monospace;
  --font-sans: 'Space Mono', monospace;
  
  /* Spacing and radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode for accessibility */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f9fafb;
    
    --text-primary: #0a0a0a;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --text-inverse: #fafafa;
    
    --border-color: #e5e7eb;
    --border-subtle: #f4f4f5;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --gradient-surface: #ffffff;
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
  }
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography - Resend 2025 rebrand inspired */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
}

p {
  font-family: var(--font-sans);
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

/* Buttons with material-inspired design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn-primary {
  background: var(--gradient-accent);
  color: white;
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #5558e3 0%, #4f46e5 100%);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Navigation with material design */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0a0a0a;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.nav-logo .logo-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

/* Hero Section with dark mode and material textures */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #12121c 0%, #0f0f14 45%, #11111a 100%);
  --section-overlay-soft: rgba(17, 17, 26, 0.94);
  --section-overlay-solid: #11111a;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 18% 22%, var(--glow-primary) 0%, transparent 50%),
    radial-gradient(circle at 82% 18%, var(--glow-secondary) 0%, transparent 52%),
    radial-gradient(circle at 55% 80%, rgba(79, 70, 229, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.highlight {
  color: var(--accent-color);
  position: relative;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  /* Ensure that gradient is always visible */
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  max-width: 320px;
  backdrop-filter: blur(10px);
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.4), 0 15px 15px -5px rgba(0, 0, 0, 0.3);
}

.profile-image-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  border: 4px solid var(--accent-color);
  box-shadow: var(--shadow-lg);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.profile-info p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Section Styles with material design */
section {
  padding: 6rem 0;
  position: relative;
  --section-overlay-soft: rgba(12, 12, 18, 0.92);
  --section-overlay-solid: #0a0a12;
}

section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 180px;
  background: linear-gradient(180deg, rgba(12, 12, 18, 0) 0%, var(--section-overlay-soft) 65%, var(--section-overlay-solid) 100%);
  pointer-events: none;
  z-index: 0;
}

section > * {
  position: relative;
  z-index: 1;
}

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

.section-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* About Section */
.about {
  background: linear-gradient(180deg, #111119 0%, #161626 100%);
  position: relative;
  overflow: hidden;
  --section-overlay-soft: rgba(15, 16, 26, 0.92);
  --section-overlay-solid: #101018;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 75%, rgba(148, 163, 184, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 35%, rgba(79, 70, 229, 0.1) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-text p {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.skills {
  margin-top: 3rem;
}

.skills h3 {
  font-family: var(--font-serif);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.skill-tag {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

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

/* Projects Section with material cards */
.projects {
  background: linear-gradient(180deg, #101018 0%, #151526 100%);
  position: relative;
  overflow: hidden;
  --section-overlay-soft: rgba(14, 15, 25, 0.92);
  --section-overlay-solid: #10101a;
}

.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(56, 189, 248, 0.1) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.projects .container {
  position: relative;
  z-index: 1;
}

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

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.4), 0 15px 15px -5px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

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

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

/* Gradient fade overlay at bottom */
.project-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15, 16, 24, 0.95) 0%, rgba(15, 16, 24, 0.65) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Subtle overlay for hover effect */
.project-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-image::after {
  opacity: 1;
}

/* Project type indicator - modern pill design */
.project-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(28, 28, 28, 0.8);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  z-index: 3;
  transition: var(--transition);
}

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

.project-content {
  padding: 2rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-description {
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.tech-tag {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.project-link span {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.project-link:hover span {
  transform: translateX(3px);
}

/* Contact Section with material design */
.contact {
  background: linear-gradient(180deg, #10101a 0%, #181832 100%);
  position: relative;
  overflow: hidden;
  --section-overlay-soft: rgba(12, 12, 20, 0.9);
  --section-overlay-solid: #0a0a0f;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 18% 30%, var(--glow-primary) 0%, transparent 55%),
    radial-gradient(circle at 82% 65%, rgba(99, 102, 241, 0.1) 0%, transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-description {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-hover);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-accent);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.contact-details h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-details a {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1rem;
}

.contact-note {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.qr-section {
  display: flex;
  justify-content: center;
}

.qr-card {
  background: #1c1c1c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  max-width: 320px;
  width: 100%;
}

.qr-card h3 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.qr-card p {
  font-family: var(--font-sans);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.qr-code {
  width: 220px;
  height: 220px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* Footer with material design */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.footer-brand p {
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-family: var(--font-sans);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-xl);
    padding: 2rem 0;
    gap: 0;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 6.5rem 0 5rem;
    min-height: calc(100vh - 70px);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-image {
    order: -1;
    width: 100%;
  }

  .profile-card {
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  section {
    padding: 4.25rem 0;
  }

  section::after {
    height: 120px;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: stretch;
  }

  .project-card {
    width: 100%;
  }

  .project-image {
    height: 200px;
  }
}

/* Tablet-specific adjustments */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
    max-width: 1000px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .contact-content {
    gap: 3rem;
  }
}

/* Large desktop optimizations */
@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Ultra-wide screen support */
@media only screen and (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }
  
  .hero-title {
    font-size: 5rem;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid an additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
