:root {
  --bg-body: #050505;
  --bg-card: #0f0f0f;
  --bg-input: #1a1a1a;
  --border: #333;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --focus-glow: rgba(255, 255, 255, 0.15);
  --grad-primary: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
  --grad-dark: linear-gradient(145deg, #1a1a1a, #0d0d0d);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  position: fixed;
  top: 0;
  z-index: 1000;
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-bottom 0.3s ease;
}
.navbar.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.5px;
}
.brand-name span {
  color: var(--text-muted);
  font-weight: 400;
}
.nav-menu {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* -------------------------------------
   ANIMATED NAV LINKS
------------------------------------- */
.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: color 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
  z-index: 1;
  overflow: hidden; /* Contains the expanding background */
}

/* The Animated Background Element */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  z-index: -1;
  transform: scale(0.5); /* Start small */
  opacity: 0;            /* Start invisible */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Super smooth snap */
}

.nav-link:hover {
  color: white;
}

/* When hovered, background expands and fades in */
.nav-link:hover::before {
  transform: scale(1);
  opacity: 1;
}

/* Active State */
.nav-link.active {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link.active::before {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1);
  opacity: 1;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
  z-index: 1001;
}

/* LAYOUT & MARGINS */
.main-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
  width: 100%;
  overflow-x: hidden;
}
.hero-section {
  text-align: center;
  margin-bottom: 70px;
  padding-top: 80px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: #ccc;
}
.main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub-title {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.header-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* STANDARD BUTTONS */
.glass-btn {
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  white-space: nowrap;
  justify-content: center;
}
.glass-btn.secondary-glass {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #ccc;
}
.glass-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.primary-btn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: var(--grad-primary);
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.primary-btn a {
  text-decoration: none;
}
.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}
.primary-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  pointer-events: none;
}
.outline-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: all 0.3s;
}
.outline-btn:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* TABLES */
.grading-table-container {
  overflow-x: auto;
  border: 1px solid #222;
  border-radius: 16px;
  background: #0a0a0a;
  margin-bottom: 20px;
}
.grading-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}
.grading-table th {
  background: #111;
  color: #fff;
  font-weight: 600;
  padding: 16px 20px;
  border-bottom: 1px solid #222;
}
.grading-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.95rem;
  color: #ccc;
}
.grade-badge {
  background: #fff;
  color: #000;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* TABS & CARDS & INPUTS */
.tab-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}
.tab-container {
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 5px;
}
.tab-btn {
  background: transparent;
  border: none;
  color: #888;
  padding: 12px 35px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.tab-btn.active {
  background: var(--grad-dark);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.calculator-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #1f1f1f;
  margin-bottom: 70px;
}
.card-header {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
  align-items: flex-start;
}
.icon-box-sm {
  background: linear-gradient(135deg, #2a2a2a, #151515);
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  border: 1px solid #333;
  flex-shrink: 0;
}
.card-header-text h2 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
}
.card-header-text p {
  margin: 0;
  color: var(--text-muted);
}
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.input-group label {
  display: block;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
input,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid #333;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
input:focus,
select:focus {
  border-color: #888;
  background: #222;
  box-shadow: 0 0 0 4px var(--focus-glow);
}
input:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: "\ea4e";
  font-family: "remixicon";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}
.input-with-icon {
  position: relative;
  width: 100%;
}
.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1.2rem;
  pointer-events: none;
}
.input-with-icon input {
  padding-left: 45px;
}
.error-msg {
  color: #ff4444;
  font-size: 12px;
  display: none;
  margin-top: 5px;
}

.file-upload-box {
  position: relative;
  width: 100%;
}
.file-upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.file-upload-box input[type="file"]:disabled {
  cursor: not-allowed;
}
.file-content {
  background: var(--bg-input);
  border: 1px dashed #444;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: 0.2s;
}
.file-content.locked-ui {
  border: 1px solid #222;
  background: #111;
  opacity: 0.8;
}
.upload-icon-wrapper {
  font-size: 24px;
  color: #888;
}
.upload-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.upload-text-wrapper span {
  font-weight: 600;
}
.upload-text-wrapper .sub {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.download-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}
.neon-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 50px;
  background: #111;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid;
}
.neon-btn i {
  font-size: 1.2rem;
}
.neon-red {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}
.neon-red:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}
.neon-blue {
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.4);
}
.neon-blue:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.neon-green {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}
.neon-green:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

