/*
Theme Name: Marketing vCard
Theme URI: https://example.com/
Author: Satish Singh
Author URI: https://expertexhibitsgmbh.com/
Description: A dark, modern vCard-style CV / resume portfolio theme for marketing professionals, freelancers and consultants. Fixed profile card, soft neumorphic panels, animated stats and a filterable portfolio. Original design inspired by the vCard resume layout style. Fully responsive and editable via the Customizer.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketing-vcard
Tags: portfolio, one-page, resume, cv, dark, custom-colors, custom-menu, featured-images, translation-ready
*/

/*==================== VARIABLES ====================*/
:root {
  --bg:            #16181d;
  --panel:         #212428;
  --panel-2:       #1d1f24;
  --heading:       #ffffff;
  --text:          #a9afc3;
  --muted:         #7a7f92;
  --accent:        #f9b234;
  --accent-soft:   rgba(249, 178, 52, .15);
  --border:        rgba(255, 255, 255, .06);

  /* soft (neumorphic) shadow used across cards & buttons */
  --shadow: -6px -6px 14px rgba(45, 49, 56, .35), 6px 6px 14px rgba(0, 0, 0, .45);
  --shadow-in: inset -4px -4px 10px rgba(45, 49, 56, .30), inset 4px 4px 10px rgba(0, 0, 0, .45);

  --radius: 14px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --sidebar-w: 350px;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 600; line-height: 1.25; }
button, input, textarea { font-family: inherit; }

::selection { background: var(--accent); color: #16181d; }

/*==================== SCROLLBAR ====================*/
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2c2f36; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/*==================== LAYOUT SHELL ====================*/
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/*==================== SIDEBAR / vCARD ====================*/
.vcard {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 30px;
  background: var(--panel);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.vcard__avatar {
  width: 160px;
  height: 160px;
  margin: 0 auto 22px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.vcard__name { font-size: 1.5rem; letter-spacing: .5px; }
.vcard__role {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  font-size: .8rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
}
.vcard__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}
.vcard__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  font-size: 1.05rem;
}
.vcard__social a:hover { color: var(--accent); }

.vcard__info { text-align: left; margin-top: 8px; }
.vcard__info li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.vcard__info li:last-child { border-bottom: none; }
.vcard__info i {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--accent); border-radius: 10px;
  background: var(--panel-2); box-shadow: var(--shadow);
  font-size: 1.05rem;
}
.vcard__info span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; }
.vcard__info strong { color: var(--heading); font-weight: 500; word-break: break-word; }

.vcard__cta { margin-top: 26px; }

/*==================== BUTTONS ====================*/
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  color: var(--heading);
  background: var(--panel);
  box-shadow: var(--shadow);
  font-weight: 500; font-size: .85rem;
  cursor: pointer; border: none;
  transition: color .25s, transform .2s;
}
.btn:hover { color: var(--accent); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #16181d; }
.btn--accent:hover { color: #16181d; opacity: .92; }

/*==================== MAIN ====================*/
.main { flex: 1; min-width: 0; }

/*==================== TOP NAV ====================*/
.topbar {
  position: sticky; top: 30px; z-index: 50;
  display: flex; justify-content: flex-end;
  margin-bottom: 30px;
}
.nav {
  display: flex; gap: 6px;
  background: var(--panel);
  padding: 10px;
  border-radius: 40px;
  box-shadow: var(--shadow);
}
.nav a {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: .82rem; font-weight: 500;
  color: var(--text);
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: #16181d; background: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--panel); color: var(--heading);
  box-shadow: var(--shadow);
  font-size: 1.3rem; align-items: center; justify-content: center;
}

/*==================== PANEL / SECTION CARD ====================*/
.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 45px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.section-head { margin-bottom: 38px; }
.section-head .eyebrow {
  color: var(--accent); font-size: .78rem;
  letter-spacing: 3px; text-transform: uppercase;
}
.section-head h2 { font-size: 2rem; margin-top: 6px; }
.section-head h2::after {
  content: ""; display: block;
  width: 46px; height: 3px; margin-top: 14px;
  background: var(--accent); border-radius: 3px;
}

/*==================== HERO ====================*/
.hero { display: flex; flex-direction: column; gap: 18px; }
.hero__hi { color: var(--accent); font-weight: 500; font-size: 1rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero__typed { color: var(--accent); }
.hero__desc { max-width: 620px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }

/*==================== STATS ====================*/
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  background: var(--panel-2); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: var(--shadow-in);
}
.stat b { font-size: 2rem; color: var(--accent); display: block; }
.stat span { font-size: .78rem; color: var(--muted); }

/*==================== SERVICES ====================*/
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel-2); border-radius: var(--radius);
  padding: 32px 26px; box-shadow: var(--shadow);
  transition: transform .25s;
}
.card:hover { transform: translateY(-6px); }
.card i { font-size: 2.2rem; color: var(--accent); }
.card h4 { margin: 16px 0 10px; font-size: 1.1rem; }
.card p { font-size: .86rem; }

