/* ========================================
   PINTEREST MASONRY DESIGN - Modern Tech Startup
   ======================================== */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #3498db;
  --secondary-color: #f1c40f;
  --dark-color: #1a1d23;
  --light-color: #f9f9f9;
  --text-color: #2c3e50;
  --muted-color: #95a5a6;
  --white: #ffffff;
  --accent-color: #e74c3c;
  --bg-color: #ecf0f1;
  --border-radius: 13px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 22px rgba(0,0,0,0.15);
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

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

.container-fluid {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 13px;
}

/* === NAVBAR === */
.navbar {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
  padding: 1rem 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

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

.site-name {
  color: var(--white);
  font-size: 1.3rem;
}

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.dropdown-menu {
  background: var(--dark-color);
  border: none;
  box-shadow: var(--shadow-hover);
}

.dropdown-item {
  color: rgba(255,255,255,0.85);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(59,130,246,0.2);
  color: var(--white);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59,130,246,0.3);
}

/* === MASONRY GRID LAYOUT === */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  grid-auto-flow: dense;
}

.masonry-item {
  break-inside: avoid;
  position: relative;
}

/* Card Height Variations - CRITICAL FOR MASONRY */
.card-height-sm {
  grid-row: span 1;
}

.card-height-md {
  grid-row: span 2;
}

.card-height-lg {
  grid-row: span 3;
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
  padding: 82px 0;
  color: var(--white);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cta .btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
}

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

.hero-features {
  color: rgba(255,255,255,0.9);
}

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

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

.hero-image-wrapper img {
  border-radius: var(--border-radius);
}

.floating-card {
  position: absolute;
  bottom: 20px;
  right: 21px;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  animation: float 3s ease-in-out infinite;
}

.floating-card::before {
  position: absolute;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === SECTION STYLES === */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
}

section {
  padding: 80px 0;
}

/* === FEATURE CARDS === */
.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 57px;
  height: 57px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.code-snippet {
  background: var(--dark-color);
  padding: 1rem;
  border-radius: 8px;
  color: var(--secondary-color);
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  font-size: 0.9rem;
}

/* === SERVICE CARDS === */
.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-icon {
  width: 47px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  position: absolute;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-color);
  line-height: 1.8;
}

.testimonial-avatar {
  width: 63px;
  height: 63px;
  border-radius: 50%;
  object-fit: cover;
}

/* === TEAM CARDS === */
.team-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.team-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-content {
  padding: 1.5rem;
}

.team-social {
  display: flex;
  gap: 0.5rem;
}

.team-social-link {
  width: 37px;
  height: 33px;
  background: var(--light-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.team-social-link:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* === STAT CARDS === */
.stat-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* === PRICING CARDS === */
.pricing-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.pricing-featured {
  border: 3px solid var(--primary-color);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 19px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 21px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-price {
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 1rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
}

.price-period {
  color: var(--muted-color);
  font-size: 1rem;
}

.pricing-features li {
  padding: 0.5rem 0;
}

/* === INTEGRATION CARDS === */
.integration-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}

.integration-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.integration-logo {
  font-size: 3.5rem;
  color: var(--primary-color);
}

/* === FAQ SECTION === */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-button {
  background: var(--white);
  color: var(--text-color);
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  border: none;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--white);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background: var(--light-color);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
  padding: 101px 0;
}

.cta-card {
  color: var(--white);
}

.cta-card h2 {
  color: var(--white);
  font-weight: 800;
}

.cta-buttons .btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
}

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

/* === FOOTER === */
.footer-dark {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
  color: rgba(255,255,255,0.8);
}

.footer-brand {
  color: var(--white) !important;
  font-size: 1.3rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

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

/* === BLOG CARDS === */
.blog-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted-color);
}

/* === CASE STUDY CARDS === */
.case-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.case-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.case-content {
  padding: 2rem;
}

.case-tag {
  display: inline-block;
  background: var(--light-color);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 21px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* === CONTACT SECTION === */
.contact-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  align-items-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 52px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(59,130,246,0.25);
}

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1e293b 100%);
  padding: 103px 0 58px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.breadcrumb {
  background: transparent;
  justify-content: center;
}

.breadcrumb-item {
  color: rgba(255,255,255,0.7);
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

.breadcrumb-item a {
  color: var(--white);
}

/* === CONTENT PAGE === */
.content-section {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.content-section h2 {
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.content-section ul, .content-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .floating-card {
    position: static;
    margin-top: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* === UTILITIES === */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

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

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