/* =============================================================
   TITAN PIXEL STUDIO — Portfolio Stylesheet
   ============================================================= */

:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --card: #0d0d0d;
  --card-alt: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-red: rgba(230, 35, 26, 0.35);
  --red: #e42a20;
  --red-dark: #a3160f;
  --red-glow: rgba(228, 42, 32, 0.35);
  --white: #f5f5f5;
  --gray: #9a9a9a;
  --gray-dim: #6f6f6f;

  --font-display: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1240px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.accent { color: var(--red); }

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .section { padding: 80px 0 60px; }
}

/* =============== reveal-on-scroll =============== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============== eyebrow / headings =============== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow.small { font-size: 12px; margin-bottom: 14px; }
.eyebrow-line { width: 28px; height: 2px; background: var(--red); display: inline-block; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--gray);
  max-width: 620px;
  font-size: 15.5px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.subhead {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--white);
  font-weight: 700;
  margin: 40px 0 20px;
}

/* =============== buttons =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-solid {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--red-glow);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px var(--red-glow);
}
.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.resume-download {
    position:relative;
    overflow:hidden;
}

.resume-download::before {

    content:'';

    position:absolute;

    left:-100%;

    top:0;

    width:100%;

    height:2px;

    background:linear-gradient(90deg,
    transparent,
    #fff,
    var(--red),
    #fff,
    transparent);

}

.resume-download.downloading::before {

    animation:borderDownload 1s linear;

}

.resume-download:disabled {
    cursor: wait;
}

@keyframes borderDownload{

    from{

        left:-100%;

    }

    to{

        left:100%;

    }

}

.btn.full { width: 100%; margin-top: 8px; }

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
}

.brand-logo{
    width:54px;
    height:54px;
    object-fit:contain;
    flex-shrink:0;
}

.brand-content{
    display:flex;
    flex-direction:column;
}

.brand-name{
    color:#fff;
    font-size:18px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    white-space:nowrap;
}

.brand-name .brand-separator{
    color:var(--red);
    font-weight:400;
}

.brand-name .brand-last{
    color:#fff;
    font-weight:700;
}

.brand-name small{
    color:#d9d9d9;
    font-size:17px;
    font-weight:500;
}

@media (max-width:992px){

    .brand-logo{
        width:46px;
        height:46px;
    }

    .brand-name{
        font-size:16px;
    }

    .brand-name small{
        font-size:15px;
    }

}

@media (max-width:768px){

    /* About Section */
    .about-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .info-card,
    .quote-bar-card{
        width:100%;
        max-width:100%;
        padding:20px;
    }

    .info-list li{
        grid-template-columns:24px 90px 10px 1fr;
        font-size:13px;
    }

    .info-val{
        word-break:break-word;
        overflow-wrap:anywhere;
    }
}

.tool {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray);
  padding-bottom: 6px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--red); }
.nav-link.active::after { width: 100%; }
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
}

