/* 
   NovaScholars Education & Consultancy
   Custom Stylesheet
   Color Scheme: #c19a4d, #141d29, #d2ccc4, #695c48, #503f1f, #bc901e, #493819
*/

:root {
  --color-gold: #c19a4d;
  --color-dark-blue: #141d29;
  --color-light-beige: #d2ccc4;
  --color-brown: #695c48;
  --color-dark-brown: #503f1f;
  --color-gold-dark: #bc901e;
  --color-very-dark-brown: #493819;
  
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Playfair Display', 'Georgia', serif;
}

/* ===== GLOBAL STYLES ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-dark-blue);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark-blue);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-brown);
}

.text-gold {
  color: var(--color-gold);
}

.text-light {
  color: var(--color-light-beige);
}

/* ===== NAVIGATION ===== */

nav.navbar {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav.navbar .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dark-blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

nav.navbar .navbar-brand img {
  height: 40px;
}

nav.navbar .nav-link {
  color: var(--color-dark-blue);
  font-weight: 500;
  transition: color 0.3s ease;
  margin-left: 1.5rem;
}

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

nav.navbar .nav-link.active {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

/* ===== HERO SECTION ===== */

.hero {
  background: linear-gradient(-45deg, #141d29, #1a2434, #141d29, #2a3a4a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-attachment: scroll;
  transition: background-position 0.1s linear;
  will-change: transform;
}

/* Animated gradient background */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><circle cx="100" cy="100" r="50" fill="rgba(193, 154, 77, 0.1)"/><circle cx="300" cy="250" r="80" fill="rgba(193, 154, 77, 0.05)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  opacity: 0;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0;
}

/* Keyframe animations for hero text */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating shapes decoration */
.hero-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  opacity: 0.05;
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #c19a4d;
  top: 10%;
  right: 5%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #141d29;
  bottom: 20%;
  left: 5%;
  animation: float 8s ease-in-out 1s infinite;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #c19a4d;
  top: 50%;
  right: 20%;
  animation: float 7s ease-in-out 2s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

/* ===== BUTTONS ===== */

.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #d4a960 100%);
  color: var(--color-dark-blue);
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 8px rgba(193, 154, 77, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d4a960 0%, #c9934a 100%);
  border-color: #c9934a;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(193, 154, 77, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: var(--color-dark-blue);
}

/* ===== TRUST STRIP ===== */

.trust-strip {
  background-color: var(--color-light-beige);
  padding: 2.5rem;
  border-top: 1px solid #bab5ac;
  border-bottom: 1px solid #bab5ac;
}

.trust-strip ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-dark-blue);
  font-weight: 500;
}

.trust-strip li::before {
  content: '✓';
  color: var(--color-gold);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ===== SERVICES SECTION ===== */

.section-services {
  background-color: #f9f7f4;
  padding: 80px 0;
}

.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--color-gold);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(193, 154, 77, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(193, 154, 77, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card:hover {
  box-shadow: 0 12px 24px rgba(193, 154, 77, 0.2);
  transform: translateY(-6px);
  border-left-color: var(--color-gold-dark);
}

.service-card:hover::before {
  left: 100%;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-light-beige);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  flex-grow: 1;
  color: var(--color-brown);
  margin-bottom: 1.5rem;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ===== TESTIMONIALS ===== */

.testimonials-section {
  padding: 80px 0;
  background-color: white;
}

.testimonial-card {
  background-color: var(--color-light-beige);
  padding: 2rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-gold);
}

.testimonial-quote {
  font-size: 1.1rem;
  color: var(--color-dark-blue);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-dark-blue);
}

.testimonial-title {
  font-size: 0.9rem;
  color: var(--color-brown);
}

/* ===== CTA SECTION ===== */

.cta-banner {
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, #1f2936 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */

footer {
  background-color: var(--color-dark-blue);
  color: var(--color-light-beige);
  padding: 3rem 0 1rem;
}

footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

footer a {
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

footer a:hover {
  color: var(--color-gold-dark);
}

/* Footer bottom inline link */
.footer-bottom a {
  display: inline;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(193, 154, 77, 0.3);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-brown);
}

.footer-bottom p {
  margin: 0.5rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem;
  }

  footer h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  footer a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
  }

  .footer-bottom p {
    margin: 0.35rem 0;
  }
}

/* ===== FORMS ===== */

form {
  background-color: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark-blue);
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='date']:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(193, 154, 77, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.show {
  display: block;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc3545;
}

/* ===== ALERTS ===== */

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.alert.show {
  display: block;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ===== UTILITIES ===== */

.section-padding {
  padding: 80px 0;
}

.section-padding-sm {
  padding: 40px 0;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .trust-strip ul {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  nav.navbar .nav-link {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }

  form {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 40px 0;
  }

  .section-padding {
    padding: 40px 0;
  }

  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
}
