/* ===== LOCAL FONTS ===== */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/poppins-300.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/poppins-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.ttf') format('truetype');
}

/* ===== VARIABLES ===== */
:root {
  --accent: #4DB6AC;
  --accent-dark: #00897B;
  --sidebar-width: 220px;
  --nav-width: 44px;
  --dark-bg: #1B2631;
  --dark-overlay: rgba(27, 38, 49, 0.85);
  --text-primary: #2C3E50;
  --text-secondary: #7f8c8d;
  --text-light: rgba(255, 255, 255, 0.8);
  --border-color: #ecf0f1;
  --section-bg: #f8f9fa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #e8edf1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

/* ===== APP WRAPPER — 1024x768, centered ===== */
.app-wrapper {
  max-width: 1024px;
  max-height: 768px;
  width: 100%;
  height: 768px;
  display: flex;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  background: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  background: var(--dark-bg);
  background-image:
    linear-gradient(var(--dark-overlay), var(--dark-overlay)),
    linear-gradient(135deg, #1B2631 0%, #2C3E50 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 1rem;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.sidebar-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  text-align: center;
  line-height: 1.2;
}

.sidebar-title {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
  text-align: center;
}

.sidebar-social {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.sidebar-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.sidebar-divider {
  width: 80%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.3rem 0 0.6rem;
  flex-shrink: 0;
}

.sidebar-info {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.sidebar-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-info li:last-child {
  border-bottom: none;
}

.sidebar-info li i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-info li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-info li a:hover {
  color: var(--accent);
}

.sidebar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.sidebar-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(77, 182, 172, 0.4);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  text-align: center;
  flex-shrink: 0;
}

/* ===== RIGHT NAV STRIP ===== */
.nav-strip {
  width: var(--nav-width);
  min-width: var(--nav-width);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  z-index: 10;
}

.nav-strip a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-strip a:hover,
.nav-strip a.active {
  color: #fff;
  background: var(--accent);
}

.nav-strip a .nav-tooltip {
  position: absolute;
  right: 38px;
  background: var(--dark-bg);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-strip a:hover .nav-tooltip {
  opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-text {
  flex: 1;
  max-width: 380px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.hero-name {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(77, 182, 172, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-image {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.12;
}

/* ===== SECTIONS ===== */
.content-section {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
}

.content-section:nth-child(even) {
  background: var(--section-bg);
}

.section-header {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== COMPETENCY CARDS ===== */
.competency-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.8rem;
  transition: all 0.3s;
  height: 100%;
}

.competency-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.competency-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.competency-icon.cloud { background: #0288D1; }
.competency-icon.code { background: #7B1FA2; }
.competency-icon.ai { background: #E53935; }
.competency-icon.chatbot { background: #F57C00; }
.competency-icon.devops { background: #2E7D32; }
.competency-icon.database { background: #5C6BC0; }

.competency-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.competency-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 14px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  z-index: 2;
}

.timeline-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 182, 172, 0.2);
}

.timeline-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

.timeline-company {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0;
}

.timeline-period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-desc li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 0.7rem;
  position: relative;
  margin-bottom: 0.15rem;
}

.timeline-desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== PROJECT CARDS ===== */
.project-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.project-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.project-strip {
  height: 3px;
}

.project-strip.s1 { background: linear-gradient(90deg, #E53935, #F57C00); }
.project-strip.s2 { background: linear-gradient(90deg, #4DB6AC, #2E7D32); }
.project-strip.s3 { background: linear-gradient(90deg, #7B1FA2, #5C6BC0); }
.project-strip.s4 { background: linear-gradient(90deg, #F57C00, #FFB300); }
.project-strip.s5 { background: linear-gradient(90deg, #E53935, #7B1FA2); }
.project-strip.s6 { background: linear-gradient(90deg, #2E7D32, #4DB6AC); }

.project-card .card-body {
  padding: 0.7rem;
}

.project-card h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.project-card h5 i {
  color: var(--accent);
  margin-right: 0.3rem;
}

.project-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.project-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.project-card a:hover {
  color: var(--accent-dark);
}

/* ===== TECH TAGS ===== */
.tech-group {
  margin-bottom: 0.8rem;
}

.tech-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tech-group-title i {
  color: var(--accent);
}

.tech-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.15rem;
  transition: all 0.2s;
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.tech-tag.cloud { background: #e3f2fd; border-color: #bbdefb; color: #0288D1; }
.tech-tag.lang { background: #e8f5e9; border-color: #c8e6c9; color: #2E7D32; }
.tech-tag.devops { background: #fff3e0; border-color: #ffe0b2; color: #F57C00; }
.tech-tag.ai { background: #fce4ec; border-color: #f8bbd0; color: #C62828; }
.tech-tag.db { background: #ede7f6; border-color: #d1c4e9; color: #5C6BC0; }

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.contact-item:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
  color: inherit;
}

.contact-item .ci-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(77, 182, 172, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item .ci-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item .ci-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== FOOTER ===== */
.main-footer {
  padding: 0.8rem 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
.main-content::-webkit-scrollbar {
  width: 4px;
}

.main-content::-webkit-scrollbar-track {
  background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== RESPONSIVE — smaller screens ===== */
@media (max-width: 800px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  .app-wrapper {
    max-width: 100%;
    max-height: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .sidebar {
    display: none;
  }

  .nav-strip {
    display: none;
  }

  .hero-image {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
