/* ===== Camille Groult — Portfolio custom styles ===== */

:root {
  --cg: #ff6b1a;
  --cg2: #ff8c42;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--cg); }

::selection { color: #fff; }

/* AOS fallback: if AOS never initializes, keep content visible */
html:not(.aos-init) [data-aos] { opacity: 1 !important; transform: none !important; }

/* ===== animated grid background ===== */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,107,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  animation: grid-pan 30s linear infinite;
}
@keyframes grid-pan {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}
.glow-orb--1 { top: -10%; right: -5%; width: 420px; height: 420px; background: rgba(255,107,26,0.35); }
.glow-orb--2 { bottom: 5%; left: -8%; width: 380px; height: 380px; background: rgba(255,140,66,0.18); }

/* ===== navbar scrolled ===== */
#navbar.scrolled {
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-link { position: relative; transition: color .25s ease; }
.nav-link:hover { color: var(--cg); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--cg); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.mobile-link { transition: color .2s ease; }
.mobile-link:hover { color: var(--cg); }

/* ===== buttons ===== */
.btn-accent {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 9999px;
  background: var(--cg); color: #0a0a0a;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 8px 24px rgba(255,107,26,0.3);
}
.btn-accent:hover { transform: translateY(-2px); background: var(--cg2); box-shadow: 0 12px 32px rgba(255,107,26,0.5); }
.btn-accent:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 9999px;
  border: 1px solid rgba(255,107,26,0.4); color: #fff;
  transition: all .25s ease;
}
.btn-ghost:hover { background: rgba(255,107,26,0.1); border-color: var(--cg); box-shadow: 0 0 24px rgba(255,107,26,0.2); }

/* ===== social icons ===== */
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08); color: #a1a1aa;
  transition: all .25s ease;
}
.social-icon:hover { color: var(--cg); border-color: var(--cg); transform: translateY(-3px); box-shadow: 0 0 20px rgba(255,107,26,0.25); }

/* ===== photo ===== */
.photo-wrap { position: relative; width: 100%; max-width: 440px; }
.photo-frame {
  position: relative; z-index: 10;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255,107,26,0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(255,107,26,0.14);
  aspect-ratio: 1 / 1;
}
.photo-img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .5s ease;
  filter: saturate(1.05) contrast(1.03);
}
.photo-frame:hover .photo-img { transform: scale(1.06); filter: saturate(1.15) contrast(1.08) brightness(1.05); }

.photo-tint {
  position: absolute; inset: 0; z-index: 11; pointer-events: none;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,107,26,0.22), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.85) 100%);
}

.photo-scan {
  position: absolute; inset: 0; z-index: 12; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255,140,66,0.45), transparent);
  height: 40%; transform: translateY(-120%);
  transition: opacity .3s ease;
}
.photo-frame:hover .photo-scan { opacity: 1; animation: scan 1.8s linear infinite; }
@keyframes scan { from { transform: translateY(-120%); } to { transform: translateY(320%); } }

.photo-badge {
  position: absolute; z-index: 20; top: 16px; left: 16px;
  background: var(--cg); color: #0a0a0a; font-weight: 700; font-size: .78rem;
  padding: 6px 12px; border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255,107,26,0.4);
  transition: opacity .3s ease;
}
.photo-frame:hover .photo-badge { opacity: 0; }

