/* ================================================================
   STYLE.CSS — C Mohammed Shaan Portfolio
   Dark-mode primary with light accent sections
   ================================================================ */

:root {
  --dark: #0b0c10;
  --dark2: #13151a;
  --dark3: #1c1f27;
  --light: #f4f5f7;
  --white: #ffffff;
  --orange: #ff622e;
  --orange2: #ff8c5a;
  --muted: #8b909e;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.08);
  --font: 'Inter', sans-serif;
  --font2: 'Space Grotesk', sans-serif;
  --max: 1400px;
  --pad: 7%;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration:none; color:inherit; }
img { max-width:100%; }
h1,h2,h3,h4 { font-family:var(--font2); line-height:1.15; letter-spacing:-0.02em; }

/* ── Canvas ─────────────────────────────────────────────── */
#main-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem var(--pad);
  display: flex; align-items: center;
  background: transparent;
  transition: background 0.4s ease;
}
.navbar.scrolled {
  background: rgba(11,12,16,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  display: flex; align-items: center; gap: 2rem;
}

.logo {
  font-family: var(--font2);
  font-weight: 700; font-size: 1.4rem;
  letter-spacing: -0.04em;
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--white); margin-right: auto;
}
.logo-dot {
  width:10px; height:10px;
  background:var(--orange); border-radius:50%;
  display:inline-block;
}

.nav-links {
  display: flex; list-style:none;
  align-items: center; gap: 2rem;
}
.nav-links a {
  font-size:.88rem; font-weight:500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.btn-wa {
  background: #25d366;
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .88rem;
  display: flex; align-items: center; gap: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background:none; border:none; cursor:pointer; padding:.4rem;
  margin-left:auto;
  position: relative;
  z-index: 210;
}
.hamburger span {
  display:block; width:24px; height:2px;
  background:var(--white); border-radius:2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sections (Panels) ───────────────────────────────────── */
.panel {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 6rem var(--pad);
  display: flex; align-items: center;
}
.panel-dark { background: transparent; }
.panel-inner {
  width: 100%; max-width: var(--max);
  margin: 0 auto;
}

/* ── GSAP Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Label / H2 ─────────────────────────────────── */
.section-label {
  font-size: .75rem; font-weight:700; letter-spacing:.15em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: .8rem;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items:center; gap:.5rem;
  padding: .75rem 1.5rem; border-radius:8px;
  font-weight:600; font-size:.95rem; cursor:pointer;
  transition: all 0.25s ease;
  font-family:var(--font);
}
.btn.primary {
  background: var(--orange); color:#fff;
  box-shadow: 0 4px 20px rgba(255,98,46,.3);
}
.btn.primary:hover {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,98,46,.4);
}
.btn.ghost {
  border:1px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.btn.ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,.05);
}

/* ── Gradient Text ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 50%, #ffcc99 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - 6rem);
}

.hero-text {
  max-width: 620px;
}

.chip {
  display:inline-flex; align-items:center; gap:.4rem;
  background:rgba(255,98,46,.12); color:var(--orange);
  border:1px solid rgba(255,98,46,.25);
  padding:.35rem .9rem; border-radius:20px;
  font-size:.8rem; font-weight:600; margin-bottom:1.5rem;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.title-line {
  font-size:1.1rem; color:var(--muted);
  font-weight:500; margin-bottom:1rem;
}
.subtitle {
  font-size:1rem; color:var(--muted);
  max-width:520px; margin-bottom:2rem;
}

.cta-row { display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:2rem; }

.contact-chips {
  display:flex; flex-wrap:wrap; gap:1rem;
  font-size:.82rem; color:var(--muted);
}
.contact-chips span {
  display:flex; align-items:center; gap:.4rem;
}
.contact-chips i { color:var(--orange); }

/* ── Profile Image Area ────────────────────────────────── */
.hero-right {
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap: 2rem;
  position:relative;
}

.profile-frame {
  display:flex; flex-direction:column; align-items:center; gap:1.5rem;
}

.profile-img-wrap {
  position:relative;
  width:260px; height:260px;
  border-radius:50%;
  border:3px solid rgba(255,98,46,.4);
  overflow:hidden;
  box-shadow: 0 0 60px rgba(255,98,46,.15);
  background: var(--dark3);
}
.profile-img {
  width:100%; height:100%; object-fit:cover;
  display:block;
}
.profile-fallback {
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:.5rem;
  color:var(--muted);
  font-size:.85rem;
}
.profile-fallback i { font-size:3.5rem; color:rgba(255,255,255,.15); }
.profile-img-wrap.no-img .profile-fallback { display:flex; }

/* When actual image loads, hide fallback */
.profile-img-wrap:not(.no-img) .profile-fallback { display:none; }