/*==================== RESUME / TIMELINE ====================*/
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.resume-grid h3 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 26px; font-size: 1.15rem;
}
.resume-grid h3 i { color: var(--accent); }
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--panel); border: 3px solid var(--accent);
}
.tl-date {
  display: inline-block; font-size: .7rem; color: var(--accent);
  background: var(--accent-soft); padding: 3px 12px; border-radius: 20px;
  margin-bottom: 8px;
}
.tl-item h4 { font-size: 1rem; }
.tl-item span { font-size: .82rem; color: var(--muted); }
.tl-item p { font-size: .84rem; margin-top: 6px; }

/*==================== SKILLS ====================*/
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.skill__top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .85rem; }
.skill__top b { color: var(--heading); font-weight: 500; }
.skill__bar { height: 8px; border-radius: 6px; background: var(--panel-2); box-shadow: var(--shadow-in); overflow: hidden; }
.skill__fill { height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 1.2s ease; }

/*==================== PORTFOLIO ====================*/
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filters button {
  padding: 8px 20px; border-radius: 30px; font-size: .8rem; font-weight: 500;
  color: var(--text); background: var(--panel-2); box-shadow: var(--shadow); border: none; cursor: pointer;
}
.filters button.active, .filters button:hover { color: #16181d; background: var(--accent); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover img { transform: scale(1.08); }
.work__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.work:hover .work__overlay { opacity: 1; }
.work__overlay span { color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
.work__overlay h4 { font-size: 1rem; }
.work.hide { display: none; }

/*==================== TESTIMONIALS ====================*/
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote { background: var(--panel-2); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.quote p { font-size: .9rem; font-style: italic; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.quote__by img { width: 48px; height: 48px; border-radius: 50%; }
.quote__by b { color: var(--heading); display: block; font-size: .9rem; }
.quote__by span { font-size: .76rem; color: var(--muted); }

/*==================== CONTACT ====================*/
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info li { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.contact-info i {
  width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 12px; color: var(--accent); background: var(--panel-2);
  box-shadow: var(--shadow); font-size: 1.2rem;
}
.contact-info span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; display: block; }
.contact-info strong { color: var(--heading); font-weight: 500; }
.field { margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; padding: 15px 18px; font-size: .88rem;
  color: var(--heading); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 12px; outline: none;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/*==================== FOOTER ====================*/
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 10px 0 6px; }
.foot a { color: var(--accent); }

/*==================== SCROLL UP ====================*/
.scrollup {
  position: fixed; right: 22px; bottom: -60px; z-index: 90;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  color: #16181d; background: var(--accent); box-shadow: var(--shadow);
  font-size: 1.3rem; transition: bottom .35s;
}
.scrollup.show { bottom: 22px; }

/*==================== RESPONSIVE ====================*/
@media (max-width: 1100px) {
  .shell { flex-direction: column; }
  .vcard { width: 100%; position: static; display: grid; grid-template-columns: 200px 1fr; gap: 30px; text-align: left; align-items: center; }
  .vcard__avatar { margin: 0; }
  .vcard__social { justify-content: flex-start; }
  .vcard__cta { grid-column: 1 / -1; }
  .topbar { top: 0; }
}

@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .works { grid-template-columns: repeat(2, 1fr); }
  .resume-grid, .skills, .quotes, .contact-grid { grid-template-columns: 1fr; }
  .panel { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .vcard { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .vcard__social { justify-content: center; }
  .vcard__info { width: 100%; }
  .nav { display: none; position: absolute; top: 60px; right: 0; flex-direction: column; width: 220px; }
  .nav.open { display: flex; }
  .topbar { justify-content: flex-end; position: relative; }
  .nav-toggle { display: flex; }
  .cards, .works, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 1.6rem; }
}
