/* =============================================
   RITIKA GARG — DEVOPS PORTFOLIO 2026
   Theme: Technical Precision · Dark Accent
   ============================================= */

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --surface-2: #1a2235;
  --border: #1e2d45;
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-green: #10b981;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --mono: 'DM Mono', monospace;
  --sans: 'Sora', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================== NAVBAR ===================== */
.custom-nav {
  background: rgba(10, 14, 23, 0.92) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--accent);
  margin-right: 6px;
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--text) !important;
}

.hire-btn {
  background: var(--accent) !important;
  color: var(--bg) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  padding: 0.4rem 1.1rem !important;
  transition: opacity 0.2s !important;
}

.hire-btn:hover {
  opacity: 0.85 !important;
}

.navbar-toggler {
  border-color: var(--border);
  color: var(--text);
}

/* ===================== HERO ===================== */
.masthead {
  min-height: 100vh;
  background: var(--bg);
  padding: 8rem 0 5rem;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.masthead::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.masthead::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.mono-text {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-top: 4px;
}

.btn-primary-custom {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary-custom:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-outline-custom {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.73rem 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

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

/* Hero Card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 340px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
}

.hero-avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 3px solid var(--border);
}

.hero-card-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }

  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
}

/* ===================== SECTIONS ===================== */
.page-section {
  padding: 5rem 0;
}

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

.section-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ===================== SKILLS ===================== */
.skills-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.skill-category {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.skill-category:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.skill-cat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-cat-label i {
  color: var(--accent);
}

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

.skill-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 4px;
}

.skill-tag.highlight {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent);
}

/* ===================== PROJECTS ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.project-card.featured {
  grid-column: span 2;
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.project-card.featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
}

.project-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.project-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

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

.project-highlights {
  margin-bottom: 1.25rem;
}

.highlight-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.highlight-item i {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.75rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.project-stack span {
  font-family: var(--mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.project-link:hover {
  opacity: 0.7;
}

/* ===================== EXPERIENCE ===================== */
.experience-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
}

.timeline-item.current .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.timeline-content {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-content:hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 100px;
}

.current-badge {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

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

.timeline-points li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem 0 0.25rem 1rem;
  position: relative;
  line-height: 1.6;
}

.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  top: 6px;
}

/* ===================== ABOUT ===================== */
.about-section {
  border-top: 1px solid var(--border);
}

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

.section-header.text-start h2 {
  text-align: left;
}

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

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

.cert-grid {
  display: grid;
  gap: 0.5rem;
}

.cert-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cert-item i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

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

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
  text-align: center;
}

.metric-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.metric-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

/* ===================== CONTACT ===================== */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-lead {
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

.contact-value {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

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

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

  /* PHOTO FIX — show on mobile too */
  .hero-card {
    display: block;
    margin: 2rem auto 0;
    padding: 1.75rem 1.5rem;
    max-width: 300px;
  }

  .hero-avatar {
    width: 130px;
    height: 130px;
  }

  .hero-card-stats {
    gap: 1rem;
  }

  .stat-num {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .masthead {
    padding: 7rem 0 4rem;
  }

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

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

  .about-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .me-3 {
    margin-right: 0 !important;
  }
}