/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
:root {
  /* Colors */
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --text-dark: #333333;
  --text-light: #6c757d;
  --text-white: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #212529;
  --border-color: #dee2e6;
  --gradient-background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

  /* Fonts */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Sizing & Spacing */
  --border-radius: 0.5rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s ease;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--text-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #222222;
}

/* Adaptive Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

section {
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
  position: relative;
  font-weight: 800;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-title:after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  background: var(--gradient-background);
  bottom: 0;
  left: calc(50% - 30px);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.navbar {
  transition: all 0.3s ease;
  padding: 1.5rem 0;
}

.navbar.scrolled {
  background-color: rgba(12, 12, 29, 0.9);
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
}

.navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 15px;
  color: var(--text-white);
  transition: var(--transition-speed);
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--text-white);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@media (max-width: 991.98px) {
  .navbar {
    background-color: rgba(12, 12, 29, 0.9);
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .container {
  z-index: 2;
}

#hero h1, #hero p {
    color: var(--text-white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/*--------------------------------------------------------------
# Buttons & Forms (Global)
--------------------------------------------------------------*/
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition-speed);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-image: var(--gradient-background);
  background-size: 200% auto;
  color: var(--text-white);
  box-shadow: 0 4px 15px 0 rgba(106, 17, 203, 0.45);
}

.btn-primary:hover {
  background-position: right center;
  color: var(--text-white);
  box-shadow: 0 6px 20px 0 rgba(37, 117, 252, 0.5);
  transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition-speed);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
    border-color: var(--primary-color);
}

.form-floating > label {
    color: var(--text-light);
}

/*--------------------------------------------------------------
# Cards (Global)
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Specific Card Styles */
.pricing-card .card-image { height: 250px; }
.award-card .card-image { height: 150px; width: 150px; margin: 0 auto; border-radius: 50%; margin-top: -50px; border: 5px solid white; box-shadow: var(--shadow); }
.award-card .card-image img { border-radius: 50%; }

/*--------------------------------------------------------------
# Process Section
--------------------------------------------------------------*/
.process-list li {
    align-items: flex-start;
}
.process-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-white);
  background: var(--gradient-background);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing-card .price {
  font-size: 1.5rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.pricing-card .price strong {
  font-size: 2.2rem;
  font-weight: 800;
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
.resource-link {
    display: block;
    padding: 1.5rem;
    background: var(--text-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-speed);
}
.resource-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Parallax Sections
--------------------------------------------------------------*/
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
    background: var(--background-dark);
    color: rgba(255, 255, 255, 0.7);
}

footer h5 {
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

footer .footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-speed);
  display: inline-block;
  margin-bottom: 0.5rem;
}

footer .footer-link:hover {
  color: var(--text-white);
  transform: translateX(5px);
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/*--------------------------------------------------------------
# Page-specific Styles
--------------------------------------------------------------*/
/* For success.html */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: var(--background-light);
  padding: 2rem;
}

.success-page .icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* For privacy.html & terms.html */
.page-container {
  padding-top: 120px;
  padding-bottom: 60px;
}
.page-container h1 {
    margin-bottom: 2rem;
}
.page-container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Modal
--------------------------------------------------------------*/
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
}
.modal-header .btn-close {
    transition: transform 0.2s ease;
}
.modal-header .btn-close:hover {
    transform: rotate(90deg);
}