/* ── Manrope (self-hosted) ── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --blue-dark:   #1d4ed8;
  --blue-bg:     #eff6ff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-600:    #475569;
  --gray-800:    #1e293b;
  --gray-900:    #0f172a;
  --white:       #ffffff;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.10);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
section:nth-child(even) { background: var(--gray-50); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .65s var(--transition), transform .65s var(--transition); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-secondary { background: var(--white); color: var(--gray-800); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 18px; font-size: .85rem; border-radius: 8px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--gray-600); transition: color var(--transition); }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

/* ── Hero ── */
#hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #fff 60%, var(--blue-bg) 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
}
.hero-photo {
  flex-shrink: 0;
}
.hero-photo img {
  width: 380px; height: 460px;
  object-fit: cover; object-position: top;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  display: block;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-bg); color: var(--blue);
  padding: 6px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; margin-bottom: 24px;
}
.hero-badge-dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.hero-title { color: var(--gray-900); margin-bottom: 16px; }
.hero-title .accent { color: var(--blue); }
.hero-role { font-size: 1.15rem; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; }
.hero-stack { font-size: .85rem; color: var(--gray-400); font-weight: 500; letter-spacing: .04em; margin-bottom: 24px; }
.hero-sub { font-size: 1.05rem; color: var(--gray-600); margin-bottom: 32px; max-width: 640px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── About ── */
.about-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.stat-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 20px;
}
.feat-title { font-size: .88rem; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
.feat-desc { font-size: .81rem; color: var(--gray-600); line-height: 1.6; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--gray-600); line-height: 1.8; }
.about-highlight {
  margin-top: 24px; padding: 20px 24px;
  background: var(--blue-bg); border-radius: var(--radius-sm);
  border-left: 3px solid var(--blue);
  font-size: .95rem; color: var(--gray-700); line-height: 1.7;
}

/* ── Experience ── */
.experience-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.exp-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 32px 28px 36px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.exp-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--blue-light));
}
.exp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); }
.exp-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.exp-company { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.exp-position {
  display: inline-flex; align-items: center;
  background: var(--blue-bg); color: var(--blue);
  padding: 4px 12px; border-radius: 100px;
  font-size: .8rem; font-weight: 600;
}
.exp-date { font-size: .82rem; font-weight: 600; color: var(--gray-400); white-space: nowrap; padding-top: 3px; }
.exp-desc { color: var(--gray-600); font-size: .95rem; line-height: 1.8; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.service-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-bg); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { color: var(--blue); }
.service-card h3 { margin-bottom: 10px; color: var(--gray-900); }
.service-card p { color: var(--gray-600); font-size: .95rem; line-height: 1.7; }

/* ── Skills / Tech Stack ── */
.tech-stack {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-top: 56px;
}
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 18px; min-width: 92px;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); transition: var(--transition); cursor: default;
}
.tech-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #BFDBFE; }
.tech-item img { width: 52px; height: 52px; object-fit: contain; display: block; }
.tech-logo-pad { padding: 6px; }
.tech-icon-wrap {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tech-item span {
  font-size: .78rem; font-weight: 600; color: var(--gray-600); text-align: center; line-height: 1.2;
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 100px;
  background: var(--gray-100); font-size: .83rem; font-weight: 500; color: var(--gray-600);
  transition: var(--transition);
}
.pill:hover { background: var(--blue-bg); color: var(--blue); }
.tech-ai-strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200);
}
.tech-ai-label {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-400); margin-right: 4px;
}

/* ── Projects ── */
.projects-grid { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.project-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
  display: grid; grid-template-columns: 42% 1fr;
  height: 320px;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); }
.project-preview { overflow: hidden; display: flex; flex-direction: column; }
.project-preview svg { display: block; width: 100%; flex: 1; min-height: 0; }
.project-preview .project-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 14px 20px; margin-bottom: 0;
  background: var(--blue-bg);
}
.project-preview .project-tag {
  background: var(--white); color: var(--gray-600);
  font-size: .83rem; font-weight: 500; letter-spacing: 0;
}
.project-body { padding: 36px 40px; display: flex; flex-direction: column; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project-tag {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  background: var(--blue-bg); color: var(--blue); letter-spacing: .02em;
}
.project-card p { color: var(--gray-600); font-size: .95rem; line-height: 1.75; flex: 1; margin-bottom: 28px; }
.project-footer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.benefit-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 32px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.2); }
.benefit-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--blue-bg); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.benefit-card h3 { margin-bottom: 8px; color: var(--gray-900); }
.benefit-card p { color: var(--gray-600); font-size: .92rem; line-height: 1.7; }

