/* CampusJr Marketing Website - Light Clean Design Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --campus-teal: #087E8B;
  --teal-hover: #066A75;
  --teal-soft: rgba(8, 126, 139, 0.08);
  --ink: #16232F;
  --page-bg: #F4F8F9; /* Calm soft grey-blue page background */
  --body-text: #344555; /* High readability body text */
  --light-text: #16232F; /* Dark ink for headings */
  --white: #FFFFFF;
  --border: #DBE4EB; /* Soft light borders */
  --border-hover: rgba(8, 126, 139, 0.3);
  --success-green: #2E8B57;
  --amber: #D99019;
  --coral: #D8554F;
  --card-bg: #FFFFFF; /* Clean white card surfaces */
  --card-bg-hover: #FFFFFF;
  --section-bg: #FFFFFF; /* Section background color */
  --input-bg: #FFFFFF;
  --input-text: #16232F;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
  --page-bg: #0D161E; /* Dark page background */
  --body-text: #8E9EA9; /* Light grey body text */
  --light-text: #E5ECF0; /* White/grey header text */
  --border: rgba(255, 255, 255, 0.08); /* Soft white borders */
  --border-hover: rgba(8, 126, 139, 0.3);
  --card-bg: rgba(255, 255, 255, 0.03); /* Dark glassmorphic cards */
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --section-bg: #131D26; /* Dark section background */
  --input-bg: rgba(255, 255, 255, 0.03);
  --input-text: #E5ECF0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--page-bg);
  color: var(--body-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--light-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Background Gradients */
.bg-gradients {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.gradient-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(8, 126, 139, 0.08) 0%, transparent 70%);
  filter: blur(40px);
}

.gradient-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(45, 108, 223, 0.05) 0%, transparent 70%);
  filter: blur(40px);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(22, 35, 47, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(8, 126, 139, 0.35);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--campus-teal);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #A2B2C1;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--white);
}

.nav-btn {
  text-decoration: none;
  background-color: var(--campus-teal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(8, 126, 139, 0.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  background-color: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 126, 139, 0.4);
}

.theme-toggle-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #A2B2C1 !important;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: none !important;
}

.theme-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Toggle Sun/Moon icons depending on active class */
.dark-theme .sun-icon {
  display: block;
}
.dark-theme .moon-icon {
  display: none;
}
html:not(.dark-theme) .sun-icon {
  display: none;
}
html:not(.dark-theme) .moon-icon {
  display: block;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 100px 24px 80px;
  }
}

.hero-content {
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-soft);
  color: var(--campus-teal);
  border: 1px solid rgba(8, 126, 139, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--campus-teal);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 42px;
  line-height: 1.15;
  color: var(--light-text);
  margin-bottom: 20px;
  font-weight: 900;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 54px;
  }
}

.hero-desc {
  font-size: 16px;
  color: var(--body-text);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  background-color: var(--campus-teal);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(8, 126, 139, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 126, 139, 0.45);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--light-text);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(22, 35, 47, 0.03);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #EBF1F5;
  border-color: #c9d8e2;
  transform: translateY(-2px);
}

/* Dark Container wrapping the visual mockups */
.hero-mockup {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--ink); /* Keeps the dark accountant workspace theme */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(22, 35, 47, 0.2);
  background-image: radial-gradient(circle at top left, rgba(8, 126, 139, 0.22), transparent 70%);
}

.mockup-card {
  background: rgba(255, 255, 255, 0.03); /* Glassmorphic dark card style */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  text-align: left;
}

.mockup-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(8, 126, 139, 0.35);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.hero-mockup .card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8E9EA9;
}

.card-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.card-badge.green {
  background-color: rgba(46, 139, 87, 0.18);
  color: #4cd38e;
}

.hero-mockup .card-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.card-change {
  font-size: 11px;
  font-weight: 700;
  color: #4cd38e;
}

.card-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.card-progress-fill {
  height: 100%;
  background-color: var(--campus-teal);
  border-radius: 10px;
  width: 78%;
  box-shadow: 0 0 10px rgba(8, 126, 139, 0.6);
}

.ticker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ticker-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-mockup .ticker-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
}

.ticker-details {
  flex: 1;
  margin-left: 12px;
}

.hero-mockup .ticker-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.hero-mockup .ticker-meta {
  font-size: 10px;
  color: #8E9EA9;
  margin-top: 2px;
}

.ticker-value {
  text-align: right;
}

