/* ============================================
   AYUSHMAN THAKUR — PORTFOLIO CSS
   style.css
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --surface: #16161f;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #f0eff8;
  --muted: #8b8a9e;
  --accent: #7c6af5;
  --accent2: #a89cf7;
  --accent-glow: rgba(124,106,245,0.15);
  --green: #4ade80;
  --amber: #fbbf24;
  --coral: #f87171;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --r: 12px;
  --r-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-weight: 500 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; color: #fff !important; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,106,245,0.18) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,106,245,0.12);
  border: 1px solid rgba(124,106,245,0.3);
  border-radius: 50px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .accent { color: var(--accent2); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-ghost:hover { background: var(--bg3); border-color: rgba(255,255,255,0.22); }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--border2), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Section shared ── */
section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent2);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3.5rem;
  max-width: 500px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border2); }

.stat-card .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── Skills ── */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-group:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.skill-group h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  transition: all 0.2s;
}

.skill-group:hover .tag {
  border-color: rgba(124,106,245,0.25);
  color: var(--text);
}

/* ── Experience / Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 3rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--accent2);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 300;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
  font-weight: 300;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 3px;
}

/* ───────── Projects ───────── */

.github-btn{
    grid-column:1 / -1;
    display:flex;
    justify-content:center;
    margin-top:1rem;
}

.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
    gap:1.5rem;
}

.project-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--r);
    padding:1.5rem;
    display:flex;
    flex-direction:column;
    transition:.3s;
    overflow:hidden;
    height:100%;
}

.project-card:hover{
    transform:translateY(-8px);
    border-color:rgba(124,106,245,.4);
}

.project-img{
    width:100%;
    height:180px;
    overflow:hidden;
    border-radius:10px;
    margin-bottom:1rem;
}

.project-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.4s;
}

.project-card:hover .project-img img{
    transform:scale(1.05);
}

.project-icon{
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:var(--accent-glow);
    border:1px solid rgba(124,106,245,.3);
    font-size:1.3rem;
    margin-bottom:.8rem;
}

.project-card h3{
    font-size:1.2rem;
    font-weight:700;
    margin-bottom:.5rem;
}

.project-card p{
    color:var(--muted);
    line-height:1.7;
    font-size:.9rem;
    flex:1;
    margin-bottom:1rem;
}

.project-footer{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:1rem;
    margin-top:auto;
}

.project-tech{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    flex:1;
}

.project-tech span{
    background:rgba(255,255,255,.05);
    border:1px solid var(--border);
    color:var(--muted);
    padding:4px 10px;
    border-radius:6px;
    font-size:.72rem;
}

.project-links{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
    flex-shrink:0;
}

.project-link{
    color:var(--accent2);
    text-decoration:none;
    font-size:.82rem;
    font-weight:600;
    transition:.3s;
}

.project-link:hover{
    color:#fff;
    transform:translateX(4px);
}

/* ── Education ── */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.edu-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.edu-sub {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0.35rem;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 50px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  color: #4ade80;
  font-weight: 500;
}

.edu-dot {
  width: 5px; height: 5px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

/* ── Certifications ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}

.cert-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.cert-icon {
  width: 36px; height: 36px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.cert-info span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

/* ── Contact ── */
.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: all 0.2s;
}

.contact-link:hover {
  background: var(--bg3);
  border-color: var(--border2);
  color: var(--text);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

footer span { color: var(--accent2); }

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero { padding: 7rem 1.25rem 4rem; }
}