/* ── Contact ── */
#contact { background: var(--gray-50); }
#contact .section-label { color: var(--blue); }
#contact h2 { color: var(--gray-900); }
#contact .sub { color: var(--gray-600); margin-top: 14px; font-size: 1.05rem; max-width: 480px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.contact-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition); cursor: pointer;
}
.contact-card:hover { background: var(--blue-bg); border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-info .platform { font-size: .75rem; color: var(--gray-600); font-weight: 500; margin-bottom: 2px; }
.contact-card-info .handle { font-size: .92rem; color: var(--gray-900); font-weight: 600; }
.contact-visual { display: flex; justify-content: center; align-items: center; }

/* ── Contact status card ── */
.contact-status-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); width: 100%; max-width: 340px;
}
.csc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #DCFCE7 0%, #D1FAE5 100%);
  border-bottom: 1px solid #BBF7D0;
}
.csc-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}
.csc-status-text { font-size: .88rem; font-weight: 600; color: #166534; }
.csc-rows { padding: 4px 0; }
.csc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 24px; border-bottom: 1px solid var(--gray-100);
}
.csc-row:last-child { border-bottom: none; }
.csc-label { font-size: .78rem; color: var(--gray-400); font-weight: 500; }
.csc-value { font-size: .88rem; color: var(--gray-800); font-weight: 600; }
.csc-footer {
  padding: 16px 24px; background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.csc-footer p { font-size: .82rem; color: var(--gray-600); line-height: 1.6; }
.csc-footer-note { margin-top: 6px; color: var(--gray-400); font-size: .78rem; }

/* ── Footer ── */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 0;
  font-size: .875rem;
  color: var(--gray-600);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-200);
}
.footer-brand-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-brand-top a { text-decoration: none; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: var(--gray-800); line-height: 1.2; }
.footer-brand-title-text { font-size: .78rem; color: var(--gray-400); margin-top: 2px; }
.footer-available { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--gray-500); }
.footer-available-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22C55E; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.footer-col-title {
  font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gray-400); margin-bottom: 18px;
}
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list a { color: var(--gray-600); text-decoration: none; font-size: .875rem; transition: color .18s; }
.footer-nav-list a:hover { color: var(--blue); }
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-contact-list a {
  color: var(--gray-600); text-decoration: none; font-size: .875rem;
  transition: color .18s; display: flex; align-items: center; gap: 9px;
}
.footer-contact-list a:hover { color: var(--blue); }
.footer-contact-list svg { flex-shrink: 0; color: var(--gray-400); }
.footer-contact-loc {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--gray-400); margin-top: 2px;
}
.footer-contact-loc svg { flex-shrink: 0; }
.footer-bottom {
  background: var(--gray-800);
  padding: 14px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.32);
}
.footer-bottom-social { display: flex; gap: 2px; }
.footer-bottom-social a {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.38); text-decoration: none;
  transition: color .18s, background .18s;
}
.footer-bottom-social a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 20px 24px 28px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 0; font-weight: 500; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.mobile-menu a:last-child { border: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  #hero { padding: 110px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .ai-card { grid-column: span 1; }
  .benefits-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-visual { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 48px 0; }
  #hero { padding: 104px 0 52px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-list,
  .services-grid,
  .tech-stack,
  .projects-grid,
  .benefits-grid { margin-top: 32px; }
  .about-stats { margin-top: 24px; }
  .project-card { grid-template-columns: 1fr; height: auto; }
  .project-preview { height: 220px; }
  .project-body { padding: 24px 28px; }
  .contact-links { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-nav-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
  .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  section { padding: 36px 0; }
  #hero { padding: 88px 0 44px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .about-stats { grid-template-columns: 1fr; }
  .project-footer { flex-direction: column; }
}
