/* ===== CSS Variables & Theme ===== */
:root {
  /* Light Theme */
  --background: #fafafa;
  --foreground: #171717;
  --card: #f5f5f5;
  --card-foreground: #171717;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f0f0f0;
  --secondary-foreground: #171717;
  --muted: #f0f0f0;
  --muted-foreground: #737373;
  --accent: #e5e5e5;
  --accent-foreground: #171717;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #171717;
  --radius: 0.75rem;
  
  /* Contribution Colors - Light */
  --contrib-0: #ebedf0;
  --contrib-1: #9be9a8;
  --contrib-2: #40c463;
  --contrib-3: #30a14e;
  --contrib-4: #216e39;
}

.dark {
  /* Dark Theme */
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #171717;
  --card-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #0a0a0a;
  --secondary: #262626;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --accent: #333333;
  --accent-foreground: #fafafa;
  --border: #333333;
  --input: #333333;
  --ring: #fafafa;
  
  /* Contribution Colors - Dark */
  --contrib-0: #161b22;
  --contrib-1: #0e4429;
  --contrib-2: #006d32;
  --contrib-3: #26a641;
  --contrib-4: #39d353;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* ===== Selection ===== */
::selection {
  background-color: rgba(0, 0, 0, 0.1);
}

.dark ::selection {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background-color: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.dark .nav {
  background-color: rgba(10, 10, 10, 0.8);
}

.nav-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-logo:hover {
  color: var(--muted-foreground);
  transform: scale(1.02);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--foreground);
}

.nav-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--foreground);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-indicator {
  transform: scaleX(1);
}

.theme-toggle {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--accent);
  transform: scale(1.1);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.icon-sun,
.icon-moon {
  display: none;
}

.dark .icon-sun {
  display: block;
}

html:not(.dark) .icon-moon {
  display: block;
}

/* Mobile Navigation */
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  padding: 0.5rem;
  color: var(--foreground);
}

.icon-close {
  display: none;
}

.menu-open .icon-menu {
  display: none;
}

.menu-open .icon-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-list {
  padding: 1rem 1.5rem;
}

.mobile-menu-item {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-bottom: 0.5rem;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
  background-color: var(--secondary);
  color: var(--foreground);
}

/* Desktop Media Query */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .mobile-menu {
    display: none;
  }
}

/* ===== Main Content ===== */
.main {
  min-height: 100vh;
}