.photo-hover {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 22px 22px 24px; pointer-events: none;
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.photo-frame:hover .photo-hover { opacity: 1; transform: translateY(0); }
.photo-term { color: var(--cg); font-size: .8rem; margin-bottom: 6px; }
.ph-cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.photo-slogan { color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.photo-sub { color: #d4d4d8; font-size: .8rem; margin-top: 4px; }

.photo-glow {
  position: absolute; inset: -20px; z-index: 0;
  background: radial-gradient(circle at center, rgba(255,107,26,0.28) 0%, transparent 65%);
  filter: blur(40px);
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .5; transform: scale(.95); }
  50% { opacity: .9; transform: scale(1.05); }
}

/* ===== typed cursor ===== */
.typed-cursor { color: var(--cg); font-weight: 700; }

/* ===== section heads ===== */
.section-head { display: flex; align-items: baseline; gap: 14px; }
.section-tag { font-family: 'JetBrains Mono', monospace; color: var(--cg); font-size: .95rem; font-weight: 700; }
.section-title {
  font-family: 'JetBrains Mono', monospace; font-weight: 800; color: #fff;
  font-size: 1.75rem; letter-spacing: -.02em;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

/* ===== glass cards ===== */
.glass {
  background: rgba(21,21,26,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
}
.glass-hover { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.glass-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,26,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,26,0.12);
}

.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,107,26,0.12); color: var(--cg);
  transition: all .3s ease;
}
.group:hover .service-icon { background: var(--cg); color: #0a0a0a; transform: rotate(-6deg) scale(1.05); }

.chip {
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); color: #d4d4d8;
}

/* ===== stats ===== */
.stat-num { font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 800; color: var(--cg); }
.stat-label { font-size: .78rem; color: #71717a; margin-top: 2px; }

/* ===== about axes ===== */
.axis-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 18px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.axis-card:hover { border-color: rgba(255,107,26,0.35); transform: translateY(-3px); background: rgba(255,107,26,0.05); }
.axis-ic {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,107,26,0.12); color: var(--cg);
}
.axis-title { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: 4px; }
.axis-desc { color: #a1a1aa; font-size: .82rem; line-height: 1.5; }

/* ===== skills ===== */
.skill-group {
  background: rgba(21,21,26,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px; padding: 24px;
  transition: border-color .3s ease, transform .3s ease;
}
.skill-group:hover { border-color: rgba(255,107,26,0.3); transform: translateY(-4px); }
.skill-group h3 {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .85rem;
  color: var(--cg); margin-bottom: 16px; text-transform: lowercase;
}
.skill-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: .78rem;
  padding: 7px 12px; border-radius: 10px; margin: 0 8px 8px 0;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: #e4e4e7;
  transition: all .2s ease;
}
.skill-badge:hover { background: rgba(255,107,26,0.12); border-color: var(--cg); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(255,107,26,0.2); }
.skill-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cg); }

/* ===== project cards ===== */
.project-card {
  position: relative; overflow: hidden;
  background: rgba(21,21,26,0.55);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 28px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.project-card--video { padding: 0; }
.project-card--video .pj-body { padding: 22px 24px 24px; }
.pj-thumb {
  position: relative; display: block; aspect-ratio: 16/9; overflow: hidden;
  background: #000; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; opacity: .85; }
.project-card--video:hover .pj-thumb img { transform: scale(1.06); opacity: 1; }
.pj-thumb-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,107,26,0.92); color: #0a0a0a;
  box-shadow: 0 6px 24px rgba(255,107,26,0.5); transition: transform .25s ease;
}
.pj-thumb-play svg { width: 20px; height: 20px; margin-left: 2px; }
.project-card--video:hover .pj-thumb-play { transform: translate(-50%,-50%) scale(1.12); }
.project-card:hover { transform: translateY(-6px); border-color: rgba(255,107,26,0.4); box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,26,0.12); }
.project-card .pj-num { font-family: 'JetBrains Mono', monospace; color: rgba(255,107,26,0.5); font-size: .8rem; font-weight: 700; }
.pj-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 600;
  padding: 6px 12px; border-radius: 9px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #d4d4d8;
  transition: all .2s ease;
}
.pj-link:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateY(-2px); }
.pj-link--accent { background: rgba(255,107,26,0.12); border-color: rgba(255,107,26,0.35); color: var(--cg2); }
.pj-link--accent:hover { background: var(--cg); color: #0a0a0a; box-shadow: 0 4px 16px rgba(255,107,26,0.3); }

/* ===== contact ===== */
.form-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: #a1a1aa; margin-bottom: 8px; }
.form-input {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 12px 16px; color: #fff; font-size: .95rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-input::placeholder { color: #52525b; }
.form-input:focus { outline: none; border-color: var(--cg); box-shadow: 0 0 0 3px rgba(255,107,26,0.15); }

.contact-link {
  display: flex; align-items: center; gap: 14px;
  background: rgba(21,21,26,0.5); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 14px 16px; transition: all .25s ease;
}
.contact-link:hover { border-color: rgba(255,107,26,0.4); transform: translateX(4px); background: rgba(255,107,26,0.06); }
.contact-ic { font-size: 1.25rem; }
.contact-k { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: #71717a; }
.contact-v { font-size: .9rem; color: #e4e4e7; font-weight: 500; }