/* =========================================
   PIXELTALENT TECHNOLOGY - STYLESHEET
   McKinsey / Premium Consulting Aesthetic
========================================= */

/* --- CSS Variables --- */
:root {
  /* Colors - High contrast, authoritative */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8; /* Very light gray for subtle section contrast */
  --color-primary-dark: #001936; /* Deep McKinsey Navy */
  --color-primary: #00468f; /* Action Blue */
  --color-accent: #00e5ff; /* Subtle energetic cyan accent for micro-interactions */
  --color-text-main: #222222;
  --color-text-muted: #666666;
  --color-white: #ffffff;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif; /* For authoritative headlines */
  
  /* Layout */
  --max-width: 1400px;
  --spacing-section: 120px;
  --spacing-section-mobile: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

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

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

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: var(--spacing-section) 0;
}

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

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

.bg-dark h2, .bg-dark h3 {
  color: var(--color-white);
}

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

.section-header {
  margin-bottom: 60px;
  max-width: 800px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

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

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

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.btn-outline:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 5%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: padding var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar.scrolled {
  padding: 16px 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary-dark);
  transition: var(--transition-fast);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: 100px 5% 40px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--color-white);
  transform: translateX(5px);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --- Animations (Fade In Up) --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Layouts --- */
@media (max-width: 1024px) {
  .section-header h2 { font-size: 2.5rem; }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide on mobile initially */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .section { padding: var(--spacing-section-mobile) 0; }
  .section-header h2 { font-size: 2rem; }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* offset for navbar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 25, 54, 0.9) 0%, rgba(0, 25, 54, 0.6) 50%, rgba(0, 25, 54, 0.2) 100%);
}

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

.hero-content h1 {
  color: var(--color-white);
  font-size: 4rem;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
}

.hero-btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
}

/* --- Insights Section --- */
.mx-auto { margin-left: auto; margin-right: auto; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.insight-card {
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 40px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.insight-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.insight-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.read-more {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.read-more:hover::after {
  width: 100%;
}

/* --- Industries Grid --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.industry-card {
  background: var(--color-white);
  overflow: hidden;
  border-bottom: 4px solid transparent;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.industry-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-bottom-color: var(--color-primary);
}

.industry-card .img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

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

.card-content {
  padding: 30px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* --- Services Section --- */
.services-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-image-col {
  width: 100%;
}

.service-image-col img {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-list-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-item {
  border-left: 3px solid var(--color-primary);
  padding-left: 20px;
  background: var(--color-white);
  padding: 30px 30px 30px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-item h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

/* --- Process Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
  padding-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(0,0,0,0.1);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 20px;
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  background-color: var(--color-primary);
}

.timeline-item h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Clients Section --- */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}

.logo-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  text-align: center;
}

.logo-box:hover {
  background: rgba(255, 255, 255, 1);
}

.logo-box img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(1) brightness(2);
  transition: filter var(--transition-fast);
}

.logo-box:hover img {
  filter: grayscale(0) brightness(1);
}

.logo-box h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-family: var(--font-sans);
  margin: 0;
  opacity: 0.7;
  transition: color var(--transition-fast);
}

.logo-box:hover h4 {
  color: var(--color-primary-dark);
}

/* --- Contact Section --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-item strong {
  font-family: var(--font-sans);
  color: var(--color-primary-dark);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.contact-item a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
}

.contact-form {
  background: var(--color-bg-alt);
  padding: 50px;
  border-top: 4px solid var(--color-primary-dark);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 70, 143, 0.1);
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

/* --- Responsive continued --- */
@media (max-width: 1024px) {
  .services-wrapper, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .timeline::before {
    display: none;
  }
  
  .timeline-item {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }
  
  .timeline-dot {
    margin: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .client-text-list ul {
    grid-template-columns: 1fr;
  }
}