/* Certificate Badge */
.badge-wrap {
  position:relative; text-align:center;
}
.cert-badge {
  width:100px; height:100px;
  object-fit:contain; display:block;
  filter: drop-shadow(0 4px 20px rgba(255,98,46,.3));
}
.badge-fallback {
  display:none; flex-direction:column;
  align-items:center; gap:.4rem;
  padding:1rem 1.5rem;
  border:2px dashed rgba(255,98,46,.3);
  border-radius:12px;
  color:var(--muted); font-size:.8rem;
}
.badge-fallback i { font-size:2.5rem; color:var(--orange); }
.badge-wrap.no-badge .badge-fallback { display:flex; }
.badge-wrap.no-badge .cert-badge { display:none; }

/* Scroll hint */
.scroll-hint {
  position:absolute; bottom:2.5rem; left:50%;
  transform:translateX(-50%);
}
.scroll-hint span {
  display:block; width:1px; height:50px;
  background:linear-gradient(to bottom, transparent, var(--orange));
  margin:0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100%{ opacity:.3; transform:scaleY(1); }
  50%{ opacity:1; transform:scaleY(1.2); }
}

/* Particle Anchor */
.particle-anchor {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  width: 10px; height: 10px;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */
.about-inner {
  display:grid; grid-template-columns:1fr 1.4fr;
  gap:4rem; align-items:center;
  position:relative;
  min-height:90vh;
}

/* Left particle zone in about (kept empty — particles live here) */
.about-particle-zone {
  position:relative;
  width:100%; height:460px;
  display:flex; align-items:center; justify-content:center;
}
.about-particle-zone .zone-ring {
  width:260px; height:260px; border-radius:50%;
  border:1px dashed rgba(255,98,46,0.18);
  position:relative;
  animation: pulsRing 4s ease-in-out infinite;
}
.about-particle-zone .zone-ring::after {
  content:''; position:absolute; inset:20px;
  border-radius:50%;
  border:1px dashed rgba(255,98,46,0.1);
}
@keyframes pulsRing {
  0%,100%{ transform:scale(1); opacity:0.6; }
  50%{ transform:scale(1.05); opacity:1; }
}
.about-content h2 { margin-bottom:1.5rem; }
.about-content .lead {
  font-size:1.1rem; color:var(--muted);
  margin-bottom:1.5rem; font-weight:500;
}
.about-content p {
  color: rgba(255,255,255,.6);
  margin-bottom:2rem;
}
.info-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:.75rem 2rem; margin-bottom:2rem;
}
.info-item {
  display:flex; flex-direction:column; gap:.15rem;
}
.info-item strong {
  font-size:.75rem; text-transform:uppercase;
  letter-spacing:.1em; color:var(--muted);
}
.info-item span { font-size:.95rem; color:var(--white); font-weight:500; }

.tag-cloud { display:flex; flex-wrap:wrap; gap:.6rem; }
.tag-cloud span {
  padding:.3rem .75rem;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px; font-size:.8rem;
  color:rgba(255,255,255,.7);
  transition: all 0.2s;
}
.tag-cloud span:hover {
  border-color:var(--orange);
  color:var(--orange);
}

/* ═══════════════════════════════════════════════════════════
   EXPERIENCE — TIMELINE
   ═══════════════════════════════════════════════════════════ */
.exp-inner {
  display:grid; grid-template-columns:1fr 2fr;
  gap:5rem; align-items:start; padding-top:2rem;
  position:relative;
}
.exp-left h2 { margin-bottom:1rem; }
.exp-left p { color:var(--muted); }

.timeline-col { display:flex; flex-direction:column; gap:0; }

.job-card {
  display:flex; gap:2rem;
  padding-bottom:3rem;
  position:relative;
}
/* vertical line */
.job-card::before {
  content:'';
  position:absolute; left:11px; top:28px; bottom:0;
  width:1px;
  background:linear-gradient(to bottom, rgba(255,98,46,.5), transparent);
}
.job-card:last-child::before { display:none; }

.job-dot {
  width:24px; height:24px; min-width:24px;
  border-radius:50%;
  background:var(--dark3);
  border:2px solid rgba(255,255,255,.2);
  margin-top:4px;
  z-index:1;
}
.job-dot.orange { border-color:var(--orange); background:rgba(255,98,46,.1); }

.job-body { flex:1; }
.job-period {
  font-size:.75rem; font-weight:600; letter-spacing:.07em;
  text-transform:uppercase; color:var(--orange);
}
.job-body h3 {
  font-size:1.2rem; margin:.4rem 0 .3rem;
}
.job-company {
  display:block; font-size:.88rem; color:var(--muted);
  margin-bottom:.8rem;
}
.job-body ul {
  padding-left:1.1rem;
  color:rgba(255,255,255,.6);
  font-size:.9rem;
}
.job-body ul li { margin-bottom:.45rem; }
.job-body em { color:rgba(255,255,255,.85); font-style:normal; font-weight:500; }

