﻿/* ============================================
   Global Reset & Variables
   ============================================ */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --border: #334155;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,.3);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
}
a { color:var(--accent); text-decoration:none; transition:color .2s; }
a:hover { color:var(--accent-hover); }
img { max-width:100%; display:block; }
ul { list-style:none; }
.container { max-width:1100px; margin:0 auto; padding:0 24px; }

/* ========== Buttons ========== */
.btn {
  display:inline-block;
  padding:12px 28px;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
  transition:all .25s;
  cursor:pointer;
}
.btn-primary {
  background:var(--accent);
  color:#0f172a;
}
.btn-primary:hover { background:var(--accent-hover); color:#0f172a; }
.btn-outline {
  border:2px solid var(--accent);
  color:var(--accent);
  background:transparent;
}
.btn-outline:hover { background:var(--accent); color:#0f172a; }

/* ========== Navbar ========== */
.navbar {
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  background:rgba(15,23,42,.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav-container {
  display:flex; align-items:center;
  justify-content:space-between;
  height:64px;
}
.logo {
  font-size:22px; font-weight:800;
  color:var(--text-primary) !important;
  letter-spacing:-.5px;
}
.nav-links { display:flex; gap:8px; }
.nav-links a {
  color:var(--text-secondary);
  padding:8px 16px;
  border-radius:6px;
  font-size:14px;
  font-weight:500;
  transition:all .2s;
}
.nav-links a:hover {
  color:var(--text-primary);
  background:rgba(255,255,255,.06);
}

/* Hamburger */
.menu-toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
}
.menu-toggle span {
  display:block;
  width:26px; height:2.5px;
  background:var(--text-primary);
  border-radius:2px;
  transition:all .3s;
}

/* ========== Hero ========== */
.hero {
  min-height:100vh;
  display:flex; align-items:center;
  padding-top:64px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.hero-content {
  display:flex; align-items:center; gap:80px;
  width:100%;
}
.hero-text { flex:1; }
.hero-greeting {
  font-size:18px;
  color:var(--accent);
  margin-bottom:8px;
  font-weight:500;
}
.hero-name {
  font-size:clamp(2.6rem,6vw,4.5rem);
  font-weight:800;
  line-height:1.1;
  margin-bottom:12px;
  background:linear-gradient(135deg, #38bdf8, #a78bfa);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero-tagline {
  font-size:18px;
  color:var(--text-secondary);
  margin-bottom:16px;
}
.hero-desc {
  font-size:16px;
  color:var(--text-secondary);
  margin-bottom:32px;
  max-width:520px;
}
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
.hero-avatar { flex-shrink:0; }
.avatar-placeholder {
  width:280px; height:280px;
  border-radius:50%;
  background:var(--bg-secondary);
  border:3px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:80px;
  box-shadow:var(--shadow);
}

/* ========== Sections ========== */
.section {
  padding:100px 0;
}
.section-alt { background:var(--bg-secondary); }
.section-title {
  font-size:clamp(1.6rem,3vw,2.2rem);
  font-weight:700;
  text-align:center;
  margin-bottom:50px;
  position:relative;
}
.section-title::after {
  content:"";
  display:block;
  width:50px; height:3px;
  background:var(--accent);
  margin:12px auto 0;
  border-radius:2px;
}

/* ========== About ========== */
.about-content {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:40px;
  align-items:start;
}
.about-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px;
}
.about-card p {
  color:var(--text-secondary);
  margin-bottom:16px;
  font-size:15px;
}
.about-card p:last-child { margin-bottom:0; }
.about-info { display:flex; flex-direction:column; gap:12px; }
.info-item {
  display:flex; justify-content:space-between;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:8px;
  padding:14px 20px;
  font-size:14px;
}
.info-label { font-weight:600; color:var(--text-primary); }
.info-value { color:var(--text-secondary); }

/* ========== Skills ========== */
.skills-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}
.skill-category {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 24px;
  transition:transform .2s, box-shadow .2s;
}
.skill-category:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}
.skill-category h3 {
  font-size:16px;
  margin-bottom:16px;
  color:var(--accent);
}
.skill-category li {
  color:var(--text-secondary);
  font-size:14px;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.skill-category li:last-child { border-bottom:none; }

/* ========== Projects ========== */
.projects-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:28px;
}
.project-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .25s, box-shadow .25s;
}
.project-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}
.project-thumb {
  height:180px;
  background:var(--bg-secondary);
  display:flex; align-items:center; justify-content:center;
  font-size:48px;
}
.project-body { padding:24px; }
.project-body h3 { font-size:18px; margin-bottom:8px; }
.project-body p {
  color:var(--text-secondary);
  font-size:14px;
  margin-bottom:16px;
}
.project-tags {
  display:flex; gap:8px; flex-wrap:wrap;
  margin-bottom:16px;
}
.project-tags span {
  background:rgba(56,189,248,.12);
  color:var(--accent);
  font-size:12px;
  padding:4px 12px;
  border-radius:20px;
  font-weight:500;
}
.project-links { display:flex; gap:16px; }
.project-links a { font-size:14px; font-weight:500; }

