@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700&display=swap');
:root {
  --bg: #f0f1f5;
  --accent: #0088f6;
  --text: #1a1a1a;
  --muted: #666666;
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", Helvetica, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* minimalist neural network canvas background */
canvas.code-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.wrap {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 1;
}
header {
  border-top: 4px solid var(--accent);
  background: transparent;
  padding: 16px 0;
  width: 100%;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 20px;
}
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 200ms ease;
}
.back-link:hover {
  opacity: 0.7;
}
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.center {
  width: 100%;
  max-width: 100%;
  text-align: center;
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-sizing: border-box;
}
/* code editor container */
.code-editor {
  background: #ffffffc7;
  border: 1px solid rgba(0, 136, 246, 0.2);
  padding: 32px 40px;
  border-radius: 12px;
  position: relative;
  text-align: left;
  direction: ltr; /* code reads left-to-right */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* macOS window controls */
.code-editor::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28c940;
}
.code-editor::after {
  content: "// Portfolio";
  position: absolute;
  top: 12px;
  left: 72px;
  font-size: clamp(9px, 1.5vw, 11px);
  color: rgba(0, 136, 246, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.code-line {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  color: #1a1a1a;
  font-size: clamp(12px, 2.5vw, 14px);
}
.code-line .comment { color: #6A9955; }
.code-line .string { color: #CE9178; }
.code-line .keyword { color: #0088f6; }
.code-line .identifier { color: #1a1a1a; }
.code-line .operator { color: #1a1a1a; }
.code-line .number { color: #B5CEA8; }

h1 {
  margin: 0 0 12px 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: center;
  direction: rtl;
}
.accent {
  color: var(--accent);
}
p {
  margin: 0 0 28px 0;
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--muted);
  line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  margin-top: 40px;
  direction: rtl;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}
/* Project cards styled as code editor windows */
.project-card {
  background: #ffffffc7;
  border: 1px solid rgba(0, 136, 246, 0.2);
  border-radius: 12px;
  padding: 32px 40px;
  position: relative;
  text-align: left;
  direction: ltr;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.project-card-cta {
  background: linear-gradient(135deg, rgba(0, 136, 246, 0.95) 0%, rgba(0, 100, 200, 0.9) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 136, 246, 0.4), 
              inset 0 0 100px rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card-cta::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28c940;
  z-index: 10;
}
.project-card-cta::after {
  content: "// CTA";
  position: absolute;
  top: 12px;
  left: 72px;
  font-size: clamp(9px, 1.5vw, 11px);
  color: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  z-index: 10;
}
.project-card-cta:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 136, 246, 0.6);
  border-color: rgba(255, 255, 255, 0.5);
}
.project-card-cta .cta-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.project-card-cta:hover .cta-gradient-overlay {
  opacity: 1;
}
.project-card-cta .cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 12px;
}
.project-card-cta .code-line {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(12px, 2.5vw, 14px);
  margin: 0 0 12px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  border: none;
  display: block;
  transition: none;
}
.project-card-cta:hover .code-line {
  background: transparent;
  transform: none;
}
.project-card-cta .code-line .comment {
  color: rgba(255, 255, 255, 0.9);
  font-weight: normal;
}
.project-card-cta .project-title {
  color: #ffffff;
  text-align: center;
  margin: 0 0 12px 0;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}
.project-card-cta:hover .project-title {
  transform: scale(1.05);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.project-card-cta .project-description {
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin: 0 0 20px 0;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.5;
  font-weight: 400;
  max-width: 90%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.project-card-cta:hover .project-description {
  color: rgba(255, 255, 255, 1);
}
.project-card-cta .cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  direction: rtl;
  margin-top: 0;
  transition: all 0.3s ease;
}
.project-card-cta:hover .cta-buttons {
  transform: translateY(-4px);
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
/* macOS window controls for project cards */
.project-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28c940;
}
.project-card::after {
  content: "// Project";
  position: absolute;
  top: 12px;
  left: 72px;
  font-size: clamp(9px, 1.5vw, 11px);
  color: rgba(0, 136, 246, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.project-image {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 24px 0 16px 0;
  border: 2px solid rgba(0, 136, 246, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.project-card:hover .project-image {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 136, 246, 0.3);
}
.project-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", Helvetica, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
}
.project-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", Helvetica, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 136, 246, 0.15);
  direction: rtl;
}
.tech-tag {
  background: rgba(0, 136, 246, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, "Helvetica Neue", Helvetica, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  transition: gap 200ms ease, opacity 200ms ease;
  direction: rtl;
  margin-top: 8px;
}
.project-link:hover {
  gap: 12px;
  opacity: 0.8;
}
.project-link svg {
  width: 16px;
  height: 16px;
}

/* CTA Section */
.cta-section {
  margin-top: 60px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}
.cta-card {
  background: rgba(0, 136, 246, 0.85);
  border: #0088f6;
  border-radius: 12px;
  padding: 32px 40px;
  position: relative;
  text-align: left;
  direction: ltr;
  box-shadow: 0 4px 16px rgba(0, 136, 246, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28c940;
}
.cta-card::after {
  position: absolute;
  top: 12px;
  left: 72px;
  font-size: clamp(9px, 1.5vw, 11px);
  color: rgba(255, 255, 255, 0.6);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.cta-card .code-line .comment {
  color: rgba(255, 255, 255, 0.8);
}
.cta-card .code-line {
  color: rgba(255, 255, 255, 0.9);
}
.cta-title {
  font-size: 24px;
  font-weight: 700;
  margin: 60px auto 12px;
  color: #ffffff;
  text-align: center;
  direction: rtl;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  max-width: 90%;
}
.cta-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin: 0 auto 24px;
  text-align: center;
  direction: rtl;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  max-width: 90%;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  direction: rtl;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 200ms ease;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.cta-button-primary {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid #ffffff;
}
.cta-button-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.cta-button-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Email Form Card */
.form-card {
  background: #ffffff;
  border: 1px solid rgba(0, 136, 246, 0.2);
  border-radius: 12px;
  padding: 32px 40px;
  position: relative;
  text-align: left;
  direction: ltr;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #28c940;
}
.form-card::after {
  position: absolute;
  top: 12px;
  left: 72px;
  font-size: clamp(9px, 1.5vw, 11px);
  color: rgba(0, 136, 246, 0.4);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.form-title {
  font-size: 24px;
  font-weight: 700;
  margin: 24px 0 12px 0;
  color: var(--text);
  text-align: center;
  direction: rtl;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.form-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 24px 0;
  text-align: center;
  direction: rtl;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.email-form-simple {
  text-align: center;
  margin: 16px 0;
  direction: ltr;
}
.form-group-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 12px;
  line-height: 1.8;
}
.form-group-simple pre {
  white-space: pre;
}
.email-input-simple {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 136, 246, 0.3);
  color: #1a1a1a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 2vw, 14px);
  padding: 4px 8px;
  min-width: 180px;
  max-width: 280px;
  width: 100%;
  outline: none;
  transition: border-color 200ms ease;
  vertical-align: middle;
}
.email-input-simple:focus {
  border-bottom-color: var(--accent);
}
.email-input-simple::placeholder {
  color: rgba(106, 153, 85, 0.5);
}
.submit-btn-simple {
  background: transparent;
  border: 1px solid rgba(0, 136, 246, 0.3);
  color: #1a1a1a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: 8px;
  border-radius: 4px;
}
.submit-btn-simple:hover,
.submit-btn-simple:focus {
  border-color: var(--accent);
  background: rgba(0, 136, 246, 0.05);
  outline: none;
}
.submit-btn-simple:active {
  transform: scale(0.98);
}
.submit-btn-simple:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.form-message {
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  min-height: 20px;
  direction: rtl;
  text-align: center;
}
.form-message.success {
  color: #6A9955;
}
.form-message.error {
  color: #f48771;
}

footer {
  padding: 18px 20px 28px;
  color: var(--muted);
  font-size: clamp(10px, 2vw, 13px);
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  white-space: nowrap;
  line-height: 1.5;
}
footer span {
  display: inline;
  margin: 0;
}
a.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.link:focus, a.link:hover {
  border-bottom-color: var(--accent);
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(6px); animation: fade 600ms ease forwards; }
  .fade-in.delay-1 { animation-delay: 120ms; }
  .fade-in.delay-2 { animation-delay: 240ms; }
  .fade-in.delay-3 { animation-delay: 360ms; }
  @keyframes fade { to { opacity: 1; transform: none; } }
}

/* Responsive Design */
@media (max-width: 768px) {
  .code-editor {
    padding: 24px 20px;
    margin: 0 0 24px 0;
    width: 100%;
    max-width: 100%;
  }
  .code-editor::before {
    width: 10px;
    height: 10px;
    top: 8px;
    left: 10px;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #28c940;
  }
  .code-editor::after {
    font-size: clamp(8px, 1.5vw, 10px);
    top: 8px;
    left: 60px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .cta-card,
  .form-card {
    padding: 24px 20px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cta-card::before,
  .form-card::before {
    width: 10px;
    height: 10px;
    top: 8px;
    left: 10px;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #28c940;
  }
  .cta-card::after,
  .form-card::after {
    font-size: 10px;
    top: 8px;
    left: 60px;
  }
  .cta-title,
  .form-title {
    font-size: 22px;
    margin-top: 40px;
  }
  .cta-description,
  .form-description {
    font-size: 15px;
  }
  .project-card {
    padding: 24px 20px;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  .project-card::before {
    width: 10px;
    height: 10px;
    top: 8px;
    left: 10px;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #28c940;
  }
  .project-card::after {
    font-size: 10px;
    top: 8px;
    left: 60px;
  }
  .project-card-cta {
    min-height: 280px;
  }
  .project-card-cta::before {
    width: 10px;
    height: 10px;
    top: 8px;
    left: 10px;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #28c940;
  }
  .project-card-cta::after {
    font-size: 10px;
    top: 8px;
    left: 60px;
  }
  .project-card-cta .cta-content {
    padding: 16px;
  }
  .project-card-cta .code-line {
    margin: 0 0 10px 0;
    font-size: clamp(11px, 2vw, 13px);
  }
  .project-card-cta .project-title {
    font-size: clamp(20px, 3vw, 24px);
    margin: 0 0 10px 0;
  }
  .project-card-cta .project-description {
    font-size: clamp(14px, 2vw, 16px);
    margin: 0 0 16px 0;
    line-height: 1.4;
  }
  .project-card-cta .cta-buttons {
    gap: 10px;
  }
  .project-image {
    height: 160px;
    margin: 20px 0 12px 0;
  }
  main {
    padding: 24px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .center {
    width: 100%;
    max-width: 100%;
  }
  header {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .code-editor {
    padding: 16px 12px;
    margin: 0 0 20px 0;
    width: 100%;
    max-width: 100%;
  }
  .code-editor::before {
    width: 9px;
    height: 9px;
    top: 6px;
    left: 8px;
    box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28c940;
  }
  .code-editor::after {
    font-size: clamp(7px, 1.5vw, 9px);
    top: 6px;
    left: 50px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .project-card {
    padding: 16px 12px;
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  .project-card::before {
    width: 8px;
    height: 8px;
    top: 6px;
    left: 8px;
    box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #28c940;
  }
  .project-card::after {
    font-size: 8px;
    top: 6px;
    left: 44px;
  }
  .project-card-cta {
    min-height: 240px;
  }
  .project-card-cta::before {
    width: 8px;
    height: 8px;
    top: 6px;
    left: 8px;
    box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #28c940;
  }
  .project-card-cta::after {
    font-size: 8px;
    top: 6px;
    left: 44px;
  }
  .project-card-cta .cta-content {
    padding: 12px;
  }
  .project-card-cta .code-line {
    margin: 0 0 8px 0;
    font-size: clamp(10px, 1.8vw, 12px);
  }
  .project-card-cta .project-title {
    font-size: clamp(18px, 2.5vw, 22px);
    margin: 0 0 8px 0;
    line-height: 1.15;
  }
  .project-card-cta .project-description {
    font-size: clamp(13px, 1.8vw, 15px);
    margin: 0 0 14px 0;
    line-height: 1.4;
  }
  .project-card-cta .cta-buttons {
    gap: 8px;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .project-card-cta:hover {
    transform: translateY(-4px) scale(1.01);
  }
  .project-image {
    height: 120px;
    margin: 12px 0 8px 0;
  }
  .project-title {
    font-size: 16px;
    margin: 0 0 8px 0;
  }
  .project-description {
    font-size: 13px;
    margin: 0 0 12px 0;
  }
  .tech-tag {
    font-size: 10px;
    padding: 3px 8px;
  }
  .project-link {
    font-size: 12px;
  }
  .cta-card,
  .form-card {
    padding: 16px 12px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cta-card::before,
  .form-card::before {
    width: 9px;
    height: 9px;
    top: 6px;
    left: 8px;
    box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28c940;
  }
  .cta-card::after,
  .form-card::after {
    font-size: 9px;
    top: 6px;
    left: 50px;
  }
  .cta-title,
  .form-title {
    font-size: 20px;
    margin-top: 32px;
  }
  .cta-description,
  .form-description {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .project-card-cta {
    min-height: 220px;
  }
  .project-card-cta::before {
    width: 8px;
    height: 8px;
    top: 6px;
    left: 8px;
    box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #28c940;
  }
  .project-card-cta::after {
    font-size: 8px;
    top: 6px;
    left: 44px;
  }
  .project-card-cta .cta-content {
    padding: 10px;
  }
  .project-card-cta .code-line {
    margin: 0 0 6px 0;
    font-size: clamp(9px, 1.5vw, 11px);
  }
  .project-card-cta .project-title {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0 0 6px 0;
    line-height: 1.1;
  }
  .project-card-cta .project-description {
    font-size: clamp(12px, 1.6vw, 14px);
    margin: 0 0 12px 0;
    line-height: 1.3;
  }
  .project-card-cta .cta-buttons {
    gap: 6px;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .project-card-cta:hover {
    transform: translateY(-2px) scale(1.01);
  }
  .cta-buttons {
    gap: 12px;
  }
  .cta-button {
    padding: 10px 18px;
    font-size: 14px;
  }
  .email-input-simple {
    min-width: 160px;
    font-size: 12px;
  }
  .submit-btn-simple {
    font-size: 12px;
    padding: 6px 12px;
  }
  main {
    padding: 20px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .center {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .code-editor {
    padding: 16px 12px;
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  .cta-card,
  .form-card {
    padding: 16px 12px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .cta-title,
  .form-title {
    font-size: 18px;
    margin-top: 24px;
  }
  .cta-description,
  .form-description {
    font-size: 13px;
  }
  .project-card-cta {
    min-height: 200px;
  }
  .project-card-cta::before {
    width: 7px;
    height: 7px;
    top: 5px;
    left: 6px;
    box-shadow: 10px 0 0 #ffbd2e, 20px 0 0 #28c940;
  }
  .project-card-cta::after {
    font-size: 7px;
    top: 5px;
    left: 38px;
  }
  .project-card-cta .cta-content {
    padding: 8px;
  }
  .project-card-cta .code-line {
    margin: 0 0 5px 0;
    font-size: clamp(8px, 1.3vw, 10px);
  }
  .project-card-cta .project-title {
    font-size: clamp(14px, 1.8vw, 18px);
    margin: 0 0 5px 0;
    line-height: 1.1;
  }
  .project-card-cta .project-description {
    font-size: clamp(11px, 1.4vw, 13px);
    margin: 0 0 10px 0;
    line-height: 1.3;
  }
  .project-card-cta .cta-buttons {
    gap: 6px;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .project-card-cta:hover {
    transform: translateY(-2px);
  }
  .project-card-cta .cta-button {
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
    min-width: 0;
  }
  .project-card-cta .cta-buttons {
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
  }
}