.nav-cta { flex-shrink: 0; padding: 11px 22px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-links.open { max-height: 500px; }
  .nav-link { width: 100%; padding: 16px 32px; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .brand-title { font-size: 15px; }
}

@media (max-width: 768px) {
  .navbar {
    min-height: 68px;
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    min-height: 68px;
    padding: 8px 16px;
    gap: 12px;
    align-items: center;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-content {
    min-width: 0;
  }

  .brand-name {
    display: flex;
    max-width: calc(100vw - 116px);
    overflow: hidden;
    font-size: 18px;
    line-height: 1;
    gap: 0;
  }

  .brand-name .brand-separator,
  .brand-name small {
    display: none;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
  }
}

.social-circle img{
    width:20px;
    height:20px;
    object-fit:contain;
    transition:var(--transition);
}

.social-circle:hover img{
    transform:scale(1.1);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  min-height: calc(100vh - 71px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.bg-dots {
  position: absolute;
  top: 10%;
  right: 3%;
  width: 260px;
  height: 260px;
  background-image: radial-gradient(var(--red-dark) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-greeting { color: var(--gray); font-size: 18px; margin-bottom: 6px; }
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 10px;
}
.hero-role {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-desc {
  display: flex;
  gap: 14px;
  color: var(--gray);
  font-size: 15.5px;
  max-width: 480px;
  margin-bottom: 32px;
}
.quote-bar { width: 3px; background: var(--red); border-radius: 2px; flex-shrink: 0; }

.hero-actions { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

.hero-socials { display: flex; gap: 14px; }
.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--card);
  transition: var(--transition);
}
.social-circle:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

.hero-image { position: relative; display: flex; justify-content: center; }
.hero-photo-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
  filter: blur(30px);
  border-radius: 50%;
}
.hero-photo{
    position:relative;
    width:min(100%,340px);
    aspect-ratio:3/4;
    overflow:hidden;
    border-radius:24px;
    border:1px solid rgba(228,42,32,.4);
    box-shadow:
        0 0 35px rgba(228,42,32,.15),
        0 25px 50px rgba(0,0,0,.45);
}
.avatar-placeholder { width: 100%; height: 100%; }

.stats-bar {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--border);
}
.stats-bar.inline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 56px 0 0;
  background: var(--card);
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-icon { color: var(--red); margin-bottom: 4px; }
.stat-number { font-size: 30px; font-weight: 800; font-family: var(--font-display); }
.stat-label { color: var(--red); font-size: 13.5px; font-weight: 700; }
.stat-desc { color: var(--gray); font-size: 13px; max-width: 220px; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 40px auto 0;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-socials { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; margin-bottom: 20px; }
  .hero-photo { width: 220px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   ABOUT
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-bottom: 20px;
}
.about-copy p { color: var(--gray); margin-bottom: 18px; font-size: 15.5px; }
.about-copy .btn { margin-top: 8px; }

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.info-list li {
  display: grid;
  grid-template-columns: 26px 110px 14px 1fr;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.info-list li:last-child { border-bottom: none; }
.info-key { color: var(--gray); }
.info-sep { color: var(--gray-dim); }
.info-val { color: var(--white); font-weight: 500; }

.quote-bar-card {
  margin-top: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.quote-mark { font-size: 40px; color: var(--red); line-height: 0; }
.quote-bar-card p { color: var(--gray); flex: 1; min-width: 220px; }
.signature { font-family: 'Brush Script MT', cursive; color: var(--red); font-size: 26px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   SKILLS
   ============================================================= */
.legend-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray);
}
.legend-grid span { display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.expert { background: var(--red); }
.dot.advanced { background: #e07b1f; }
.dot.inter { background: #d9b515; }
.dot.basic { background: #2fae5a; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skill-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.skill-ico{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#181818;
    border-radius:12px;
    overflow:hidden;
}

.skill-ico img{
    width:30px;
    height:30px;
    object-fit:contain;
    transition:.3s ease;
}

.skill-card:hover .skill-ico img{
    transform:scale(1.12);
}
.skill-name { font-weight: 700; flex: 1; }
.skill-pct { font-weight: 700; color: var(--red); }
.skill-bar-track {
  height: 6px;
  background: var(--card-alt);
  border-radius: 4px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.skill-bar-fill.advanced { background: linear-gradient(90deg, #a85410, #e07b1f); }

.skills-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gray);
  text-align: center;
}
.tool-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  font-size: 16px;
}
.check-list li {
  padding: 9px 0;
  color: var(--gray);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-list li::before {
  content: '✓';
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.soft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.soft {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--gray); text-align: center;
}
.soft-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-footer-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   EXPERIENCE / EDUCATION (timeline)
   ============================================================= */
.mini-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.mini-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 140px;
  color: var(--red);
}
.mini-num { font-size: 22px; font-weight: 800; color: var(--white); font-family: var(--font-display); }
.mini-label { font-size: 12.5px; color: var(--gray); text-align: center; }

.timeline { position: relative; padding-left: 190px; }
.timeline-track {
  position: absolute;
  left: 179px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-row { position: relative; margin-bottom: 36px; }
.timeline-date {
  position: absolute;
  left: -190px;
  top: 6px;
  width: 160px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.date-range { color: var(--red); font-weight: 700; font-size: 14.5px; }
.date-type { color: var(--gray); font-size: 12.5px; }
.timeline-dot {
  position: absolute;
  left: -17px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(228,42,32,0.18);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.logo-box {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.card-head h3 { font-size: 19px; margin-bottom: 3px; }
.card-head .company { color: var(--red); font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.card-head .loc { color: var(--gray); font-size: 13.5px; }
.card-head .badge {
  margin-left: auto;
  background: rgba(228,42,32,0.12);
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.bullets { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 16px; }
.bullets li {
  color: var(--gray);
  font-size: 14.5px;
  padding: 4px 0 4px 18px;
  position: relative;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--card-alt);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--white);
}
.note-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-top: 30px;
  color: var(--gray);
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .timeline { padding-left: 26px; }
  .timeline-track { left: 5px; }
  .timeline-dot { left: -25px; }
  .timeline-date {
    position: static;
    text-align: left;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
    width: auto;
  }
  .card-head { flex-wrap: wrap; }
  .card-head .badge { margin-left: 0; }
}

/* =============================================================
   PROJECTS
   ============================================================= */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--gray);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--red); color: var(--white); }
.filter-btn.active { border-color: var(--red); color: var(--red); background: rgba(228,42,32,0.08); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-red); }
.project-thumb{
    position: relative;
    height: 230px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #111;
}

.project-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.project-card:hover .project-thumb img{
    transform: scale(1.05);
}

.project-thumb::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.35),
        rgba(0,0,0,0)
    );
}
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-icon-badge {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-red);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  margin-bottom: 4px;
}
.project-body h3 { font-size: 18px; }
.project-body p { color: var(--gray); font-size: 14px; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.project-tags span {
  background: var(--card-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--gray);
}
.project-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}
.project-links a { color: var(--red); display: flex; align-items: center; gap: 6px; }
.project-links .gh { color: var(--gray); }

.soon-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px dashed var(--border-red);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 30px;
  color: var(--white);
  font-size: 15px;
}

@media (max-width: 992px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  margin-top: 30px;
}
.contact-form, .connect-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3, .connect-card h3 { margin-bottom: 6px; font-size: 20px; }
.connect-card > p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 13.5px;
  color: var(--white);
  margin: 16px 0 8px;
}
.contact-form label:first-of-type { margin-top: 22px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--white);
  font-size: 14.5px;
  transition: var(--transition);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--gray-dim); }