/* ========== Contact ========== */
.contact-subtitle {
  text-align:center;
  color:var(--text-secondary);
  margin-bottom:36px;
  font-size:15px;
}
.contact-links {
  display:flex; justify-content:center;
  gap:20px; flex-wrap:wrap;
}
.contact-item {
  display:flex; align-items:center; gap:10px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:10px;
  padding:16px 28px;
  color:var(--text-primary) !important;
  font-size:15px;
  transition:all .25s;
}
.contact-item:hover {
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.contact-icon { font-size:22px; }

/* ========== Footer ========== */
.footer {
  text-align:center;
  padding:32px 0;
  border-top:1px solid var(--border);
  color:var(--text-secondary);
  font-size:14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .menu-toggle { display:flex; }
  .nav-links {
    position:fixed; top:64px; left:0; width:100%;
    flex-direction:column;
    background:rgba(15,23,42,.98);
    backdrop-filter:blur(12px);
    padding:16px 24px;
    border-bottom:1px solid var(--border);
    transform:translateY(-120%);
    opacity:0;
    transition:all .35s;
    pointer-events:none;
  }
  .nav-links.open {
    transform:translateY(0);
    opacity:1;
    pointer-events:all;
  }
  .nav-links a { padding:14px 0; border-bottom:1px solid rgba(255,255,255,.05); }

  .hero-content { flex-direction:column-reverse; text-align:center; gap:32px; }
  .hero-desc { max-width:100%; }
  .hero-actions { justify-content:center; }
  .avatar-placeholder { width:180px; height:180px; }

  .about-content { grid-template-columns:1fr; }
  .info-item { flex-direction:column; gap:4px; }
  .projects-grid { grid-template-columns:1fr; }
  .contact-links { flex-direction:column; align-items:center; }
}

@media (max-width: 480px) {
  .section { padding:64px 0; }
  .hero-name { font-size:2.2rem; }
}

/* ============================================
   Timeline (Experience Section)
   ============================================ */
.exp-block {
  margin-bottom: 48px;
}
.exp-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-secondary);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.timeline-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.timeline-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.timeline-detail {
  list-style: disc;
  padding-left: 20px;
}
.timeline-detail li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}
.timeline-detail li:last-child {
  margin-bottom: 0;
}

/* ============================================
   Project Custom Styles
   ============================================ */
.project-period {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.project-detail {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.project-detail li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.6;
}/* ============================================
   Global Reset & Variables
   ============================================ */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --border: #334155;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,.3);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
}
a { color:var(--accent); text-decoration:none; transition:color .2s; }
a:hover { color:var(--accent-hover); }
img { max-width:100%; display:block; }
ul { list-style:none; }
.container { max-width:1100px; margin:0 auto; padding:0 24px; }

