/* Light slate theme. Loaded after the original iPortfolio stylesheet. */
:root {
  --default-font: Arial, Helvetica, sans-serif;
  --heading-font: Arial, Helvetica, sans-serif;
  --nav-font: Arial, Helvetica, sans-serif;
  --background-color: #ffffff;
  --surface-color: #ffffff;
  --default-color: #475569;
  --heading-color: #0f172a;
  --accent-color: #1d4ed8;
  --contrast-color: #ffffff;
  --nav-color: #475569;
  --nav-hover-color: #1d4ed8;
  --theme-muted: #64748b;
  --theme-border: #e2e8f0;
  --theme-soft: #f8fafc;
  --theme-blue-soft: #eff6ff;
  --theme-radius: 14px;
  --theme-shadow: 0 4px 18px -8px rgb(15 23 42 / 12%);
  --header-height: 76px;
  --bs-body-font-family: Arial, Helvetica, sans-serif;
  --bs-body-color: #475569;
  --bs-border-color: #e2e8f0;
}

body { line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { color: #1e3a8a; background: #dbeafe; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.035em; }
a { text-underline-offset: 4px; }
a:hover { color: #1e40af; }
button, input, textarea, select { font: inherit; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
.light-background { --background-color: #f8fafc; --surface-color: #ffffff; }
.container { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
section, .section { padding: 76px 0; scroll-margin-top: calc(var(--header-height) + 20px); }
.main { padding-top: var(--header-height); }
.header~main, .header~#footer { margin-left: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000; padding: 10px 18px; background: #0f172a; color: white; border-radius: 8px; }
.skip-link:focus { top: 10px; color: white; }

/* Shared navigation */
.header {
  inset: 0 0 auto;
  width: 100%;
  height: var(--header-height);
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--theme-border);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: var(--theme-shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--heading-color); flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; background: #0f172a; color: white; border-radius: 10px; font-size: 13px; font-weight: 700; letter-spacing: -.03em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { font-size: 15px; letter-spacing: -.03em; }
.brand-copy small { color: var(--theme-muted); font-size: 11px; }
.navmenu { padding: 0; }
.navmenu ul { display: flex; align-items: center; gap: 3px; padding: 4px; margin: 0; border: 1px solid var(--theme-border); background: var(--theme-soft); border-radius: 10px; }
.navmenu a, .navmenu a:focus { padding: 7px 12px; font-size: 12px; font-weight: 600; line-height: 1.5; border: 1px solid transparent; border-radius: 7px; color: var(--nav-color); }
.navmenu a:hover { background: #e2e8f0; color: var(--heading-color); }
.navmenu a.active, .navmenu a.active:focus { background: white; border-color: var(--theme-border); color: var(--accent-color); box-shadow: 0 1px 3px rgb(15 23 42 / 4%); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-resume { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #cbd5e1; border-radius: 8px; color: var(--heading-color); font-size: 12px; font-weight: 600; white-space: nowrap; }
.header-resume:hover { background: var(--theme-soft); }
.header .header-toggle { display: none; position: static; width: 38px; height: 38px; border: 1px solid var(--theme-border); border-radius: 8px; background: var(--theme-soft); color: var(--heading-color); font-size: 22px; padding: 0; }
.header .header-toggle:hover { background: #e2e8f0; color: var(--heading-color); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  max-height: none;
  padding: 76px 0 64px;
  background-color: white;
  background-image: linear-gradient(rgb(15 23 42 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(15 23 42 / 3%) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 1px solid var(--theme-border);
}
.hero:before { content: none; }
.hero-layout { display: block; width: 100%; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #059669; flex-shrink: 0; }
.hero-affiliation { display: flex; justify-content: center; align-items: center; gap: 8px; margin: -6px 0 20px; color: var(--theme-muted); font-size: 14px; }
.hero-affiliation strong { color: var(--heading-color); font-weight: 600; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; line-height: 1.08; margin: 0 0 16px; letter-spacing: -.055em; }
.hero .hero-role { font-size: clamp(19px, 2vw, 25px); color: var(--accent-color); font-weight: 700; letter-spacing: -.03em; margin: 0 0 18px; line-height: 1.35; }
.hero .hero-description { font-size: 16px; line-height: 1.8; max-width: 760px; margin: 0 auto 24px; }
.hero-description strong { color: #334155; font-weight: 600; }
.skill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.skill-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 5px 9px; background: var(--theme-soft); border: 1px solid var(--theme-border); border-radius: 6px; color: #334155; }
.skill-tags i { color: #2563eb; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.theme-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 19px; font-size: 13px; font-weight: 600; line-height: 1.5; border-radius: 8px; border: 1px solid #0f172a; color: white; background: #0f172a; transition: background .2s, box-shadow .2s; }
.theme-button:hover { color: white; background: #1e293b; box-shadow: var(--theme-shadow); }
.theme-button-secondary { color: #334155; background: white; border-color: #cbd5e1; }
.theme-button-secondary:hover { color: #0f172a; background: #f8fafc; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--theme-border); font-size: 12px; }
.hero-meta a, .hero-meta span { display: inline-flex; align-items: center; gap: 7px; color: #475569; }
.hero-meta a:hover { color: var(--accent-color); }
.hero-meta i { color: #64748b; }
.expertise-strip { padding: 28px 0; background: var(--theme-soft); border-bottom: 1px solid var(--theme-border); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.expertise-item { display: flex; align-items: center; gap: 15px; padding: 20px; background: white; border: 1px solid var(--theme-border); border-radius: 10px; }
.expertise-item>i { color: var(--accent-color); font-size: 23px; }
.expertise-item h2 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.expertise-item p { font-size: 12px; margin: 0; color: var(--theme-muted); }

/* Shared section treatment */
.section-title { padding-bottom: 34px; }
.section-title h2 { font-size: 32px; font-weight: 750; padding-bottom: 0; margin-bottom: 13px; }
.section-title h2:after { content: none; }
.section-title p { max-width: 850px; font-size: 15px; line-height: 1.8; }
.section-eyebrow { display: block; color: var(--accent-color); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 9px; }
.about, .resume, .portfolio, .services, .contact { border-bottom: 1px solid var(--theme-border); }
.about .row>div>img { width: 100%; height: 345px; object-fit: cover; border-radius: var(--theme-radius); border: 1px solid var(--theme-border); }
.about .content { padding: 26px; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-soft); }
.about .content h2 { font-size: 21px; }
.about .content ul li { font-size: 13px; margin-bottom: 16px; align-items: flex-start; overflow-wrap: anywhere; }
.about .content ul strong { flex-shrink: 0; }
.about .content ul i { font-size: 12px; padding-top: 3px; }
.about .content .fst-italic { font-style: normal !important; font-size: 14px; }
.resume { --background-color: #f8fafc; }
.resume .resume-title { font-size: 18px; margin-top: 0; margin-bottom: 20px; }
.resume .resume-item { background: white; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); padding: 24px; margin-bottom: 24px; font-size: 14px; }
.resume .resume-item:before { content: none; }
.resume .resume-item h4 { font-size: 17px; line-height: 1.5; text-transform: none; }
.resume .resume-item h5 { color: var(--theme-muted); background: var(--theme-soft); font-size: 11px; font-weight: 500; border: 1px solid var(--theme-border); border-radius: 5px; padding: 4px 8px; }
.resume .resume-item ul { padding-left: 18px; }
.resume .resume-item ul li { padding-bottom: 9px; line-height: 1.75; }
.resume .resume-item .resume-role-head { flex-wrap: wrap; gap: 8px; }
.resume .resume-cta { font-size: 13px; border-radius: 8px; background: #0f172a; box-shadow: none; padding: 12px 22px; }
.resume .resume-cta:hover { background: #1e293b; box-shadow: var(--theme-shadow); transform: none; }
.resume .resume-item .resume-branch, .resume .resume-item .resume-institute em, .resume .resume-item .resume-company em { font-size: 13px; font-style: normal; line-height: 1.65; }

/* Project actions stay visible for keyboard and touch users. */
.portfolio { --background-color: #ffffff; }
.portfolio .portfolio-filters { text-align: left; margin: 0 0 25px; padding: 0; }
.portfolio .portfolio-filters li { margin: 0 6px 0 0; padding: 0; }
.portfolio-filters button { border: 1px solid var(--theme-border); background: white; color: #475569; font-size: 12px; font-weight: 600; border-radius: 7px; padding: 7px 16px; }
.portfolio-filters .filter-active button { color: var(--accent-color); background: var(--theme-blue-soft); border-color: #bfdbfe; }
.portfolio .portfolio-content { border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: white; box-shadow: var(--theme-shadow); }
.portfolio .portfolio-content img { width: 100%; aspect-ratio: 16/9; object-fit: contain; object-position: center; background: var(--theme-soft); border-bottom: 1px solid var(--theme-border); }
.portfolio .portfolio-content .portfolio-info, .portfolio .portfolio-content:hover .portfolio-info { position: static; opacity: 1; padding: 25px; background: white; }
.portfolio .portfolio-content .portfolio-info h4 { position: static; display: block; padding: 0; margin: 0 0 8px; font-size: 22px; color: var(--heading-color); background: none; }
.portfolio .portfolio-content .portfolio-info p { position: static; text-align: left; color: #475569; font-size: 14px; font-weight: 400; padding: 0; margin: 0 0 18px; line-height: 1.75; }
.portfolio .portfolio-content .portfolio-info .portfolio-links { position: static; transform: none; display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-start; }
.portfolio .portfolio-content .portfolio-info .portfolio-links a { position: static; display: inline-flex; align-items: center; gap: 6px; color: #334155; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 8px 11px; margin: 0; border: 1px solid var(--theme-border); border-radius: 7px; }
.portfolio .portfolio-content .portfolio-info .portfolio-links a:hover { background: var(--theme-soft); color: var(--accent-color); }
.portfolio .portfolio-content .portfolio-info .portfolio-links .details-link { background: var(--theme-blue-soft); color: var(--accent-color); border-color: #bfdbfe; }
.portfolio .portfolio-content:hover img { transform: none; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.project-stack span { color: #475569; background: var(--theme-soft); border: 1px solid var(--theme-border); border-radius: 5px; padding: 3px 8px; font-size: 10px; }

.services { --background-color: #f8fafc; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 26px; background: white; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); box-shadow: var(--theme-shadow); transition: border-color .2s, transform .2s; }
.service-card:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.services .service-item .icon { background: var(--theme-blue-soft); border: 1px solid #dbeafe; border-radius: 10px; width: 43px; height: 43px; margin: 0 0 20px; }
.services .service-item .icon i { color: var(--accent-color); font-size: 21px; }
.services .service-item:hover .icon { background: var(--theme-blue-soft); }
.services .service-item .title { margin: 0 0 12px; font-size: 17px; line-height: 1.45; }
.services .service-item .description { margin: 0; font-size: 13px; line-height: 1.8; }
.contact .info-wrap, .contact .php-email-form { border: 1px solid var(--theme-border); border-radius: var(--theme-radius); padding: 28px; box-shadow: var(--theme-shadow); height: 100%; }
.contact .info-item { margin-bottom: 27px; }
.contact .info-item i { width: 42px; height: 42px; background: var(--theme-blue-soft); border-radius: 10px; font-size: 19px; }
.contact .info-item h3 { font-size: 13px; margin-bottom: 5px; }
.contact .info-item p { font-size: 13px; overflow-wrap: anywhere; }
.contact .info-item p a { color: #475569; }
.contact iframe { border-radius: 9px; }
.contact .php-email-form label { font-size: 12px; font-weight: 600; color: #334155; }
.contact .php-email-form input[type=text], .contact .php-email-form input[type=email], .contact .php-email-form textarea { padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 14px; }
.contact .php-email-form textarea { min-height: 160px; resize: vertical; }
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus { outline: 2px solid #bfdbfe; outline-offset: 1px; border-color: #2563eb; }
.contact .php-email-form button[type=submit] { display: inline-flex; align-items: center; gap: 9px; background: #0f172a; border-radius: 8px; font-size: 13px; font-weight: 600; padding: 12px 24px; }
.contact .php-email-form button[type=submit]:hover { background: #1e293b; }
.contact .php-email-form button:disabled { opacity: .65; cursor: wait; }
.php-email-form .error-message, .php-email-form .sent-message, .php-email-form .loading { border-radius: 8px; font-size: 13px; }
.php-email-form .error-message { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.php-email-form .sent-message { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

/* Detail pages and resume */
.page-title { padding: 40px 0; border-bottom: 1px solid var(--theme-border); background: var(--theme-soft); }
.page-title h1 { font-size: 29px; }
.page-title .breadcrumbs { font-size: 12px; }
.page-title .breadcrumbs ol { font-size: 12px; }
.page-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-section-nav a { font-size: 12px; padding: 6px 11px; border-radius: 6px; border: 1px solid var(--theme-border); color: #475569; background: white; }
.page-section-nav a:hover { color: var(--accent-color); border-color: #bfdbfe; }
.profile-banner { border: 1px solid var(--theme-border); box-shadow: var(--theme-shadow); }
.profile-banner-contact .value { overflow-wrap: anywhere; }
.starter-page-page .section .border { border-color: var(--theme-border) !important; box-shadow: var(--theme-shadow); }
.starter-page-page .section h5 { font-size: 18px; line-height: 1.5; }
.starter-page-page .section li { margin-top: 10px; font-size: 14px; }
.portfolio-details .portfolio-info, .service-details .services-list { border: 1px solid var(--theme-border); border-radius: var(--theme-radius); box-shadow: var(--theme-shadow); background: white; }
.portfolio-details .portfolio-info { padding: 26px; }
.portfolio-details .portfolio-info ul li { overflow-wrap: anywhere; }
.portfolio-details .portfolio-info h3 { font-size: 18px; }
.portfolio-details .portfolio-description { padding: 24px 0 0; }
.portfolio-details .portfolio-description h2 { font-size: 24px; }
.portfolio-details .portfolio-description p, .portfolio-details .portfolio-description ul { color: #475569; font-size: 14px; line-height: 1.8; }
.portfolio-details-slider { border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-soft); }
.portfolio-details .portfolio-details-slider .swiper-pagination { margin: 15px 0; }
.service-details .services-list a { font-size: 13px; line-height: 1.6; }
.service-details .services-img { border-radius: var(--theme-radius); }
.btn-primary { --bs-btn-bg: #0f172a; --bs-btn-border-color: #0f172a; --bs-btn-hover-bg: #1e293b; --bs-btn-hover-border-color: #1e293b; --bs-btn-active-bg: #1e293b; --bs-btn-active-border-color: #1e293b; font-size: 13px; padding: 10px 18px; border-radius: 8px; }
.footer { padding: 30px 0; background: var(--theme-soft); border-color: var(--theme-border); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .copyright { color: var(--theme-muted); font-size: 12px; }
.footer-socials { display: flex; align-items: center; gap: 8px; }
.footer-socials a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--theme-border); border-radius: 7px; color: #475569; background: white; }
.footer-socials a:hover { color: var(--accent-color); border-color: #bfdbfe; }
.scroll-top { background: #0f172a; border-radius: 10px; width: 38px; height: 38px; }
.scroll-top:hover { background: #1e293b; }
html:not(.js) [data-aos] { opacity: 1 !important; transform: none !important; }

@media (max-width: 1199px) {
  .header { left: 0; }
  .header .header-toggle { display: grid; place-items: center; }
  .header .navmenu { position: absolute; top: var(--header-height); left: 0; right: 0; padding: 14px 24px 20px; background: white; border-bottom: 1px solid var(--theme-border); box-shadow: var(--theme-shadow); }
  .js .header .navmenu { display: none; }
  .js .header.header-show .navmenu { display: block; }
  .navmenu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 0; background: white; padding: 0; }
  .navmenu a, .navmenu a:focus { padding: 12px; background: var(--theme-soft); font-size: 13px; }
  .hero { padding: 56px 0; }
  .about .content ul strong { flex-shrink: 1; }
  html:not(.js) .header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  html:not(.js) .header .navmenu { position: static; flex-basis: 100%; order: 3; padding: 0; border: 0; box-shadow: none; }
  html:not(.js) .header-toggle { display: none; }
  html:not(.js) .main { padding-top: 0; }
}
@media (max-width: 991px) {
  .hero h1 { font-size: 45px; }
  .hero .hero-description { font-size: 14px; }
  .expertise-grid { gap: 12px; }
  .expertise-item { padding: 16px; align-items: flex-start; gap: 10px; }
  .expertise-item h2 { font-size: 12px; }
  .expertise-item p { font-size: 11px; }
  .about .row>div>img { height: 340px; object-position: center 35%; }
}
@media (max-width: 767px) {
  :root { --header-height: 68px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 12px; }
  .header-resume { padding: 7px 10px; font-size: 11px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  section, .section { padding: 52px 0; }
  .hero { min-height: auto; max-height: none; padding: 42px 0; }
  .hero h1 { font-size: 44px; }
  .hero .hero-role { font-size: 21px; }
  .hero .hero-description { font-size: 15px; }
  .expertise-strip { padding: 22px 0; }
  .expertise-grid { grid-template-columns: 1fr; gap: 10px; }
  .expertise-item { padding: 16px 20px; align-items: center; gap: 15px; }
  .expertise-item h2 { font-size: 14px; }
  .expertise-item p { font-size: 12px; }
  .section-title h2 { font-size: 28px; }
  .section-title p { font-size: 14px; }
  .about .content { padding: 22px; }
  .contact .info-wrap, .contact .php-email-form { padding: 23px; }
  .page-title { padding: 30px 0; }
  .page-title h1 { font-size: 26px; }
  .profile-banner { padding: 22px; }
  .profile-banner-contacts { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 380px) {
  .header-resume span { display: none; }
  .hero h1 { font-size: 38px; }
  .theme-button { padding: 11px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  .service-card:hover { transform: none; }
}
@media print {
  .header, .footer, .scroll-top, .skip-link, .page-section-nav { display: none !important; }
  .main { padding-top: 0; }
  section, .section { padding: 20px 0; overflow: visible; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
  .starter-page-page .border { break-inside: avoid; box-shadow: none; }
}
