/*
 * Resume — Modern CSS
 * Dark navy sidebar + blue accent, Inter font, flexbox layout
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== Variables ===== */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #1e293b;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-accent: #38bdf8;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-main: #ffffff;
  --bg-body: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 6px;
}

/* ===== Base ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  font-size: 14px;
  padding: 30px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

@media (max-width: 767px) {
  body {
    padding: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

p {
  margin: 0 0 0.75em;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== Layout wrapper ===== */
.wrapper {
  display: flex;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--bg-main);
}

/* ===== Sidebar ===== */
.sidebar-wrapper {
  background: var(--sidebar-bg);
  width: var(--sidebar-width);
  flex-shrink: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.sidebar-wrapper a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.sidebar-wrapper a:hover {
  color: var(--sidebar-accent);
  text-decoration: none;
}

/* Profile block */
.sidebar-wrapper .profile-container {
  padding: 40px 28px 32px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #fff;
}

.profile-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.1), 0 4px 16px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto 16px;
}

.sidebar-wrapper .name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}

.sidebar-wrapper .tagline {
  color: var(--sidebar-accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* Container blocks */
.sidebar-wrapper .container-block {
  padding: 22px 28px;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-wrapper .container-block-title {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 14px;
}

/* Contact list */
.sidebar-wrapper .contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-wrapper .contact-list li {
  margin-bottom: 11px;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-wrapper .contact-list li:last-child {
  margin-bottom: 0;
}

.sidebar-wrapper .contact-list .fa {
  margin-right: 8px;
  font-size: 13px;
  vertical-align: middle;
  color: var(--sidebar-accent);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* Education */
.sidebar-wrapper .degree {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3px;
  line-height: 1.4;
}

.sidebar-wrapper .education-container .item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-wrapper .education-container .item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-wrapper .education-container .meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  font-weight: 400;
  margin-bottom: 2px;
}

.sidebar-wrapper .education-container .time {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}

/* Languages */
.sidebar-wrapper .languages-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-wrapper .languages-list li {
  margin-bottom: 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-wrapper .languages-list li:last-child {
  margin-bottom: 0;
}

.sidebar-wrapper .languages-container .lang-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-style: italic;
}

/* Interests */
.sidebar-wrapper .interests-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-wrapper .interests-list li {
  margin-bottom: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-wrapper .interests-list li:last-child {
  margin-bottom: 0;
}

/* ===== Main Content ===== */
.main-wrapper {
  flex: 1;
  background: var(--bg-main);
  padding: 50px;
  min-width: 0;
}

.main-wrapper .section {
  margin-bottom: 44px;
}

.main-wrapper .section:last-child {
  margin-bottom: 0;
}

/* Section titles */
.main-wrapper .section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 12px;
}

.main-wrapper .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.main-wrapper .section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--accent);
  z-index: 1;
}

.main-wrapper .section-title .fa {
  margin-right: 8px;
  font-size: 12px;
  color: var(--accent);
  background: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  height: auto;
  top: 0;
  position: static;
  display: inline;
}

/* Career Profile */
.summary-section .summary {
  color: var(--text-secondary);
}

.summary-section .summary p,
.summary-section .summary ul {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.summary-section .summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.summary-section .summary li {
  margin-bottom: 4px;
}

.summary-section .summary b,
.summary-section .summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Experience */
.experiences-section .item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.experiences-section .item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.main-wrapper .upper-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.main-wrapper .job-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.main-wrapper .time {
  position: static;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.main-wrapper .company {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 10px;
}

.main-wrapper .details {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
}

.main-wrapper .details p {
  margin: 0;
}

.main-wrapper .details ul {
  margin: 0;
  padding-left: 18px;
}

.main-wrapper .details li {
  margin-bottom: 4px;
  line-height: 1.55;
}

/* Projects */
.main-wrapper .project-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.main-wrapper .projects-section .intro {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.main-wrapper .projects-section .item {
  margin-bottom: 14px;
}

/* ===== Skills ===== */
.skillset {
  display: grid;
  gap: 14px;
}

.skillset .item {
  overflow: hidden;
}

.skillset .level-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.skillset .level-bar {
  height: 5px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.skillset .level-bar-inner {
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0%, #38bdf8 100%);
  border-radius: 100px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
  .skillset .item {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .skillset .level-title {
    width: 38%;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 13px;
  }

  .skillset .level-bar {
    flex: 1;
    position: relative;
    top: 0;
  }
}

/* ===== Footer ===== */
.footer {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .wrapper {
    flex-direction: column;
    border-radius: 0;
  }

  .sidebar-wrapper {
    width: 100%;
  }

  .main-wrapper {
    padding: 30px 24px;
  }

  .main-wrapper .upper-row {
    flex-direction: column;
    gap: 6px;
  }

  .main-wrapper .time {
    align-self: flex-start;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .main-wrapper {
    padding: 40px 36px;
  }
}
