:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa7bf;
  --accent: #7c5cff;
  --radius: 14px;
  --container-width: 1100px;
}

/* === Base === */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #071022 0%, #081428 50%, #061224 100%);
  color: #e9f0ff;
}

/* === Section Header === */
.ach-header {
  text-align: center;
  padding: 40px 20px 10px;
}

.ach-header h1 {
  color: #a58bff;
  font-size: 2rem;
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
  letter-spacing: 0.5px;
}

/* === Layout === */
.ach-main {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.ach-container {
  width: 90%;
  max-width: var(--container-width);
}

/* === Card === */
.ach-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 8px 36px rgba(2,6,23,0.55);
  transition: all 0.4s ease;
}

.ach-box:hover {
  box-shadow: 0 10px 40px rgba(124, 92, 255, 0.25);
}

/* === Internship Title === */
.internship-title {
  color: #fff;
  font-size: 1.6rem;
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
  margin-bottom: 25px;
  text-align: center;
}

/* === Info Row === */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 30px;
}

.info-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  min-width: 200px;
  max-width: 240px;
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.info-box h3 {
  color: #bda7ff;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.info-box p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* === Project / Role / Company Boxes === */
.project-box, .role-box, .company-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.project-box:hover, .role-box:hover, .company-box:hover {
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.2);
}

.project-box h3, .role-box h3, .company-box h3 {
  color: #bda7ff;
  margin-bottom: 8px;
}

.project-box p, .company-box p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.role-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.role-box li {
  margin-bottom: 6px;
}

/* === Paper Presentation === */
.paper-section {
  margin-top: 60px;
}

.paper-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 25px;
}

.paper-box {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 280px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
  padding: 16px 12px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.paper-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.paper-box h3 {
  color: #bda7ff;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.paper-box p {
  color: var(--muted);
  font-size: 0.95rem;
}

.paper-section .project-box,
.paper-section .role-box,
.paper-section .company-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.paper-section .project-box:hover,
.paper-section .role-box:hover,
.paper-section .company-box:hover {
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.2);
}

/* === Back Button === */
.back-btn-container {
  text-align: center;
  margin: 40px 0 60px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: #051029;
  background: linear-gradient(90deg, #7c5cff, #a58bff);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(90deg, #8e6eff, #b49fff);
  transform: translateY(-2px);
}

/* === Responsive === */
@media (max-width: 900px) {
  .info-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .info-box {
    flex: 1 1 45%;
    max-width: 300px;
  }
}
.paper-section {
  margin-top: 25px; /* reduced from 60px */
}
/* === Problem-Solving Experience Section === */
.problem-section {
  margin-top: 40px;
}

.problem-header {
  text-align: center;
  margin-bottom: 25px;
}

.problem-header h2 {
  color: #a58bff;
  font-size: 1.6rem;
  text-shadow: 0 0 12px rgba(124, 92, 255, 0.25);
  letter-spacing: 0.5px;
}

.problem-section .info-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 25px;
}

.problem-section .info-box {
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
  padding: 16px 12px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.problem-section .info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.3);
}

.problem-section .info-box h3 {
  color: #bda7ff;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.problem-section .info-box p {
  color: var(--muted);
  font-size: 0.95rem;
}
/* ===== Cognorise Infotech section styles ===== */
.cognorise-header {
  margin-top: 28px;
}

/* Outer box uses existing .ach-box styling; these refine just within cognorise */
.cognorise-section {
  padding: 22px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}

/* Top row — role + period on left, quick links on right */
.cog-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cog-role-period {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* smaller internship title variant */
.internship-title.small {
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
  letter-spacing: 0.2px;
}

/* period chip */
.internship-period {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,92,255,0.06);
  color: var(--muted);
  font-size: 0.95rem;
  border: 1px solid rgba(124,92,255,0.06);
  box-shadow: 0 4px 14px rgba(124,92,255,0.03);
}

/* Link area on top right with task links */
.cog-links {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.task-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(124,92,255,0.12), rgba(165,139,255,0.06));
  color: #fff;
  border: 1px solid rgba(124,92,255,0.12);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .18s ease, box-shadow .18s ease;
}

.task-link:hover,
.task-link:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(124,92,255,0.12);
  outline: none;
}

/* Main content row: two columns */
.cog-content-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Left column (tasks) takes ~56% width; right column ~40% */
.cog-left {
  flex: 1 1 56%;
  min-width: 260px;
}

.cog-right {
  flex: 1 1 40%;
  min-width: 220px;
}

/* Reuse your .project-box styling but tweak padding for cognorise */
.cognorise-section .project-box,
.cognorise-section .role-box,
.cognorise-section .company-box {
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
}

/* features list inside project-box */
.cognorise-section .feature-list {
  margin: 0.4rem 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* muted-plain helper (lighter body text) */
.cognorise-section .muted-plain {
  color: var(--muted);
  font-weight: 600;
}

/* small screens: stack columns vertically */
@media (max-width: 900px) {
  .cog-content-row {
    flex-direction: column;
  }
  .cog-left, .cog-right {
    flex: 1 1 100%;
    min-width: 0;
  }
  .cog-top-row {
    align-items: flex-start;
  }
  .cog-links {
    margin-top: 8px;
  }
}

/* Accessibility: focus outline for keyboard users */
.task-link:focus {
  box-shadow: 0 0 0 4px rgba(124,92,255,0.14);
}
