/* JKreasi Custom CSS */

/* Smooth Scroll Fallback */
html {
  scroll-behavior: smooth;
}

/* Global Font Family Settings */
*:not([class*="fa-"]):not([class*="fab"]):not([class*="fas"]):not([class*="far"]):not([class*="fal"]):not([class*="icon-"]) {
  font-family: "Poppins", Arial, sans-serif !important;
}

body {
  font-family: "Poppins", Arial, sans-serif !important;
}

/* Error Prevention */
.smoothScroll {
  overflow-x: auto;
  overflow-y: hidden;
}

@media (max-width: 1199px) {
  .smoothScroll {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", Arial, sans-serif !important;
}

p, span, div, a, li, ul, ol {
  font-family: "Poppins", Arial, sans-serif !important;
}

input, textarea, select, button {
  font-family: "Poppins", Arial, sans-serif !important;
}

.btn, .form-control, .nav-link {
  font-family: "Poppins", Arial, sans-serif !important;
}

/* Custom overrides for JKreasi branding */
:root {
  --jkreasi-primary: #1E90FF;
  --jkreasi-primary-dark: #0066CC;
  --jkreasi-primary-darker: #003399;
}

/* Ensure all primary color references use JKreasi blue */
.bg-primary,
.btn-primary,
.text-primary,
.text-color-primary {
  --primary: var(--jkreasi-primary) !important;
}

/* Hover effects */
.text-color-hover-primary:hover {
  color: var(--jkreasi-primary-dark) !important;
}

/* Navigation active states */
.nav-pills .nav-link.active {
  background-color: var(--jkreasi-primary);
}

/* Custom arrow button in header */
.btn-circle {
  border-radius: 50% !important;
}

/* Ensure Font Awesome icons display correctly */
[class^="fa-"], [class*=" fa-"],
[class^="fab"], [class*=" fab"],
[class^="fas"], [class*=" fas"],
[class^="far"], [class*=" far"],
[class^="fal"], [class*=" fal"] {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  display: inline-block;
}

.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Simple Line Icons */
[class^="icon-"], [class*=" icon-"] {
  font-family: "simple-line-icons" !important;
}

/* Ensure icons are visible */
i[class^="fa-"], i[class*=" fa-"],
i[class^="fab"], i[class*=" fab"],
i[class^="fas"], i[class*=" fas"],
i[class^="far"], i[class*=" far"],
i[class^="fal"], i[class*=" fal"],
i[class^="icon-"], i[class*=" icon-"] {
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Force Font Awesome fonts to load correctly */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../vendor/fontawesome-free/webfonts/fa-solid-900.woff2") format("woff2"),
       url("../vendor/fontawesome-free/webfonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../vendor/fontawesome-free/webfonts/fa-brands-400.woff2") format("woff2"),
       url("../vendor/fontawesome-free/webfonts/fa-brands-400.ttf") format("truetype");
}

/* Team Card Styles */
.team-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef !important;
  background-color: #ffffff !important;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.team-avatar {
  transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.hover-shadow {
  transition: box-shadow 0.3s ease;
}

.online-indicator {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.team-name {
  font-family: "Poppins", Arial, sans-serif !important;
  font-weight: 600 !important;
  color: #333 !important;
}

.team-role {
  font-family: "Poppins", Arial, sans-serif !important;
  color: #6c757d !important;
}

.team-skills .badge {
  font-family: "Poppins", Arial, sans-serif !important;
  margin: 2px;
  font-size: 0.65rem !important;
}

.team-skills .bg-primary {
  background-color: var(--jkreasi-primary) !important;
}

.team-skills .bg-secondary {
  background-color: #6c757d !important;
}

/* Team Box Carousel Styles - 3 Items Default */
.team-carousel-container {
  position: relative;
  padding: 0 60px;
  margin-bottom: 40px;
}

/* Team Grid Layout */
.team-grid-container {
  padding: 20px 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Team Grid Row */
.team-grid-container .row {
  margin: 0 !important;
  width: 100%;
  max-width: 550px;
}

/* Remove Bootstrap column padding */
.team-grid-container .col-4 {
  padding: 0 !important;
}

.team-box-card {
  transition: all 0.3s ease;
  border: none !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  border-radius: 0 !important;
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.team-box-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.team-photo-container {
  overflow: hidden;
  position: relative;
  height: 120px;
  flex-shrink: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.team-box-photo {
  transition: transform 0.3s ease;
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block;
}

.team-box-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.team-box-card:hover .team-box-photo {
  transform: scale(1.03);
}

.team-box-content {
  background: #ffffff !important;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 2px !important;
  flex-grow: 1;
  text-align: center;
  margin: 0 !important;
}

.team-box-name {
  font-family: "Poppins", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  color: #333 !important;
  letter-spacing: 0.2px;
  line-height: 1.1;
  margin-bottom: 3px !important;
  text-transform: uppercase;
}

.team-box-position {
  font-family: "Poppins", Arial, sans-serif !important;
  font-weight: 400 !important;
  color: #1E90FF !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.1px;
  margin-bottom: 0 !important;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Team Grid Responsive */
@media (max-width: 991px) {
  .team-grid-container {
    padding: 15px 25px;
  }
  
  .team-grid-container .row {
    max-width: 480px;
  }
  
  .team-box-card {
    height: 160px;
    margin: 0 !important;
  }
  
  .team-photo-container {
    height: 100px;
  }
  
  .team-box-photo {
    height: 100px !important;
  }
  
  .team-box-content {
    height: 60px;
    padding: 4px 2px !important;
  }
  
  .team-box-name {
    font-size: 0.7rem !important;
  }
  
  .team-box-position {
    font-size: 0.55rem !important;
  }
}

@media (max-width: 767px) {
  .team-grid-container {
    padding: 10px 20px;
  }
  
  .team-grid-container .row {
    max-width: 350px;
  }
  
  .team-box-card {
    height: 140px;
    margin: 0 !important;
  }
  
  .team-photo-container {
    height: 85px;
  }
  
  .team-box-photo {
    height: 85px !important;
  }
  
  .team-box-content {
    height: 55px;
    padding: 3px 1px !important;
  }
  
  .team-box-name {
    font-size: 0.65rem !important;
  }
  
  .team-box-position {
    font-size: 0.5rem !important;
  }
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .team-carousel-wrapper {
    padding: 0 30px 35px 30px;
  }
  
  .team-carousel-container {
    max-width: 650px;
  }
  
  .team-box-card {
    width: 190px !important;
    max-width: 190px !important;
    height: 200px;
  }
  
  .team-photo-container {
    height: 120px;
  }
  
  .team-box-photo {
    height: 120px !important;
  }
  
  .team-box-content {
    height: 80px;
  }
}

@media (max-width: 991px) {
  .team-box-carousel .owl-nav {
    display: none !important;
  }
  
  .team-carousel-wrapper {
    padding: 0 20px 35px 20px;
  }
  
  .team-carousel-container {
    max-width: 440px;
  }
  
  .team-box-card {
    width: 200px !important;
    max-width: 200px !important;
    height: 180px;
  }
  
  .team-photo-container {
    height: 110px;
  }
  
  .team-box-photo {
    height: 110px !important;
  }
  
  .team-box-content {
    height: 70px;
    padding: 6px 4px !important;
  }
  
  .team-box-name {
    font-size: 0.7rem !important;
  }
  
  .team-box-position {
    font-size: 0.55rem !important;
  }
}

@media (max-width: 767px) {
  .team-carousel-wrapper {
    padding: 0 15px 35px 15px;
  }
  
  .team-carousel-container {
    max-width: 280px;
  }
  
  .team-box-card {
    max-width: 260px;
    height: 200px;
    margin: 0 auto 10px auto;
  }
  
  .team-photo-container {
    height: 120px;
  }
  
  .team-box-photo {
    height: 120px !important;
  }
  
  .team-box-content {
    height: 80px;
    padding: 6px 4px !important;
  }
  
  .team-box-name {
    font-size: 0.7rem !important;
    margin-bottom: 2px !important;
  }
  
  .team-box-position {
    font-size: 0.55rem !important;
  }
}

@media (max-width: 479px) {
  .team-carousel-container {
    max-width: 240px;
  }
  
  .team-box-card {
    max-width: 220px;
    height: 180px;
  }
  
  .team-photo-container {
    height: 100px;
  }
  
  .team-box-photo {
    height: 100px !important;
  }
  
  .team-box-content {
    height: 80px;
    padding: 5px 3px !important;
  }
  
  .team-box-name {
    font-size: 0.65rem !important;
  }
  
  .team-box-position {
    font-size: 0.5rem !important;
  }
}

/* Client Logos Grid - Seamless Design */
.client-logos-seamless-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.client-logo-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0;
    background: #ffffff;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.client-logo-grid-item:hover {
    transform: scale(1.02);
    background: #f8f9fa;
    z-index: 1;
}

.client-logo-grid {
    max-height: 80px;
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.client-logo-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive adjustments for client logos grid */
@media (max-width: 1199px) {
    .client-logo-grid {
        max-height: 70px;
        max-width: 70px;
    }
    
    .client-logo-grid-item {
        padding: 12px;
    }
    
    .client-logos-seamless-grid {
        gap: 1.5px;
    }
}

@media (max-width: 991px) {
    .client-logo-grid {
        max-height: 60px;
        max-width: 60px;
    }
    
    .client-logo-grid-item {
        padding: 10px;
    }
    
    .client-logos-seamless-grid {
        gap: 1px;
    }
}

@media (max-width: 767px) {
    .client-logo-grid {
        max-height: 50px;
        max-width: 50px;
    }
    
    .client-logo-grid-item {
        padding: 8px;
    }
    
    .client-logos-seamless-grid {
        gap: 1px;
        border-radius: 6px;
    }
}

/* Portfolio Seamless Layout - Enhanced */
.portfolio-column {
  background: #f8f9fa !important;
  border-right: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.seamless-container {
  gap: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.portfolio-item-seamless {
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  height: 100% !important;
}

.portfolio-item-seamless .thumb-info-wrapper {
  border-radius: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  position: relative;
  box-shadow: none !important;
  border: none !important;
}

.portfolio-img-seamless {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  box-shadow: none !important;
  border: none !important;
}

.portfolio-item-link {
  display: block;
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* Specific height control for equal distribution */
.seamless-container .portfolio-item-link:first-child {
  flex: 1 1 33.333% !important;
  min-height: calc(33.333% - 0.5px);
}

.seamless-container .portfolio-item-link:nth-child(2) {
  flex: 1 1 33.333% !important;
  min-height: calc(33.333% - 0.5px);
}

.seamless-container .portfolio-item-link:nth-child(3) {
  flex: 1 1 33.333% !important;
  min-height: calc(33.333% - 0.5px);
}

/* For columns with only 2 items */
.seamless-container:not(:has(.portfolio-item-link:nth-child(3))) .portfolio-item-link {
  flex: 1 1 50% !important;
  min-height: calc(50% - 0.5px);
}

/* Remove any default margins and paddings */
.portfolio-column .d-flex.flex-column {
  margin: 0 !important;
  padding: 0 !important;
}

.portfolio-column .thumb-info {
  margin: 0 !important;
  border-radius: 0 !important;
  height: 100% !important;
}

/* Ensure full height coverage */
.portfolio-column .h-100 {
  height: 100% !important;
}

.portfolio-column .w-100 {
  width: 100% !important;
}

/* Remove any box shadows and borders */
.portfolio-item-seamless,
.portfolio-item-seamless .thumb-info-wrapper,
.portfolio-img-seamless,
.portfolio-item-link {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

/* Custom border right for better separation between columns */
.portfolio-column:not(:last-child) {
  border-right: 1px solid #ffffff !important;
}

/* Hover effects for seamless portfolio */
.portfolio-item-link:hover .portfolio-img-seamless {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

.portfolio-item-link {
  transition: all 0.3s ease;
}

.portfolio-item-link:hover {
  opacity: 0.95;
}

/* Ensure consistent aspect ratio and proportions */
.portfolio-item-link .thumb-info-wrapper {
  aspect-ratio: auto !important;
  height: 100% !important;
}

.portfolio-item-link .portfolio-item-seamless {
  height: 100% !important;
}

/* Better gap control */
.seamless-container {
  justify-content: space-between !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .portfolio-column {
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  
  .seamless-container {
    gap: 2px !important;
  }
  
  .portfolio-item-link {
    min-height: 180px !important;
    flex: none !important;
  }
  
  .portfolio-column:not(:last-child) {
    border-right: none !important;
    border-bottom: 1px solid #ffffff !important;
  }
}

/* Tablet responsive */
@media (max-width: 991px) and (min-width: 769px) {
  .seamless-container {
    gap: 1px !important;
  }
  
  .portfolio-column:not(:last-child) {
    border-right: 1px solid #ffffff !important;
  }
}

/* Services Section Seamless Layout */
.services-section {
  background: linear-gradient(135deg, #1E90FF 0%, #0066CC 100%) !important;
}

.services-header {
  border-right: 1px solid rgba(255,255,255,0.1) !important;
  padding: 0 !important;
}

.services-column {
  border-right: 1px solid rgba(255,255,255,0.1) !important;
  padding: 0 !important;
  position: relative;
}

.services-column:last-child {
  border-right: none !important;
}

.services-column .px-4 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.services-header .px-4 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Equal height and spacing */
.services-section .vw-xl-25 {
  min-height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.services-section .px-4.py-5 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  height: 100% !important;
}

.services-section .w-100 {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Ensure perfect vertical centering */
.services-section .d-xl-flex {
  align-items: center !important;
}

.services-header .w-100,
.services-column .w-100 {
  min-height: 0 !important;
}

/* Typography consistency */
.services-section h4 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.services-section p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

/* Services Table Layout */
.services-table {
  width: 100%;
  margin-top: 1rem;
}

.services-row {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.services-row:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 0.5rem;
}

.services-row:last-child {
  border-bottom: none;
}

.services-item {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 1.5rem;
}

.services-item:before {
  content: '▸';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* Seamless borders and spacing */
.services-section .services-column::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255,255,255,0.1) 20%, 
    rgba(255,255,255,0.1) 80%, 
    transparent 100%);
}

.services-section .services-column:last-child::before {
  display: none;
}

/* Hover effects for services */
.services-column {
  transition: all 0.3s ease;
}

.services-column:hover {
  background: rgba(255,255,255,0.05);
}

/* Responsive services layout */
@media (max-width: 1200px) {
  .services-item {
    font-size: 0.85rem;
  }
  
  .services-row {
    padding: 0.7rem 0;
  }
}

@media (max-width: 768px) {
  .services-section .vw-xl-25 {
    width: 100% !important;
    min-height: auto !important;
    padding: 2rem 0 !important;
  }
  
  .services-column {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }
  
  .services-item {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .services-row {
    padding: 0.6rem 0;
  }
  
  .services-row:hover {
    padding-left: 0.3rem;
  }
  
  .services-column:last-child {
    border-bottom: none !important;
  }
  
  .services-column::before {
    display: none !important;
  }
  
  .services-header {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }
  
  .services-section .px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  .services-section .px-4 {
    padding-left: 1.8rem !important;
    padding-right: 1.8rem !important;
  }
}

/* Tim Kami Title Style */
h2.text-primary {
  color: var(--jkreasi-primary) !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

/* Responsive Team Box Carousel - 3 Items Default */
@media (max-width: 991px) {
  .team-carousel-container {
    max-width: 600px;
    padding: 0 50px;
  }
  
  .team-box-carousel .owl-nav {
    width: calc(100% + 100px);
    left: -50px;
  }
  
  .team-box-card {
    max-width: 240px;
  }
  
  .team-box-name {
    font-size: 0.9rem !important;
  }
  
  .team-box-position {
    font-size: 0.7rem !important;
  }
  
  .team-box-photo {
    height: 200px !important;
  }
}

@media (max-width: 768px) {
  .team-carousel-container {
    max-width: 320px;
    padding: 0 30px;
  }
  
  .team-box-carousel .owl-nav button.owl-prev,
  .team-box-carousel .owl-nav button.owl-next {
    display: none !important;
  }
  
  .team-box-carousel .owl-nav {
    display: none;
  }
  
  .team-box-photo {
    height: 240px !important;
  }
  
  .team-box-card {
    max-width: 260px;
  }
  
  .team-box-name {
    font-size: 0.95rem !important;
  }
  
  .team-box-position {
    font-size: 0.75rem !important;
  }
}

/* Responsive team grid adjustments */
@media (max-width: 991px) {
  .team-card {
    margin-bottom: 1rem;
  }
  
  .team-avatar img {
    width: 60px !important;
    height: 60px !important;
  }
  
  .team-name {
    font-size: 10px !important;
  }
  
  .team-role {
    font-size: 8px !important;
  }
  
  .team-skills .badge {
    font-size: 6px !important;
  }
}
