/**
 * CV Agus Hariyanto - Dimensi Studio
 * Modern CV Design with Professional Layout
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Instrument Sans', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #2c3e50;
  line-height: 1.6;
  padding: 40px 20px;
  min-height: 100vh;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  position: relative;
}

.logo-mark img {
  border-radius: 50%;
}

.logo-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #C8351F;
  border: 2.5px solid #fff;
}

.logo-text {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0E0D0C;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7A7770;
  margin-top: 2px;
}

.nav-cta {
  background: #0ea2bd;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #0c8ca3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 162, 189, 0.3);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   RESUME CARD
   ============================================ */
.resume-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 800px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 30px;
}

.avatar {
  text-align: center;
  margin-bottom: 25px;
}

.avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.name-block {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.name-block h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}

.name-block p {
  font-size: 14px;
  color: #0ea2bd;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0ea2bd;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   CONTACT LIST
   ============================================ */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  font-size: 12px;
  color: #0ea2bd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #0ea2bd;
}

/* ============================================
   SKILLS
   ============================================ */
.skill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.skill-name {
  font-weight: 600;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0ea2bd 0%, #17c1db 100%);
  border-radius: 10px;
  transition: width 1s ease;
}

.w-95 { width: 95%; }
.w-90 { width: 90%; }
.w-88 { width: 88%; }
.w-82 { width: 82%; }

/* ============================================
   TOOLS
   ============================================ */
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   LANGUAGES
   ============================================ */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.lang-item strong {
  color: #0ea2bd;
  font-size: 12px;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content {
  padding: 50px 60px;
  background: white;
}

.content h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.lead {
  font-size: 16px;
  color: #7f8c8d;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0ea2bd;
  display: inline-block;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #0ea2bd 0%, #17c1db 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid #ecf0f1;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #0ea2bd;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #0ea2bd;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.timeline-subtitle {
  font-size: 15px;
  color: #0ea2bd;
  font-weight: 600;
}

.timeline-meta {
  text-align: right;
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.6;
}

.timeline-list {
  list-style: none;
  margin: 15px 0;
}

.timeline-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #0ea2bd;
  font-weight: bold;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  background: #e8f4f8;
  color: #0ea2bd;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #f8f9fa;
  border-left: 4px solid #0ea2bd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.card-title span {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 600;
}

.job-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ============================================
   PROJECT GRID
   ============================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: white;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #0ea2bd;
}

.project-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-card span {
  font-size: 12px;
  color: #0ea2bd;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .resume-card {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    padding: 30px 25px;
  }
  
  .content {
    padding: 40px 30px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }
  
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }
  
  .content {
    padding: 30px 20px;
  }
  
  .content h2 {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .timeline-top {
    flex-direction: column;
  }
  
  .timeline-meta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .avatar img {
    width: 120px;
    height: 120px;
  }
  
  .name-block h1 {
    font-size: 20px;
  }
  
  .content h2 {
    font-size: 24px;
  }
  
  .lead {
    font-size: 14px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body {
    background: white;
    padding: 0;
  }
  
  nav {
    display: none;
  }
  
  .resume-card {
    box-shadow: none;
    border-radius: 0;
  }
  
  .sidebar {
    background: #2c3e50;
  }
  
  .content {
    padding: 20px;
  }
}