.hero-mockup .ticker-amount {
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
}

.hero-mockup .ticker-time {
  font-size: 9px;
  color: #8E9EA9;
  margin-top: 2px;
}

/* Features Section - White Alternating Area */
.features-section {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  background: var(--section-bg); /* Alternate section background */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--campus-teal);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  color: var(--light-text);
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}

.section-desc {
  font-size: 16px;
  color: var(--body-text);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 12px rgba(22, 35, 47, 0.02);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(8, 126, 139, 0.08);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--teal-soft);
  color: var(--campus-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--light-text);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--body-text);
  line-height: 1.6;
}

/* Enquiry Form Page - Clean Light Aesthetics */
.form-page-layout {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.form-card {
  width: 100%;
  max-width: 540px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 48px rgba(22, 35, 47, 0.06);
  text-align: left;
}

.form-header-area {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.form-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--campus-teal);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.form-title {
  font-size: 28px;
  color: var(--light-text);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 13.5px;
  color: var(--body-text);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--body-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--input-text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--campus-teal);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px rgba(8, 126, 139, 0.15);
}

.form-input::placeholder {
  color: #A2B2C1;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23344555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-input option {
  background-color: var(--card-bg);
  color: var(--light-text);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

.form-error-msg {
  color: var(--coral);
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  display: none;
}

.btn-submit {
  width: 100%;
  background-color: var(--campus-teal);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(8, 126, 139, 0.25);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.btn-submit:hover:not(:disabled) {
  background-color: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 126, 139, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Card View */
.success-view {
  display: none;
  text-align: center;
}

.success-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(46, 139, 87, 0.15);
  color: var(--success-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-view .form-title {
  font-size: 24px;
  color: var(--light-text);
  margin-bottom: 12px;
}

.success-view p {
  color: var(--body-text);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Footer Section */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px;
  text-align: center;
  background-color: var(--ink); /* Dark footer background */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 12px;
  color: #8E9EA9;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  text-decoration: none;
  font-size: 12px;
  color: #8E9EA9;
  transition: var(--transition);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--white);
}

/* Keyframe Animations */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(8, 126, 139, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(8, 126, 139, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(8, 126, 139, 0);
  }
}

/* ==========================================
   Mobile Responsive Utilities and Styles
   ========================================== */

/* Utility Classes for Display Control */
.mobile-only {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #A2B2C1;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle-btn svg {
  transition: transform 0.2s ease;
}

/* Adjustments for viewports under 768px (Mobile & Tablet Drawer) */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  .nav-container {
    padding: 12px 16px;
  }
  
  .menu-toggle-btn {
    display: flex;
  }
  
  /* Transform Nav Menu into Slide-down Drawer */
  .nav-menu {
    position: fixed;
    top: 62px;
    left: 0;
    width: 100%;
    height: calc(100vh - 62px);
    background-color: rgba(22, 35, 47, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
    gap: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 99;
    
    /* Animation state: Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu .nav-link {
    display: block;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 0;
    color: #E5ECF0;
  }
  
  .nav-menu .nav-link:hover {
    color: var(--campus-teal);
  }
  
  .nav-menu .mobile-nav-btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
  }

  /* Body scroll lock class */
  body.menu-open {
    overflow: hidden;
  }
}

/* Adjustments for viewports under 576px (Small Mobile Devices) */
@media (max-width: 575px) {
  /* Fluid Typography */
  .hero-title {
    font-size: 32px !important;
    line-height: 1.2;
  }
  
  .hero-desc {
    font-size: 14.5px;
    margin-bottom: 28px;
  }
  
  .section-title {
    font-size: 26px !important;
    line-height: 1.2;
  }
  
  .section-desc {
    font-size: 14.5px;
    margin-bottom: 40px;
  }
  
  .form-title {
    font-size: 24px !important;
  }
  
  /* Mockup Layout and Padding Corrections */
  .hero-mockup {
    padding: 20px !important;
    border-radius: 12px;
  }
  
  .mockup-card {
    padding: 16px !important;
    border-radius: 8px;
  }
  
  .card-value {
    font-size: 24px !important;
  }
  
  /* Enquiry Form Layout and Spacing Corrections */
  .form-page-layout {
    padding: 30px 16px;
  }
  
  .form-card {
    padding: 24px 20px !important;
    border-radius: 12px;
  }
  
  .form-header-area {
    margin-bottom: 24px;
  }
  
  /* Button sizing adjustments */
  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
