@import "theme-colors.css";

body {
  font-family: "Roboto", Arial, sans-serif;
  background-color: var(--bg-primary);
  margin: 0;
  padding-top: 60px;
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  /*background: linear-gradient(135deg, var(--bg-accent), var(--bg-tertiary));*/
  color: #fff;
  text-align: center;
  padding: 120px 10%;
  border-bottom: 2px solid var(--bg-secondary);

  background: linear-gradient(270deg, #16386e, #5b98f9, #2664c8);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons a {
  text-decoration: none;
  display: inline-block;
  padding: 14px 28px;
  margin: 5px 10px;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.2s ease;
}

.get-started {
  background: #fff;
  color: var(--bg-accent);
}

.get-started:hover {
  background: var(--bg-secondary);
  color: #fff;
}

.learn-more {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.learn-more:hover {
  background: rgba(255,255,255,0.2);
}

/* --- Sections Layout --- */
.section {
  padding: 72px 10%;
  box-shadow: 0 -10px 15px var(--shadow);
  color: var(--text-primary);
}

/* Backgrounds tuned to your palette */
.section1 {
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    var(--bg-secondary);
}

.section2 {
  background: radial-gradient(
      circle at top right,
      rgba(38, 100, 200, 0.16),
      transparent 55%
    ),
    var(--popup-bg);
}

.section3 {
  background: linear-gradient(
    135deg,
    var(--bg-card),
    var(--bg-tertiary)
  );
}

/* Inner container */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0rem;
  flex-wrap: wrap;
}

.section-inner--reverse {
  flex-direction: row-reverse;
}

.section-inner--stack {
  flex-direction: column;
  align-items: stretch;
}

/* Text area */
.section-text {
  flex: 1 1 240px;
}

.section-text--center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.section p {
  line-height: 1.7;
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
}

.section-note {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.3rem;
  color: var(--text-muted);
}

/* Visual side */
.section-visual {
  flex: 0 0 260px;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
}

.section-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  object-fit: cover;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  /* hard safety limits */
  max-width: 100%;
  max-height: 280px;
}

.section-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

/* Features grid */
.features-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0 0; /* smaller top margin to remove big gap */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.feature-card {
  background-color: rgba(15, 15, 15, 0.3);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
  pointer-events: none;
}

/* Little accent dot */
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  background: radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.45),
      transparent 55%
    ),
    var(--bg-accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-secondary);
}

/* --- Responsive tweaks --- */
@media (max-width: 900px) {
  .section {
    padding: 56px 6%;
  }

  .section-inner {
    flex-direction: column;
    text-align: left;
  }

  .section-inner--reverse {
    flex-direction: column;
  }

  .section-text--center {
    text-align: left;
    max-width: none;
  }

  .section-visual {
    max-width: 260px;
  }

  .section h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 44px 5%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 16px 14px 14px;
  }
  .section-text {
    flex: 1 1 160px;
  }
}

/* --- Share section --- */

.share-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.share-main-btn {
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--bg-accent),
    rgba(91, 152, 249, 0.9)
  );
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.share-main-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0.97;
}

.share-main-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.share-main-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* small options row */
.share-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.share-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    transform 0.12s ease;
}

.share-chip:hover {
  background-color: rgba(38, 100, 200, 0.25);
  border-color: rgba(38, 100, 200, 0.7);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.share-chip--ghost {
  background-color: transparent;
}

.share-feedback {
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
}

/* Responsive tweaks for share area */
@media (max-width: 600px) {
  .share-main-btn {
    width: 100%;
    max-width: 320px;
  }

  .share-options {
    gap: 8px;
  }
}


/* --- Statistics Section --- */
.statistics {
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-align: center;
  padding: 100px 20px;
}

.stat-title {
  font-size: 36px;
  margin-top: 0;
  padding-bottom: 40px;
  font-weight: 700;
}

.stat-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  flex: 1 1 120px;
  background: var(--bg-primary);
  padding: 24px 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px var(--shadow);
}

.stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--bg-accent);
  text-shadow: #3063b571 0 0 10px;
}

