/*
  Theme: Обзоры мировых экономических трендов
  Design System: Neumorphism & Curved Grids
  Color Scheme: Monochromatic
  Animation Style: 3D Effects
  Fonts: Raleway (Headings), Open Sans (Body)
*/

/* --------------------------------------------------- */
/* 1. CSS Variables & Root Setup
/* --------------------------------------------------- */
:root {
  /* Color Palette - Monochromatic */
  --bg-color: #e4e9f2;
  --bg-dark-color: #2c3e50;
  --text-color: #34495e;
  --text-light-color: #ffffff;
  --text-heading-color: #2c3e50;
  --primary-color: #3498db;
  --secondary-color: #5a6a85;
  --white: #ffffff;
  --light-grey: #f8f9fa;

  /* Neumorphism Shadows */
  --shadow-light: rgba(255, 255, 255, 0.8);
  --shadow-dark: rgba(163, 177, 198, 0.6);
  --neumorphic-shadow-convex: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  --neumorphic-shadow-concave: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);

  /* Typography */
  --font-family-headings: 'Raleway', sans-serif;
  --font-family-body: 'Open Sans', sans-serif;

  /* Layout */
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --transition-speed: 0.3s;
}

/* --------------------------------------------------- */
/* 2. Global & Base Styles
/* --------------------------------------------------- */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3rem;
  position: relative;
}

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

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

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

p {
    margin-bottom: 1rem;
}

/* --------------------------------------------------- */
/* 3. Header & Navigation
/* --------------------------------------------------- */
.header.sticky-top {
  background-color: rgba(228, 233, 242, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-family-headings);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-heading-color) !important;
}

.nav-link {
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--secondary-color) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler {
  border: none;
  box-shadow: var(--neumorphic-shadow-convex);
}

.navbar-toggler:focus {
    box-shadow: var(--neumorphic-shadow-concave);
}

/* --------------------------------------------------- */
/* 4. Hero Section
/* --------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 95vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
}

.hero-content {
  color: var(--text-light-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-title {
  color: var(--text-light-color);
  font-size: 3.5rem;
  font-weight: 800;
  transform: translateZ(50px);
}

.hero-subtitle {
  color: var(--text-light-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  transform: translateZ(20px);
}

/* --------------------------------------------------- */
/* 5. Neumorphic Elements & Cards
/* --------------------------------------------------- */
.section-neumorphism {
  background-color: var(--bg-color);
  padding: 5rem 0;
}

.neumorphic-card {
  background: var(--bg-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--neumorphic-shadow-convex);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.neumorphic-card:hover {
  transform: translateY(-10px);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.card .card-image {
  height: 250px;
  width: 100%;
  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) ease;
}

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

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

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

.neumorphic-list .list-group-item {
  background: var(--bg-color);
  border: none;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--neumorphic-shadow-convex);
  transition: all var(--transition-speed) ease;
}
.neumorphic-list .list-group-item:hover {
  box-shadow: var(--neumorphic-shadow-concave);
  color: var(--primary-color);
}

/* --------------------------------------------------- */
/* 6. Buttons & Forms
/* --------------------------------------------------- */
.btn, button, input[type='submit'] {
  font-family: var(--font-family-headings);
  font-weight: 700;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 4px 4px 8px rgba(52, 152, 219, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 6px 6px 12px rgba(52, 152, 219, 0.5), -6px -6px 12px rgba(255, 255, 255, 1);
}

.btn-primary:active, .btn-primary:focus {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: inset 4px 4px 8px rgba(52, 152, 219, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.8) !important;
}

.btn-secondary {
  background: var(--bg-color);
  color: var(--secondary-color);
  box-shadow: var(--neumorphic-shadow-convex);
}

.btn-secondary:hover {
  color: var(--primary-color);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.btn-secondary:active, .btn-secondary:focus {
    color: var(--primary-color) !important;
    background: var(--bg-color) !important;
    box-shadow: var(--neumorphic-shadow-concave) !important;
}

.form-control {
  background: var(--bg-color);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 12px 20px;
  box-shadow: var(--neumorphic-shadow-concave);
  color: var(--text-color);
  transition: all var(--transition-speed) ease;
}

.form-control::placeholder {
  color: var(--secondary-color);
}

.form-control:focus {
  background: var(--bg-color);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light), 0 0 0 2px var(--primary-color);
  color: var(--text-color);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------- */
/* 7. Specific Sections
/* --------------------------------------------------- */

/* Clientele & Media */
.client-logo-item img, .media-logo-item img {
  filter: grayscale(100%) opacity(0.6);
  transition: all var(--transition-speed) ease;
}
.client-logo-item:hover img, .media-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Methodology Progress Bars */
.progress {
  background-color: var(--bg-color);
  border-radius: 50px;
  box-shadow: var(--neumorphic-shadow-concave);
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: 50px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2) inset;
}

/* Curved Grids */
.curved-grid > div:nth-child(2) { transform: translateY(20px); }
.curved-grid > div:nth-child(4) { transform: translateY(20px); }

/* Testimonials */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

/* --------------------------------------------------- */
/* 8. Footer
/* --------------------------------------------------- */
.footer {
  background-color: var(--bg-dark-color);
  color: var(--light-grey);
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-speed) ease;
  display: inline-block;
  padding: 0.2rem 0;
}

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

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------- */
/* 9. Page-specific Styles
/* --------------------------------------------------- */

/* About & Contact Page Headers */
.page-header {
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

/* Privacy & Terms pages */
body.page-legal main > section:first-of-type {
    padding-top: 120px;
}

/* Success page */
.page-success main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px); /* 100vh minus approx header/footer height */
}

.success-card {
    max-width: 600px;
    margin: 2rem;
}

/* --------------------------------------------------- */
/* 10. Animations & Scroll Effects
/* --------------------------------------------------- */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------- */
/* 11. Responsive Design
/* --------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
    padding: 4rem 0;
    background-attachment: scroll; /* Disable parallax on mobile for performance */
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }

  .curved-grid > div {
    transform: translateY(0) !important;
  }
  
  .footer .text-start, .footer .text-end {
    text-align: center !important;
  }
  
  .footer .col-md-4, .footer .col-md-2, .footer .col-md-3 {
      text-align: center;
  }
}