/* ══════════════════════════════════════════════
   THJ Co. Portfolio — Cyber Theme
   Purple & Black | Talal H. Bin Ali Al-Jalabi
   ══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg: #06060e;
  --bg-card: #0c0c1a;
  --bg-card-hover: #111128;
  --purple: #a855f7;
  --purple-dim: rgba(168,85,247,0.12);
  --purple-glow: rgba(168,85,247,0.35);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,0.10);
  --text: #e2e2f0;
  --text-dim: #8888a8;
  --border: rgba(168,85,247,0.18);
  --font: 'Chakra Petch', sans-serif;
  --mono: 'Share Tech Mono', monospace;
}


/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--purple); color: #fff; }


/* ── ATMOSPHERE ── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.scanline {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}


/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(6,6,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  height: 64px; display: flex; align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono); font-size: 20px;
  color: var(--purple); text-decoration: none; letter-spacing: 2px;
}
.nav-logo span { color: var(--text-dim); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 6px; transition: 0.25s;
}
.nav-links a:hover { color: var(--purple); background: var(--purple-dim); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--purple);
  transition: 0.3s; border-radius: 2px;
}


/* ── SHARED ── */
.container {
  max-width: 1100px; margin: 0 auto;
  padding: 0 28px; position: relative; z-index: 1;
}
section { padding: 100px 0; }
.section-tag {
  font-family: var(--mono); font-size: 12px; color: var(--purple);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before {
  content: ''; width: 28px; height: 1px; background: var(--purple);
}
.section-title {
  font-size: clamp(28px, 5vw, 42px); font-weight: 700;
  letter-spacing: -1px; line-height: 1.2; margin-bottom: 28px;
}


/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 64px; position: relative;
}
.hero-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%);
  top: 10%; right: -10%; pointer-events: none;
  animation: drift 8s ease-in-out infinite alternate;
}
.hero-glow-2 {
  position: absolute; width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%);
  bottom: 15%; left: -5%; pointer-events: none;
  animation: drift 10s ease-in-out 2s infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, -20px); }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 78px); font-weight: 700;
  line-height: 1.05; letter-spacing: -2px; margin-bottom: 8px;
  animation: fadeUp 0.7s ease-out both;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-family: var(--mono); font-size: 14px; color: var(--text-dim);
  letter-spacing: 2px; margin-bottom: 28px;
  animation: fadeUp 0.7s ease-out 0.15s both;
}
.hero-desc {
  font-size: 16px; color: var(--text-dim); max-width: 560px;
  line-height: 1.8; margin-bottom: 36px;
  animation: fadeUp 0.7s ease-out 0.3s both;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease-out 0.45s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-family: var(--font);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: 0.3s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(168,85,247,0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--purple);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--purple-dim); border-color: var(--purple);
}


/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px; align-items: start;
}
.about-photo {
  width: 280px; height: 360px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-card);
  position: relative; overflow: hidden;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top; display: block;
}
.about-photo::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(168,85,247,0.15));
  pointer-events: none;
}
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-size: 15px; }
.about-stats {
  display: flex; gap: 36px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 28px; font-weight: 700; color: var(--purple);
  font-family: var(--mono);
}
.stat-label {
  font-size: 12px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1px; margin-top: 2px;
}


/* ── CV TIMELINE ── */
.cv-timeline { position: relative; padding-left: 36px; }
.cv-timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan), transparent);
}
.cv-item {
  position: relative; margin-bottom: 40px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; transition: 0.3s;
}
.cv-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168,85,247,0.35);
  box-shadow: 0 0 30px rgba(168,85,247,0.08);
}
.cv-item::before {
  content: ''; position: absolute; left: -42px; top: 30px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple); border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--purple-glow);
}
.cv-date {
  font-family: var(--mono); font-size: 13px; color: var(--purple);
  letter-spacing: 1px; margin-bottom: 6px;
}
.cv-role { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.cv-company {
  font-size: 13px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 12px;
}
.cv-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; }


/* ── BRANDS ── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.brand-card {
  padding: 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  transition: 0.3s; position: relative; overflow: hidden;
}
.brand-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0; transition: 0.3s;
}
.brand-card:hover {
  border-color: rgba(168,85,247,0.4); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.1);
}
.brand-card:hover::before { opacity: 1; }
.brand-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--purple-dim); display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--purple);
}
.brand-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.brand-type {
  font-family: var(--mono); font-size: 11px; color: var(--purple);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.brand-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; }


/* ── VIDEO ── */
.video-container {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
  aspect-ratio: 16/9; max-width: 800px;
}
.video-container video {
  width: 100%; height: 100%; display: block;
  object-fit: cover; border-radius: 14px;
}


/* ── SKILLS ── */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
  padding: 8px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--text-dim);
  transition: 0.25s; cursor: default;
}
.skill-tag:hover {
  border-color: var(--purple); color: var(--purple);
  background: var(--purple-dim);
}


/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info > p { color: var(--text-dim); font-size: 15px; margin-bottom: 6px; }
.contact-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; text-decoration: none; color: var(--text);
  font-size: 14px; transition: 0.25s;
}
.contact-link:hover { border-color: var(--purple); background: var(--purple-dim); }
.contact-link .icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--purple-dim); display: flex;
  align-items: center; justify-content: center;
  color: var(--purple); flex-shrink: 0;
}
.social-row { display: flex; gap: 12px; margin-top: 6px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); text-decoration: none; transition: 0.25s;
}
.social-btn:hover {
  border-color: var(--purple); color: var(--purple);
  background: var(--purple-dim);
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font);
  font-size: 14px; outline: none; transition: 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(168,85,247,0.15);
}
.contact-form textarea { resize: vertical; min-height: 120px; }


/* ── FOOTER ── */
footer {
  padding: 32px 0; border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; color: var(--text-dim);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  color: var(--text-dim); text-decoration: none; transition: 0.2s;
}
.footer-links a:hover { color: var(--purple); }


/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; justify-items: center; }
  .about-text { text-align: center; }
  .about-stats { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .social-row { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 64px 0 0 0;
    background: rgba(6,6,14,0.97); flex-direction: column;
    padding: 32px; z-index: 100;
  }
  .nav-links.active { display: flex; }
  .nav-links a {
    font-size: 16px; padding: 16px;
    text-align: center; width: 100%;
  }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