/* ═══════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════ */
.skills-inner {
  display:grid; grid-template-columns:1fr;
  position:relative;
}
.skills-content h2 { margin-bottom:2.5rem; }

.skills-blocks {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}
.skill-block {
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:12px; padding:1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-block:hover {
  border-color:rgba(255,98,46,.3);
  transform:translateY(-4px);
}
.skill-block h4 {
  font-size:.95rem; font-weight:600;
  margin-bottom:1rem; color:var(--white);
  display:flex; align-items:center; gap:.5rem;
}
.skill-block h4 i { color:var(--orange); }
.skill-tags { display:flex; flex-wrap:wrap; gap:.5rem; }
.skill-tags span {
  padding:.25rem .6rem;
  background:rgba(255,98,46,.08);
  border:1px solid rgba(255,98,46,.15);
  border-radius:4px; font-size:.78rem;
  color:rgba(255,255,255,.75);
}

/* ═══════════════════════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════════════════════ */
.edu-inner {
  display:grid; grid-template-columns:1fr 2fr;
  gap:5rem; align-items:start;
  position:relative;
}
.edu-left h2 { margin-bottom:1rem; }
.edu-left p { color:var(--muted); font-size:.95rem; }

.edu-cards { display:flex; flex-direction:column; gap:1.2rem; }

.edu-card {
  display:flex; gap:1.5rem; align-items:flex-start;
  background:rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius:12px; padding:1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.edu-card:hover {
  border-color:rgba(255,98,46,.3);
  transform:translateX(4px);
}
.edu-card.featured {
  border-color:rgba(255,98,46,.25);
  background:linear-gradient(135deg, rgba(255,98,46,.06), var(--dark3));
}

.edu-icon {
  width:48px; min-width:48px; height:48px;
  border-radius:10px;
  background:rgba(255,98,46,.1);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem; color:var(--orange);
  overflow:hidden;
}
.cert-badge-sm { width:48px; height:48px; object-fit:contain; }
.badge-fb-sm { font-size:1.8rem; }
.edu-icon.no-badge .badge-fb-sm { font-size:1.8rem; }

.edu-type {
  display:inline-block;
  font-size:.7rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; padding:.2rem .6rem;
  border-radius:4px; margin-bottom:.5rem;
}
.edu-type.cert { background:rgba(255,98,46,.15); color:var(--orange); }
.edu-type.degree { background:rgba(100,180,255,.12); color:#64b4ff; }
.edu-type.intern { background:rgba(100,220,160,.12); color:#64dcaa; }

.edu-card h3 { font-size:1rem; margin-bottom:.3rem; }
.edu-card p { font-size:.85rem; color:var(--muted); margin-bottom:.3rem; }
.cert-id { font-size:.75rem; color:rgba(255,255,255,.35); font-family:monospace; }

/* ═══════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════ */
.proj-inner {
  position:relative;
}
.proj-inner h2 { margin-bottom:2.5rem; }

.project-cards {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}
.project-card {
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:14px; padding:2rem;
  transition: all 0.3s ease;
  position:relative; overflow:hidden;
}
.project-card::before {
  content:'';
  position:absolute; top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, var(--orange), transparent);
  transform:scaleX(0); transform-origin:left;
  transition: transform 0.4s ease;
}
.project-card:hover::before { transform:scaleX(1); }
.project-card:hover {
  border-color:rgba(255,98,46,.3);
  transform:translateY(-6px);
}
.proj-number {
  font-size:3rem; font-weight:800; font-family:var(--font2);
  color:rgba(255,255,255,.05); line-height:1;
  margin-bottom:.5rem;
}
.project-card h3 { font-size:1.05rem; margin-bottom:.8rem; }
.project-card p { font-size:.88rem; color:var(--muted); margin-bottom:1rem; }
.proj-tags { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.proj-tags span {
  padding:.2rem .55rem;
  background:rgba(255,98,46,.08);
  border:1px solid rgba(255,98,46,.2);
  border-radius:4px; font-size:.75rem;
  color:var(--orange);
}
.proj-sites { font-size:.78rem; color:rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-inner {
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.contact-body { max-width:700px; width:100%; }
.contact-body h2 { margin-bottom:1rem; }
.contact-body > p { color:var(--muted); margin-bottom:2.5rem; }

.contact-links { display:flex; flex-direction:column; gap:1rem; }
.contact-card {
  display:flex; align-items:center; gap:1.5rem;
  padding:1.25rem 1.75rem;
  background:transparent; /* Seamless sections — removed alternating backgrounds */
  border:1px solid var(--border);
  border-radius:12px;
  transition: all 0.3s ease;
  color:var(--white);
}
.contact-card:hover {
  border-color:rgba(255,98,46,.4);
  transform:translateX(8px);
  background:rgba(255,98,46,.05);
}
.contact-card.wa:hover { border-color:rgba(37,211,102,.4); background:rgba(37,211,102,.05); }
.contact-card.wa i { color:#25d366; }
.contact-card > i:first-child { color:var(--orange); width:2.5rem; text-align:center; }
.contact-card > div { flex:1; }
.contact-card > div strong { display:block; font-size:1rem; margin-bottom:.2rem; }
.contact-card > div span { font-size:.85rem; color:var(--muted); }
.contact-card > i:last-child { color:var(--muted); font-size:.9rem; }

/* Footer */
.footer {
  padding: 2rem var(--pad);
  text-align:center;
  border-top:1px solid var(--border);
  color:var(--muted); font-size:.82rem;
  background: var(--dark);
  position:relative; z-index:10;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media(max-width:1100px){
  .exp-inner { grid-template-columns:1fr; gap:3rem; }
  .edu-inner { grid-template-columns:1fr; gap:2.5rem; }
  .skills-blocks { grid-template-columns: repeat(2,1fr); }
  .project-cards { grid-template-columns: repeat(2,1fr); }
}

@media(max-width:768px){
  :root{ 
    --pad: 6%; 
    --muted: #b0b5c5; /* Boosted base gray */
  }
  
  /* Navbar and Mobile Menu must ALWAYS be 100% solid pure black on mobile */
  .navbar, .navbar.scrolled { 
    background: #000000 !important; 
    background-color: #000000 !important; 
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }
  .nav-links { background: #000000 !important; background-color: #000000 !important; }
  .hamburger { background: transparent !important; }
  .hamburger span { background: #ffffff !important; }

  /* Readability overrides against particles (Dark Theme) */
  .skill-block, .project-card, .edu-card { 
    background: rgba(11,12,16,0.7); 
    border-color: rgba(255,255,255,0.08); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); 
  }
  .btn.ghost { border-color: rgba(255,255,255,0.2); color: #ffffff; }
  .btn.ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.4); }
  .tag-cloud span { color: #ffffff; border-color: rgba(255,98,46,0.2); background: rgba(255,98,46,0.05); }
  .job-card::before { background: linear-gradient(to bottom, rgba(255,98,46,0.5), transparent); }
  .job-dot:not(.orange) { background: #1c1f27; border-color: rgba(255,255,255,0.2); }

  .about-content p, .job-body ul { color: rgba(255,255,255, 0.85); }
  .job-body em { color: #ffffff; font-weight: 600; }
  .proj-number { color: rgba(255,255,255,0.06); }
  .profile-fallback i { color: rgba(255,255,255,0.15); }
  
  /* Nav */
  .hamburger { display:flex; }
  .nav-links {
    position:fixed; top:0; right:-100%; bottom:0;
    width:75%; max-width:300px;
    flex-direction:column; align-items:flex-start;
    background:var(--dark2);
    border-left:1px solid var(--border);
    padding:5rem 2rem 2rem;
    gap:1.2rem;
    transition: right 0.35s ease;
    z-index:190;
  }
  .nav-links.open { right:0; }
  .nav-links a { font-size:1.1rem; }
  .btn-wa { width:100%; justify-content:center; }

  /* Hero */
  .hero-inner {
    grid-template-columns:1fr;
    text-align:center;
    gap:3rem;
    padding-top:6rem;
  }
  .hero-text { max-width:100%; order: 2; }
  .subtitle { max-width:100%; }
  .cta-row { justify-content:center; }
  .contact-chips { justify-content:center; }
  .hero-right { width:100%; order: 1; }
  .profile-img-wrap { width:200px; height:200px; margin: 0 auto; }
  h1 { font-size:2.8rem; }

  /* About */
  .about-inner { grid-template-columns:1fr; gap:2.5rem; }
  .about-particle-zone { height:300px; }
  .about-particle-zone .zone-ring { width:180px; height:180px; }
  .info-grid { grid-template-columns:1fr 1fr; }

  /* Skills */
  .skills-blocks { grid-template-columns:1fr; }

  /* Projects */
  .project-cards { grid-template-columns:1fr; }

  /* Reduce panel padding drastically to remove space beneath sections */
  .panel { 
    padding: 3rem var(--pad) 2rem; 
    background: rgba(11, 12, 16, 0.75); /* Dark read-mask over particles */
  }
}

@media(max-width:480px){
  h1 { font-size:2.2rem; }
  h2 { font-size:1.8rem; }
  .info-grid { grid-template-columns:1fr; }
  .cta-row .btn { width:100%; justify-content:center; }
  .profile-img-wrap { width:170px; height:170px; }
}
