/* ==========================================
   Calculus Module - Improved Moderate CSS
========================================== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  background: linear-gradient(135deg, #0f172a, #111827, #1e293b);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  text-align: center;

  min-height: 100vh;
  overflow-x: hidden;

  padding: 20px;
}

/* Main Container */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 25px;
}

/* Page Header */
.page-header {
  margin-bottom: 30px;
}

/* Main Heading */
h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;

  color: #ffffff;

  text-shadow:
    0 0 12px rgba(0, 255, 255, 0.8),
    0 0 25px rgba(0, 255, 255, 0.4);
}

/* Subtitle */
.subtitle {
  color: #cbd5e1;
  font-size: 1rem;

  max-width: 700px;
  margin: auto;

  line-height: 1.7;
}

/* Content Area */
.canvas-container {
  margin: 25px auto;

  background: linear-gradient(145deg, #001f3f, #003566);

  border-radius: 18px;

  padding: 25px;

  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.2),
    0 0 35px rgba(0, 0, 0, 0.4);

  overflow: hidden;

  transition: transform 0.3s ease;
}

/* Hover Animation */
.canvas-container:hover {
  transform: translateY(-3px);
}

/* Welcome Content */
.welcome-message h2 {
  color: #38bdf8;
  margin-bottom: 12px;
}

.welcome-message p {
  color: #e2e8f0;
  line-height: 1.6;
}

/* Resource Section */
.resource-section {
  margin-top: 40px;
}

.resource-section h2 {
  margin-bottom: 20px;
  color: #38bdf8;
  font-size: 2rem;
}

/* Button Grid */
.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 15px;
  margin-top: 20px;
}

/* Shared Button Style */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;

  padding: 12px 18px;

  border: none;
  border-radius: 12px;

  cursor: pointer;

  font-size: 1rem;
  font-weight: 500;

  text-decoration: none;

  transition: all 0.3s ease;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Button Hover */
.button:hover {
  transform: translateY(-2px) scale(1.03);

  background: linear-gradient(135deg, #0096ff, #0047ab);

  box-shadow:
    0 0 15px rgba(0, 153, 255, 0.5);
}

/* Button Click */
.button:active {
  transform: scale(0.96);
}

/* Primary Button */
.primary-btn {
  background: linear-gradient(135deg, #00c853, #009624);
}

.primary-btn:hover {
  background: linear-gradient(135deg, #00e676, #00b248);
}

/* Home Button */
.home-btn {
  background: linear-gradient(135deg, #8e24aa, #5e35b1);
}

.home-btn:hover {
  background: linear-gradient(135deg, #ab47bc, #7e57c2);
}

/* Feedback Popup */
.feedback-popup {
  position: fixed;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 90%;
  max-width: 500px;

  background: rgba(15, 23, 42, 0.98);

  padding: 25px;

  border-radius: 20px;

  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.3);

  z-index: 1000;
}

/* Hide Popup */
.feedback-popup.hidden {
  display: none;
}

/* Feedback Card */
.feedback-card h2 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.feedback-card p {
  color: #cbd5e1;
  margin-bottom: 15px;

  line-height: 1.6;
}

/* Textarea */
.feedback-popup textarea {
  width: 100%;

  padding: 12px;

  border-radius: 12px;
  border: 1px solid #334155;

  background: #0f172a;
  color: white;

  font-size: 1rem;

  resize: vertical;

  outline: none;

  margin-top: 10px;
}

/* Textarea Focus */
.feedback-popup textarea:focus {
  border-color: #38bdf8;

  box-shadow:
    0 0 10px rgba(56, 189, 248, 0.4);
}

/* Feedback Buttons */
.feedback-buttons {
  margin-top: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {

  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
    max-width: 320px;
  }

  .button-grid {
    flex-direction: column;
    align-items: center;
  }

  .canvas-container {
    padding: 18px;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {

  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .resource-section h2 {
    font-size: 1.5rem;
  }

  .feedback-popup {
    padding: 18px;
  }
}