.form-status { margin-top: 12px; font-size: 13.5px; color: var(--red); min-height: 18px; }

.connect-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
  transition: var(--transition);
}
.connect-row:hover { border-color: var(--border-red); transform: translateX(4px); }
.connect-row:last-child { margin-bottom: 0; }
.connect-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--card-alt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.connect-row span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.connect-row strong { font-size: 14.5px; }
.connect-row small { color: var(--gray); font-size: 12.5px; }
.connect-row .arrow { color: var(--red); font-size: 18px; }

.cta-bar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 30px;
  flex-wrap: wrap;
}
.cta-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cta-bar div { flex: 1; min-width: 200px; }
.cta-bar p { color: var(--gray); font-size: 13.5px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  text-align: center;
  padding: 30px;
  color: var(--gray-dim);
  font-size: 13.5px;
}
.heart { color: var(--red); }

/* =============================================================
   BACK TO TOP
   ============================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px var(--red-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.connect-row{
    text-decoration:none;
    color:inherit;
    transition:.3s ease;
    cursor:pointer;
}

.connect-row:hover{
    transform:translateX(6px);
}

.social-circle{
    cursor:pointer;
}

/* ================= MOBILE FIX ================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container,
  .hero-container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .project-thumb {
    height: 200px;
  }

  .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.tools-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px 24px;
}

.tool{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    gap:10px;
}

.tool-icon{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tool-logo{
    width:34px;
    height:34px;
    object-fit:contain;
    display:block;
}

.tool span{
    font-size:14px;
    color:#d8d8d8;
    line-height:1.3;
}
@media (max-width: 992px) {
    .nav-link.active::before {
        display: none;
    }
}