/* Premium Corporate Light Theme - Sleek Design System */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* Color Palette (Color Psychology: Competence, Integrity, Modernity) */
  --bg-main: #FCFDFE;
  --bg-surface: #FFFFFF;
  --bg-accent: #F1F5F9;
  
  --text-main: #0B0F19; /* Deep Slate Blue-Black */
  --text-muted: #4B5563; /* Cool Charcoal */
  --text-light: #8E9BAE; /* Soft Gray */
  
  --color-primary: #1E3A8A; /* Trust Navy */
  --color-secondary: #2563EB; /* Executive Blue */
  --color-success: #059669; /* ROI Emerald Green */
  --color-success-light: #E6F4EA;
  
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-focus: rgba(37, 99, 235, 0.4);
  
  /* Layered Premium Shadows */
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.03), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 12px 24px -10px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.06), 0 8px 24px -4px rgba(15, 23, 42, 0.03);
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --font-title: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-muted);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.015) 0, transparent 50%),
    radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.015) 0, transparent 50%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-content p,
.service-card p,
.project-body p,
.timeline-content p,
.contact-card p,
.case-content-section p {
  text-align: justify;
}

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

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

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 70px 0;
}

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

.section-title {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto 64px auto;
  font-weight: 500;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Glassmorphism Sticky Header */
header {
  position: sticky;
  top: 0;
  background-color: rgba(252, 253, 254, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  border: 1px solid var(--border-subtle);
}

.logo span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  background: var(--bg-accent);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

/* Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  padding: 40px 0 20px 0;
}

.hero-content h1 {
  font-size: 3.75rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-content h1 span {
  font-family: var(--font-title);
  color: var(--color-secondary);
  font-style: italic;
  font-weight: 400;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

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

.hero-illustration {
  display: flex;
  justify-content: flex-end;
}

.hero-visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  position: relative;
}

.visual-header {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5E7EB;
}

.visual-body {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.visual-line {
  margin-bottom: 8px;
}

.visual-line .accent {
  color: var(--color-secondary);
  font-weight: bold;
}

.visual-line .success {
  color: var(--color-success);
  font-weight: 500;
}

/* Stats Section (Upgraded layout with elegant grid dividers) */
.stats-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-subtle);
}

.stat-num {
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 32px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.08), var(--shadow-md);
  border-color: var(--color-secondary);
}

.service-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Projects Showcase Section */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-accent);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--text-main);
  color: var(--bg-surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.project-img-container {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg-accent);
  border-bottom: 1px solid var(--border-subtle);
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.project-card:hover .project-img-container img {
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-block;
}

.project-body h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.metric-pill {
  background: var(--bg-accent);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-link {
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  align-self: flex-start;
}

.project-link i {
  transition: var(--transition-fast);
}

.project-card:hover .project-link i {
  transform: translateX(4px);
}

/* Asymmetric Left-Aligned Timeline (Saves horizontal spacing, looks very premium) */
.timeline-wrapper {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border-subtle);
  top: 0;
  bottom: 0;
  left: 8px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: -29px;
  background-color: var(--bg-main);
  border: 3px solid var(--color-secondary);
  top: 6px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.timeline-date {
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.timeline-company {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

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

/* Contact / Lead Capture Card */
.contact-card {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card p {
  margin-bottom: 28px;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.92rem;
}

.email-display {
  font-family: monospace;
  font-size: 1.15rem;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--bg-accent);
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* Case Study Template Page Custom Styling */
.case-study-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 80px 0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-light);
  font-size: 0.88rem;
}

.btn-back:hover {
  color: var(--text-main);
}

.case-study-title-wrapper h1 {
  font-family: var(--font-title);
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.case-study-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 720px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}

.meta-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.meta-item strong {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

.case-study-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 64px;
  padding: 80px 0;
}

.case-content-section {
  margin-bottom: 56px;
}

.case-content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.case-content-section p {
  font-size: 0.98rem;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.case-content-section ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.case-content-section li {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.impact-list {
  list-style: none;
}

.impact-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.impact-list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-size: 1.05rem;
}

/* Footer Section */
footer {
  background: #0B0F19; /* Executive Deep Black-Blue */
  color: #8E9BAE;
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--bg-surface);
  font-weight: 800;
}

.footer-wrapper p {
  color: #64748B;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.social-links a {
  color: #64748B;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--bg-surface);
}

/* Media Query Adaptations */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-illustration {
    justify-content: center;
  }
  
  .case-study-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sidebar-card {
    position: static;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 130px;
  }

  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 56px 0;
  }

  .section-title {
    font-size: 2.1rem;
  }

  nav {
    flex-direction: column;
    height: auto;
    padding: 16px 0;
    gap: 12px;
  }
  
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links a {
    font-size: 0.82rem;
    padding: 4px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-num {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .timeline-wrapper {
    padding-left: 24px;
  }

  .timeline-wrapper::before {
    left: 4px;
  }

  .timeline-item::after {
    left: -29px; /* Re-aligned to vertical line */
  }

  .timeline-content {
    padding: 24px;
  }

  .contact-card {
    padding: 40px 24px;
  }

  .contact-card h2 {
    font-size: 1.75rem;
  }

  .email-display {
    font-size: 1rem;
    padding: 8px 14px;
  }
  
  .footer-wrapper {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item::after {
    display: none !important;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
}

/* Floating WhatsApp Chat Head */
.whatsapp-chat-head {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 9999;
  transition: var(--transition-normal);
}

.whatsapp-chat-head:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .whatsapp-chat-head {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}
