/*
Theme Name: Rudra Prakash Portfolio
Theme URI: https://github.com/rudraparida2012-cell
Author: Rudra Prakash Parida
Author URI: http://www.linkedin.com/in/rudx4dataenginner
Description: A dark, modern one-page portfolio theme for a Data Engineer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rudra-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap');

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(220 15% 5%);
  --fg: hsl(220 10% 96%);
  --card: hsl(220 12% 10%);
  --primary: hsl(210 88% 40%);
  --primary-fg: hsl(0 0% 100%);
  --secondary: hsl(220 12% 12%);
  --muted: hsl(220 10% 18%);
  --muted-fg: hsl(220 8% 68%);
  --border: hsl(220 10% 22%);
  --radius: 0.5rem;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Utility ────────────────────────────────── */
.section-padding { padding: 5rem 1.5rem; }
.bg-secondary { background: var(--secondary); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-fg); }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 3rem;
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.4s;
}
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card:hover::after { width: 100%; }

/* ── Navbar ─────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: hsla(220 15% 5% / 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.site-nav .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.site-nav .logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; color: var(--fg); cursor: pointer; font-size: 1.5rem; }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: hsla(220 15% 5% / 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg), var(--secondary));
}
.hero .grid {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image: linear-gradient(hsl(210 88% 40%) 1px, transparent 1px),
                     linear-gradient(90deg, hsl(210 88% 40%) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero .dots {
  position: absolute; inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle, white 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .hero-inner { flex-direction: row; gap: 4rem; }
  .hero-text { text-align: left; }
}
.hero-text { flex: 1; text-align: center; }
.hero-text .tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-text .lead {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
}
.hero-text .desc {
  color: var(--muted-fg);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
@media (min-width: 768px) { .hero-btns { justify-content: flex-start; } }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: all 0.3s;
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn:hover { transform: scale(1.05); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), hsl(210 80% 50%));
  color: var(--primary-fg);
  border: none;
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 8px 24px hsla(210 88% 40% / 0.3); }
.btn:hover.btn-email { border-color: var(--primary); background: hsla(210 88% 40% / 0.1); }
.btn:hover.btn-linkedin { border-color: hsl(210 90% 55%); background: hsla(210 90% 55% / 0.1); }
.btn:hover.btn-github { border-color: hsl(270 60% 55%); background: hsla(270 60% 55% / 0.1); }
.btn:hover.btn-instagram { border-color: hsl(330 70% 55%); background: hsla(330 70% 55% / 0.1); }

/* Profile photo */
.profile-wrap {
  flex-shrink: 0;
  position: relative;
}
.profile-glow {
  position: absolute; inset: -1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsla(210 88% 40% / 0.3), transparent, hsla(210 88% 40% / 0.2));
  filter: blur(24px);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.profile-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsla(210 88% 40% / 0.6), hsla(210 88% 40% / 0.2));
}
.profile-img {
  position: relative;
  width: 14rem; height: 14rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid hsla(210 88% 40% / 0.3);
  transition: box-shadow 0.5s, border-color 0.5s;
}
.profile-wrap:hover .profile-img {
  border-color: hsla(210 88% 40% / 0.7);
  box-shadow: 0 0 40px hsla(210 88% 40% / 0.4);
}
.profile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transform: scale(1.4);
  transition: transform 0.5s;
}
.profile-wrap:hover .profile-img img { transform: scale(1.5); }
@media (min-width: 768px) { .profile-img { width: 18rem; height: 18rem; } }
@media (min-width: 1024px) { .profile-img { width: 20rem; height: 20rem; } }

/* ── About ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .about-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(4, 1fr); } }
.about-grid .icon { color: var(--primary); margin-bottom: 1rem; font-size: 1.5rem; }
.about-grid h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.about-grid p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; }

/* ── Experience ─────────────────────────────── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 1rem; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -2.25rem; top: 0.25rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--primary-fg);
}
.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .timeline-header { flex-direction: row; align-items: center; justify-content: space-between; }
}
.timeline-header h3 { font-family: var(--font-heading); font-weight: 600; }
.timeline-header .period { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.timeline-company { color: var(--muted-fg); font-size: 0.875rem; margin-bottom: 0.75rem; }
.timeline-bullets li {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.6;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.timeline-bullets .arrow { color: var(--primary); margin-top: 0.35rem; flex-shrink: 0; }

/* ── Projects ───────────────────────────────── */
.project-card { margin-bottom: 2rem; overflow: hidden; }
.project-header {
  background: linear-gradient(135deg, var(--primary), hsl(210 80% 50%));
  padding: 0.75rem 1.5rem;
}
.project-header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-fg);
}
.project-body { padding: 1.5rem 2rem; }
.project-body .summary { color: var(--muted-fg); line-height: 1.6; margin-bottom: 1.5rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tech-tag {
  background: var(--muted);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
}
.project-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
}
@media (min-width: 768px) { .project-bullets { grid-template-columns: 1fr 1fr; } }

/* ── Skills ─────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }
.skill-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag {
  background: var(--muted);
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
}

/* ── Services ───────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card .icon { color: var(--primary); font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--muted-fg); font-size: 0.75rem; line-height: 1.6; }

/* ── Certifications ─────────────────────────── */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .cred-grid { grid-template-columns: 1fr 1fr; } }
.cred-list { display: flex; flex-direction: column; gap: 1rem; }
.cred-card { display: flex; align-items: center; gap: 1rem; }
.cred-card .emoji { font-size: 1.75rem; flex-shrink: 0; }
.cred-card h4 { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.cred-card p { color: var(--muted-fg); font-size: 0.75rem; line-height: 1.5; }
.edu-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.edu-card h4 { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; }
.edu-card .period { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.edu-card .school { font-size: 0.75rem; margin-bottom: 0.25rem; }
.edu-card p.desc { color: var(--muted-fg); font-size: 0.75rem; line-height: 1.5; }

/* ── Why Work With Me ───────────────────────── */
.why-section { text-align: center; max-width: 48rem; margin: 0 auto; }
.why-section p { color: var(--muted-fg); font-size: 1.1rem; line-height: 1.7; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.site-footer .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) { .site-footer .inner { flex-direction: row; justify-content: space-between; } }
.site-footer .copy { color: var(--muted-fg); font-size: 0.75rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
  color: var(--muted-fg);
  transition: color 0.2s;
  display: inline-flex;
}
.social-icons a:hover { color: var(--primary); }
.social-icons svg { width: 1rem; height: 1rem; }

/* ── Section heading helper ─────────────────── */
.section-heading h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-heading h3 svg { color: var(--primary); }

/* ── Footer social text icons ───────────────── */
.social-icons a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

/* Footer social links - compatibility override */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .social-icons { justify-content: flex-end; }
}
.social-icons .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--muted);
  color: var(--fg);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all .2s ease;
}
.social-icons .social-btn:hover,
.social-icons .social-btn:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-fg);
  outline: none;
}