/* CGPA SPECIFIC */
.cgpa-container {
  max-width: 100%;
  margin: 0 auto;
}
.cgpa-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #888;
  padding: 0 5px;
  font-size: 12px;
}
.cgpa-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}
.cgpa-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.result-display {
  background: #050505;
  border: 1px solid #222;
  padding: 30px;
  border-radius: 20px;
  margin-top: 30px;
  text-align: center;
}
.res-label {
  color: #666;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 5px;
}
#cgpa-result-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
#calculate-btn:disabled {
  cursor: not-allowed !important;
  pointer-events: auto !important;
  opacity: 0.6;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
  animation: fadeIn 0.2s ease-out;
}
.modal-content.popup-glass {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 450px;
  padding: 40px 30px;
  border-radius: 24px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.open .modal-content {
  transform: scale(1);
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #888;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.popup-icon-alert {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px currentColor);
}
.modal-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}
.popup-desc {
  color: #888;
  font-size: 14px;
  text-align: center;
  margin: 0 0 24px 0;
}
.text-center {
  text-align: center;
}
.formula-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.formula-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
}
.f-lbl {
  font-size: 12px;
  color: #a0a0a0;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.formula-item code {
  display: block;
  font-family: monospace;
  color: #a855f7;
  font-size: 14px;
  font-weight: bold;
}
.privacy-disclaimer {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #22c55e;
  font-size: 12px;
  line-height: 1.4;
}
.privacy-disclaimer i {
  font-size: 1.2rem;
}

/* ========== STATUS BANNER CSS (Glass Outline) ========== */
.report-status-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 16px;
  margin: 0 auto 24px auto;
  width: 100%;
  max-width: 794px;
  animation: slideDownFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.banner-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-content {
  text-align: left;
}
.banner-content h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.banner-content p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.5;
}

.status-clear {
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow:
    0 8px 32px rgba(16, 185, 129, 0.15),
    inset 0 0 20px rgba(16, 185, 129, 0.05);
}
.status-clear .banner-icon {
  color: #34d399;
  text-shadow: 0 0 15px rgba(52, 211, 153, 0.6);
}
.status-clear .banner-content h4 {
  color: #6ee7b7;
}
.status-clear .banner-content p {
  color: #d1fae5;
}

.status-warning {
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.15),
    inset 0 0 20px rgba(239, 68, 68, 0.05);
}
.status-warning .banner-icon {
  color: #f87171;
  text-shadow: 0 0 15px rgba(248, 113, 113, 0.6);
}
.status-warning .banner-content h4 {
  color: #fca5a5;
}
.status-warning .banner-content p {
  color: #fee2e2;
}

.status-outstanding {
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow:
    0 8px 32px rgba(245, 158, 11, 0.15),
    inset 0 0 20px rgba(245, 158, 11, 0.05);
}
.status-outstanding .banner-icon {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}
.status-outstanding .banner-content h4 {
  color: #fcd34d;
}
.status-outstanding .banner-content p {
  color: #fef3c7;
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== EXACT A4 GRADE SHEET & ZOOM WRAPPERS ========== */
.report-preview-wrapper {
  width: 100%;
  margin-bottom: 15px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.report-scroll-wrapper {
  width: 100%;
  overflow: auto;
  display: flex;
  padding: 10px 0;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.report-scroll-wrapper:active {
  cursor: grabbing;
}

.grade-sheet-target {
  margin: 0 auto;
  position: relative;
  flex-shrink: 0;
  transition:
    width 0.1s ease-out,
    height 0.1s ease-out;
}

.grade-sheet {
  background: white;
  width: 794px;
  height: auto;
  padding: 50px 45px;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  transform-origin: top left;
}

.sheet-top-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #555;
  margin-bottom: 25px;
}
.sheet-logos {
  text-align: center;
  margin-bottom: 25px;
}
.sheet-logo-img {
  height: 80px;
  object-fit: contain;
}
.sheet-titles {
  text-align: center;
  margin-bottom: 35px;
  color: #111;
}
.sheet-titles h1 {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}
.sheet-titles h3 {
  font-size: 15px;
  font-weight: normal;
  margin: 6px 0;
  color: #333;
}
.sheet-titles h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 30px 0 0 0;
}

.student-info-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
}
.info-row {
  display: flex;
}
.info-row .lbl {
  width: 150px;
}
.info-row .val {
  color: #000;
}

