/* ==========================================================================
   PORTFOLIO STYLING: Vijaya Acharya (jayahos.com)
   Modern, sleek, polished & interactive web design
   ========================================================================== */

:root {
  --primary: #0085CA;            /* Carolina Blue */
  --primary-hover: #006da6;
  --primary-light: #eff8ff;
  --primary-border: #bfdbfe;
  
  --dark: #0f172a;               /* Modern Slate 900 */
  --dark-card: #1e293b;
  --text-main: #1e293b;          /* Crisp high contrast text */
  --text-muted: #64748b;         /* Muted Slate 500 */
  
  --bg-page: #f8fafc;            /* Clean light grey/slate background */
  --bg-card: #ffffff;
  --border: #e2e8f0;
  
  --success: #10b981;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius: 12px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-btn {
  text-decoration: none;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 55px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.photo-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-box {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-initials {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.hero-text {
  flex: 1;
}

.hero-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.hero-location {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-location i {
  color: #ef4444;
}

.hero-tagline {
  font-size: 1.15rem;
  color: #334155;
  font-weight: 400;
  margin-bottom: 22px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 2px 4px rgba(0, 133, 202, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #94a3b8;
  background-color: #f1f5f9;
  transform: translateY(-1px);
}

.btn-icon {
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  color: #0077b5;
  font-size: 1.1rem;
}

.btn-icon:hover {
  background-color: #0077b5;
  color: #ffffff;
  border-color: #0077b5;
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-num {
  font-family: monospace;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.about-card p {
  margin-bottom: 14px;
  color: #334155;
  font-size: 1.05rem;
}

.highlight-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  color: #0c4a6e;
  font-size: 0.98rem;
}

.highlight-banner i {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 2px;
}

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 16px;
}

.role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

.former-name {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.job-period {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

.bullet-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  color: #334155;
  font-size: 0.98rem;
}

/* ==========================================================================
   EDUCATION
   ========================================================================== */
.education-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.credential-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
}

.institution-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2px;
}

.badge-target {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.course-container {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.course-intro {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--dark);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.course-pill {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-subpoints {
  list-style: disc;
  padding-left: 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-subpoints li {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

.highlight-card {
  border-color: #bae6fd !important;
  background: #f0f9ff !important;
}

.highlight-icon {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.status-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.course-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
}

.course-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
}

/* ==========================================================================
   CERTIFICATIONS
   ========================================================================== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cert-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.cert-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
}

.cert-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cert-details h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.35;
}

.cert-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag i {
  color: var(--primary);
}

.skill-tag:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
}

.highlight-skill {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  font-weight: 600;
}

.highlight-skill i {
  color: #16a34a;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-text {
  font-size: 1.1rem;
  color: #334155;
  max-width: 600px;
  margin: 0 auto 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.email-btn {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.email-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.linkedin-btn {
  background-color: #ffffff;
  color: #0077b5;
  border: 1px solid #0077b5;
}

.linkedin-btn:hover {
  background-color: #0077b5;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 40px 0 50px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin-bottom: 6px;
}

.footer-meaning {
  font-style: italic;
  font-size: 0.95rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .hero-actions {
    justify-content: center;
  }

  .badge-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .experience-header, .education-header {
    flex-direction: column;
    gap: 8px;
  }

  .job-period, .badge-target {
    align-self: flex-start;
  }
}

/* ==========================================================================
   PRINT / SAVE AS PDF STYLING
   Optimizes page into a clean 1-2 page executive resume
   ========================================================================== */
@media print {
  .navbar,
  .hero-actions,
  .btn-primary,
  .btn-secondary,
  .btn-icon,
  .pulse-ring,
  .status-badge,
  .site-footer,
  .contact-links {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .hero-section {
    padding: 0 0 15px 0 !important;
    border-bottom: 2px solid #333 !important;
    background: none !important;
  }

  .hero-name {
    font-size: 20pt !important;
    color: #000 !important;
    margin-bottom: 2px !important;
  }

  .hero-location {
    font-size: 10pt !important;
    color: #333 !important;
    margin-bottom: 4px !important;
  }

  .hero-tagline {
    font-size: 11pt !important;
    color: #222 !important;
    margin-bottom: 0 !important;
  }

  .photo-container {
    display: none !important;
  }

  .section {
    padding: 14px 0 !important;
    border-bottom: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  .section-title {
    font-size: 12pt !important;
    color: #004d77 !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #004d77;
    padding-bottom: 3px;
    text-transform: uppercase;
  }

  .title-num {
    display: none !important;
  }

  .about-card,
  .experience-card,
  .education-card,
  .skills-card,
  .contact-card,
  .cert-item {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: none !important;
  }

  .experience-card {
    margin-bottom: 12px !important;
    border-left: none !important;
  }

  .role-title {
    font-size: 11pt !important;
    font-weight: bold !important;
  }

  .company-name {
    font-size: 10pt !important;
    color: #333 !important;
  }

  .job-period {
    background: none !important;
    padding: 0 !important;
    font-size: 9.5pt !important;
    color: #555 !important;
  }

  .bullet-list li {
    font-size: 10pt !important;
    line-height: 1.35 !important;
  }

  .skill-tags {
    gap: 6px !important;
  }

  .skill-tag {
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    color: #000 !important;
    font-size: 9pt !important;
    padding: 3px 8px !important;
  }

  .contact-card {
    text-align: left !important;
  }

  .contact-card::after {
    content: "Email: contact@jayahos.com  |  LinkedIn: linkedin.com/in/vijaya-acharya-130829423  |  Location: North Carolina";
    display: block;
    font-size: 10pt;
    font-weight: 600;
    color: #222;
    margin-top: 5px;
  }

  .contact-text {
    display: none !important;
  }
}
