/* ===================================================================
   DT Advanced — Static Site Stylesheet
   Inspired by VertexCFO · Blue palette · Plus Jakarta Sans
   =================================================================== */

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

:root {
  --navy:       #0D2240;
  --blue:       #1565A0;
  --sky:        #2196D3;
  --sky-light:  #E8F3FB;
  --ice:        #F4F8FC;
  --white:      #FFFFFF;
  --text:       #1E293B;
  --text-light: #64748B;
  --border:     #E2E8F0;
  --accent:     #0EA5E9;
  --accent-dk:  #0284C7;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 3px rgba(13,34,64,.08);
  --shadow-md:  0 4px 16px rgba(13,34,64,.10);
  --shadow-lg:  0 8px 32px rgba(13,34,64,.12);
  --max-w:      1140px;
  --section-py: 88px;
  --font:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dk); }

h1,h2,h3,h4 { color: var(--navy); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem,4.5vw,3rem); }
h2 { font-size: clamp(1.55rem,3vw,2.15rem); }
h3 { font-size: clamp(1.15rem,2vw,1.4rem); }

p { margin-bottom: 1.15em; }


/* --- Layout helpers ------------------------------------------------ */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: var(--section-py) 0; }
.section-alt{ background: var(--ice); }
.text-center{ text-align: center; }


/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font);
  font-weight: 600; font-size: .95rem; line-height: 1.5;
  padding: .75rem 1.65rem; border-radius: 6px;
  cursor: pointer; transition: all .2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--accent-dk); border-color: var(--accent-dk); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,101,160,.25);
}

.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: var(--white); color: var(--navy); border-color: var(--white);
}

.btn-outline-dark {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn-outline-dark:hover {
  background: var(--blue); color: var(--white);
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-group.centered { justify-content: center; }


/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: .8rem 1.5rem;
}

.logo {
  font-weight: 800; font-size: 1.15rem; color: var(--navy);
  letter-spacing: -.02em; white-space: nowrap;
}
.logo span { color: var(--blue); }
.logo a { color: inherit; }
.logo a:hover { color: var(--blue); }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: .15rem; list-style: none; }
.main-nav a {
  display: block; padding: .6rem .9rem;
  font-size: .9rem; font-weight: 500; color: var(--text);
  border-radius: 6px; transition: color .15s, background .15s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue); background: var(--sky-light); }

.main-nav .nav-cta a {
  background: var(--blue); color: var(--white); padding: .55rem 1.15rem;
  margin-left: .35rem;
}
.main-nav .nav-cta a:hover { background: var(--accent-dk); color: var(--white); }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ===================================================================
   HERO
   =================================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3060 50%, #104a80 100%);
  padding: clamp(4rem,10vw,7rem) 0;
  text-align: center; position: relative; overflow: hidden;
}
/* subtle grid decoration */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.hero-label {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sky); border: 1px solid rgba(33,150,211,.35);
  padding: .3rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; font-weight: 800; }
.hero p  { color: rgba(255,255,255,.82); font-size: clamp(1rem,1.8vw,1.2rem); max-width: 640px; margin: 0 auto 2.25rem; }

/* Page-level hero (services, about, contact, blog) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3060 100%);
  padding: clamp(3rem,7vw,4.5rem) 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }


/* ===================================================================
   STATS BAR
   =================================================================== */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }
.stat strong {
  display: block; font-size: 2.25rem; font-weight: 800;
  color: var(--blue); line-height: 1; margin-bottom: .35rem;
}
.stat span {
  font-size: .8rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .07em; font-weight: 500;
}


/* ===================================================================
   SECTION HEADING
   =================================================================== */
.section-heading {
  text-align: center; margin-bottom: 3rem;
}
.section-heading h2 { margin-bottom: .5rem; position: relative; display: inline-block; }
.section-heading h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--sky); border-radius: 2px;
}
.section-heading p {
  color: var(--text-light); font-size: 1.05rem; max-width: 620px; margin: 1.1rem auto 0;
}


/* ===================================================================
   SERVICE CARDS
   =================================================================== */
.card-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.25rem 2rem;
  transition: all .3s ease; text-align: center;
}
.card:hover {
  border-color: var(--sky); box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 60px; height: 60px; border-radius: 12px;
  background: var(--sky-light); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 1.6rem;
}

.card h3 { margin-bottom: .65rem; }
.card p  { color: var(--text-light); font-size: .95rem; margin-bottom: .75rem; }

.card-link {
  font-weight: 600; font-size: .88rem; color: var(--blue);
}
.card-link::after { content: ' →'; transition: margin-left .2s; }
.card-link:hover::after { margin-left: 4px; }


/* ===================================================================
   INDUSTRY FOCUS / TWO-COL
   =================================================================== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%;
}

.highlight-box {
  background: var(--sky-light); border-left: 4px solid var(--sky);
  padding: 1.15rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; color: var(--navy); font-weight: 500; }


/* ===================================================================
   PORTFOLIO / WHAT I BUILD
   =================================================================== */
.portfolio-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all .3s;
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.portfolio-card h3 { margin-bottom: .5rem; }
.portfolio-card p  { color: var(--text-light); font-size: .95rem; margin-bottom: 0; }
.portfolio-note {
  text-align: center; color: var(--text-light); font-style: italic;
  font-size: .9rem; margin-top: 1.5rem;
}


