/* ============================================
   Prashant Mohite — DevOps Portfolio
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-hover: rgba(23, 32, 53, 0.8);
  --border: rgba(99, 179, 237, 0.12);
  --border-hover: rgba(99, 179, 237, 0.35);
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-secondary: #818cf8;
  --success: #34d399;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: rgba(56, 189, 248, 0.08);
  top: -200px;
  right: -100px;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: rgba(129, 140, 248, 0.06);
  bottom: 20%;
  left: -150px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__logo-bracket {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: rgba(17, 24, 39, 0.4);
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__subtitle {
  margin-top: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gradient);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero__greeting {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.hero__cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.hero__summary {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
}

.stat__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Terminal */
.terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(56, 189, 248, 0.05);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ef4444; }
.terminal__dot--yellow { background: #eab308; }
.terminal__dot--green { background: #22c55e; }

.terminal__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal__body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.terminal__prompt {
  color: var(--accent);
}

.terminal__output {
  color: var(--text-secondary);
  padding-left: 1rem;
}

.terminal__success {
  color: var(--success);
}

.terminal__cursor-blink {
  animation: blink 1s step-end infinite;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

.about__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.highlight-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.highlight-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.highlight-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.highlight-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition);
}

.timeline__card:hover {
  border-color: var(--border-hover);
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.timeline__role {
  font-size: 1.25rem;
  font-weight: 600;
}

.timeline__company {
  color: var(--accent);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.375rem 0.875rem;
  background: var(--accent-glow);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.timeline__project {
  margin-top: 1.5rem;
}

.timeline__project-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.timeline__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.timeline__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.timeline__list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Skills */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.skill-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-card__tags span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.3rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Projects */
.projects__grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.project-card__folder {
  color: var(--accent);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card__tech span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-card__desc {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.project-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.project-card__list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Education */
.edu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.edu__subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.edu-card:hover {
  border-color: var(--border-hover);
}

.edu-card__year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.edu-card__degree {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.edu-card__school {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.cert-card:hover {
  border-color: var(--border-hover);
}

.cert-card--progress {
  border-style: dashed;
}

.cert-card__badge {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.cert-card__issuer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.languages {
  margin-top: 3rem;
}

.languages__tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.languages__tags span {
  padding: 0.5rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Contact */
.section--contact {
  padding-bottom: 4rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.contact-card--static {
  cursor: default;
}

.contact-card--static:hover {
  transform: none;
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-card__value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact__cta {
  text-align: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer strong {
  color: var(--accent);
  font-weight: 500;
}

/* Animations */
@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero__summary {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .about__highlights {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .timeline__header {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
