/* =============================================
   Arjya Prakash Kahili — Portfolio Stylesheet
   ============================================= */

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --surface: #16161f;
  --border: #2a2a3a;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --text: #e8e8f0;
  --muted: #6b6b80;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s, height 0.2s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s;
  opacity: 0.5;
}

/* ── Grid Background ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* ── Noise Grain Overlay ── */
body::after {
  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.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.3;
}

/* ── Glow Blobs ── */
.glow {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: 0.12;
}
.glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; right: -200px;
  animation: float1 8s ease-in-out infinite;
}
.glow-2 {
  width: 500px; height: 500px;
  background: var(--accent2);
  bottom: 10%; left: -150px;
  animation: float2 10s ease-in-out infinite;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Sections ── */
section { position: relative; z-index: 1; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 2.5rem 4rem;
  max-width: 1100px; margin: 0 auto;
}
.hero-tag {
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-tag::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 span.highlight {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.hero-desc {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  cursor: none;
  transition: all 0.25s;
  display: inline-block;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  margin-top: 5rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; border: 1px solid var(--border);
  max-width: 480px;
}
.stat {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 0.7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ── ABOUT ── */
.about {
  padding: 6rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: start;
}
.section-label {
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent2);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.about h2, .skills-section h2, .exp-section h2, .edu-section h2 {
  font-family: var(--font-head);
  font-size: 2.8rem; font-weight: 800;
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.about p {
  color: var(--muted); line-height: 1.9;
  font-size: 0.85rem; margin-bottom: 1rem;
}
.about-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem;
}
.badge {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem; letter-spacing: 0.06em;
  border: 1px solid var(--border); color: var(--muted);
  text-transform: uppercase;
}
.badge.active { border-color: var(--accent3); color: var(--accent3); }

.about-right { padding-top: 3rem; }

/* ── About Photo ── */
.about-photo-wrap {
  position: relative;
  width: 260px;
  margin-bottom: 2.5rem;
}
.about-photo {
  width: 260px;
  height: auto;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  position: relative;
  z-index: 1;
}
.about-photo-border {
  position: absolute;
  top: 12px; left: 12px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent);
  z-index: 0;
}
.langs { display: flex; flex-direction: column; gap: 1rem; }
.lang-item { display: flex; align-items: center; justify-content: space-between; }
.lang-name { font-size: 0.8rem; color: var(--text); }
.lang-bar-wrap {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 1rem;
}
.lang-bar { height: 100%; background: var(--accent); }
.lang-level { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }

/* ── SKILLS ── */
.skills-section {
  padding: 6rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}
.skill-card {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative; overflow: hidden;
}
.skill-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.3s;
}
.skill-card:hover { background: var(--bg2); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.skill-name {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem;
}
.skill-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }

/* ── EXPERIENCE ── */
.exp-section {
  padding: 6rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.timeline { margin-top: 2.5rem; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  padding: 0 0 3rem 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute; left: -4px; top: 6px;
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
}
.timeline-date {
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.timeline-role {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem;
}
.timeline-company {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem;
}
.timeline-desc {
  font-size: 0.82rem; color: var(--muted); line-height: 1.8;
  max-width: 560px;
}
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag {
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem; border: 1px solid var(--border);
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── EDUCATION ── */
.edu-section {
  padding: 6rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.edu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; border: 1px solid var(--border);
  margin-top: 2.5rem;
}
.edu-card {
  padding: 2rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.edu-card:hover { background: var(--bg2); }
.edu-year {
  font-size: 0.7rem; color: var(--accent2);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.edu-school {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem;
}
.edu-degree { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }

/* ── AWARD ── */
.award-section {
  padding: 4rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.award-card {
  border: 1px solid var(--border);
  padding: 2.5rem; display: flex;
  align-items: center; gap: 2rem;
  background: var(--surface); position: relative; overflow: hidden;
}
.award-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.award-icon { font-size: 3rem; }
.award-label {
  font-size: 0.72rem; color: var(--accent3);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.award-name {
  font-family: var(--font-head);
  font-size: 1.8rem; font-weight: 800;
}

/* ── POSTS ── */
.posts-section {
  padding: 6rem 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.posts-desc {
  color: var(--muted); font-size: 0.85rem;
  margin-bottom: 2.5rem; max-width: 480px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(504px, 1fr));
  gap: 1.5rem;
}
.post-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--accent); }
.post-card iframe { display: block; border-radius: 2px; }
.posts-cta { margin-top: 2rem; }

/* ── CONTACT ── */
.contact-section {
  padding: 6rem 2.5rem 4rem;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.contact-section h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.contact-section p { color: var(--muted); font-size: 0.85rem; margin-bottom: 2.5rem; }
.contact-email {
  display: inline-block;
  font-size: 1.1rem; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.7; }
.socials { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.social-link {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none;
  font-size: 1rem; transition: all 0.2s;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.72rem;
  position: relative; z-index: 1;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -40px); } }

.hero-tag    { animation: fadeUp 0.7s ease both; }
.hero h1     { animation: fadeUp 0.7s ease both; animation-delay: 0.1s; }
.hero-desc   { animation: fadeUp 0.7s ease both; animation-delay: 0.2s; }
.hero-actions{ animation: fadeUp 0.7s ease both; animation-delay: 0.3s; }
.hero-stats  { animation: fadeUp 0.7s ease both; animation-delay: 0.4s; }

.cursor-blink { animation: blink 1s step-end infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .edu-grid { grid-template-columns: 1fr; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
}