/* ===================================================================
   CTA BANNER
   =================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3060 50%, var(--blue) 100%);
  padding: clamp(3rem,6vw,4.5rem) 0; text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: .65rem; }
.cta-banner p  { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }


/* ===================================================================
   BLOG CARDS
   =================================================================== */
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .3s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.blog-card-body { padding: 1.5rem; }
.blog-card-cat {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--blue); margin-bottom: .45rem;
  display: inline-block;
}
.blog-card-body h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.blog-card-body h3 a { color: var(--navy); }
.blog-card-body h3 a:hover { color: var(--blue); }
.blog-card-body p { color: var(--text-light); font-size: .9rem; margin-bottom: .75rem; }
.blog-card-date { font-size: .8rem; color: var(--text-light); }

.read-more { font-weight: 600; font-size: .88rem; color: var(--blue); }
.read-more:hover { color: var(--accent-dk); }


/* ===================================================================
   BLOG POST (single)
   =================================================================== */
.post-content {
  max-width: 740px; margin: 0 auto;
  padding: var(--section-py) 1.5rem;
}

.post-content h1 { font-size: clamp(1.75rem,4vw,2.5rem); margin-bottom: .35rem; }
.post-meta { color: var(--text-light); font-size: .88rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.post-content h2 { margin: 2.5rem 0 .75rem; }
.post-content h3 { margin: 2rem 0 .6rem; }
.post-content p  { font-size: 1.05rem; }
.post-content ul, .post-content ol { margin: .5rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: .35rem; font-size: 1.02rem; }
.post-content blockquote {
  border-left: 4px solid var(--sky); margin: 1.5rem 0;
  padding: 1rem 1.5rem; background: var(--ice); border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p { margin: 0; font-style: italic; color: var(--navy); }

.author-bio {
  background: var(--ice); border-radius: var(--radius-lg);
  padding: 1.75rem; margin-top: 3rem;
}
.author-bio p { margin: 0; font-size: .95rem; color: var(--text-light); }
.author-bio strong { color: var(--navy); }


/* ===================================================================
   SERVICES PAGE — Detail blocks
   =================================================================== */
.service-detail { padding: var(--section-py) 0; }
.service-detail:nth-child(even) { background: var(--ice); }

.service-detail h2 { margin-bottom: .75rem; }
.service-detail h3 { color: var(--blue); margin: 1.75rem 0 .5rem; font-size: 1.1rem; }
.service-detail p  { max-width: 740px; }

.service-list {
  list-style: none; padding: 0; max-width: 740px;
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .75rem;
  margin: .75rem 0 1.5rem;
}
.service-list li {
  padding-left: 1.4rem; position: relative; font-size: .95rem; color: var(--text);
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: .55rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sky);
}

/* How I Work steps */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 2rem;
}
.step {
  text-align: center; padding: 1.75rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sky-light); color: var(--blue);
  font-weight: 800; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem;
}
.step h4 { margin-bottom: .35rem; font-size: 1rem; }
.step p  { font-size: .88rem; color: var(--text-light); margin: 0; }


/* ===================================================================
   ABOUT PAGE
   =================================================================== */
.career-highlights { margin: 2.5rem 0; }
.career-item { margin-bottom: 1.75rem; }
.career-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.career-item .role-co { color: var(--text-light); font-size: .9rem; margin-bottom: .35rem; }
.career-item p { font-size: .95rem; }

.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem;
  margin: 2rem 0;
}
.diff-item h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: .35rem; }
.diff-item p  { font-size: .93rem; color: var(--text-light); margin: 0; }

.tech-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem;
  margin: 1.5rem 0;
}
.tech-cat { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.tech-list { font-size: .93rem; color: var(--text-light); margin-bottom: 1rem; }


/* ===================================================================
   CONTACT PAGE
   =================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}

.contact-info h3 { margin-bottom: .35rem; }
.contact-info p  { color: var(--text-light); }

.contact-card {
  background: var(--ice); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.contact-card h4 { margin-bottom: .25rem; font-size: 1rem; }
.contact-card p  { margin: 0; font-size: .93rem; }
.contact-card a  { font-weight: 600; }

.expect-list { list-style: none; padding: 0; margin-top: 1.25rem; }
.expect-list li {
  padding: .85rem 0; border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.expect-list li:last-child { border: none; }
.expect-list strong { color: var(--navy); }


/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); }

.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}

.footer-col h4 {
  color: var(--white); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .85rem;
}

.footer-col p { font-size: .88rem; margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--sky); }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .88rem; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; padding: 1.25rem 1.5rem;
  font-size: .8rem;
}


/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 960px) {
  :root { --section-py: 64px; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 48px; }

  /* Mobile nav */
  .menu-toggle { display: flex; }
  .main-nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: .75rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .75rem 1.5rem; border-radius: 0; }
  .main-nav .nav-cta a { margin: .5rem 1.5rem; text-align: center; border-radius: 6px; }

  .stats-bar { gap: 1.25rem; }
  .stat strong { font-size: 1.75rem; }
  .service-list { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; text-align: center; }
  .stats-bar { flex-direction: column; gap: 1rem; }
  .steps { grid-template-columns: 1fr; }
}
