/* ═══════════════════════════════════════════════
   Shafy Picture — Portfolio Site
   style.css — Shared Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --text: #f0ece4;
  --text-muted: #8a8580;
  --text-dim: #5a5550;
  --accent: #c8a46e;
  --accent-light: #dfc499;
  --accent-dark: #9a7a48;
  --border: rgba(200,164,110,0.12);
  --border-strong: rgba(200,164,110,0.25);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'DM Sans', 'Noto Sans JP', sans-serif;
  --jp: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}


/* ═══════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 3rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.current { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.current::after { width: 100%; }

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.active { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.mobile-menu a:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════
   Shared Components
   ═══════════════════════════════════════════════ */

/* Section */
.section {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
  max-width: 1400px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--jp);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text);
  font-family: var(--jp);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════
   Page Header (sub-pages)
   ═══════════════════════════════════════════════ */
.page-header {
  padding: 10rem 3rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: var(--border);
}

.page-header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-header-label::before,
.page-header-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-header h1 em { font-style: italic; color: var(--accent); }

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 300;
}


/* ═══════════════════════════════════════════════
   Hero (index)
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 3rem;
}

.hero-bg-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.hero-bg-line:nth-child(1) { left: 25%; }
.hero-bg-line:nth-child(2) { left: 50%; }
.hero-bg-line:nth-child(3) { left: 75%; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text { padding-top: 4rem; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-name em { font-style: italic; color: var(--accent); }

.hero-role {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-location {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-location::before {
  content: '◉';
  color: var(--accent);
  margin-right: 0.5rem;
  font-size: 0.6rem;
  vertical-align: middle;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-image-wrap {
  position: relative;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 0.6s forwards;
}

.hero-image-frame {
  position: relative;
  height: 550px;
  aspect-ratio: 3/4;
  overflow: hidden;
  transform: translate(30px, 75px);

}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.hero-image-frame:hover img { transform: scale(1.03); }

.hero-exp {
  position: absolute;
  bottom: -1.5rem;
  left: 3rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 1.5rem 2rem;
  z-index: 3;
}

.hero-exp-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}

.hero-exp-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.5s forwards;
}

.hero-scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ═══════════════════════════════════════════════
   Services
   ═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background: var(--border);
}

.service-card {
  background: var(--bg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover { background: var(--bg-elevated); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 2rem;
  transition: color 0.5s var(--ease);
}

.service-card:hover .service-num { color: var(--accent); }

.service-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all 0.4s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.service-name {
  font-family: var(--jp);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* Detail (sub-page) */
.service-detail {
  margin-top: 3rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 2;
}

.service-detail ul {
  list-style: none;
  margin-top: 1rem;
}

.service-detail ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.25rem;
  position: relative;
}

.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
}


/* ═══════════════════════════════════════════════
   Works
   ═══════════════════════════════════════════════ */
.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.works-filters { display: flex; gap: 0.25rem; }

.works-filter-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.works-filter-btn:hover { color: var(--text-muted); }
.works-filter-btn.active { color: var(--accent); border-color: var(--accent); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.work-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s var(--ease);
  filter: grayscale(30%);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.work-item:hover { transform: translateY(-3px); }
.work-item:hover img { transform: scale(1.05); filter: grayscale(0%); }
.work-item:hover .work-overlay { opacity: 1; }

.work-overlay-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.work-overlay-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
}

.work-item.video-item::after {
  content: '▶';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(200,164,110,0.9);
  color: var(--bg);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
  transition: all 0.3s var(--ease);
}

.work-item.video-item:hover::after {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}


/* ═══════════════════════════════════════════════
   Profile
   ═══════════════════════════════════════════════ */
.profile {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
  margin-top: 4rem;
}

.profile-image-wrap { position: relative; }

.profile-image {
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--border);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.profile-image-accent {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 100px;
  height: 100px;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.profile-content h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.profile-content h3 em { font-style: italic; color: var(--accent); }

.profile-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.profile-bio-en {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-strong);
}

.profile-skills { display: flex; flex-direction: column; gap: 1.25rem; }

.skill-row { display: flex; align-items: center; gap: 1.5rem; }

.skill-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 120px;
  text-align: right;
}

.skill-bar-wrap {
  flex: 1;
  height: 2px;
  background: var(--border);
  position: relative;
}

.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 1.5s var(--ease-out);
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  background: var(--bg);
}

.skill-val {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--accent);
  min-width: 30px;
}


/* ═══════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════ */
.contact-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.contact-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-top: 1.5rem;
  max-width: 420px;
}

.contact-details { display: flex; flex-direction: column; gap: 2.5rem; padding-top: 1rem; }

.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }

.contact-item-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-item-value {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 400;
  transition: color 0.3s var(--ease);
}

.contact-item-value:hover { color: var(--accent); }

.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

.contact-link-btn {
  padding: 0.85rem 2rem;
  font-family: var(--jp);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-link-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-link-btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.contact-link-btn.primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* Contact Form */
.contact-form { margin-top: 3rem; }

.form-group { margin-bottom: 1.75rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.3s var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea { min-height: 160px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}


/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-copy,
.footer-location {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════
   Lightbox
   ═══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}


/* ═══════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image-wrap { max-width: 450px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero-tag { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-exp { left: auto; right: -1rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; gap: 3rem; }
  .profile-image-wrap { max-width: 400px; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .skill-label { min-width: 100px; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .hero { padding: 0 1.5rem; }
  .section { padding: 5rem 1.5rem; }
  .page-header { padding: 8rem 1.5rem 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .works-header { flex-direction: column; align-items: flex-start; }
  .contact-inner { padding: 5rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-links { gap: 1.25rem; }
  .contact-links { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.8rem; }
  .hero-exp { display: none; }
  .hero-location::before { display: none; }
}