.page-container {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-container.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.page-container.fade-in {
  opacity: 0;
  transform: translateY(-10px);
}

/* ===== About Section ===== */
.about-section {
  min-height: 100vh;
  padding: 6rem 1rem 4rem;
}

.about-container {
  max-width: 64rem;
  margin: 0 auto;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  flex-shrink: 0;
}

.hero-info {
  flex: 1;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #10b981;
}

.hero-quote {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin-bottom: 1rem;
}

.hero-quote .highlight {
  color: var(--foreground);
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

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

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.dark .social-link {
  background-color: rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background-color: var(--secondary);
  color: var(--foreground);
  transform: scale(1.05);
}

.social-link:active {
  transform: scale(0.95);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Contribution Grid */
.contribution-card {
  padding: 1rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.contribution-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(120, 120, 120, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.contribution-card:hover::before {
  opacity: 1;
}

.dark .contribution-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.contribution-card > * {
  position: relative;
  z-index: 1;
}

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

.contribution-title {
  font-size: 0.875rem;
  color: var(--foreground);
}

.contribution-wrapper {
  display: flex;
  gap: 1rem;
}

.contribution-main {
  flex: 1;
  overflow-x: auto;
}

.contribution-inner {
  min-width: fit-content;
}

.months-row {
  display: flex;
  margin-bottom: 0.5rem;
  margin-left: 2rem;
}

.month-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  width: calc((10px + 3px) * 4.4);
  text-align: left;
}

.grid-container {
  display: flex;
}

.days-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-right: 0.5rem;
}

.day-label {
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.25rem;
  width: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.weeks-grid {
  display: flex;
  gap: 3px;
}

.week-column {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contrib-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, opacity 0.3s ease;
  opacity: 0;
  animation: cellFadeIn 0.3s ease forwards;
}

.dark .contrib-cell {
  border-color: rgba(255, 255, 255, 0.05);
}

.contrib-cell:hover {
  transform: scale(1.3);
}

@keyframes cellFadeIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.contrib-cell.level-0 { background-color: var(--contrib-0); }
.contrib-cell.level-1 { background-color: var(--contrib-1); }
.contrib-cell.level-2 { background-color: var(--contrib-2); }
.contrib-cell.level-3 { background-color: var(--contrib-3); }
.contrib-cell.level-4 { background-color: var(--contrib-4); }

.contribution-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.learn-link {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.learn-link:hover {
  color: var(--foreground);
}

.legend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.legend-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0 0.25rem;
}

.legend-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .legend-cell {
  border-color: rgba(255, 255, 255, 0.05);
}

/* Year Selector */
.year-selector {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.year-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.year-btn:hover {
  color: var(--foreground);
}

.year-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Content Grid */
.content-grid {
  display: grid;
  gap: 1.5rem;
}

/* Cards */
.card {
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(120, 120, 120, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.dark .card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

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

.card.dragging {
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.dark .card.dragging {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.3s; }

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-title .icon {
  color: var(--primary);
}

.card-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 0.375rem;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 0.75rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: rgba(115, 115, 115, 0.3);
  flex-shrink: 0;
}

.timeline-dot.active {
  background-color: var(--primary);
}

.timeline-line {
  width: 1px;
  flex: 1;
  background-color: var(--border);
}

.timeline-content {
  padding-bottom: 1rem;
}

.timeline-year {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--muted-foreground);
}

.timeline-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.timeline-company {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .about-section {
    padding: 6rem 1.5rem 4rem;
  }
  
  .hero {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .avatar {
    width: 8rem;
    height: 8rem;
    font-size: 2.25rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .contribution-card {
    padding: 1.5rem;
  }
  
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Projects Section ===== */
.projects-section {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

.projects-container {
  max-width: 72rem;
  margin: 0 auto;
}

.section-header {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}

.site-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 4rem;
}

.site-card {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.dark .site-card {
  background-color: rgba(255, 255, 255, 0.02);
}

.site-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(120, 120, 120, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.site-card:hover::before {
  opacity: 1;
}

.dark .site-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.site-card > * {
  position: relative;
  z-index: 1;
}

.site-card.dragging {
  cursor: grabbing;
  transform: scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.dark .site-card.dragging {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.site-card:nth-child(1) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.15s; }
.site-card:nth-child(3) { animation-delay: 0.2s; }
.site-card:nth-child(4) { animation-delay: 0.25s; }

.site-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background-color: var(--secondary);
  transform: translateY(-4px);
}

.dark .site-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.site-card svg {
  width: 24px;
  height: 24px;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.site-card:hover svg {
  color: var(--foreground);
}

.site-card h3 {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.site-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.dark .project-card {
  background-color: rgba(255, 255, 255, 0.02);
}

.project-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(120, 120, 120, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 1;
}

.dark .project-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card.dragging {
  cursor: grabbing;
  transform: scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.dark .project-card.dragging {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }

.project-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.dark .project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  padding: 0.375rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--foreground);
}

.project-link svg {
  width: 18px;
  height: 18px;
}

.project-desc {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.project-tag {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  background-color: var(--background);
  color: var(--muted-foreground);
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .site-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Contact Section ===== */
.contact-section {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

.contact-container {
  max-width: 56rem;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease forwards;
}

.contact-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info {
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.dark .contact-link {
  background-color: rgba(255, 255, 255, 0.02);
}

.contact-link:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.dark .contact-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-link-icon {
  padding: 0.75rem;
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.contact-link:hover .contact-link-icon {
  border-color: rgba(0, 0, 0, 0.2);
}

.dark .contact-link:hover .contact-link-icon {
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-link-icon svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.contact-link:hover .contact-link-icon svg {
  color: var(--foreground);
}

.contact-link-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-link-value {
  font-weight: 500;
  color: var(--foreground);
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.contact-location svg {
  width: 18px;
  height: 18px;
}

/* Contact Form */
.contact-form {
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .form-input,
.dark .form-textarea {
  background-color: rgba(255, 255, 255, 0.02);
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.dark .form-input:focus,
.dark .form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-textarea {
  resize: none;
  min-height: 8rem;
}

.form-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--foreground);
  color: var(--background);
  font-weight: 500;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
