/* ═══════════════════════════════════════════════
   PORTFOLIO — style.css
   Aesthetic: Dark Luxury Editorial
   ═══════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --bg:        #0d0d14;
  --bg-2:      #13131e;
  --bg-card:   #161624;
  --accent:    #c9a96e;
  --accent-2:  #e8c88a;
  --text:      #e8e0d0;
  --text-muted:#8a8399;
  --text-dim:  #4a4560;
  --border:    rgba(201, 169, 110, 0.18);
  --border-2:  rgba(232, 224, 208, 0.08);

  --ff-display: 'Cormorant Garamond', serif;
  --ff-mono:    'DM Mono', monospace;

  --radius:     4px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-mono);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── CUSTOM CURSOR ─── */
.cursor {
  position: fixed; z-index: 9999;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-follower {
  position: fixed; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, left 0.12s ease, top 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.5;
}
.cursor.hovered { width: 14px; height: 14px; background: var(--accent-2); }
.cursor-follower.hovered { width: 56px; height: 56px; opacity: 0.2; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-2);
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex; gap: 40px;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 1px; background: var(--text);
  transition: var(--transition);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none; border-radius: var(--radius);
  cursor: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #0d0d14;
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── SECTION BASICS ─── */
.section { padding: 120px 0; }
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 40px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 80px 80px;
  overflow: hidden;
  gap: 60px;
}
.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.06);
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-tag::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Image */
.hero-image-wrap {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}
.hero-image-frame {
  position: relative;
  width: clamp(240px, 30vw, 380px);
  height: clamp(300px, 38vw, 480px);
  border-radius: 2px;
  overflow: hidden;
}

/* ─── IMAGE STYLES ─── */

/* Hero profile image */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.5s, transform 0.6s;
}
.hero-image-frame:hover .hero-img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.03);
}

/* Decorative gold border element */
.hero-image-deco {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 2px;
  transform: translate(12px, 12px);
  z-index: -1;
  transition: transform 0.4s;
}
.hero-image-frame:hover .hero-image-deco {
  transform: translate(16px, 16px);
}

/* Hero stat badge */
.hero-stat {
  position: absolute;
  bottom: -20px; left: -30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 22px;
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.stat-number {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px; left: 80px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 48px; height: 1px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollSlide 2s infinite;
}
@keyframes scrollSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ─── ABOUT ─── */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.about-grid.visible { opacity: 1; transform: translateY(0); }
.about-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.85;
}
.about-info {
  display: flex; flex-direction: column; gap: 12px;
  margin: 36px 0;
  padding: 24px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.info-item { display: flex; justify-content: space-between; align-items: center; }
.info-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.info-value {
  font-size: 0.82rem;
  color: var(--text);
}

/* About image */
.about-visual { position: relative; }
.about-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: visible;
}
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  filter: grayscale(15%);
  transition: filter 0.5s, transform 0.6s;
}
.about-img-wrap:hover .about-img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Badge on about image */
.about-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 110px; height: 110px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(201, 169, 110, 0.35);
  z-index: 2;
}
.badge-number {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: #0d0d14;
  line-height: 1;
}
.badge-text {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d0d14;
  text-align: center;
  line-height: 1.3;
  margin-top: 2px;
}

/* ─── WORK ─── */
.work { background: var(--bg); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 60px;
}

/* Project card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.3s, box-shadow 0.3s;
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover {
  border-color: var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-card--large { grid-column: 1 / -1; }
.project-card--wide { grid-column: 1 / -1; }

/* Project image */
.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.project-card--large .project-img-wrap { aspect-ratio: 21/9; }
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.9);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s;
}
.project-card:hover .project-img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}

/* Project overlay */
.project-overlay {
  position: absolute; inset: 0;
  background: rgba(13, 13, 20, 0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.project-link:hover {
  background: var(--accent);
  color: #0d0d14;
}

/* Project info */
.project-info { padding: 24px 28px 28px; }
.project-tags {
  display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.project-tags span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
}
.project-title {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.project-card:hover .project-title { color: var(--accent); }
.project-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }

/* ─── SKILLS ─── */
.skills { background: var(--bg-2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  padding: 32px 28px;
  border-radius: var(--radius);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.3s;
}
.skill-group:nth-child(2) { transition-delay: 0.1s; }
.skill-group:nth-child(3) { transition-delay: 0.2s; }
.skill-group:nth-child(4) { transition-delay: 0.3s; }
.skill-group.visible { opacity: 1; transform: translateY(0); }
.skill-group:hover { border-color: var(--border); }
.skill-group-title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-2);
  letter-spacing: 0.02em;
}
.skill-list { display: flex; flex-direction: column; gap: 10px; }
.skill-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
  padding-left: 0;
}
.skill-group:hover .skill-list li { padding-left: 6px; }
.skill-group:hover .skill-list li:nth-child(1) { color: var(--text); transition-delay: 0.02s; }
.skill-group:hover .skill-list li:nth-child(2) { color: var(--text); transition-delay: 0.04s; }
.skill-group:hover .skill-list li:nth-child(3) { color: var(--text); transition-delay: 0.06s; }
.skill-group:hover .skill-list li:nth-child(4) { color: var(--text); transition-delay: 0.08s; }
.skill-group:hover .skill-list li:nth-child(5) { color: var(--text); transition-delay: 0.10s; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--bg); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  padding: 36px 32px;
  border-radius: var(--radius);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.3s;
}
.testimonial-card.visible { opacity: 1; transform: translateY(0); }
.testimonial-card:hover { border-color: var(--border); }
.testimonial-card p {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testimonial-card footer {
  display: flex; align-items: center; gap: 14px;
}

/* Testimonial avatar */
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.testimonial-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%);
  transition: filter 0.3s;
}
.testimonial-card:hover .testimonial-avatar img { filter: grayscale(0%); }

.testimonial-card footer strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.testimonial-card footer span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ─── CONTACT ─── */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.contact-grid.visible { opacity: 1; transform: translateY(0); }
.contact-text p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.85;
  margin-bottom: 36px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s, padding-left 0.2s;
  border-left: 2px solid var(--border-2);
  padding-left: 14px;
}
.contact-link:hover { color: var(--accent); border-left-color: var(--accent); padding-left: 20px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-2);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.footer-socials { display: flex; gap: 20px; }
.footer-socials a {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-socials a:hover { color: var(--accent); }

/* ─── SCROLL ANIMATIONS ─── */
.project-card { transition-delay: 0s; }
.project-card:nth-child(2) { transition-delay: 0.1s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.15s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 130px 48px 80px; flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin: 0 auto 48px; }
  .hero-cta { justify-content: center; }
  .hero-image-wrap { align-self: center; }
  .hero-bg-text { display: none; }
  .scroll-hint { left: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-2);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { display: block; padding: 16px 24px; border-bottom: 1px solid var(--border-2); }
  .nav-toggle { display: flex; }
  .container { padding: 0 24px; }
  .hero { padding: 110px 24px 80px; }
  .section { padding: 80px 0; }
  .work-grid { grid-template-columns: 1fr; }
  .project-card--large,
  .project-card--wide { grid-column: auto; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat { left: -10px; bottom: -16px; }
  .about-badge { right: -8px; bottom: -16px; width: 90px; height: 90px; }
  .badge-number { font-size: 1.5rem; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
