* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #1d3353 0%, transparent 60%) no-repeat,
              linear-gradient(180deg, var(--bg) 0%, #0a1020 100%);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(10, 16, 32, .6);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 70px;
}
.brand img { height: 66px; width: 66px; margin: 0; object-fit: contain; }
.nav-links { display: none; gap: 20px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); color: var(--text);
}
.btn-primary { background: var(--primary-600); border-color: var(--primary-600); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }

/* Hero */
.hero { position: relative; }
.hero-inner {
  display: grid; gap: 32px;
  grid-template-columns: 1fr; padding: 80px 0 40px;
}
.hero-copy h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 0 0 16px; }
.accent { color: var(--accent); }
.hero-copy p { color: var(--muted); max-width: 60ch; }
.hero-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: min(360px, 80%); filter: drop-shadow(var(--shadow)); }
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/RDTevo_logo_dark_transparent.png') center/contain no-repeat;
  opacity: .02; pointer-events: none;
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 28px; margin: 0 0 24px; }
.muted { color: var(--muted); }

/* Cloud platforms & certifications */
.logo-strip {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center;
  margin: 8px 0 24px;
}
.cloud-cta {
  text-align: center;
  margin-bottom: 32px;
}
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.logo-chip .chip-logo { width: 24px; height: 24px; object-fit: contain; display: block; }
.logo-chip .chip-label { font-weight: 800; letter-spacing: .5px; }

/* subtle brand tints on the chip border */
.logo-chip.aws { border-color: rgba(255,153,0,.35); }
.logo-chip.azure { border-color: rgba(0,120,212,.35); }
.logo-chip.oracle { border-color: rgba(248,0,0,.35); }

.badge {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.badge.success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4); color: var(--text); }

.brand-tagline {
  margin: 8px 0 16px;
  color: var(--accent);
  font-weight: 600;
  max-width: 60ch;
}
#philosophy .cred { text-align: left; }
#philosophy .cred h3 { margin-top: 0; color: var(--primary-600); }
@media (min-width: 768px) {
  #philosophy .grid.cards { grid-template-columns: repeat(3, 1fr); }
}

.cred-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
.cred { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.checklist.small { font-size: .95rem; }
.checklist.small li { margin-bottom: 6px; }

/* Portfolio */
.portfolio-card { display: flex; flex-direction: column; }
.portfolio-img-wrapper { cursor: pointer; }
.portfolio-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto; /* Pushes tags to the bottom */
  padding-top: 12px;
}
.portfolio-disclaimer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
}
.modal.is-open { display: flex; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  z-index: 1001;
  width: 90vw;
  max-width: 1400px; /* Increased from 900px */
  height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.modal-main-image {
  max-width: 100%;
  flex-grow: 1; /* Allows image to fill available space */
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 0; /* Fix for flexbox overflow */
}
.modal-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.modal-thumb {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  opacity: 0.6;
}
.modal-thumb.active, .modal-thumb:hover {
  border-color: var(--primary);
  opacity: 1;
}
body.modal-open { overflow: hidden; }

/* Cards / Grid */
.grid.cards {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* Two column */
.two-col { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.about-img { width: 260px; margin-inline: auto; }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 12px;
}
.steps li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
}
.steps li span {
  width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--primary-600);
  font-weight: 700;
}

/* Contact form */
.contact-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: #0b1426; color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--primary); }
.form-actions { display: flex; gap: 10px; align-items: center; }
.contact-meta { margin-top: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* Contact directory */
.contact-cards {
  display: grid; gap: 12px; margin: 16px 0 24px;
  grid-template-columns: 1fr;
}
.contact-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
}
.contact-item:hover { background: #0f172a; }
.ci-label { color: var(--muted); }
.ci-value { font-weight: 600; }
.legal-note { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { padding: 32px 0; background: #0a1120; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 16px; align-items: center; text-align: center; }
.footer-brand img { width: 258px; margin: -50px auto -50px; }  /* larger footer logo */
.footer-nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--text); padding: 6px 2px; } /* breathing room */

/* Larger screens */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-inner { grid-template-columns: 1.2fr 1fr; padding: 120px 0 70px; }
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1.2fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .cred-grid { grid-template-columns: repeat(3, 1fr); }

  .brand img, .logo-nav { height: 128px; object-fit: contain; margin: -20px 0 -20px 0; }        /* even larger on desktop */
  .footer-nav { gap: 28px; }                      /* more spacing on desktop */
}

/* Utilities */
.checklist { padding-left: 18px; color: var(--muted); }
.checklist li { margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }