body {
  background-color: #f0f0f0;
  color: #333;
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  background-color: #1e293b;
  color: white;
  padding: 1rem 0;
  width: 100%;
}

header h1 {
  display: inline;
  margin-right: 2rem;
}

nav ul {
  list-style: none;
  display: inline;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 1rem;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a.active {
  text-decoration: underline;
  font-style: italic;
}

.content-wrapper {
  flex-grow: 1;
  background-color: #e5e7eb;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  background-color: transparent;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.profile {
  margin-bottom: 3rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background-color: #cbd5e1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64748b;
  font-size: 1.2rem;
  border: 2px dashed #94a3b8;
}

.skills span {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 0.4em 0.8em;
  margin: 0.2em;
  border-radius: 999px;
  font-size: 0.9em;
}

.quotes blockquote {
  font-style: italic;
  background-color: #f1f5f9;
  padding: 1rem;
  margin: 0.5rem 0;
  border-left: 4px solid #0ea5e9;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2rem;
}

.languages table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2rem;
}

.languages th,
.languages td {
  border: 1px solid #cbd5e1;
  padding: 0.8rem;
  text-align: left;
  background-color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 1rem;
}

.project-info h3 {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.project-info .tags {
  margin-top: 0.5rem;
}

.project-info .tags span {
  background-color: #f0f0f0;
  border-radius: 4px;
  padding: 0.3em 0.6em;
  margin: 0.2em;
  display: inline-block;
  font-size: 0.8em;
}

.project-info a {
  display: inline-block;
  margin-top: 0.8rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: bold;
}

.contact-page {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}

.quote-left,
.quote-right {
  width: 20%;
  font-size: 1.3rem;
  color: white;
  font-style: italic;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-center {
  width: 50%;
  text-align: center;
}

.banner-background {
  width: 100%;
  height: 100px;
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

#ai-link {
  text-decoration: none;
}

.contact-page-body {
  color: #333;
  font-size: 1.1rem;
}

.button-link {
  display: inline-block;
  background-color: #444;
  color: white;
  text-decoration: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s;
  margin-top: 0.5em;
}

.button-link:hover {
  background-color: #666;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  max-width: 500px;
}

body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
  font-size: 1.5rem !important;
}

.high-contrast header,
.high-contrast nav,
.high-contrast .project-card,
.high-contrast .contact-page,
.high-contrast .quotes blockquote,
.high-contrast .skills span,
.high-contrast .languages th,
.high-contrast .languages td {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

.high-contrast a,
.high-contrast .button-link {
  color: #00ffff !important;
  background-color: #000 !important;
  text-decoration: underline !important;
}

.high-contrast .button-link:hover {
  background-color: #222 !important;
}

.high-contrast .quote-left,
.high-contrast .quote-right {
  background-color: #000 !important;
  color: #fff !important;
  border-left: 4px solid #00ffff !important;
  font-size: 1.5rem !important;
  font-style: italic !important;
  padding: 1rem !important;
}

.high-contrast form {
  background-color: #000 !important;
  color: #fff !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  border: 1px solid #00ffff !important;
}

.high-contrast form label,
.high-contrast form input,
.high-contrast form textarea,
.high-contrast form button {
  color: #fff !important;
  background-color: #000 !important;
  border: 1px solid #00ffff !important;
  font-size: 1.2rem !important;
}

.high-contrast form input::placeholder,
.high-contrast form textarea::placeholder {
  color: #7fffd4 !important;
}

.high-contrast form button {
  background-color: #00ffff !important;
  color: #000 !important;
  font-weight: bold !important;
  cursor: pointer !important;
}

.high-contrast form button:hover {
  background-color: #00cccc !important;
  color: #fff !important;
}

video {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}