/* ========== Buttons ========== */
.btn {
  display:inline-block;
  padding:12px 28px;
  border-radius:8px;
  font-weight:600;
  font-size:15px;
  transition:all .25s;
  cursor:pointer;
}
.btn-primary {
  background:var(--accent);
  color:#0f172a;
}
.btn-primary:hover { background:var(--accent-hover); color:#0f172a; }
.btn-outline {
  border:2px solid var(--accent);
  color:var(--accent);
  background:transparent;
}
.btn-outline:hover { background:var(--accent); color:#0f172a; }

/* ========== Navbar ========== */
.navbar {
  position:fixed; top:0; left:0; width:100%; z-index:1000;
  background:rgba(15,23,42,.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav-container {
  display:flex; align-items:center;
  justify-content:space-between;
  height:64px;
}
.logo {
  font-size:22px; font-weight:800;
  color:var(--text-primary) !important;
  letter-spacing:-.5px;
}
.nav-links { display:flex; gap:8px; }
.nav-links a {
  color:var(--text-secondary);
  padding:8px 16px;
  border-radius:6px;
  font-size:14px;
  font-weight:500;
  transition:all .2s;
}
.nav-links a:hover {
  color:var(--text-primary);
  background:rgba(255,255,255,.06);
}

/* Hamburger */
.menu-toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px;
}
.menu-toggle span {
  display:block;
  width:26px; height:2.5px;
  background:var(--text-primary);
  border-radius:2px;
  transition:all .3s;
}

/* ========== Hero ========== */
.hero {
  min-height:100vh;
  display:flex; align-items:center;
  padding-top:64px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.hero-content {
  display:flex; align-items:center; gap:80px;
  width:100%;
}
.hero-text { flex:1; }
.hero-greeting {
  font-size:18px;
  color:var(--accent);
  margin-bottom:8px;
  font-weight:500;
}
.hero-name {
  font-size:clamp(2.6rem,6vw,4.5rem);
  font-weight:800;
  line-height:1.1;
  margin-bottom:12px;
  background:linear-gradient(135deg, #38bdf8, #a78bfa);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero-tagline {
  font-size:18px;
  color:var(--text-secondary);
  margin-bottom:16px;
}
.hero-desc {
  font-size:16px;
  color:var(--text-secondary);
  margin-bottom:32px;
  max-width:520px;
}
.hero-actions { display:flex; gap:16px; flex-wrap:wrap; }
.hero-avatar { flex-shrink:0; }
.avatar-placeholder {
  width:280px; height:280px;
  border-radius:50%;
  background:var(--bg-secondary);
  border:3px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:80px;
  box-shadow:var(--shadow);
}

/* ========== Sections ========== */
.section {
  padding:100px 0;
}
.section-alt { background:var(--bg-secondary); }
.section-title {
  font-size:clamp(1.6rem,3vw,2.2rem);
  font-weight:700;
  text-align:center;
  margin-bottom:50px;
  position:relative;
}
.section-title::after {
  content:"";
  display:block;
  width:50px; height:3px;
  background:var(--accent);
  margin:12px auto 0;
  border-radius:2px;
}

/* ========== About ========== */
.about-content {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:40px;
  align-items:start;
}
.about-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px;
}
.about-card p {
  color:var(--text-secondary);
  margin-bottom:16px;
  font-size:15px;
}
.about-card p:last-child { margin-bottom:0; }
.about-info { display:flex; flex-direction:column; gap:12px; }
.info-item {
  display:flex; justify-content:space-between;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:8px;
  padding:14px 20px;
  font-size:14px;
}
.info-label { font-weight:600; color:var(--text-primary); }
.info-value { color:var(--text-secondary); }

/* ========== Skills ========== */
.skills-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}
.skill-category {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 24px;
  transition:transform .2s, box-shadow .2s;
}
.skill-category:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}
.skill-category h3 {
  font-size:16px;
  margin-bottom:16px;
  color:var(--accent);
}
.skill-category li {
  color:var(--text-secondary);
  font-size:14px;
  padding:6px 0;
  border-bottom:1px solid rgba(255,255,255,.04);
}
.skill-category li:last-child { border-bottom:none; }

/* ========== Projects ========== */
.projects-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:28px;
}
.project-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .25s, box-shadow .25s;
}
.project-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}
.project-thumb {
  height:180px;
  background:var(--bg-secondary);
  display:flex; align-items:center; justify-content:center;
  font-size:48px;
}
.project-body { padding:24px; }
.project-body h3 { font-size:18px; margin-bottom:8px; }
.project-body p {
  color:var(--text-secondary);
  font-size:14px;
  margin-bottom:16px;
}
.project-tags {
  display:flex; gap:8px; flex-wrap:wrap;
  margin-bottom:16px;
}
.project-tags span {
  background:rgba(56,189,248,.12);
  color:var(--accent);
  font-size:12px;
  padding:4px 12px;
  border-radius:20px;
  font-weight:500;
}
.project-links { display:flex; gap:16px; }
.project-links a { font-size:14px; font-weight:500; }

/* ========== Contact ========== */
.contact-subtitle {
  text-align:center;
  color:var(--text-secondary);
  margin-bottom:36px;
  font-size:15px;
}
.contact-links {
  display:flex; justify-content:center;
  gap:20px; flex-wrap:wrap;
}
.contact-item {
  display:flex; align-items:center; gap:10px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:10px;
  padding:16px 28px;
  color:var(--text-primary) !important;
  font-size:15px;
  transition:all .25s;
}
.contact-item:hover {
  border-color:var(--accent);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.contact-icon { font-size:22px; }

/* ========== Footer ========== */
.footer {
  text-align:center;
  padding:32px 0;
  border-top:1px solid var(--border);
  color:var(--text-secondary);
  font-size:14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .menu-toggle { display:flex; }
  .nav-links {
    position:fixed; top:64px; left:0; width:100%;
    flex-direction:column;
    background:rgba(15,23,42,.98);
    backdrop-filter:blur(12px);
    padding:16px 24px;
    border-bottom:1px solid var(--border);
    transform:translateY(-120%);
    opacity:0;
    transition:all .35s;
    pointer-events:none;
  }
  .nav-links.open {
    transform:translateY(0);
    opacity:1;
    pointer-events:all;
  }
  .nav-links a { padding:14px 0; border-bottom:1px solid rgba(255,255,255,.05); }

  .hero-content { flex-direction:column-reverse; text-align:center; gap:32px; }
  .hero-desc { max-width:100%; }
  .hero-actions { justify-content:center; }
  .avatar-placeholder { width:180px; height:180px; }

  .about-content { grid-template-columns:1fr; }
  .info-item { flex-direction:column; gap:4px; }
  .projects-grid { grid-template-columns:1fr; }
  .contact-links { flex-direction:column; align-items:center; }
}

@media (max-width: 480px) {
  .section { padding:64px 0; }
  .hero-name { font-size:2.2rem; }
}

/* ============================================
   Timeline (Experience Section)
   ============================================ */
.exp-block {
  margin-bottom: 48px;
}
.exp-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-secondary);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.timeline-date {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.timeline-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.timeline-detail {
  list-style: disc;
  padding-left: 20px;
}
.timeline-detail li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}
.timeline-detail li:last-child {
  margin-bottom: 0;
}

/* ============================================
   Project Custom Styles
   ============================================ */
.project-period {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.project-detail {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.project-detail li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.6;
}