@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --primary: #0F172A;
  --primary-light: #1E293B;
  --secondary: #1E40AF;
  --secondary-light: #3B82F6;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-slate: #0F172A;
  --bg-slate-light: #1E293B;
  --text-dark: #111827;
  --text-body: #1F2937;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  --border: #E2E8F0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-accent: 0 10px 15px -3px rgba(245, 158, 11, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

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

.section-dark {
  background-color: var(--bg-slate);
  color: var(--text-white);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

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

.section-dark .section-header p {
  color: #94A3B8;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline-white:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  height: 70px;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-white);
}

header:not(.scrolled) .logo-text-dark-theme {
  color: var(--primary);
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: #CBD5E1;
  position: relative;
  padding: 0.5rem 0;
}

header:not(.scrolled) .nav-link-light {
  color: var(--text-body);
}

header:not(.scrolled) .nav-link-light:hover {
  color: var(--secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  color: var(--text-white);
}

header:not(.scrolled) .nav-link.active.nav-link-light {
  color: var(--secondary);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-btn {
  display: none;
  font-size: 1.75rem;
  color: var(--text-white);
}

header:not(.scrolled) .menu-btn-light {
  color: var(--primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--bg-slate);
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.15), rgba(245, 158, 11, 0.08));
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-bg-graphic {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 45%;
  height: 60%;
  z-index: 2;
  opacity: 0.85;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(30, 64, 175, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--secondary-light);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(to right, #60A5FA, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: #94A3B8;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- Company Statistics --- */
.stats {
  background-color: var(--bg-light);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number::after {
  content: '+';
  color: var(--accent);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- Card & Hover Styles --- */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.card:hover .card-icon {
  background-color: var(--secondary);
  color: var(--text-white);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
  font-family: var(--font-heading);
}

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

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

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.why-feature-item {
  display: flex;
  gap: 1rem;
}

.why-feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.why-feature-info h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.why-feature-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.why-image-wrapper {
  position: relative;
}

.why-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.why-image {
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-xl);
}

/* --- Call To Action (CTA) Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.125rem;
  color: #94A3B8;
}

.cta-banner .btn {
  margin: 0 0.5rem;
}

/* --- Portfolio Page Specifics --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 500;
  transition: var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--secondary);
  color: var(--text-white);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 2;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.portfolio-title {
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.portfolio-btn {
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* --- Before & After Showcase --- */
.before-after-container {
  max-width: 800px;
  margin: 0 auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  z-index: 1;
}

.ba-after {
  z-index: 2;
  width: 50%; /* JS will change this */
}

.ba-label {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 5;
}

.ba-label-before {
  left: 1.5rem;
}

.ba-label-after {
  right: 1.5rem;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* JS will change this */
  width: 4px;
  background-color: var(--accent);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
}

/* --- Industries Page Specifics --- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.industry-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.industry-card:hover {
  border-color: var(--secondary-light);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.industry-icon {
  font-size: 2.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.industry-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-search-wrapper {
  margin-bottom: 2.5rem;
  position: relative;
}

.faq-search-wrapper i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.15rem;
}

.faq-search {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 1rem;
  background-color: var(--bg-light);
  transition: var(--transition-normal);
}

.faq-search:focus {
  border-color: var(--secondary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background-color: var(--bg-white);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
  user-select: none;
}

.faq-header:hover {
  background-color: var(--bg-light);
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.faq-toggle {
  font-size: 1.25rem;
  color: var(--secondary);
  transition: var(--transition-normal);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background-color: var(--bg-white);
  padding: 0 1.5rem;
}

.faq-item.active .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

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

/* --- Contact Page Specifics --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.contact-card-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.contact-card-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.form-control {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-light);
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--secondary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(30, 64, 175, 0.1);
  color: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.contact-info-text p, .contact-info-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-info-text a:hover {
  color: var(--secondary);
}

.map-container {
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* --- Blog Page Specifics --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.blog-card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.08);
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--secondary);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Reading Progress Indicator */
.reading-bar-container {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 999;
}

.reading-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  transition: width 0.1s ease-out;
}

/* Single Post Modal */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.blog-modal.active {
  opacity: 1;
  visibility: visible;
}

.blog-modal-content {
  background-color: var(--bg-white);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.blog-modal.active .blog-modal-content {
  transform: scale(1);
}

.blog-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.blog-modal-close:hover {
  background-color: var(--secondary);
  color: var(--text-white);
}

.blog-modal-body h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.blog-modal-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.blog-modal-image {
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-modal-text {
  font-size: 1.1rem;
  color: var(--text-body);
}

.blog-modal-text p {
  margin-bottom: 1.5rem;
}

/* --- Floating Contact Widgets & Back to Top --- */
.floating-widgets {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 900;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  position: relative;
}

.float-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-ring 2s infinite;
  z-index: -1;
  pointer-events: none;
}

.float-btn-whatsapp {
  background-color: #25D366;
}

.float-btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-4px);
}

.float-btn-call {
  background-color: var(--secondary);
}

.float-btn-call::before {
  box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4);
}

.float-btn-call:hover {
  background-color: var(--secondary-light);
  transform: translateY(-4px);
}

.back-to-top {
  background-color: var(--primary);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background-color: var(--accent);
  color: var(--primary);
}

/* --- Form Success Modal --- */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.success-modal.active {
  opacity: 1;
  visibility: visible;
}

.success-modal-content {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.success-modal.active .success-modal-content {
  transform: scale(1);
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.success-modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.success-modal-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Footer --- */
footer {
  background-color: var(--primary);
  color: #94A3B8;
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about .logo-text {
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-about p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition-normal);
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-contact-item span, .footer-contact-item a {
  line-height: 1.4;
}

.footer-contact-item a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

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

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* --- Mobile Navigation Slide --- */
.mobile-menu-active {
  overflow: hidden;
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem 0;
    text-align: center;
  }
  
  .hero::before {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .why-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cta-banner {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-banner h2 {
    font-size: 2rem;
  }
  
  .cta-banner .btn {
    margin: 0.5rem 0;
    display: flex;
    width: 100%;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .success-modal-content {
    padding: 2rem;
  }
  
  .blog-modal-content {
    padding: 1.5rem;
    width: 95%;
  }
  
  .blog-modal-body h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .floating-widgets {
    bottom: 1rem;
    right: 1rem;
  }
}

/* --- Subpage Hero --- */
.subpage-hero {
  background-color: var(--bg-slate);
  padding: 8rem 0 4rem 0;
  text-align: center;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.15), transparent 50%);
  pointer-events: none;
}

.subpage-hero h1 {
  color: var(--text-white);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.subpage-hero p {
  color: #94A3B8;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}
