:root {
  --bg-page: #0b0f17;
  --bg-shell: #111827;
  --bg-card: #162032;
  --bg-bubble: #0d131f;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(249, 115, 22, 0.45);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #131c2e 0%, var(--bg-page) 60%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.navbar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo,
.logo:visited {
  display: block;
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.slogan {
  color: var(--text-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.menu a,
.menu a:visited {
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--accent);
}

.btn,
.btn:visited {
  display: inline-block;
  background-color: var(--accent);
  color: #0b0f17;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

/* Page Container & Shells */
.container {
  width: 100%;
  max-width: 940px;
  margin: 40px auto 64px;
  padding: 0 20px;
}

.page-shell {
  width: 100%;
  background: var(--bg-shell);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.container h1,
.page-shell > h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.container p {
  color: #d1d5db;
}

/* Shell around standalone text blocks */
.text-shell {
  background: var(--bg-bubble);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 20px;
}

.text-shell p {
  margin: 0 0 14px;
  color: #d1d5db;
}

.text-shell p:last-child {
  margin-bottom: 0;
}

/* Photo Slot & Float Layout */
.intro-row::after {
  content: "";
  display: block;
  clear: both;
}

.photo-slot {
  float: left;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  margin: 20px 24px 16px 0;
  border-radius: 14px;
  border: 1px solid var(--border-accent);
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.14), rgba(15, 23, 42, 0.9));
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 680px) {
  .page-shell {
    padding: 20px;
  }

  .photo-slot {
    float: none;
    margin: 0 auto 20px;
  }
}

/* Cards */
.card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card h2 {
  color: var(--accent);
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.card > p {
  color: #d1d5db;
  margin: 10px 0 0;
}

.card ul,
.card ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #e5e7eb;
}

.card li + li {
  margin-top: 10px;
}

/* Adaptive Bubble Grid */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.bubble {
  background: var(--bg-bubble);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 15px 17px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bubble:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.bubble strong {
  display: block;
  color: var(--text-main);
  font-size: 14.5px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.bubble span {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Hero Banner & Split Hero (index.html) */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-section.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  height: auto;
  overflow: visible;
  background: linear-gradient(135deg, rgba(11, 15, 23, 0.96) 0%, rgba(31, 41, 55, 0.9) 100%);
  border: 1px solid var(--border-subtle);
}

.hero-split .hero-content {
  padding: 0;
  max-width: 560px;
}

.hero-split .hero-content h1 {
  font-size: 34px;
  margin: 0 0 12px;
}

.hero-split .hero-content p {
  margin: 0 0 22px;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

/* Standard Framed Photo & Transparent Cutouts */
.site-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #374151;
}

.cutout-photo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55));
}

/* Two-Column Layouts for Hero, About, and Services */
.split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.split-grid-reverse {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.hero-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  border: 1px solid #374151;
}

.about-cutout {
  max-width: 300px;
  margin: 0 auto;
}

.service-cutout {
  max-width: 360px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-section.hero-split,
  .split-grid,
  .split-grid-reverse {
    grid-template-columns: 1fr;
  }

  .hero-section.hero-split {
    padding: 24px;
  }

  .hero-media {
    justify-content: center;
  }

  .hero-photo {
    max-width: 100%;
  }
}

/* =========================================================
   About Page: Video, Credentials & Coursework
   ========================================================= */

.about-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.about-hero-img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

/* Intro Video Player */
.video-wrapper {
  margin: 18px auto 0;
  width: 75%;
  max-width: 680px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #0b0f17;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.intro-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background-color: #0b0f17;
}

@media (max-width: 768px) {
  .video-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

/* Certification Badges Row */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.cert-card {
  background-color: var(--bg-bubble);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.cert-badge-wrap {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cert-badge-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.cert-card h3 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 4px;
}

.cert-id {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
  word-break: break-all;
}

/* Education & Coursework Pills */
.edu-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.edu-meta {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.coursework-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.course-item {
  background-color: var(--bg-bubble);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: #d1d5db;
}

.course-code {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .about-top-grid,
  .cert-grid,
  .coursework-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Services Page: Hardware Showcase & Service Cards
   ========================================================= */

.service-feature-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
}

.service-photo {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.services-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.service-box {
  background-color: var(--bg-bubble);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px;
}

.service-box h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.service-box p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .service-feature-grid,
  .services-list-grid {
    grid-template-columns: 1fr;
  }
}

.it-experience {
  background: #0f1722;
  color: #e6edf5;
  padding: 56px 20px;
  font-family: system-ui, -apple-system, sans-serif;
}

.it-experience .container {
  max-width: 980px;
  margin: 0 auto;
}

.section-header h2 {
  margin: 0 0 10px;
  color: #f97316;
  font-size: 1.75rem;
}

.lead {
  margin: 0 0 28px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 75ch;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.capability-card {
  background: #141e2b;
  border: 1px solid #243244;
  border-left: 3px solid #f97316;
  border-radius: 8px;
  padding: 18px 20px;
}

.capability-card h3 {
  margin: 0 0 8px;
  color: #fb923c;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.capability-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 0.95rem;
}

.education-bar {
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid #243244;
  border-bottom: 1px solid #243244;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
}

.education-label {
  font-weight: 700;
  color: #f8fafc;
}

.education-detail {
  color: #94a3b8;
  font-size: 0.95rem;
}

.cta-block {
  margin-top: 24px;
}

.cta-block p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 68ch;
}

.btn-primary {
  display: inline-block;
  background: #f97316;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
}

.btn-primary:hover {
  background: #ea580c;
}

.it-experience .cta-block p {
  max-width: none;
  text-align: center;
}

.it-experience .cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.it-experience .btn-contact-lg {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #f97316;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
}
</style>

.cta-block {
  margin-top: 24px;
}

.cta-block p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 68ch;
  text-align: left;
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-contact-lg {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #f97316;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-contact-lg:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.cta-block {
  margin-top: 24px;
}

.cta-block p {
  margin: 0 0 16px;
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 68ch;
  text-align: left;
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.btn-contact-lg {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #f97316;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-contact-lg:hover {
  background: #ea580c;
  transform: translateY(-1px);
}
.cta-block p {
  margin: 0 auto 16px;
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 68ch;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.contact-form label {
  font-weight: 600;
  color: #e6edf5;
  margin-top: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #243244;
  background: #0f1722;
  color: #e6edf5;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #f97316;
  border-color: #f97316;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  cursor: pointer;
}


/* 1. Shared page width alignment across all 4 pages */
.site-container,
main > section,
.page-shell {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* 2. Consistent top box styling across Home, Services, About, and Contact */
main > section:first-of-type {
  width: 100%;
  max-width: 1140px;
  margin: 24px auto;
  padding: 36px;
  border-radius: 14px;
  box-sizing: border-box;
}

/* 3. Keep mobile spacing comfortable without horizontal overflow */
@media (max-width: 768px) {
  main > section:first-of-type {
    margin: 16px auto;
    padding: 20px;
    border-radius: 12px;
  }
}
.photo-card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1140px;
  margin: 24px auto;
  padding: 24px;
  border-radius: 14px;
  box-sizing: border-box;
}

.feature-photo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-prep-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto 16px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-sizing: border-box;
}

.contact-prep-thumb {
  display: block;
  width: 96px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-prep-title {
  margin: 0 0 2px;
  font-weight: 600;
}

.contact-prep-sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .contact-prep-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .contact-prep-thumb {
    width: 84px;
  }
}
.contact-bg-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-bg-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.contact-bg-media {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
}

.contact-bg-thumb {
  display: block;
  width: 118px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-bg-caption {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.25;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .contact-bg-thumb {
    width: 96px;
  }
}