/* =====================================================
   Manish Reddy Portfolio — styles.css
   Senior GenAI / AI-ML Engineer
   ===================================================== */

/* ─── CSS VARIABLES ─── */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --card: #1a1a26;
  --border: rgba(120, 120, 200, 0.15);
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --accent3: #ff6b6b;
  --text: #e8e8f0;
  --muted: #8888aa;
  --heading: #ffffff;
}

/* ─── RESET & BASE ─── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ─── NOISE OVERLAY ─── */
body::before {
  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='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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

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

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

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--heading);
  letter-spacing: -0.5px;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  transition: all 0.2s;
}

.nav-github:hover {
  color: var(--heading);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.nav-github svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

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

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

h1.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--heading);
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}

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

.hero-title {
  font-size: 1.3rem;
  color: var(--accent2);
  font-weight: 300;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat { text-align: left; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading);
}

.stat-num span { color: var(--accent2); }

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── HERO CARD ─── */
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.3), transparent 70%);
  border-radius: 50%;
}

.avatar-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.5rem;
}

.card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: 0.25rem;
}

.card-role {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.72rem;
}

.tag.teal {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.2);
  color: var(--accent2);
}

.card-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover { color: var(--accent2); }

/* ─── SECTION HEADINGS ─── */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
}

.section-header { margin-bottom: 3rem; }

/* ─── ABOUT ─── */
#about {
  padding: 7rem 0;
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.9;
}

.about-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.hl-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hl-icon.purple { background: rgba(108, 99, 255, 0.15); }
.hl-icon.teal   { background: rgba(0, 212, 170, 0.1); }
.hl-icon.red    { background: rgba(255, 107, 107, 0.1); }

.hl-title {
  font-weight: 500;
  color: var(--heading);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.hl-desc {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.metric-big {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading);
}

.metric-big .c { color: var(--accent2); }

.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ─── EXPERIENCE ─── */
#experience { padding: 7rem 0; }

.exp-timeline {
  position: relative;
  padding-left: 2rem;
}

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

.exp-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -2.55rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

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

.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}

.exp-date {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
}

.exp-company {
  color: var(--accent2);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.exp-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.exp-achievements {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.exp-achievements li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.84rem;
}

.exp-achievements li::before {
  content: '→';
  color: var(--accent2);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.exp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tech-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: monospace;
}

/* ─── SKILLS ─── */
#skills {
  padding: 7rem 0;
  background: var(--bg2);
}

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

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

.skill-cat-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.25rem;
}

.skill-cat-sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 1.5rem;
}

.skill-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-ball {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
  transition: all 0.25s;
  cursor: default;
}

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

.ball-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ball-name {
  font-size: 0.75rem;
  color: var(--text);
}

.ball-dot.purple { background: linear-gradient(135deg, #6c63ff, #a29bff); }
.ball-dot.teal   { background: linear-gradient(135deg, #00d4aa, #00b894); }
.ball-dot.blue   { background: linear-gradient(135deg, #2196f3, #0d47a1); }
.ball-dot.orange { background: linear-gradient(135deg, #ff9800, #e65100); }
.ball-dot.red    { background: linear-gradient(135deg, #ff6b6b, #c0392b); }
.ball-dot.green  { background: linear-gradient(135deg, #27ae60, #1e8449); }
.ball-dot.yellow { background: linear-gradient(135deg, #f1c40f, #d68910); }
.ball-dot.pink   { background: linear-gradient(135deg, #e91e63, #880e4f); }
.ball-dot.gray   { background: linear-gradient(135deg, #78909c, #455a64); }

/* ─── PROJECTS ─── */
#projects { padding: 7rem 0; }

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: rgba(108, 99, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(108, 99, 255, 0.1);
}

.proj-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.proj-accent.red  { background: linear-gradient(90deg, var(--accent3), #ff9f43); }
.proj-accent.teal { background: linear-gradient(90deg, var(--accent2), #55efc4); }

.proj-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.proj-icon.purple { background: rgba(108, 99, 255, 0.15); }
.proj-icon.teal   { background: rgba(0, 212, 170, 0.1); }
.proj-icon.red    { background: rgba(255, 107, 107, 0.1); }

.proj-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.proj-desc {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.proj-impact {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.proj-impact-label {
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.proj-impact-value {
  font-size: 0.85rem;
  color: var(--text);
}

/* ─── TESTIMONIALS ─── */
#testimonials {
  padding: 7rem 0;
  background: var(--bg2);
}

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

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.testi-quote {
  font-size: 3rem;
  line-height: 1;
  color: rgba(108, 99, 255, 0.3);
  font-family: serif;
  margin-bottom: 1rem;
}

.testi-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.testi-avatar.purple { background: linear-gradient(135deg, var(--accent), #a29bff); }
.testi-avatar.teal   { background: linear-gradient(135deg, var(--accent2), #55efc4); }

.testi-name {
  font-weight: 500;
  color: var(--heading);
  font-size: 0.9rem;
}

.testi-role {
  color: var(--muted);
  font-size: 0.77rem;
}

.stars {
  color: #f1c40f;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* ─── CONTACT ─── */
#contact { padding: 7rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.contact-value {
  color: var(--text);
  font-size: 0.9rem;
}

.contact-value a {
  color: var(--text);
  text-decoration: none;
}

.contact-value a:hover { color: var(--accent2); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.form-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

footer a {
  color: var(--accent2);
  text-decoration: none;
}

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  h1.hero-name {
    font-size: 2.8rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 2rem;
  }
}
