/*
Theme Name: Vaibhav Portfolio
Theme URI: https://vaibhavkadam.in
Author: Vaibhav Kadam
Description: One-page portfolio theme. Add and manage portfolio work under WordPress Admin → Portfolio. Uses Featured Image for thumbnail; Media Library for images and videos.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vaibhav-portfolio
*/

/* Sam Kolder–inspired cinematic portfolio */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111;
  --text: #f5f5f5;
  --text-muted: #888;
  --accent: #e5e5e5;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space: clamp(1rem, 4vw, 2.5rem);
  --container: min(1200px, 100% - 2 * var(--space));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; vertical-align: middle; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: var(--space) calc(var(--space) * 1.5); background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%); transition: background 0.3s ease; }
.header.scrolled { background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(12px); }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.logo-mark { background: #000; color: #fff; padding: 0.35em 0.6em; border-radius: 4px; }
.logo-mark:hover { color: #fff; opacity: 0.9; }
.nav { display: flex; gap: 2rem; }
.nav a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(80px + var(--space)) var(--space) calc(var(--space) * 3); max-width: 1200px; margin: 0 auto; }
.hero-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.hero-text { flex: 1 1 320px; min-width: 0; }
.hero-photo-wrap { flex: 0 0 auto; }
.hero-photo { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--border); }
.hero-photo-placeholder { background: var(--bg-elevated); }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 2rem; }
.hero-title .line { display: block; opacity: 0; animation: fadeUp 0.8s ease forwards; }
.hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) { animation-delay: 0.3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-bottom: 3rem; opacity: 0; animation: fadeUp 0.6s ease 0.6s forwards; }
.hero-location, .hero-email { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s ease; }
.hero-email:hover { color: var(--text); }
.hero-brands { opacity: 0; animation: fadeUp 0.6s ease 0.85s forwards; }
.brand-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 0.75rem; display: block; }
.brand-logos { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.brand-logos span { font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }

section { padding: calc(var(--space) * 3) var(--space); max-width: 1400px; margin: 0 auto; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin: 0 0 2rem; color: var(--text); }

.work { padding-top: 4rem; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.work-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated); border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.work-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a1a; }
.work-card-media .work-card-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s ease; }
.work-card:hover .work-card-media .work-card-poster { transform: scale(1.05); }
.work-card-media .work-card-hover-video, .work-card-media .work-card-hover-gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.3s ease; }
.work-card-media .work-card-hover-video { opacity: 0; }
.work-card:hover .work-card-media .work-card-hover-video { opacity: 1; }
.work-card-media .work-card-hover-gif { opacity: 0; }
.work-card:hover .work-card-media .work-card-hover-gif { opacity: 1; }
.work-card-info { padding: 1.25rem 1.25rem 1.5rem; }
.work-card-info h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.work-card-meta { font-size: 0.85rem; color: var(--text-muted); }
.work-see-more { text-align: center; margin-top: 2rem; margin-bottom: 0; }
.work-see-more .cta-button { display: inline-block; }
.work-section-block { margin-bottom: 3rem; }
.work-section-block .section-title { margin-bottom: 1rem; }

.faq { border-top: 1px solid var(--border); }
.faq-list { margin-bottom: 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.5rem; padding-bottom: 1.5rem; color: var(--text-muted); max-width: 60ch; }
.faq-cta { color: var(--text-muted); font-size: 0.95rem; }
.faq-cta a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.faq-cta a:hover { color: var(--accent); }

.stats-contact { border-top: 1px solid var(--border); text-align: center; padding: 4rem var(--space); }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 3rem 4rem; margin-bottom: 2.5rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }
.cta-button { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 1rem 2.5rem; background: var(--text); color: var(--bg); border-radius: 100px; transition: transform 0.2s ease, box-shadow 0.2s ease; text-decoration: none; }
.cta-button:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2); }
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0; }
.stats-contact .contact-cta .cta-button { margin-top: 0; }

.testimonials { border-top: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card { padding: 1.5rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); margin: 0; }
.testimonial-stars { color: #e5b318; font-size: 0.9rem; letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.testimonial-card p { margin: 0 0 1rem; font-size: 0.95rem; color: var(--text-muted); font-style: italic; line-height: 1.6; }
.testimonial-card footer { font-size: 0.85rem; color: var(--text-muted); }
.testimonial-card footer strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.15rem; }

.footer { padding: 3rem var(--space) 2rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s ease; }
.footer-social a:hover { color: var(--text); }
.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-align: center; }
.footer-nav { display: flex; justify-content: flex-end; gap: 1.5rem; }
.footer-nav a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; text-align: center; font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.back-to-top { position: fixed; bottom: var(--space); right: var(--space); z-index: 50; font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 100px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, color 0.2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--text); }

@media (max-width: 768px) {
  .header { padding: 1rem var(--space); }
  .nav { gap: 1.25rem; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { text-align: center; }
  .hero-photo-wrap { order: -1; }
  .hero-photo, .hero-photo-placeholder { width: 200px; height: 200px; }
  .hero-meta { flex-direction: column; gap: 1rem; justify-content: center; }
  .hero-brands .brand-logos { justify-content: center; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-nav { justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
}
