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

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #222222;
  --muted: #374151;
  --dark: #111827;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: var(--dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
}

.navbar a:hover {
  color: #60a5fa;
}

.hero {
  background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85));
  color: #ffffff;
  padding: 6rem 1rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section,
.project-page {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 1rem;
}

.section h2,
.skills-section h2,
.content-section h2,
.project-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  color: var(--dark);
}

.skills-section,
.content-section,
.project-section {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-section p,
.skills-section p,
.project-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.skills-section strong {
  display: inline-block;
  min-width: 180px;
  color: var(--accent);
}

.card-grid,
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card h3 {
  padding: 1rem 1rem 0.5rem;
}

.card p {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.card a {
  display: block;
  padding: 1rem;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
}

.card a:hover,
.content-section a:hover,
.project-section a:hover {
  text-decoration: underline;
}

.image-placeholder,
.screenshot-placeholder {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: #e5e7eb;
  color: #4b5563;
  font-weight: 600;
}

.screenshot-placeholder {
  min-height: 220px;
  border-radius: 8px;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: bold;
}

.btn:hover {
  background: var(--accent-hover);
}

.project-hero {
  background: var(--dark);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}

.project-hero h1 {
  margin-bottom: 1rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin-top: 1rem;
}

.tech-list li {
  background: #e5e7eb;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.project-section ul,
.project-section ol {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.project-section li {
  margin-bottom: 0.7rem;
}

.project-section li::marker {
  color: var(--accent);
  font-weight: bold;
}

.project-section a,
.content-section a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.diagram,
pre {
  background: var(--dark);
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.6;
}

.screenshot-grid figure {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.screenshot-grid img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.screenshot-grid figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #4b5563;
}

footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--dark);
  color: #ffffff;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar ul {
    justify-content: center;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .skills-section strong {
    display: block;
    min-width: 0;
    margin-bottom: 0.25rem;
  }

  .project-hero,
  .skills-section,
  .content-section,
  .project-section {
    padding: 1.5rem;
  }
}

.project-page td {
    padding: 4px 20px;
    line-height: 1.6;
}

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

.service-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: #111827;
    font-size: 1.1rem;
}

.service-card p {
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.service-link {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.service-link:hover {
    color: #1d4ed8;
}

.clickable-image {
    cursor: pointer;

    width: 100%;
    max-width: 350px;

    height: 180px;

    object-fit: cover;

    border-radius: 8px;
    border: 1px solid #e5e7eb;

    transition: transform 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    display: block;
    margin: auto;

    max-width: 95%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 30px;

    color: white;
    font-size: 40px;
    font-weight: bold;

    cursor: pointer;
}
.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.project-gallery figure {
    flex: 0 0 auto;
    max-width: 350px;
}

.project-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}
.browser-bar {
    background: #e5e7eb;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #4b5563;
    border-bottom: 1px solid #d1d5db;
}

.site-preview-grid {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.site-preview-card {
    width: 100%;
    max-width: 500px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.site-preview-card img {
    width: 100%;

    max-height: 180px;

    object-fit: cover;

    display: block;
}

.site-preview-content {
    padding: 1rem;
}

.site-preview-card h3 {
    padding: 1rem;
    margin: 0;
}
