:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --teal-accent: #0891b2;
  --teal-accent-light: #0ea5e9;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
  --radius: 0.625rem;
}

.dark {
  --background: #1a1a1a;
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #ffffff;
  --muted: #2a2a2a;
  --muted-foreground: #a1a1aa;
  --border: #2a2a2a;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.3;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}
h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

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

.section {
  padding: 5rem 0;
}

.section-muted {
  background-color: var(--muted);
  background-color: rgba(var(--muted), 0.3);
}

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

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-12 {
  gap: 3rem;
}

.text-center {
  text-align: center;
}
.text-teal-accent {
  color: var(--teal-accent);
}
.text-muted-foreground {
  color: var(--muted-foreground);
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-16 {
  margin-bottom: 4rem;
}

.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-16 {
  margin-top: 4rem;
}

.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: transparent;
}

.nav.scrolled {
  background-color: rgba(var(--background), 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px var(--shadow);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--teal-accent);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--teal-accent), #3b82f6);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

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

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--teal-accent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
  color: var(--foreground);
}

.btn-primary {
  background-color: var(--teal-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--teal-accent-light);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--muted);
}

.btn-ghost {
  background-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.card-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* When card-content has padding utility classes, override the default padding */
.card .card-content.p-3 {
  padding: 0.75rem !important;
}

.card .card-content.p-4 {
  padding: 1rem !important;
}

.card .card-content.p-6 {
  padding: 1.5rem !important;
}

.card .card-content.p-8 {
  padding: 2rem !important;
}

.card-body {
  padding: 1.5rem;
}

.card-body-sm {
  padding: 1rem;
}

.card-body-lg {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border);
}

.skills-badge-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 100%;
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 145, 178, 0.05) 0%,
    transparent 50%,
    rgba(59, 130, 246, 0.05) 100%
  );
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.code-block {
  background-color: #2d3748;
  border: 1px solid #1a202c;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #3d4852;
  border-bottom: 1px solid #2d3748;
  width: 100%;
  box-sizing: border-box;
}

.code-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.code-dot-red {
  background-color: #ef4444;
}
.code-dot-yellow {
  background-color: #eab308;
}
.code-dot-green {
  background-color: #22c55e;
}

.code-content {
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-purple {
  color: #a855f7;
}
.code-blue {
  color: #3b82f6;
}
.code-green {
  color: #22c55e;
}
.code-yellow {
  color: #eab308;
}
.code-red {
  color: #ef4444;
}
.code-teal {
  color: var(--teal-accent);
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: between;
  margin-bottom: 0.5rem;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.skill-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: scale(1.2) rotate(-10deg);
}

.skill-progress {
  width: 100%;
  height: 0.5rem;
  background-color: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-accent), #3b82f6);
  border-radius: 9999px;
  transition: width 1s ease;
}