.grade-sheet .result-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  table-layout: auto;
}
.grade-sheet .result-table th,
.grade-sheet .result-table td {
  border: 1px solid #d1d5db;
  padding: 14px 10px;
  font-size: 12px;
  text-align: center;
  color: #222;
}
.grade-sheet .result-table th {
  background-color: transparent;
  color: #000;
  font-weight: bold;
}
.grade-sheet .result-table td:nth-child(3),
.grade-sheet .result-table th:nth-child(3) {
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #253b80;
  margin-bottom: 80px;
  align-items: flex-end;
}
.signature-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #253b80;
}

.inline-zoom-controls {
  background: #f1f3f5;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  margin: 10px auto 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.inline-zoom-controls button {
  background: #407bff;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(64, 123, 255, 0.3);
  transition: all 0.2s;
}

.inline-zoom-controls button:hover {
  transform: scale(1.05);
  background: #3065e8;
}

.inline-zoom-controls span {
  font-weight: 900;
  font-size: 20px;
  color: #111;
  min-width: 60px;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================= PREMIUM FEATURES SECTION ================= */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.features-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: stretch;
}

.premium-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 25px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  height: 100%;
}

.premium-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  background: #141414;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.premium-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
}

.premium-card h3 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 1.25rem;
}

.premium-card p {
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* ================= ANIMATED TIMELINE + WORKFLOW GRID ================= */
.animated-timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
  align-items: stretch;
}

/* Connecting Line */
.animated-timeline-container::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(168, 85, 247, 0.5) 50%,
    rgba(16, 185, 129, 0.1) 100%
  );
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

/* Number Circle - Staggered Auto Glow & Float */
.step-number {
  width: 70px;
  height: 70px;
  background: #0f0f0f;
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: auto-glow-float 8s infinite ease-in-out;
  flex-shrink: 0;
}

/* Glowing pulse behind numbers */
.step-number::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(168, 85, 247, 0.4);
  opacity: 0;
  animation: pulse-ring 8s infinite ease-out;
}

/* Stagger the animations so they light up one by one */
.timeline-step:nth-child(1) .step-number,
.timeline-step:nth-child(1) .step-number::after {
  animation-delay: 0s;
}
.timeline-step:nth-child(2) .step-number,
.timeline-step:nth-child(2) .step-number::after {
  animation-delay: 2s;
}
.timeline-step:nth-child(3) .step-number,
.timeline-step:nth-child(3) .step-number::after {
  animation-delay: 4s;
}
.timeline-step:nth-child(4) .step-number,
.timeline-step:nth-child(4) .step-number::after {
  animation-delay: 6s;
}

@keyframes auto-glow-float {
  0%,
  20%,
  100% {
    transform: scale(1) translateY(0);
    border-color: #333;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
  10% {
    transform: scale(1.15) translateY(-10px);
    border-color: #a855f7;
    color: #a855f7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  }
}

@keyframes pulse-ring {
  0%,
  5%,
  20%,
  100% {
    transform: scale(1);
    opacity: 0;
  }
  10% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

/* The New Clean Workflow Cards */
.workflow-card {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 35px 25px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
  flex-grow: 1; /* This ensures all cards stretch to the same height */
}

.workflow-card:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.2);
}

.workflow-icon {
  font-size: 2.2rem;
  color: #d1d5db;
  margin-bottom: 15px;
}

.workflow-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 12px 0;
}

.workflow-card p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}


/* GLOBAL RESPONSIVE ADJUSTMENTS */
@media (max-width: 900px) {
  .nav-content {
    padding: 0 20px;
  }
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(5, 5, 5, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: 0.4s ease;
    border-top: 1px solid #222;
    overflow-y: auto;
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .input-grid {
    grid-template-columns: 1fr;
  }
  .download-actions {
    flex-direction: column;
  }
  .report-status-banner {
    flex-direction: column;
    text-align: center;
  }
  .features-showcase-grid,
  .animated-timeline-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .animated-timeline-container::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .main-title {
    font-size: 1.8rem;
  }
  .card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cgpa-actions {
    flex-direction: column;
  }
  .features-showcase-grid,
  .animated-timeline-container {
    grid-template-columns: 1fr;
  }
}

/* FOOTER UPDATE */
.main-footer {
  border-top: 1px solid #1a1a1a;
  background: #050505;
  padding: 60px 20px 40px;
  margin-top: 60px;
  text-align: center;
  width: 100%;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}
.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.copyright {
  color: #888;
  font-size: 13px;
  margin: 0;
}