/*
Theme Name: Zamaal Portfolio
Theme URI: https://example.com/
Author: Zamaal
Author URI: https://example.com/
Description: A clean, modern, fast-loading custom portfolio theme built with CSS Grid and Flexbox.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zamaal-portfolio
Tags: portfolio, responsive, custom-background, custom-logo, editor-style, one-column
*/

/* Base */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.3);
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --card: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout helpers */
.container {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-brand a {
  font-size: 1.1rem;
  font-weight: 700;
}

.site-description {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.site-nav {
  display: none;
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

/* Main */
.site-main {
  padding: 3rem 0;
}

.hero {
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0;
}

.hero-subtitle {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text);
}

.list-card {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-card li {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(248, 250, 252, 0.7);
  padding: 1rem;
}

.list-card li + li {
  margin-top: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--primary-dark);
}

.section-title {
  font-size: 1.5rem;
  margin: 0;
}

.section-subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
}

.grid-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.card-image {
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

.card__content {
  padding: 1.5rem;
}

.card__title {
  margin: 0;
  font-size: 1.1rem;
}

.card__excerpt {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.card__link:hover {
  color: var(--primary-dark);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.9rem;
}

.text-lg {
  font-size: 1.25rem;
}

.text-muted {
  color: var(--muted);
}

.font-medium {
  font-weight: 500;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}
