/* =========================================================
   3rd EyeSoft — Custom Styles
   ========================================================= */

:root {
  --brand: #745FAA;
  --brand-dark: #5B4A87;
  --brand-light: #9683C7;
  --brand-soft: #F2EFFA;
  --white: #FFFFFF;
  --ink: #1B1830;
  --ink-soft: #4A4762;
  --gray: #6C7280;
  --bg-alt: #FAF9FD;
  --border-soft: #E9E5F5;
  --shadow-sm: 0 4px 16px rgba(116, 95, 170, 0.08);
  --shadow-md: 0 12px 32px rgba(116, 95, 170, 0.14);
  --shadow-lg: 0 24px 48px rgba(27, 24, 48, 0.12);
  --radius: 16px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

::selection {
  background: var(--brand);
  color: var(--white);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-primary-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  padding: calc(0.75rem - 2px) 1.75rem;
  transition: all 0.25s ease;
}
.btn-outline-brand:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-3px);
}

/* =========================================================
   Navbar
   ========================================================= */
#mainNav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
#mainNav.scrolled {
  box-shadow: 0 4px 20px rgba(27, 24, 48, 0.06);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.55rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
}
.brand-text strong {
  color: var(--brand);
  font-weight: 700;
}

.nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--brand);
}

/* =========================================================
   Hero
   ========================================================= */
.hero-section {
  position: relative;
  padding: 9.5rem 0 6rem;
  overflow: hidden;
  background: var(--white);
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(116, 95, 170, 0.22) 0%, rgba(116, 95, 170, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-section .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 540px;
}

.hero-stats h3 {
  font-size: 1.8rem;
  margin-bottom: 0.15rem;
  color: var(--brand-dark);
}
.hero-stats p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* Hero visual mock */
.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}

.hero-card-main {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.badge-dot {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.badge-dot i { font-size: 0.5rem; }

.mock-bar {
  height: 10px;
  border-radius: 6px;
  background: var(--brand-soft);
  margin-bottom: 0.6rem;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 110px;
  margin-top: 1.5rem;
}
.mock-chart .bar {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--brand-light), var(--brand));
  animation: growUp 1.2s ease both;
}
@keyframes growUp {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.hero-card-float-1,
.hero-card-float-2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 1.4rem;
  color: var(--brand);
  animation: floatY 4s ease-in-out infinite;
}
.hero-card-float-1 { bottom: 40px; left: 0; }
.hero-card-float-2 { bottom: 0; right: 10px; animation-delay: 1.5s; }

.hero-card-float-1 div,
.hero-card-float-2 div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.hero-card-float-1 strong,
.hero-card-float-2 strong {
  font-size: 0.85rem;
  color: var(--ink);
  font-family: var(--font-body);
}
.hero-card-float-1 span,
.hero-card-float-2 span {
  font-size: 0.72rem;
  color: var(--gray);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 991.98px) {
  .hero-visual { min-height: 380px; margin-top: 2rem; }
}

/* =========================================================
   Sections — general
   ========================================================= */
.section {
  padding: 6rem 0;
}
.section-alt {
  background: var(--bg-alt);
}

.section-eyebrow {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-text {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.section-heading { margin-bottom: 3.5rem; }

/* =========================================================
   About — info cards
   ========================================================= */
.info-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.info-card h5 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.info-card p { font-size: 0.94rem; margin: 0; }

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* =========================================================
   Services
   ========================================================= */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-light);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.service-card h5 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.92rem; margin: 0; color: var(--gray); }

/* =========================================================
   Why choose us
   ========================================================= */
.why-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.why-card i {
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 0.85rem;
  display: inline-block;
}
.why-card h6 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-card p { font-size: 0.88rem; margin: 0; color: var(--gray); }

/* =========================================================
   Team
   ========================================================= */
.team-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.team-card h5 { margin-bottom: 0.15rem; font-size: 1.1rem; }
.team-role {
  display: block;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.team-card p { font-size: 0.92rem; color: var(--gray); margin-bottom: 1.25rem; }

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.team-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.team-social a:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-3px);
}

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.portfolio-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}
.thumb-1 { background: linear-gradient(135deg, #745FAA, #5B4A87); }
.thumb-2 { background: linear-gradient(135deg, #8E7BC0, #6B5799); }
.thumb-3 { background: linear-gradient(135deg, #9683C7, #745FAA); }
.thumb-4 { background: linear-gradient(135deg, #6B5799, #453869); }
.thumb-5 { background: linear-gradient(135deg, #A594D1, #7D69B5); }
.thumb-6 { background: linear-gradient(135deg, #5B4A87, #352B50); }

.portfolio-body { padding: 1.5rem; }
.portfolio-body .tag {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.portfolio-body h5 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.portfolio-body p { font-size: 0.9rem; color: var(--gray); margin: 0; }

/* =========================================================
   Technologies
   ========================================================= */
.tech-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  height: 100%;
}
.tech-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-md);
  color: var(--brand);
}
.tech-card i { font-size: 2.2rem; color: var(--brand); }
.tech-card span { font-weight: 600; color: var(--ink); font-size: 0.92rem; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.quote-icon {
  font-size: 2rem;
  color: var(--brand-light);
  margin-bottom: 0.75rem;
  display: block;
}
.testimonial-card p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--ink); }
.testimonial-author span { font-size: 0.82rem; color: var(--gray); }
.stars { color: #F5A623; font-size: 0.85rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-item i {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-info-item strong { display: block; color: var(--ink); font-size: 0.95rem; }
.contact-info-item span { font-size: 0.88rem; color: var(--gray); }

.map-placeholder {
  height: 180px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px dashed var(--brand-light);
}
.map-placeholder i { font-size: 1.8rem; }
.map-placeholder span { font-size: 0.85rem; font-weight: 600; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact-form .form-control {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: var(--bg-alt);
}
.contact-form .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(116, 95, 170, 0.15);
  background: var(--white);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: #C9C6DA;
  padding: 4.5rem 0 0;
}
.footer .brand-text { color: var(--white); }
.footer .brand-text strong { color: var(--brand-light); }
.footer-text {
  font-size: 0.92rem;
  color: #A6A2BF;
  max-width: 320px;
}
.footer-heading {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.footer-links li {
  margin-bottom: 0.75rem;
  color: #A6A2BF;
  display: flex;
  align-items: center;
}
.footer-links a {
  color: #A6A2BF;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-social a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.footer-social a:hover {
  background: var(--brand);
}
.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0 1.5rem;
}
.copyright {
  font-size: 0.85rem;
  color: #8B87A6;
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock-chart .bar,
  .hero-card-float-1,
  .hero-card-float-2 {
    animation: none !important;
  }
  .info-card:hover,
  .service-card:hover,
  .why-card:hover,
  .team-card:hover,
  .portfolio-card:hover,
  .tech-card:hover,
  .testimonial-card:hover,
  .btn-primary-brand:hover,
  .btn-outline-brand:hover {
    transform: none;
  }
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .hero-section { padding: 7.5rem 0 4rem; }
  .hero-stats { text-align: center; }
}
