/* Base Styles & Accessibility */
:root {
    --primary-color: 44 62 80;
    --accent-color: 52 152 219;
    --text-color: 51 51 51;
    --bg-color: 249 249 249;
    --surface-pill: 235 235 235;
    --white: 255 255 255;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: rgb(var(--text-color));
    line-height: 1.6;
    background-color: rgb(var(--bg-color));
}

input, button, textarea, select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: rgb(var(--primary-color));
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  margin: 0 0 1rem 0;
}

button.text-btn {
    display: block;
    margin: 30px auto;
    background-color: rgb(var(--accent-color) / 0);
    border: 1px solid rgb(var(--accent-color));
    padding: .5rem 1rem;
    color: rgb(var(--accent-color));
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
}
button.text-btn:hover {
  background-color: rgb(var(--accent-color) / 0.15);
}

button.text-btn a {
    color: rgb(var(--accent-color));
}

a {
    text-decoration: none;
    color: rgb(var(--text-color));
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: rgb(var(--accent-color));
}

/* 1. Navigation Bar */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(var(--primary-color));
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
}

.content h2 {
  text-align: center;
}

/* 2. Hero Section */
.hero {
    background-image:
        linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
        url("../assets/backgrounds/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
}

.hero-content p, .banner-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Banner Section */
.banner {
    background-image:
        linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
        url("../assets/backgrounds/banner-bg.jpg");
    height: 30vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
}

/* 3. Portfolio Grid */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.portfolio-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.card-media {
    height: 200px;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #ddd;
    background-position: center top;
    background-size: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    color: rgb(var(--primary-color));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn[aria-pressed="true"] {
  background-color: rgb(var(--accent-color, #111));
  color: rgb(var(--accent-contrast, #fff));
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgb(var(--surface-pill));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.card-actions {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.btn-primary {
    background-color: rgb(var(--accent-color) / 0.1);
    border: 1px solid rgb(var(--accent-color));
    color: rgb(var(--accent-color));
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: rgb(var(--accent-color) / 0.25);
}

.btn-secondary {
    color: rgb(var(--accent-color));
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: rgb(var(--accent-color) / 0.15);
}

/* Contact */

.contact-content {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
}

.uneven-two-column {
  display: flex;
  flex-direction:row;
}

.about {
  flex:1.25;
  padding: 0 2rem;
  margin-bottom:1rem;
}

.intro {
  border-bottom: 1px solid rgb(var(--surface-pill));
  margin-bottom: 1rem;
}

.details span {
  font-weight: 700;
}

.details p {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  margin-top:0;
}

.contact-form {
  flex:1.75;
}

.contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

/* Footer */
footer {
    background-color: rgb(var(--primary-color));
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #fff;
    font-weight: bold;
}

/* Mobile Responsiveness */

@media (min-width: 620px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    h1 {
        font-size: 2rem;
    }
    .banner, .hero {
      padding: 0 1rem;
    }
    .hero-content p, .banner-content p {
        font-size: 1.15rem;
    }
    .uneven-two-column {
      flex-direction: column;
    }
}
