:root {
  --bg-dark: #0c111b;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #667085;
  --brand: #e16a0f;
  --brand-dark: #b6540c;
  --line: rgba(255,255,255,0.08);
  --shadow: 0 20px 50px rgba(10, 20, 40, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

p { color: var(--muted); line-height: 1.8; }
.section-space { padding: 100px 0; }
.section-light { background: var(--bg-soft); }
.section-dark { background: linear-gradient(135deg, #0b1018, #131c2c); }
.section-tag {
  display: inline-block;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 16px;
}
.section-heading { max-width: 760px; margin: 0 auto 48px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }

#mainNav {
  background: rgba(10, 15, 24, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#mainNav .nav-link { color: rgba(255,255,255,.88); font-weight: 600; }
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: #fff; }
.nav-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(225,106,15,0.28), transparent 28%),
    radial-gradient(circle at bottom left, rgba(83,116,255,0.18), transparent 30%),
    linear-gradient(135deg, #0a1018 0%, #111a2a 100%);
  color: #fff;
  padding-top: 130px;
}
.eyebrow {
  display: inline-block;
  color: #ffc38e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  margin-bottom: 16px;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 8px; }
.hero-subtitle { font-size: clamp(1.15rem, 2vw, 1.8rem); color: #e6edf8; line-height: 1.5; }
.hero-text { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 680px; margin-top: 20px; }
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 12px 30px rgba(225,106,15,0.25);
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.glass-card, .profile-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
  border-radius: 28px;
}
.profile-card { padding: 24px; }
.profile-image {
  width: 100%;
  max-width: 320px;
  border-radius: 22px;
  background: rgba(255,255,255,.03);
}
.profile-meta p {
  color: rgba(255,255,255,.86);
  margin-bottom: 10px;
  text-align: left;
}
.profile-meta i { color: #ffc38e; margin-right: 8px; }
.hero-stats .stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  height: 100%;
}
.stat-card h3 { color: #fff; margin-bottom: 6px; }
.stat-card p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }

.content-card, .project-card, .mini-card, .contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,0.04);
}
.sticky-note {
  background: linear-gradient(145deg, #fff7f0, #fff);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--brand);
}
.content-card h3, .project-card h3, .mini-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.edu-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #edf0f6; }
.edu-item h4 { font-size: 1.12rem; margin-bottom: 8px; }
.edu-item p, .edu-item span { margin-bottom: 0; }

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--brand), #d9dee8);
}
.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 36px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(225,106,15,.25);
}
.timeline-date {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline ul, .project-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.timeline li, .project-card li {
  color: var(--muted);
  margin-bottom: 8px;
}

.skill-item { margin-bottom: 22px; }
.skill-item span { font-weight: 700; }
.progress {
  height: 14px;
  background: #e9eef6;
  border-radius: 999px;
  margin-top: 10px;
}
.progress-bar {
  background: linear-gradient(90deg, var(--brand), #f39954);
  border-radius: 999px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool-grid span {
  display: block;
  background: #f6f8fc;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  color: #324054;
}
.project-card {
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-6px); }
.project-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2e8;
  color: var(--brand);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.mini-card i {
  font-size: 1.8rem;
  color: var(--brand);
  margin-bottom: 18px;
}

.contact-list p {
  color: rgba(255,255,255,.78);
  margin-bottom: 16px;
}
.contact-list i { color: #ffc38e; margin-right: 10px; }
.contact-card {
  background: #fff;
}
.form-control, .form-select {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #dde3ef;
}
.form-control:focus, .form-select:focus {
  border-color: rgba(225,106,15,.48);
  box-shadow: 0 0 0 .25rem rgba(225,106,15,.12);
}
.form-status {
  font-weight: 700;
  min-height: 24px;
}
.form-status.success { color: #0d9a57; }
.form-status.error { color: #c43d3d; }
.form-note { color: #7a8698; }
.footer {
  background: #0b1018;
  color: rgba(255,255,255,.7);
}
.footer p { color: rgba(255,255,255,.7); }

@media (max-width: 991.98px) {
  .section-space { padding: 80px 0; }
  .hero-section { min-height: auto; }
}
@media (max-width: 767.98px) {
  .tool-grid { grid-template-columns: 1fr; }
  .content-card, .project-card, .mini-card, .contact-card, .sticky-note { padding: 24px; }
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -24px; }
}


/* Version 3 enhancements */
.btn-soft{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
}
.btn-soft:hover{background: rgba(255,255,255,.2); color:#fff;}

.project-filters{margin-bottom: 2rem;}
.btn-filter{
  border:1px solid rgba(255,255,255,.12);
  background:#161616;
  color:#fff;
  border-radius:999px;
  padding:.65rem 1.1rem;
  font-weight:600;
}
.btn-filter.active,.btn-filter:hover{
  background:#e46f15;
  color:#fff;
  border-color:#e46f15;
}
.project-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.project-card.hidden-project{display:none!important;}
.project-badge{
  display:inline-block;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#e46f15;
  background:rgba(228,111,21,.10);
  border:1px solid rgba(228,111,21,.25);
  padding:.45rem .7rem;
  border-radius:999px;
  margin-bottom:1rem;
}
.project-shot{
  background:#0d1117;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  margin: .25rem 0 1rem;
  overflow:hidden;
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
.browser-bar{
  display:flex;
  gap:.35rem;
  padding:.7rem .9rem;
  background:#161b22;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.browser-bar span{
  width:.72rem;
  height:.72rem;
  border-radius:50%;
  background:#4b5563;
}
.project-shot-body{
  padding:1rem;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:1rem;
  min-height:140px;
}
.shot-lines{
  border-radius:10px;
  background:
    linear-gradient(#1f2937,#1f2937) 0 10px/90% 10px no-repeat,
    linear-gradient(#1f2937,#1f2937) 0 34px/72% 10px no-repeat,
    linear-gradient(#1f2937,#1f2937) 0 58px/84% 10px no-repeat,
    linear-gradient(#1f2937,#1f2937) 0 82px/60% 10px no-repeat,
    linear-gradient(#111827,#111827);
}
.shot-chart{
  border-radius:14px;
  background:
    linear-gradient(135deg, rgba(228,111,21,.22), rgba(228,111,21,.05)),
    linear-gradient(to top, rgba(228,111,21,.85) 0 0) 18px 88px/18px 30px no-repeat,
    linear-gradient(to top, rgba(228,111,21,.85) 0 0) 48px 68px/18px 50px no-repeat,
    linear-gradient(to top, rgba(228,111,21,.85) 0 0) 78px 42px/18px 76px no-repeat,
    linear-gradient(to top, rgba(228,111,21,.85) 0 0) 108px 56px/18px 62px no-repeat,
    linear-gradient(#111827,#111827);
}
.featured-project{
  box-shadow:0 18px 40px rgba(228,111,21,.10);
  border-color:rgba(228,111,21,.25);
}


/* V4 professional projects redesign */
.project-grid .project-item{
  display:flex;
}
.project-grid .project-card{
  width:100%;
  display:flex;
  flex-direction:column;
  padding:1.35rem;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius:22px;
  box-shadow:0 18px 36px rgba(0,0,0,.14);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-grid .project-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 44px rgba(0,0,0,.18);
  border-color:rgba(228,111,21,.35);
}
.project-grid .project-card h3{
  font-size:1.2rem;
  line-height:1.4;
  margin-bottom:.85rem;
}
.project-grid .project-card p{
  line-height:1.7;
}
.project-actions{
  padding-top:.4rem;
}
.btn-project-live,
.btn-project-github{
  border-radius:999px;
  padding:.72rem 1.1rem;
  font-weight:700;
  text-decoration:none;
}
.btn-project-live{
  background:#e46f15;
  color:#fff;
  border:1px solid #e46f15;
}
.btn-project-live:hover{
  background:#ff7f1f;
  color:#fff;
}
.btn-project-github{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.btn-project-github:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}
.project-results{
  margin:.35rem 0 1rem;
  padding-left:1.15rem;
}
.project-results li{
  margin-bottom:.45rem;
}
.project-card.hidden-project,
.project-item.hidden-project{
  display:none !important;
}
.section-heading p{
  max-width:760px;
  margin-inline:auto;
}
@media (max-width: 991.98px){
  .project-grid .project-card{
    padding:1.1rem;
  }
}
