/* ========================================
   Babayagas Web Design — Portfolio Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #c8a44e;
  --primary-dark: #b08d3a;
  --primary-light: #dab866;
  --accent: #e8cc7a;
  --dark: #0b0e17;
  --dark-mid: #101626;
  --dark-light: #1a2240;
  --text: #f1f2f6;
  --text-muted: #8891a8;
  --text-dark: #bcc3d6;
  --surface: #101626;
  --surface-light: #161e36;
  --border: #1e2a4a;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg, #c8a44e 0%, #e8cc7a 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-brand svg,
.footer-brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-light);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(200, 164, 78, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200, 164, 78, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--dark-light);
  border-color: var(--primary-light);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-body {
  padding: 1.5rem;
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--dark-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for screenshots */
.placeholder-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px dashed var(--border);
}

/* --- Grid Systems --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 204, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Featured Projects (Home) --- */
.featured-projects {
  background: var(--dark-mid);
}

.project-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--dark);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.project-card h3 {
  margin: 0;
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* --- Services Overview (Home) --- */
.services-overview .service-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.services-overview .service-item h3 {
  margin-bottom: 0.75rem;
}

.services-overview .service-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient);
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  margin-bottom: 1rem;
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: #fff;
  color: var(--primary-dark);
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- Projects Page --- */
.projects-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
  text-align: center;
}

.project-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.project-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.project-detail-header h3 {
  font-size: 1.5rem;
}

.project-type {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--dark);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.project-detail-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-info h4 {
  margin-bottom: 1rem;
  color: var(--text);
}

.project-info ul {
  list-style: none;
  padding: 0;
}

.project-info ul li {
  padding: 0.4rem 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.project-info ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.project-screenshots img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--dark);
  cursor: pointer;
  transition: all var(--transition);
}

.project-screenshots img:hover {
  border-color: var(--primary);
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* First image spans full width as the hero shot */
.project-screenshots img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* If odd number of remaining images, last one spans full width too */
.project-screenshots img:last-child:nth-child(even) {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

/* Screenshot lightbox overlay */
.screenshot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.screenshot-overlay.active {
  opacity: 1;
  visibility: visible;
}

.screenshot-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.screenshot-overlay.active img {
  transform: scale(1);
}

.screenshot-overlay .close-hint {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mobile screenshots — portrait images contained properly */
.project-screenshots img.screenshot-mobile {
  aspect-ratio: auto;
  max-height: 280px;
  object-fit: contain;
  background: var(--dark-mid);
  padding: 0.5rem;
  grid-column: auto;
}

/* Mobile lookup screenshot — same treatment as mobile */
.project-screenshots img.screenshot-mobile-lookup {
  aspect-ratio: auto;
  max-height: 280px;
  object-fit: contain;
  background: var(--dark-mid);
  padding: 0.5rem;
  grid-column: auto;
}

/* Wide screenshots — span full width */
.project-screenshots img.screenshot-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

/* Screenshot caption */
.screenshot-caption {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.project-detail-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  background: var(--dark-mid);
}

/* --- Services Page --- */
.services-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
  text-align: center;
}

.pricing-card {
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
}

.pricing-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
}

.pricing-amount .currency {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-amount .amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
}

.pricing-amount .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  padding: 1.5rem;
  list-style: none;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li .check {
  color: var(--success);
  font-weight: 700;
}

.pricing-footer {
  padding: 0 1.5rem 2rem;
}

.pricing-footer .btn {
  width: 100%;
  justify-content: center;
}

/* Add-ons */
.addons-section {
  background: var(--dark-mid);
}

.addon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.addon-info {
  flex: 1;
  min-width: 200px;
}

.addon-info h4 {
  margin-bottom: 0.25rem;
}

.addon-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.addon-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Process */
.process-steps {
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --- About Page --- */
.about-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.skills-section {
  background: var(--dark-mid);
}

.skill-category {
  margin-bottom: 2.5rem;
}

.skill-category h3 {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--text);
}

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

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-card .value-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-card h4 {
  margin-bottom: 0.25rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  background: var(--dark-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-detail-body {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 300px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 2rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }
}
