/* =========================================================
   AYUSH NEGI PORTFOLIO — Custom Cloud & DevOps Styling
   ========================================================= */

/* --- SUBPAGE & BODY CONTENT OVERRIDES --- */
p.body-text, .body-text {
  font-size: 17.5px !important;
  line-height: 1.8 !important;
}

.lead {
  font-size: 21px !important;
  line-height: 1.7 !important;
}

.s-body, .content-section p {
  font-size: 17.5px !important;
  line-height: 1.85 !important;
}

.mb-text, .m-desc, .tl-desc, .f-news-p, .footer-brand p {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

footer p {
  font-size: 14px !important;
}

.f-lnks a {
  font-size: 14.5px !important;
}

/* ─── HERO TITLE SINGLE-LINE FIX FOR "AYUSH NEGI" ─── */
.hero-title {
  font-size: clamp(3.5rem, 8.5vw, 7.5rem) !important;
  line-height: 1.0 !important;
  letter-spacing: 2px !important;
}

.hero-title .t1 { 
  display: inline-block !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 50%, var(--green) 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: shimmerText 4s linear infinite !important;
  text-shadow: 0 0 40px rgba(0,255,136,0.2) !important;
}

.hero-title .t2 { 
  display: block !important;
  color: transparent !important; 
  -webkit-text-stroke: 1.2px rgba(208,223,240,0.55) !important; 
  font-size: clamp(2.5rem, 6vw, 5.5rem) !important;
  letter-spacing: 4px !important;
  margin-top: 4px !important;
}

/* ─── CONTACT FORM SELECT & OPTION DROPDOWN STYLING FIX ─── */
select.f-ctrl {
  background-color: #060d16 !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 212, 255, 0.25) !important;
  padding: 12px 16px;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

select.f-ctrl option {
  background-color: #060d16 !important;
  color: #ffffff !important;
  padding: 12px;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
}

select.f-ctrl:focus,
select.f-ctrl option:hover,
select.f-ctrl option:checked {
  background-color: #0a1b2d !important;
  color: var(--cyan, #00d4ff) !important;
}

/* ─── CLOUD TOPOLOGY CARD (ABOUT SECTION VISUAL) ─── */
.cloud-topology-card {
  background: rgba(6, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 242, 254, 0.05);
  position: relative;
  overflow: hidden;
}

.cloud-topology-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.topo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.topo-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 2px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topo-status-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.topo-grid-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .topo-grid-box {
    grid-template-columns: 1fr;
  }
}

.topo-cluster {
  background: rgba(2, 8, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.topo-cluster:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15);
}

.cluster-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text2);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cluster-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.t-node {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: default;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.t-node img,
.t-node .ti-node,
.t-node .ti {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.4));
  transition: transform 0.2s ease;
}

.t-node:hover {
  background: var(--cyan);
  color: #020610;
  box-shadow: 0 0 12px var(--cyan);
  transform: scale(1.05);
}

.t-node:hover img,
.t-node:hover .ti-node,
.t-node:hover .ti {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px #020610);
}

/* ─── HERO DEVOPS TERMINAL CARD ─── */
.hero-devops-terminal {
  background: rgba(2, 6, 16, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 24px;
  max-width: 540px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.hdt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hdt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hdt-dot.red { background: #ff5f56; }
.hdt-dot.yellow { background: #ffbd2e; }
.hdt-dot.green { background: #27c93f; }

.hdt-title {
  color: var(--text2);
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-left: 6px;
}

.hdt-line {
  margin-bottom: 6px;
  line-height: 1.5;
}
.hdt-prompt { color: var(--green); }
.hdt-cmd { color: #fff; }
.hdt-out { color: var(--cyan); opacity: 0.9; }

/* ─── FEATURED PROJECTS CARD STYLING ─── */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.mat-card {
  aspect-ratio: auto !important;
  height: 100% !important;
  min-height: auto !important;
  background: rgba(10, 16, 28, 0.85) !important;
  border: 1px solid rgba(0, 242, 254, 0.18) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 18px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
  backdrop-filter: blur(12px);
}

.mat-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--card-accent, var(--cyan)) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 242, 254, 0.15) !important;
}

/* Override legacy hover-fade and absolute positioning */
.mat-card:hover .mc-front,
.mat-card .mc-front,
.mat-card .mc-back {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  transform: none !important;
  background: transparent !important;
  padding: 0 !important;
  display: block !important;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pc-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.pc-name {
  font-family: var(--font-disp, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.2;
}

.pc-subtitle {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--card-accent, var(--cyan));
  display: block;
  margin-top: 3px;
  font-weight: 600;
}

.pc-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pc-badge.green {
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
}
.pc-badge.cyan {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
}
.pc-badge.orange {
  color: var(--orange);
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.25);
}
.pc-badge.purple {
  color: var(--purple);
  background: rgba(155, 89, 255, 0.1);
  border: 1px solid rgba(155, 89, 255, 0.25);
}

.pc-desc {
  font-size: 0.85rem;
  color: var(--text2, #a0aec0);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.pc-highlights-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
}

.pc-hl-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--card-accent, var(--cyan));
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.pc-hl-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pc-hl-list li {
  font-size: 0.78rem;
  color: var(--text, #e2e8f0);
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}
.pc-hl-list li:last-child {
  margin-bottom: 0;
}
.pc-hl-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--card-accent, var(--cyan));
  font-size: 0.8rem;
}

.pc-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pc-tech-pill {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
}

.pc-footer {
  margin-top: auto;
  padding-top: 10px;
}

.pc-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  padding: 10px 18px;
  font-family: var(--font-mono, monospace);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
}

/* Floating Trigger SVG Icons */
.cli-trigger-icon,
.aura-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cli-trigger-icon svg {
  color: var(--green);
  filter: drop-shadow(0 0 8px var(--green));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cli-trigger:hover .cli-trigger-icon svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px var(--green));
}

.aura-trigger-icon svg {
  color: var(--aura-color, var(--cyan));
  filter: drop-shadow(0 0 8px var(--aura-color, var(--cyan)));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.aura-trigger:hover .aura-trigger-icon svg {
  transform: scale(1.15) rotate(15deg);
  filter: drop-shadow(0 0 18px var(--aura-color, var(--cyan)));
}
