﻿/* ===================================================
   ROSYACH PORTFOLIO - STYLES
   Dark theme - Purple/Pink gradient accents
=================================================== */

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

:root {
  --bg:         #0d0d14;
  --bg2:        #12121e;
  --bg3:        #1a1a2e;
  --surface:    #1e1e30;
  --border:     rgba(255,255,255,.08);
  --purple:     #a855f7;
  --pink:       #ec4899;
  --grad:       linear-gradient(135deg, #a855f7, #ec4899);
  --text:       #e2e2ef;
  --text-muted: #8888aa;
  --text-dim:   #5a5a7a;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(168,85,247,.15);
  --shadow-lg:  0 8px 40px rgba(168,85,247,.25);
  --nav-h:      68px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }
::selection { background: rgba(168,85,247,.3); color: #fff; }

/* Utility */
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag { display: inline-block; font-family: 'Fira Code', monospace; font-size: .8rem; color: var(--purple); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.section-subtitle { margin-top: .9rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.6rem; border-radius: 50px; font-size: .95rem; font-weight: 600; transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; border: none; outline: none; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(168,85,247,.4); }
.btn-primary:hover { box-shadow: 0 6px 28px rgba(168,85,247,.55); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.full-width { width: 100%; justify-content: center; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000; transition: background .25s ease, box-shadow .25s ease; }
.navbar.scrolled { background: rgba(13,13,20,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.nav-logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-link { font-size: .93rem; font-weight: 500; color: var(--text-muted); transition: color .25s ease; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding-top: var(--nav-h); }
.hero-bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.blob-1 { width: 560px; height: 560px; background: var(--purple); top: -120px; right: -120px; animation: blobFloat 8s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: var(--pink); bottom: -80px; left: -80px; animation: blobFloat 10s ease-in-out infinite reverse; }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,20px) scale(1.05); } }
.hero-container { position: relative; z-index: 1; text-align: center; max-width: 780px; padding: 0 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3); color: var(--purple); padding: .4rem 1rem; border-radius: 50px; font-size: .82rem; font-weight: 500; margin-bottom: 1.4rem; animation: fadeInDown .7s ease both; }
.hero-title { font-size: clamp(2.4rem,7vw,4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .9rem; animation: fadeInDown .7s .1s ease both; }
.hero-subtitle { font-size: clamp(1rem,2.5vw,1.25rem); color: var(--text-muted); font-weight: 500; margin-bottom: 1.1rem; animation: fadeInDown .7s .2s ease both; }
.hero-subtitle .divider { margin: 0 .6rem; opacity: .4; }
.hero-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.8; max-width: 600px; margin: 0 auto 2rem; animation: fadeInDown .7s .3s ease both; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; animation: fadeInDown .7s .4s ease both; }
.hero-socials { display: flex; gap: 1rem; justify-content: center; animation: fadeInDown .7s .5s ease both; }
.hero-socials a { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border); display: grid; place-items: center; font-size: 1rem; color: var(--text-muted); transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.hero-socials a:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-3px); }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--text-dim); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; animation: fadeIn 1.2s 1s ease both; }
.scroll-arrow { width: 16px; height: 16px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(5px); } }