.stat-text {
  font-size: 18px;
  color: var(--text-secondary);
}

@media (max-width: 420px) {
  .stat-container {
    flex-direction: column;
    gap: 20px;
  }
  .stat-card {
    flex: 1 1 80px;
  }

}

/* --- Roadmap Section --- */
.roadmap {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.roadmap-title {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
}

.roadmap-subtitle {
  color: var(--text-secondary);
  margin-bottom: 60px;
  font-size: 18px;
}

.roadmap-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-left: 3px solid var(--bg-accent);
  padding-left: 40px;
}

.roadmap-item {
  position: relative;
  text-align: left;
  padding-left: 16px;
  transition: transform 0.2s ease;
}

.roadmap-item:hover {
  transform: translateX(5px);
}

.roadmap-dot {
  position: absolute;
  left: -51px;
  top: 21px;
  width: 20px;
  height: 20px;
  background: var(--bg-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--bg-accent);
}

.roadmap-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.roadmap-content p {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Color variations for roadmap stages */
.roadmap-item.completed .roadmap-dot {
  background: #f1c40f;
  box-shadow: 0 0 8px #f1c40f;
}
.roadmap-item.in-progress .roadmap-dot {
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}
.roadmap-item.planned .roadmap-dot {
  background: #3498db;
  box-shadow: 0 0 8px #3498db;
}
.roadmap-item.future .roadmap-dot {
  background: #9b59b6;
  box-shadow: 0 0 8px #9b59b6;
}
.roadmap-item.idea .roadmap-dot {
  background: #e67e22;
  box-shadow: 0 0 8px #e67e22;
}

@media (max-width: 768px) {
  .roadmap-timeline {
    padding-left: 24px;
  }
  .roadmap-dot {
    left: -34px;
  }
}

/* --- Contact --- */
.contact {
  background-color: var(--bg-primary);
  box-shadow: 0 -10px 15px var(--shadow);
  text-align: center;
  justify-content: center;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.contact-info {
  text-align: center;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: min(100%, 640px);
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23aaa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
}

.contact-form select option:disabled {
  color: #aaa;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  width: min(100%, 240px);
  background-color: var(--bg-accent);
  border: none;
  padding: 12px 20px;
  border-radius: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}


/* --- Footer --- */
.footer {
  background-color: var(--bg-secondary);
  text-align: center;
  padding: 30px 10%;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--bg-tertiary);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1rem; }
}

.cta {
  color: #fff;
  padding: 100px 10%;
  box-shadow: 0 -10px 15px var(--shadow);

  background: linear-gradient(145deg, #1e52a7, #669ef9, #0044b0);
  background-size: 600% 600%;
  animation: gradientShift 15s ease infinite;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: #fff;
  color: var(--bg-accent);
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: var(--bg-secondary);
  color: #fff;
}

/* --- GPA Calculator Section --- */
.gpa-calc {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 100px 10%;
  box-shadow: inset 0 8px 16px var(--shadow);
  text-align: center;
  justify-content: center;
}

.gpa-calc h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gpa-calc p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.gpa-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.grades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.grade-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.grade-row input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
}

.grade-row input[type="number"] {
  -moz-appearance: textfield;
}

.grade-row input[type="number"]::-webkit-outer-spin-button,
.grade-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.grade-row input::placeholder {
  color: var(--text-muted);
}

.remove-btn {
  background: transparent;
  border: 2px solid var(--bg-accent);
  color: var(--bg-accent);
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  font-size: 18px;
  transition: 0.2s ease;
}

.remove-btn:hover {
  background: var(--bg-accent);
  color: #fff;
}

.gpa-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.add-grade-btn,
.calc-btn {
  background: var(--bg-accent);
  border: none;
  color: #fff;
  padding: 12px 22px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.add-grade-btn:hover,
.calc-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.gpa-result {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-top: 20px;
}

@media (max-width: 350px) {
  .grade-row {
    flex-direction: column;
  }
  .remove-btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .right {
    display: none;
  }

  .hamburger {
    display: block;
  }
}
