@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --brand-maroon: #7A2E2E;
  --brand-dark: #5C1E1E;
  --brand-light: #9B4A4A;
  --text-primary: #1A1A2E;
  --text-secondary: #555566;
  --text-muted: #8A8A96;
  --bg-white: #FFFFFF;
  --bg-light: #F7F8FA;
  --bg-muted: #F3F4F6;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-soft: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--text-primary); background: var(--bg-white); overflow-x: hidden; line-height: 1.6; }
::selection { background: rgba(122, 46, 46, 0.15); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Typography */
.font-display { font-family: 'Sora', system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Section Label */
.section-label { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brand-maroon); font-weight: 500; }
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--brand-maroon); }

/* Gradient Text */
.gradient-text { -webkit-background-clip: text; background-clip: text; color: transparent; background-image: linear-gradient(135deg, #7A2E2E 0%, #5C1E1E 100%); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; border-radius: 10px; background: var(--brand-maroon); color: white; border: none; cursor: pointer; transition: all 0.3s; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 4px 16px rgba(122,46,46,0.25); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-primary); background: transparent; cursor: pointer; transition: all 0.3s; }
.btn-secondary:hover { border-color: var(--brand-maroon); color: var(--brand-maroon); background: rgba(122,46,46,0.04); }

/* Cards */
.card { background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-soft); transition: all 0.4s ease; overflow: hidden; }
.card:hover { box-shadow: var(--shadow-hover); border-color: rgba(122,46,46,0.2); transform: translateY(-2px); }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: all 0.3s; padding: 16px 0; }
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-soft); padding: 12px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; transition: color 0.3s; position: relative; }
.nav a:hover { color: var(--brand-maroon); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; padding-top: 8px; z-index: 60; }
.nav-dropdown:hover .dropdown { display: block; }
.dropdown-menu { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 240px; box-shadow: var(--shadow-hover); }
.dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 8px; font-size: 14px; color: var(--text-secondary); }
.dropdown-menu a:hover { background: var(--bg-light); color: var(--brand-maroon); }
.dropdown-menu a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(122,46,46,0.4); flex-shrink: 0; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: 0.3s; }

/* Page Hero */
.page-hero { position: relative; overflow: hidden; padding: 140px 0 80px; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg .overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,26,46,0.9), rgba(26,26,46,0.6)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .label { display: inline-flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.page-hero .label::before { content: ''; width: 32px; height: 1px; background: rgba(255,255,255,0.4); }
.page-hero h1 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.5rem); color: white; line-height: 1.1; margin-bottom: 24px; max-width: 800px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 640px; line-height: 1.7; }
.page-hero .breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 32px; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
.page-hero .breadcrumbs a:hover { color: rgba(255,255,255,0.8); }

/* Home Hero */
.home-hero { padding: 120px 0 60px; background: linear-gradient(135deg, #fff 0%, #F7F8FA 100%); position: relative; }
.home-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.home-hero h1 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; color: var(--text-primary); margin-bottom: 24px; }
.home-hero .description { color: var(--text-secondary); font-size: 18px; line-height: 1.7; margin-bottom: 40px; max-width: 540px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: relative; }
.hero-image img { border-radius: 16px; box-shadow: var(--shadow-hover); width: 100%; }
.hero-image .float-card { position: absolute; background: white; border-radius: 12px; box-shadow: var(--shadow-hover); padding: 16px 20px; border: 1px solid var(--border-light); animation: float 6s ease-in-out infinite; }
.hero-image .float-card.top { top: -16px; right: -16px; }
.hero-image .float-card.bottom { bottom: -16px; left: -16px; animation-delay: 2s; }
.float-card-inner { display: flex; align-items: center; gap: 12px; }
.float-card .number { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--text-primary); }
.float-card .label-text { font-size: 12px; color: var(--text-muted); }

/* Stats Bar */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--border); }
.stat-item { text-align: center; }
.stat-number { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 2.5rem; color: var(--brand-maroon); margin-bottom: 4px; }
.stat-label { font-size: 14px; color: var(--text-muted); font-family: 'Sora', sans-serif; }

/* Section Styles */
.section { padding: 96px 0; }
.section-light { background: var(--bg-light); }
.section-white { background: white; }
.section-dark { background: var(--text-primary); color: white; }
.section-heading { text-align: center; margin-bottom: 64px; max-width: 768px; margin-left: auto; margin-right: auto; }
.section-heading h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--text-primary); margin: 16px 0; line-height: 1.2; }
.section-heading p { color: var(--text-secondary); font-size: 18px; line-height: 1.7; }

/* Service Card */
.service-card { display: flex; flex-direction: column; }
.service-card .card-image { height: 200px; overflow: hidden; }
.service-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.service-card:hover .card-image img { transform: scale(1.05); }
.service-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; margin-bottom: 8px; transition: color 0.3s; }
.service-card:hover h3 { color: var(--brand-maroon); }
.service-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; flex: 1; }
.service-card .learn-more { display: inline-flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; color: var(--brand-maroon); margin-top: 16px; opacity: 0; transition: opacity 0.3s; }
.service-card:hover .learn-more { opacity: 1; }

/* Industry Card */
.industry-card .card-image { height: 160px; overflow: hidden; position: relative; }
.industry-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.industry-card:hover .card-image img { transform: scale(1.05); }
.industry-card .card-image .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); }
.industry-card .card-body { padding: 20px; }
.industry-card h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.industry-card p { color: var(--text-muted); font-size: 14px; }