/* About */
.about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: center; }
.about-avatar-wrap { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.about-avatar { width: 160px; height: 160px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; position: relative; z-index: 1; }
.avatar-initials { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: .05em; }
.about-avatar-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(168,85,247,.4); animation: spinRing 18s linear infinite; }
@keyframes spinRing { to { transform: rotate(360deg); } }
.about-text { color: var(--text-muted); margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.8; }
.about-text strong { color: var(--text); }
.about-highlights { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.highlight-card { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1.1rem; flex: 1; min-width: 160px; transition: border-color .25s ease, transform .25s ease; }
.highlight-card:hover { border-color: rgba(168,85,247,.4); transform: translateY(-2px); }
.highlight-icon { font-size: 1.4rem; flex-shrink: 0; }
.highlight-card div:last-child { display: flex; flex-direction: column; gap: .1rem; }
.highlight-card strong { font-size: .85rem; font-weight: 600; color: var(--text); }
.highlight-card span { font-size: .75rem; color: var(--text-muted); }

/* Skills */
.skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.5rem; }
.skill-category { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.skill-category:hover { border-color: rgba(168,85,247,.35); transform: translateY(-3px); box-shadow: var(--shadow); }
.skill-cat-title { font-size: .9rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.skill-cat-title i { color: var(--purple); }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag { padding: .38rem .85rem; border-radius: 50px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.skill-tag.primary   { background: rgba(168,85,247,.15); color: #c084fc; border: 1px solid rgba(168,85,247,.3); }
.skill-tag.secondary { background: rgba(236,72,153,.12); color: #f472b6; border: 1px solid rgba(236,72,153,.3); }
.skill-tag.accent    { background: rgba(139,92,246,.12); color: #a78bfa; border: 1px solid rgba(139,92,246,.25); }
.skill-tag.neutral   { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border); }

/* Projects */
.projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.project-card::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.project-card:hover { border-color: rgba(168,85,247,.5); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card:hover::before { opacity: .04; }
.project-card.featured { border-color: rgba(168,85,247,.35); grid-column: 1 / -1; }
.project-card.featured:hover { border-color: var(--purple); }
.project-header { display: flex; align-items: center; justify-content: space-between; }
.project-icon { font-size: 1.8rem; }
.project-badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .75rem; border-radius: 50px; background: var(--grad); color: #fff; }
.project-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.project-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.project-techs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech-tag { font-size: .73rem; font-weight: 600; padding: .28rem .7rem; border-radius: 50px; background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border); transition: background .25s ease, color .25s ease; }
.project-card:hover .tech-tag { background: rgba(168,85,247,.12); color: #c084fc; border-color: rgba(168,85,247,.25); }
.project-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--purple); margin-top: .25rem; width: fit-content; transition: gap .25s ease, color .25s ease; }
.project-link:hover { gap: .7rem; color: var(--pink); }

/* Contact */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.25); display: grid; place-items: center; color: var(--purple); flex-shrink: 0; font-size: 1rem; }
.contact-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: .15rem; }
.contact-value { font-size: .95rem; color: var(--text); font-weight: 500; transition: color .25s ease; }
.contact-value:hover { color: var(--purple); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; font-size: .93rem; font-family: 'Inter', sans-serif; color: var(--text); outline: none; transition: border-color .25s ease, box-shadow .25s ease; resize: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.form-success { display: none; align-items: center; gap: .5rem; padding: .75rem 1rem; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); border-radius: var(--radius); color: #4ade80; font-size: .9rem; font-weight: 500; }
.form-success.visible { display: flex; }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.footer-container p { font-size: .88rem; color: var(--text-muted); }
.footer-socials { display: flex; gap: .8rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: .88rem; color: var(--text-muted); transition: color .25s ease, border-color .25s ease, transform .25s ease; }
.footer-socials a:hover { color: var(--purple); border-color: var(--purple); transform: translateY(-2px); }
.footer-copy { font-size: .78rem; color: var(--text-dim); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Responsive - Tablet */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-avatar-wrap { margin: 0 auto; }
  .about-highlights { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .project-card.featured { grid-column: auto; }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hamburger { display: flex; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(13,13,20,.97); backdrop-filter: blur(20px); flex-direction: column; align-items: center; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
  .nav-links.open { max-height: 300px; padding: 1rem 0; }
  .nav-links li a { display: block; padding: .8rem 2rem; font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; }
  .footer-container { flex-direction: column; align-items: center; text-align: center; }
}
/* ---- Avatar photo ---- */
.about-avatar { overflow: hidden; }
.avatar-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; display: block; }

/* ---- Contact cards (no form) ---- */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 520px;
  margin: 0 auto;
}
.contact-cards .contact-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.6rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.contact-cards .contact-info-item:hover {
  border-color: rgba(168,85,247,.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
