/*
  style.css
  Theme: Top 10 Asian Countries for Education
  Design System: Minimalist with Neo-Brutalism
  Color Scheme: Complementary
  Animation Style: Bouncy Animations
*/

/* --------------------------------------------------- */
/* 1. CSS Variables & Global Settings
/* --------------------------------------------------- */
:root {
  /* Color Palette (Complementary: Deep Blue & Vibrant Orange) */
  --primary-color: #4a69bd; /* A strong, stable blue */
  --secondary-color: #f6b93b; /* A vibrant, golden orange */
  --dark-color: #2c3e50; /* A dark, slightly desaturated blue-grey for text */
  --light-color: #ffffff;
  --background-color: #f8f9fa;
  --light-bg-color: #e9ecef;
  --border-color: #34495e;

  /* Typography */
  --font-family-headings: 'Oswald', sans-serif;
  --font-family-body: 'Nunito', sans-serif;

  /* Neo-Brutalism Elements */
  --border-width: 2px;
  --border-radius-sharp: 4px;
  --box-shadow-hard: 6px 6px 0px var(--border-color);
  --box-shadow-hard-hover: 8px 8px 0px var(--border-color);

  /* Transitions */
  --transition-bouncy: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  --transition-smooth: all 0.3s ease-in-out;
}

/* Base Styles */
body {
  font-family: var(--font-family-body);
  background-color: var(--background-color);
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
}

p {
  font-size: 1.1rem;
  color: #555;
}

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

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

/* --------------------------------------------------- */
/* 2. Buttons & Forms (Global Styles)
/* --------------------------------------------------- */
.btn, button, input[type='submit'] {
  font-family: var(--font-family-headings);
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: var(--border-radius-sharp);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--box-shadow-hard);
  transition: var(--transition-bouncy);
  font-weight: 700;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  box-shadow: var(--box-shadow-hard-hover);
  transform: translate(-4px, -4px);
}

.form-control {
    border-radius: var(--border-radius-sharp);
    border: var(--border-width) solid var(--border-color);
    padding: 12px 15px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.25);
}

.contact-form {
    background: var(--light-color);
    padding: 2rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius-sharp);
    box-shadow: var(--box-shadow-hard);
}

/* --------------------------------------------------- */
/* 3. Header & Navigation
/* --------------------------------------------------- */
.navbar {
  background-color: transparent;
  transition: background-color 0.4s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
}

.navbar-brand {
  font-family: var(--font-family-headings);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.navbar:not(.scrolled) .navbar-brand,
.navbar:not(.scrolled) .nav-link {
    color: var(--light-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.navbar .nav-link {
  font-family: var(--font-family-headings);
  text-transform: uppercase;
  margin-left: 15px;
  transition: var(--transition-smooth);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--secondary-color) !important;
}

/* --------------------------------------------------- */
/* 4. Section Specific Styles
/* --------------------------------------------------- */

/* Hero Section */
#hero {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--light-color);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

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

#hero h1 {
    color: var(--light-color);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Sections General */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg-color) !important;
}

/* Research (Accordion) Section */
.accordion-item {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius-sharp) !important;
  margin-bottom: 1rem;
  background-color: var(--light-color);
}
.accordion-button {
  font-family: var(--font-family-headings);
  font-size: 1.2rem;
  background-color: var(--light-color);
  color: var(--dark-color);
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

/* Process (Timeline) Section */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--light-color);
  border: 4px solid var(--primary-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(even)::after {
  left: -10px;
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--light-color);
  position: relative;
  border-radius: var(--border-radius-sharp);
  border: var(--border-width) solid var(--border-color);
}

/* Case Studies (Cards) Section */
.card {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius-sharp);
  box-shadow: var(--box-shadow-hard);
  transition: var(--transition-bouncy);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--box-shadow-hard-hover);
}
.card .card-image {
  width: 100%;
  padding: 1rem;
  height: 250px;
}
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-sharp);
  border: var(--border-width) solid var(--border-color);
}
.card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card .blockquote-footer {
    color: var(--primary-color);
    font-weight: 700;
}

/* Awards Section */
.award-item {
    padding: 1.5rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius-sharp);
    background: var(--light-color);
}

/* Partners Section */
#partners .partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-smooth);
}
#partners .partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Resources Section */
.resource-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition-smooth);
}
.resource-card:hover {
    box-shadow: var(--box-shadow-hard);
    transform: translateY(-5px);
}
.resource-card h4 a {
    color: var(--dark-color);
    text-decoration: none;
}

/* --------------------------------------------------- */
/* 5. Footer
/* --------------------------------------------------- */
footer {
    background-color: var(--dark-color);
}
footer h6 {
    color: var(--secondary-color);
}
footer a.text-white-50 {
    text-decoration: none;
    transition: var(--transition-smooth);
}
footer a.text-white-50:hover {
    color: var(--light-color) !important;
    text-decoration: underline;
}

/* --------------------------------------------------- */
/* 6. Utility & Page-Specific Styles
/* --------------------------------------------------- */

/* For Privacy, Terms, and other content pages */
.content-page {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* For Success page */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-color);
}
.success-box {
    max-width: 600px;
    padding: 3rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius-sharp);
    background: var(--light-color);
    box-shadow: var(--box-shadow-hard);
}

/* Parallax and Scroll Animations */
.parallax-bg {
    background-attachment: fixed;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------- */
/* 7. Responsive Design
/* --------------------------------------------------- */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 25px;
  }
  .timeline-item:nth-child(even) {
    left: 0%;
  }
  .timeline-item::after {
    left: 10px;
  }
  .parallax-bg {
    background-attachment: scroll; /* Disable parallax on mobile for performance */
  }
  footer .text-md-start {
      text-align: center !important;
  }
  footer hr {
      margin-left: auto;
      margin-right: auto;
  }
}

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  #hero h1 {
    font-size: 2.5rem;
  }
  .contact-form {
    padding: 1.5rem;
  }
}