* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #3d3c3c, #353434cb); color: #fff; text-align: center; min-height: 100vh; display: flex; flex-direction: column; }
header { padding: 2rem 1rem; }
header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
header p { opacity: 0.9; font-size: 1.1rem; }
.projects { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; padding: 1rem 3rem; max-width: 1560px; margin: 0 auto; }
.project-card { background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); border-radius: 15px; width: 280px; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: transform 0.3s, background 0.3s; }
.project-card:hover { transform: translateY(-8px); background-color: rgba(255, 255, 255, 0.2); }
.project-card img { width: 80px; height: 80px; margin-bottom: 1rem; }
.project-card h2 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #fff; }
.project-card p { font-size: 1rem; opacity: 0.85; margin-bottom: 1.2rem; }
.btn { display: inline-block; padding: 0.7rem 1.3rem; background-color: #fff; color: #2c3e50; border-radius: 25px; font-weight: bold; text-decoration: none; transition: background 0.3s, color 0.3s; }
.btn:hover { background-color: #4a90e2; color: #fff; }
footer { padding: 1rem; opacity: 0.8; font-size: 0.95rem; margin-top: auto; }
footer a { color: #fff; text-decoration: underline; cursor: pointer; transition: opacity 0.3s; }
footer a:hover { opacity: 0.7; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0); justify-content: center; align-items: center; backdrop-filter: blur(0px); transition: background-color 0.3s ease, backdrop-filter 0.3s ease; }
.modal.show { background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); }
.modal-content { background: linear-gradient(135deg, #3d3c3c, #353434); border-radius: 20px; width: 70%; max-width: 800px; max-height: 95vh; padding: 2.5rem 2rem 1.3rem 2rem; position: relative; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.1); transform: scale(0.95) translateY(-20px); opacity: 0; transition: transform 0.1s ease-out, opacity 0.1s ease-out; margin: 0 auto; }
.modal.show .modal-content { transform: scale(1) translateY(0); opacity: 1; }
.close-btn { position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; font-weight: bold; color: #fff; cursor: pointer; transition: transform 0.2s, color 0.2s; line-height: 1; }
.close-btn:hover { color: #4a90e2; transform: scale(1.1); }
.modal-content h2 { font-size: 2rem; margin-top: -1.2rem; margin-bottom: 1rem; color: #fff; }
.modal-content p { text-align: left; line-height: 1.7; margin-bottom: 0.35rem; opacity: 0.9; font-size: 1rem; color: #ffff; }
.modal-content p strong { color: #4a90e2; }
.contact-inline { color: #ff1d1d !important; font-weight: bold; display: inline-block; margin-bottom: 0.3rem; }
.modal-content p.maj-line { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-size: 0.95rem; color: #f0c96a;}
@media (max-width: 600px) {
  header h1 { font-size: 1.7rem; }
  header p { font-size: 0.95rem; }
  .projects { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; padding: 0rem 0.6rem; }
  .project-card { width: auto; padding: 0.85rem 0.5rem; }
  .project-card img { width: 56px; height: 56px; margin-bottom: 0.5rem; }
  .project-card h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
  .project-card p { font-size: 0.72rem; margin-bottom: 0.7rem; opacity: 0.85; padding: 0 0.1rem; }
  .btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  footer { padding: 0.4rem; font-size: 0.75rem; margin-top: 0.75rem; }
  .modal { align-items: center; padding: 0 1rem; }
  .modal-content { width: 100%; max-height: 80vh; padding: 0.9rem 1.1rem 0.5rem; margin: 0 auto; border-radius: 16px; }
  .modal-content h2 { font-size: 1.25rem; margin-top: 0; margin-bottom: 0.9rem; padding-right: 2.5rem; line-height: 2rem; }
  .modal-content p { font-size: 0.82rem; line-height: 1.55; margin-bottom: 0.35rem; }
  .close-btn { top: 0.9rem; right: 1rem; font-size: 2.2rem; line-height: 1.25rem; }
  .modal-content p.maj-line { font-size: 0.78rem; }}