/* =============================================
   KUSHAL.DEV — Portfolio Stylesheet
   ============================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #c8ff00;
  --accent-dim: rgba(200,255,0,0.12);
  --white: #ffffff;
  --card-bg: #141414;
  --radius: 12px;
  --nav-h: 64px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

body.light {
  --bg: #f4f4f0;
  --bg-2: #eaeae6;
  --bg-3: #e0e0dc;
  --border: rgba(0,0,0,0.1);
  --text: #1a1a1a;
  --text-muted: #666;
  --card-bg: #ffffff;
}

*, *::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-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

body.light .navbar {
  background: rgba(244,244,240,0.9);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--white);
}
body.light .nav-logo { color: #111; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.theme-toggle { font-size: 16px !important; cursor: pointer; }

.btn-hire {
  background: var(--white);
  color: #000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-hire:hover { background: var(--accent); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200,255,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 16px var(--accent); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}
body.light .hero-title { color: #111; }

.hero-accent {
  color: var(--text-muted);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #000;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,255,0,0.2); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-ghost.sm { padding: 8px 18px; font-size: 13px; }

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

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--bg-2);
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}
body.light .about-text h2 { color: #111; }

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 16px;
}
.about-photo-wrap {
  position: relative;
  width: 300px;
  height: 360px;
  flex-shrink: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  filter: grayscale(10%);
  transition: filter var(--transition);
}
.about-photo-wrap:hover .about-photo {
  filter: grayscale(0%);
}

.about-photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(200,255,0,0.25), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(200,255,0,0.2);
  z-index: 0;
}

/* =============================================
   EDUCATION
   ============================================= */
.education {
  background: var(--bg);
  padding: 100px 40px;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
body.light .section-header h2 { color: #111; }
.section-header p { color: var(--text-muted); }

.edu-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.edu-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateX(4px);
}

.edu-icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
}

.edu-info h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
body.light .edu-info h3 { color: #111; }
.edu-info span { color: var(--text-muted); font-size: 14px; }

/* =============================================
   SKILLS
   ============================================= */
.skills {
  background: var(--bg-2);
  padding: 100px 40px;
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.skill-card:hover {
  border-color: rgba(200,255,0,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.skill-icon {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}
body.light .skill-card h3 { color: #111; }

.skill-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  transition: all var(--transition);
}
.tags span:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   PROJECTS
   ============================================= */
.projects {
  background: var(--bg);
  padding: 100px 40px;
  border-bottom: 1px solid var(--border);
}

.projects-header {
  max-width: 1000px;
  margin: 0 auto 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.projects-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -1px;
}
body.light .projects-header h2 { color: #111; }
.projects-header p { color: var(--text-muted); max-width: 400px; }

.projects-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover { border-color: rgba(200,255,0,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

/* Real project card */
.real-card { display: flex; flex-direction: column; }

.project-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.real-card:hover .project-img-wrap img { transform: scale(1.04); }

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
body.light .project-body h3 { color: #111; }
.project-body p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}
.project-footer { margin-top: 8px; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags span {
  background: var(--accent-dim);
  border: 1px solid rgba(200,255,0,0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--bg-2);
  padding: 100px 40px;
  border-bottom: 1px solid var(--border);
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
}
body.light .contact-left h2 { color: #111; }
.contact-left p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 28px;
  transition: all var(--transition);
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }

.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition);
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}
.form-group textarea { min-height: 100px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
body.light .form-group input::placeholder,
body.light .form-group textarea::placeholder { color: rgba(0,0,0,0.3); }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(200,255,0,0.5); }

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--white);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-send:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,255,0,0.2); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg);
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}
body.light .footer-logo { color: #111; }
.footer-logo span { color: var(--accent); }

.footer p { color: var(--text-muted); font-size: 13px; }

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}
.back-top:hover { color: var(--text); }

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { padding-right: 0; justify-content: flex-start; margin-bottom: 8px; }
  .about-photo-wrap { width: 200px; height: 240px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .projects-header { flex-direction: column; }
}

@media (max-width: 700px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 40px) 20px 60px; }
  .about, .education, .skills, .projects, .contact { padding: 72px 20px; }
  .footer { flex-direction: column; text-align: center; }
}

/* Mobile Nav Open */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
  gap: 20px;
}
