/*
  File: style.css
  Description: Styles for the TradeFlow trading website.
  Design System: Creative
  Trend: Asymmetrical Balance
  Color Scheme: Gradient
  Animation Style: Micro-animations
*/

/* --------------------------------------------------
   1. CSS Variables & Global Styles
   -------------------------------------------------- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'IBM Plex Sans', sans-serif;

  --color-primary: #4a00e0;
  --color-secondary: #8e2de2;
  --color-accent: #00c6ff;

  --color-dark: #0d0d2b;
  --color-light: #f9f9ff;
  --color-text-dark: #333333;
  --color-text-light: #ffffff;
  --color-text-muted: #6c757d;

  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  --gradient-bg-light: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  
  --border-radius: 8px;
  --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.07);
  --box-shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s ease-in-out;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-light);
  color: var(--color-text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-dark);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

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

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

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

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

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

/* --------------------------------------------------
   2. Buttons & Forms (Global)
   -------------------------------------------------- */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  transition: all var(--transition-speed);
  box-shadow: var(--box-shadow-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--box-shadow-heavy);
}

.btn-outline-light {
  border-width: 2px;
}

.btn-link {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.btn-link:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

.form-control {
  border-radius: var(--border-radius);
  padding: 12px 15px;
  border: 1px solid #ddd;
  transition: all var(--transition-speed);
  background-color: #fff;
}

.form-control:focus {
  box-shadow: 0 0 0 4px rgba(74, 0, 224, 0.1);
  border-color: var(--color-primary);
  background-color: #fff;
}

/* --------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------- */
.header .navbar {
  padding: 1rem 0;
  transition: background-color var(--transition-speed);
}

.header .bg-dark-transparent {
  background-color: rgba(13, 13, 43, 0.8);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 900;
}

.navbar .nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  margin: 0 10px;
  padding: 8px 15px;
  border-radius: 50px;
  transition: all var(--transition-speed);
}

.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--color-text-light);
  background-color: var(--color-primary);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* --------------------------------------------------
   4. Hero Section
   -------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* For Parallax */
}

.hero-section .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(13, 13, 43, 0.8) 0%, rgba(13, 13, 43, 0.4) 100%);
}

.hero-title {
  font-size: 4rem;
  color: var(--color-text-light);
  font-weight: 900;
}

.hero-subtitle {
  color: var(--color-text-light);
  opacity: 0.9;
}

/* --------------------------------------------------
   5. Card Styles (Global)
   -------------------------------------------------- */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-light);
  transition: all var(--transition-speed);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

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

.card-body {
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-weight: 700;
  color: var(--color-dark);
}

.blog-card .card-image {
    height: 250px; /* Fixed height for consistent blog post images */
}

/* --------------------------------------------------
   6. Section-Specific Styles
   -------------------------------------------------- */
/* Workshops Section */
.bg-light-gradient {
  background: var(--gradient-bg-light);
}

.workshop-card .image-container {
    height: 300px;
    overflow: hidden;
}

/* Research Section - Accordion */
.accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--box-shadow-light);
}

.accordion-button {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-dark);
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(142, 45, 226, 0.2);
}

/* Success Stories Section */
#success-stories .progress {
    height: 25px;
    border-radius: 50px;
}
#success-stories .progress-bar {
    background: var(--gradient-primary);
    border-radius: 50px;
    font-weight: 600;
}
.success-story-card .card-image {
    height: 100%;
    border-radius: var(--border-radius);
}


/* Resources Section */
.resource-card .card-body {
    text-align: center;
}
.resource-card .card-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color var(--transition-speed);
}
.resource-card .card-title a:hover {
    color: var(--color-primary);
}


/* Contact Section */
.contact-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.contact-section .background-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--gradient-primary);
  opacity: 0.85;
}

.contact-form-wrapper {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-wrapper .form-label {
  color: var(--color-text-light);
  font-weight: 500;
}

.contact-form-wrapper .form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: transparent;
}

/* --------------------------------------------------
   7. Footer
   -------------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: var(--color-text-muted);
}

.footer h5 {
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer .footer-link {
  color: var(--color-text-muted);
  transition: all var(--transition-speed);
  display: inline-block;
  padding: 5px 0;
}

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

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

/* --------------------------------------------------
   8. Specific Page Styles
   -------------------------------------------------- */
/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--gradient-bg-light);
  text-align: center;
}

.success-container {
  max-width: 600px;
  background: var(--color-text-light);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-heavy);
}

/* Legal Pages (Privacy, Terms) */
.legal-page-content, .about-page-content {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-page-content h2, .about-page-content h2 {
    margin-bottom: 1.5rem;
}

.legal-page-content h3, .about-page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------
   9. Responsive Design
   -------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  section {
    padding: 60px 0;
  }

  .navbar-nav {
    text-align: center;
    background-color: rgba(13, 13, 43, 0.95);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
  }

  .navbar .nav-link {
    margin: 5px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .footer {
    text-align: center;
  }

  .footer .list-unstyled {
    margin-bottom: 2rem;
  }
}