/* ==========================================================================
   Base Variables & Typography
   ========================================================================== */
:root {
  /* Triadic Color Scheme */
  --primary: #4a6fd8;
  --primary-light: #6b8de2;
  --primary-dark: #2a4fb8;
  
  --secondary: #d84a6f;
  --secondary-light: #e26b8d;
  --secondary-dark: #b82a4f;
  
  --tertiary: #6fd84a;
  --tertiary-light: #8de26b;
  --tertiary-dark: #4fb82a;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --black: #000000;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-light), var(--secondary-dark));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary-light), var(--tertiary-dark));
  
  /* Glassmorphism */
  --glass-background: rgba(255, 255, 255, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --glass-blur: blur(8px);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Fonts */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Base Elements
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: var(--space-xl);
  position: relative;
  text-align: center;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xxl) 0;
  position: relative;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
  text-align: center;
}

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

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

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

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

.bg-secondary {
  background-color: var(--secondary);
}

.bg-tertiary {
  background-color: var(--tertiary);
}

.glass {
  background: var(--glass-background);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Buttons & Forms
   ========================================================================== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74, 111, 216, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(74, 111, 216, 0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(216, 74, 111, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(216, 74, 111, 0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-tertiary {
  background: var(--gradient-tertiary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(111, 216, 74, 0.3);
}

.btn-tertiary:hover {
  box-shadow: 0 6px 20px rgba(111, 216, 74, 0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--gray-800);
}

input, 
select, 
textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal);
}

input:focus, 
select:focus, 
textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 111, 216, 0.2);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-normal);
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
  margin: 0 auto;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-md);
}

.desktop-nav a {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 10px;
  transition: all var(--transition-normal);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1000;
  padding: 80px 2rem 2rem;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 500;
}

.mobile-nav.active {
  transform: translateY(0);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 180px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--white);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-xl);
  color: var(--white);
  animation: fadeInUp 1.2s ease-out;
}

.hero .btn {
  animation: fadeInUp 1.4s ease-out;
}

/* ==========================================================================
   Methodology Section
   ========================================================================== */
.methodology {
  background-color: var(--gray-100);
}

.methodology-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xxl);
}

.methodology-image {
  flex: 1 1 400px;
  text-align: center;
}

.methodology-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.methodology-text {
  flex: 1 1 500px;
}

.methodology-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Insights Section
   ========================================================================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
  margin: 0 auto;
}

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

.card-content {
  padding: var(--space-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: var(--space-md);
  position: relative;
}

.card p {
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.card p:last-of-type {
  margin-bottom: var(--space-lg);
}

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

/* ==========================================================================
   Insights Deep (Tabs)
   ========================================================================== */
.insights-deep {
  background-color: var(--gray-100);
}

.insights-tabs {
  margin-top: var(--space-xl);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
  gap: var(--space-sm);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn:hover,
.tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.insight-image {
  flex: 1 1 400px;
  text-align: center;
}

.insight-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  margin: 0 auto;
}

.insight-text {
  flex: 1 1 500px;
}

.insight-text h3 {
  margin-bottom: var(--space-lg);
}

.insight-text p {
  margin-bottom: var(--space-md);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* Services cards use the .card class defined in Insights */

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects {
  background-color: var(--gray-100);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* Projects cards use the .card class defined in Insights */

/* ==========================================================================
   Accolades Section
   ========================================================================== */
.accolades {
  background: linear-gradient(135deg, var(--gray-100), var(--white));
}

.accolades-slider {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
}

.accolade-card {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accolade-image {
  width: 100%;
  height: 200px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
}

.accolade-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.accolade-content {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.accolade-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.accolade-content p {
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.award-year {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
}

/* ==========================================================================
   Resources Section
   ========================================================================== */
.resources {
  background-color: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.resource-card {
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.resource-card h3 {
  margin-bottom: var(--space-lg);
  position: relative;
}

.resource-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.resource-card ul {
  padding-left: var(--space-lg);
  margin: 0;
}

.resource-card li {
  margin-bottom: var(--space-sm);
}

.resource-card a {
  font-weight: 500;
  transition: color var(--transition-normal);
  display: inline-block;
}

.resource-card a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Careers Section
   ========================================================================== */
.careers {
  background: linear-gradient(135deg, #f5f7fa, #eef2f7);
}

.careers-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xxl);
}

.careers-image {
  flex: 1 1 400px;
  text-align: center;
}

.careers-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.careers-text {
  flex: 1 1 500px;
}

.careers-text h3 {
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.careers-list {
  margin: var(--space-lg) 0;
  padding-left: var(--space-lg);
}

.careers-list li {
  margin-bottom: var(--space-md);
  position: relative;
}

.careers-list li strong {
  color: var(--primary);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
  background-color: var(--white);
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxl);
}

.contact-info {
  flex: 1 1 350px;
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.contact-details .icon {
  margin-right: var(--space-md);
  font-size: 1.25rem;
}

.social-links h4 {
  margin-bottom: var(--space-md);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.social-icons a {
  padding: 0.5rem 1rem;
  background-color: var(--gray-100);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-weight: 500;
  transition: all var(--transition-normal);
}

.social-icons a:hover {
  background-color: var(--primary);
  color: var(--white);
}

.contact-form-container {
  flex: 1 1 450px;
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.contact-form-container h3 {
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

.footer-logo {
  flex: 1 1 300px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-md);
  margin: 0 auto 1rem 0;
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links {
  flex: 1 1 600px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: space-between;
}

.footer-links-column h4 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
}

.footer-links-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-column li {
  margin-bottom: var(--space-sm);
}

.footer-links-column a {
  color: var(--gray-300);
  transition: color var(--transition-fast);
}

.footer-links-column a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-social a {
  color: var(--gray-300);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--primary);
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.875rem;
  opacity: 0.6;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Additional Pages
   ========================================================================== */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
}

.success-content {
  max-width: 600px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary);
  margin-bottom: var(--space-lg);
  animation: pulse 2s infinite;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
  }
  
  .hero {
    padding: 160px 0 80px;
  }
  
  .card-content {
    padding: var(--space-lg);
  }
  
  .accolade-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  section {
    padding: var(--space-xl) 0;
  }
  
  .methodology-content,
  .careers-content,
  .tab-content.active {
    gap: var(--space-lg);
  }
  
  .insights-grid,
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .tabs-nav {
    flex-direction: column;
  }
  
  .card-image {
    height: 200px;
  }
  
  .contact-wrapper {
    gap: var(--space-xl);
  }
  
  .social-icons {
    flex-direction: column;
  }
}