/* ========================================
   PRUTHVINATH REDDY SUDINI — Resume
   Modern Dark-Theme Interactive Resume
   ======================================== */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #12121a;
  --bg-card:       #1a1a2e;
  --bg-card-hover: #1f1f35;
  --glass:         rgba(255, 255, 255, 0.04);
  --glass-border:  rgba(255, 255, 255, 0.08);

  --text-primary:   #e8e8f0;
  --text-secondary: #9a9ab0;
  --text-muted:     #6a6a80;

  --accent:         #6c63ff;
  --accent-light:   #8b83ff;
  --accent-glow:    rgba(108, 99, 255, 0.35);
  --accent-alt:     #00d4aa;
  --accent-alt-glow:rgba(0, 212, 170, 0.25);
  --gradient:       linear-gradient(135deg, #6c63ff, #00d4aa);
  --gradient-warm:  linear-gradient(135deg, #ff6b6b, #ffa36c);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 16px 60px rgba(0,0,0,.45);

  --transition: .35s cubic-bezier(.4,0,.2,1);
  --transition-fast: .2s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background:var(--bg-secondary); }
::-webkit-scrollbar-thumb { background:var(--accent); border-radius:3px; }

/* selection */
::selection { background: var(--accent); color:#fff; }

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

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,.65);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,15,.88);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left:0;
  width:0; height:2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width:100%;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 26px; height:2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: .78rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}

.hero-badge .dot {
  width:8px; height:8px;
  background: var(--accent-alt);
  border-radius:50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity:1; box-shadow:0 0 0 0 var(--accent-alt-glow); }
  50%      { opacity:.6; box-shadow:0 0 0 8px transparent; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: .6rem;
}

.hero h1 .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1rem;
}

.typed-cursor {
  display: inline-block;
  width:2px;
  height: 1.3em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink .7s step-end infinite;
}

@keyframes blink { 50% { opacity:0; } }

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

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.3rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  background: var(--glass);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(108,99,255,.1);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left:50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: 1px;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator .chevron {
  width:20px; height:20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes float {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50%     { transform:translateX(-50%) translateY(10px); }
}

/* ---------- Sections ---------- */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  margin: .8rem auto 0;
}

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

.about-text p {
  color: var(--text-secondary);
  font-size: .95rem;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--text-primary);
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top:0; left:0;
  width: 100%; height:3px;
  background: var(--gradient);
  opacity:0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(108,99,255,.15);
}

.stat-card:hover::before { opacity:1; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .3rem;
}

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

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity:0;
  transform: translateY(30px);
  transition: var(--transition);
}

.timeline-item.visible {
  opacity:1;
  transform: translateY(0);
}

.timeline-dot {
  position: absolute;
  left: -3rem;
  top: .4rem;
  width: 14px; height:14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  transform: translateX(-6px);
  z-index:2;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
  cursor: default;
}

.timeline-card:hover {
  border-color: rgba(108,99,255,.3);
  box-shadow: 0 8px 35px rgba(108,99,255,.1);
  transform: translateX(6px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .8rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-company {
  color: var(--accent-light);
  font-size: .9rem;
  font-weight: 500;
}

.timeline-date {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--glass);
  padding: .25rem .75rem;
  border-radius: 50px;
  white-space: nowrap;
}

.timeline-project {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-alt);
  margin: .8rem 0 .5rem;
  padding-left: .8rem;
  border-left: 2px solid var(--accent-alt);
}

.timeline-bullets {
  list-style: none;
  padding: 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: .5rem;
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

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

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: rgba(108,99,255,.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.skill-category-icon {
  width: 44px; height:44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.skill-category-icon.languages { background: rgba(108,99,255,.15); color: var(--accent-light); }
.skill-category-icon.databases { background: rgba(0,212,170,.15); color: var(--accent-alt); }
.skill-category-icon.frameworks { background: rgba(255,107,107,.15); color: #ff6b6b; }
.skill-category-icon.cloud      { background: rgba(255,163,108,.15); color: #ffa36c; }
.skill-category-icon.data       { background: rgba(108,99,255,.15); color: var(--accent-light); }
.skill-category-icon.tools      { background: rgba(0,212,170,.15); color: var(--accent-alt); }
.skill-category-icon.methods    { background: rgba(255,107,107,.15); color: #ff6b6b; }

.skill-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.skill-tag {
  padding: .35rem .85rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(108,99,255,.1);
  transform: scale(1.05);
}

/* ---------- Education & Certifications ---------- */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.edu-card, .cert-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.edu-card::before, .cert-card::before {
  content: '';
  position: absolute;
  top:0; left:0;
  width:100%; height:3px;
  background: var(--gradient);
}

.edu-card:hover, .cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  border-color: rgba(108,99,255,.25);
}

.edu-icon, .cert-icon {
  width:50px; height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: var(--radius-sm);
  font-size:1.5rem;
  margin-bottom: 1rem;
}

.edu-icon  { background:rgba(108,99,255,.15); color:var(--accent-light); }
.cert-icon { background:rgba(0,212,170,.15); color:var(--accent-alt); }

.edu-card h3, .cert-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.edu-card .school, .cert-card .issuer {
  color: var(--accent-light);
  font-size: .9rem;
  font-weight: 500;
}

.edu-card .detail, .cert-card .detail {
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .3rem;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top:0; right:0;
  width:120px; height:120px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity:0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(108,99,255,.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.project-card:hover::after { opacity:1; }

.project-number {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: .5rem;
}

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

.project-card ul {
  list-style: none;
  padding:0;
}

.project-card ul li {
  position:relative;
  padding-left:1.2rem;
  margin-bottom: .4rem;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-card ul li::before {
  content:'▸';
  position:absolute;
  left:0;
  color: var(--accent-alt);
  font-weight: 700;
}

/* ---------- Contact / Footer ---------- */
.footer {
  position: relative;
  z-index:1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover { color:var(--accent-light); }

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

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity:0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity:1;
  transform: translateY(0);
}

/* ---------- Back-to-Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px; height:44px;
  border-radius: 50%;
  background: var(--gradient);
  color:#fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity:0;
  pointer-events:none;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.show {
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .edu-cert-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top:0; right:-100%;
    width:75%;
    height:100vh;
    background: rgba(10,10,15,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: var(--transition);
  }

  .nav-links.open { right:0; }

  .hamburger { display:flex; }

  .hero h1 {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline { padding-left: 2rem; }
  .timeline-dot { left: -2rem; }
}

@media (max-width: 480px) {
  section { padding: 3rem 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-contact { flex-direction: column; align-items: center; }
}