.project-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: transform 0.3s ease;
}

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

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav {
    position: fixed;
  }

  .nav-content {
    padding: 0 1rem;
    height: 3.5rem;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

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

  .code-block {
    overflow: hidden;
  }

  .terminal-content {
    padding: 0.875rem;
    font-size: 0.8rem;
    min-height: 330px;
    max-height: 330px;
  }

  .terminal-welcome {
    font-size: 0.7rem;
  }

  .terminal-input,
  .terminal-prompt {
    font-size: 0.8125rem;
  }

  .hero {
    padding-top: 5rem;
    min-height: calc(100vh - 1rem);
  }

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

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .flex {
    flex-wrap: wrap;
  }

  .gap-3 {
    gap: 0.5rem;
  }

  .gap-4 {
    gap: 0.75rem;
  }

  .gap-6 {
    gap: 1rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }

  .nav {
    background-color: rgba(var(--background), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .nav-content {
    padding: 0 1rem;
    height: 4rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

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

  .gap-8 {
    gap: 1.5rem;
  }

  .gap-12 {
    gap: 2rem;
  }

  /* Ensure proper stacking on mobile */
  .lg-grid-cols-2,
  .lg-grid-cols-3 {
    grid-template-columns: 1fr;
  }

  /* Mobile navigation improvements */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  .hero-content .flex.gap-4 {
    justify-content: center;
    align-items: center;
  }

  .mb-16 {
    margin-bottom: 2.5rem;
  }

  .mt-16 {
    margin-top: 2.5rem;
  }
}

/* Medium mobile devices */
@media (max-width: 640px) and (min-width: 481px) {
  .terminal-welcome {
    font-size: 0.6rem;
  }

  .terminal-content {
    padding: 0.75rem;
    font-size: 0.75rem;
    min-height: 320px;
    max-height: 320px;
  }

  .hero-content .flex.gap-4 {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-content .btn-lg {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 1.25rem;
  }

  .gap-6 {
    gap: 1.25rem;
  }

  .gap-8 {
    gap: 1.5rem;
  }

  /* Ensure buttons stay centered on tablets */
  .hero-content .flex.gap-4 {
    justify-content: center;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .nav-content {
    padding: 0 0.75rem;
    height: 3.5rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .logo-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .logo-icon svg {
    width: 16px;
    height: 16px;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

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

  .btn-ghost span,
  .btn-primary span {
    display: none;
  }

  .container {
    padding: 0 0.75rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content .flex.gap-4 {
    flex-direction: column;
    gap: 0.75rem;
  }

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

  .code-header {
    padding: 0.5rem 0.5rem;
    font-size: 0.75rem;
  }

  .terminal-content {
    padding: 0.5rem;
    font-size: 0.65rem;
    min-height: 280px;
    max-height: 280px;
  }

  .terminal-welcome {
    font-size: 0.45rem;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .terminal-input,
  .terminal-prompt {
    font-size: 0.65rem;
  }

  .section {
    padding: 2rem 0;
  }

  .card-content.p-6 {
    padding: 1rem !important;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-link {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Better button sizing on small screens */
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .hero-content .flex.gap-4 {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-content .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .skills-badge-container {
    gap: 0.5rem;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-dot {
    left: -0.375rem;
    width: 0.75rem;
    height: 0.75rem;
  }

  .contact-info-item {
    padding: 0.75rem 0;
  }

  .contact-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Ultra small devices */
@media (max-width: 360px) {
  .terminal-window {
    margin: 0 !important;
    min-width: 280px;
    max-width: calc(100vw - 2rem);
    border-radius: 0.25rem;
  }

  .terminal-header {
    padding: 0.375rem 0.5rem;
    min-height: 2rem;
  }

  .terminal-title {
    font-size: 0.6875rem;
  }

  .terminal-buttons {
    gap: 0.1875rem;
  }

  .terminal-button {
    width: 0.5rem;
    height: 0.5rem;
  }

  .terminal-content {
    min-height: 120px;
    max-height: 200px;
    padding: 0.25rem 0.375rem;
    font-size: 0.6875rem;
    line-height: 1.1;
  }

  .terminal-output {
    max-height: 140px;
  }

  .terminal-input-line {
    gap: 0.125rem;
  }

  .terminal-prompt {
    min-width: auto;
    font-size: 0.6875rem;
  }

  .terminal-input {
    font-size: 0.6875rem;
    padding: 0.125rem 0.25rem;
  }

  .terminal-ascii {
    font-size: 0.3rem;
    line-height: 0.35rem;
    transform: scale(0.7);
    transform-origin: top left;
    max-width: 90%;
  }

  .hero {
    padding: 1rem 0;
  }

  .hero-content {
    gap: 0.75rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.8125rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2.25rem;
  }

  .btn-lg {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .social-link {
    width: 2rem;
    height: 2rem;
  }

  .nav {
    padding: 0.5rem 0.75rem;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8125rem;
    padding: 0.25rem 0.375rem;
  }
}

.dark .code-block {
  background-color: #1e2936;
  border-color: #0f1419;
}

.dark .code-header {
  background-color: #2d3748;
  border-bottom-color: #1e2936;
}

body:not(.dark) .code-block {
  background-color: #e2e8f0;
  border-color: #cbd5e0;
}

body:not(.dark) .code-header {
  background-color: #cbd5e0;
  border-bottom-color: #e2e8f0;
}

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

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #22c55e;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--muted);
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--teal-accent);
  color: white;
  transform: translateY(-2px);
}

.footer {
  background-color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

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

.timeline-dot {
  position: absolute;
  left: -0.5rem;
  top: 1.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--teal-accent);
  border: 4px solid var(--background);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--border);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(8, 145, 178, 0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.contact-details {
  flex: 1;
  min-width: 0;
}

.contact-details p {
  margin: 0;
  line-height: 1.4;
}

.contact-details p:first-child {
  margin-bottom: 0.25rem;
}

.achievement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.achievement-item:last-child {
  margin-bottom: 0;
}

.achievement-bullet {
  color: var(--teal-accent);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.achievement-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.terminal-content {
  font-family: "Courier New", Courier, monospace;
  padding: 1.5rem;
  background-color: #1e2936;
  color: #00ff00;
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 400px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 0 0 var(--radius) var(--radius);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  text-align: left;
}

.terminal-welcome {
  text-align: center;
}

.terminal-line,
.terminal-output > div,
.terminal-input-line,
.terminal-prompt,
.terminal-input {
  text-align: left;
}

@media (max-width: 768px) {
  .terminal-welcome {
    text-align: center;
  }

  .terminal-line,
  .terminal-output > div:not(.terminal-welcome),
  .terminal-input-line,
  .terminal-prompt,
  .terminal-input {
    text-align: left !important;
  }
}
.dark .terminal-content {
  background-color: #1e2936;
  color: #00ff00;
}

body:not(.dark) .terminal-content {
  background-color: #f7fafc;
  color: #047857;
}

.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.dark .terminal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

body:not(.dark) .terminal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.terminal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 0, 0.3);
  border-radius: 4px;
}

body:not(.dark) .terminal-content::-webkit-scrollbar-thumb {
  background: rgba(4, 120, 87, 0.3);
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 0, 0.5);
}

body:not(.dark) .terminal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(4, 120, 87, 0.5);
}

#terminal-output {
  margin-bottom: 0.5rem;
}

.terminal-line {
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.terminal-command {
  color: #00ff00;
}

.dark .terminal-command {
  color: #00ff00;
}

body:not(.dark) .terminal-command {
  color: #047857;
}

.terminal-error {
  color: #ff6b6b;
}

.dark .terminal-error {
  color: #ff6b6b;
}

body:not(.dark) .terminal-error {
  color: #dc2626;
}

.terminal-dir {
  color: #66d9ef;
  font-weight: bold;
}

.dark .terminal-dir {
  color: #66d9ef;
}

body:not(.dark) .terminal-dir {
  color: #0ea5e9;
}

.terminal-file {
  color: #a6e22e;
}

.dark .terminal-file {
  color: #a6e22e;
}

body:not(.dark) .terminal-file {
  color: #16a34a;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.terminal-prompt {
  color: #f92672 !important;
  font-weight: bold;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  display: inline-block;
  margin-right: 0.5rem;
}

.dark .terminal-prompt {
  color: #f92672 !important;
}

body:not(.dark) .terminal-prompt {
  color: #e11d48 !important;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  caret-color: #00ff00;
  padding: 0;
  margin: 0;
  height: auto;
}

.dark .terminal-input {
  color: #00ff00;
  caret-color: #00ff00;
}

body:not(.dark) .terminal-input {
  color: #047857;
  caret-color: #047857;
}

.terminal-input::selection {
  background: rgba(0, 255, 0, 0.3);
}

body:not(.dark) .terminal-input::selection {
  background: rgba(4, 120, 87, 0.3);
}

.terminal-welcome {
  font-family: monospace;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.terminal-welcome::-webkit-scrollbar {
  height: 4px;
}

.terminal-welcome::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-welcome::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 0, 0.3);
  border-radius: 2px;
}

body:not(.dark) .terminal-welcome::-webkit-scrollbar-thumb {
  background: rgba(4, 120, 87, 0.3);
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.terminal-input:focus {
  animation: none;
}