/* Case Study Card */
.cs-card .card-image { height: 200px; position: relative; overflow: hidden; }
.cs-card .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.cs-card:hover .card-image img { transform: scale(1.05); }
.cs-card .card-image .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); }
.cs-card .card-image .badge { position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,0.9); padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--brand-maroon); }
.cs-card .card-body { padding: 24px; }
.cs-card .tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cs-card h3 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; margin-bottom: 16px; line-height: 1.4; transition: color 0.3s; }
.cs-card:hover h3 { color: var(--brand-maroon); }
.cs-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-result { background: var(--bg-light); border-radius: 8px; padding: 12px; text-align: center; }
.cs-result .metric { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--brand-maroon); }
.cs-result .metric-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Tech Logo Grid */
.tech-logo-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-light); transition: all 0.3s; }
.tech-logo-item:hover { border-color: rgba(122,46,46,0.2); box-shadow: var(--shadow-card); }
.tech-logo-item img { width: 32px; height: 32px; object-fit: contain; opacity: 0.6; transition: opacity 0.3s; }
.tech-logo-item:hover img { opacity: 1; }
.tech-logo-item span { font-family: 'Sora', sans-serif; font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Tech Icon Badges - colored letter icons */
.tech-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -0.02em; flex-shrink: 0; transition: transform 0.3s ease; }
.tech-logo-item:hover .tech-icon, .tech-pill:hover .tech-icon { transform: scale(1.08); }

/* Tech Pill - used on service detail pages */
.tech-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 12px; background: white; border: 1px solid var(--border); transition: all 0.3s; }
.tech-pill:hover { border-color: rgba(122,46,46,0.3); box-shadow: var(--shadow-card); }
.tech-pill .tech-icon { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.tech-pill span { font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text-primary); font-weight: 500; }

/* Testimonials */
.testimonial-card { background: white; border-radius: 16px; padding: 48px 56px; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); position: relative; }
.testimonial-card .quote-mark { position: absolute; top: -8px; left: 40px; font-family: 'Sora', sans-serif; font-size: 80px; color: rgba(122,46,46,0.08); line-height: 1; }
.testimonial-card blockquote { font-size: 18px; line-height: 1.7; font-style: italic; color: var(--text-primary); margin-bottom: 32px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--brand-maroon); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; }
.testimonial-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; }
.testimonial-role { font-size: 14px; color: var(--text-muted); }
.testimonial-dots { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.testimonial-dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: #D1D5DB; cursor: pointer; transition: all 0.3s; }
.testimonial-dots button.active { background: var(--brand-maroon); width: 32px; border-radius: 12px; }

/* Footer */
.footer-cta { background: var(--bg-light); padding: 80px 0; text-align: center; }
.footer-cta h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.8rem); color: var(--text-primary); margin: 16px 0 16px; }
.footer-cta p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; }
.footer-cta .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-main { background: var(--text-primary); color: white; padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: #9CA3AF; font-size: 14px; line-height: 1.7; margin: 16px 0; }
.footer-brand .linkedin { display: inline-flex; align-items: center; gap: 8px; color: #9CA3AF; font-size: 14px; transition: color 0.3s; }
.footer-brand .linkedin:hover { color: white; }
.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col a { display: block; color: #9CA3AF; font-size: 14px; padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: white; }
.footer-col .email { color: var(--brand-light); margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: #6B7280; font-size: 12px; }
.footer-bottom a { color: #6B7280; font-size: 12px; transition: color 0.3s; margin-left: 24px; }
.footer-bottom a:hover { color: #9CA3AF; }

/* Contact Form */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-light); font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text-primary); transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: rgba(122,46,46,0.4); box-shadow: 0 0 0 3px rgba(122,46,46,0.08); }
.form-group textarea { resize: none; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Team Grid */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card { text-align: center; }
.team-card .photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: top; margin: 0 auto 16px; border: 4px solid white; box-shadow: var(--shadow-card); transition: transform 0.4s, box-shadow 0.4s; }
.team-card:hover .photo { transform: scale(1.05); box-shadow: var(--shadow-hover); }
.team-card .name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; color: var(--text-primary); margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--text-muted); }

@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team-card .photo { width: 140px; height: 140px; }
  [style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(3, 1fr) !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Blog Article */
article h2 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--text-primary); margin: 48px 0 16px; line-height: 1.3; }
article p { margin-bottom: 20px; color: var(--text-primary); }
article p:first-child { font-size: 1.1em; color: var(--text-secondary); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 8px; z-index: 100; backdrop-filter: blur(12px); }
  .nav.active { display: flex; }
  .nav a { font-size: 18px; padding: 12px 24px; }
  .nav-dropdown .dropdown { position: static; padding-top: 0; }
  .nav-dropdown:hover .dropdown { display: none; }
  .mobile-toggle { display: block; z-index: 101; }
  .header .btn-primary { display: none; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-hero h1 { font-size: 2rem; }
  .hero-image .float-card { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-number { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 64px 0; }
  .section-heading h2 { font-size: 1.6rem; }
  .page-hero { padding: 110px 0 48px; }
  .page-hero h1 { font-size: 1.8rem; }
  .testimonial-card { padding: 32px 24px; }
  .testimonial-card blockquote { font-size: 16px; }
  /* Fix service/industry/case study grid cards on mobile */
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns:1fr 2fr"],
  [style*="grid-template-columns: 2fr 3fr"],
  [style*="grid-template-columns:2fr 3fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Blog article */
  article { font-size: 16px !important; }
  article h2 { font-size: 1.4rem !important; }
}
