/* ============================================
   BOCHI CILACAP - CUSTOM STYLES
   ============================================ */

/* Sticky Navbar with Hide on Scroll Down */
.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease,
    box-shadow 0.3s ease !important;
  transform: translate3d(0, 0, 0) !important;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-header.nav-up {
  transform: translate3d(0, -100%, 0) !important;
  -webkit-transform: translate3d(0, -100%, 0) !important;
  box-shadow: none;
}

.main-header.nav-down {
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
}

body {
  padding-top: 80px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Navbar hover effects */
.desktop-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #6ab547;
  transition: width 0.3s ease, left 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
  left: 0;
}

.desktop-nav a:hover {
  color: #6ab547 !important;
}

/* Portfolio hover effects */
.portfolio_item {
  position: relative;
  overflow: hidden;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  border-radius: 8px;
}

.portfolio_item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio_item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
}

.portfolio_item:hover img {
  transform: scale(1.15);
}

.portfolio_item_hover {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio_item:hover .portfolio_item_hover {
  opacity: 1;
}

.portfolio_item_hover .item_info {
  animation: slideUp 0.5s ease-out;
}

/* Button hover effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.green:hover {
  background: #5a9f37;
}

.btn.white {
  transition: background 0.3s ease, color 0.3s ease;
}

/* Section title animation */
.section-title {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title span {
  transition: color 0.4s ease;
}

/* Card hover effects */
.white-section {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.white-section:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Social icons hover */
.social-icons a {
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-icons a::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ab547, #8bc34a);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-icons a:hover::before {
  opacity: 0.2;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.2) rotate(5deg);
  color: #6ab547;
}

/* Logo hover */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  transition: filter 0.3s ease;
}

.logo:hover img {
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(106, 181, 71, 0.3));
}

/* Portfolio filter hover */
.portfolio_filter a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 15px;
}

.portfolio_filter a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-10px);
}

.portfolio_filter a:hover {
  transform: translateX(8px);
  color: #6ab547;
  padding-left: 20px;
}

.portfolio_filter a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.portfolio_filter a.active {
  font-weight: bold;
  color: #6ab547;
}

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

/* Agency image hover */
.agency img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.agency img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Input focus effects */
.input_1 input[type="text"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input_1 input[type="text"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 181, 71, 0.2);
}

/* WhatsApp Link Hover Effects */
.whatsapp-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
}

.whatsapp-link:hover {
  color: #25d366 !important;
  transform: translateY(-2px);
}

.whatsapp-link:hover .whatsapp-icon {
  color: #25d366 !important;
  transform: scale(1.2);
}

.whatsapp-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.person-info:hover .whatsapp-icon {
  color: #25d366 !important;
  transform: scale(1.2);
}

.person-info:hover .whatsapp-link {
  color: #25d366 !important;
  transform: translateY(-2px);
}

/* Green section transition */
.green-section {
  transition: background-color 0.4s ease;
}

.main-footer {
  transition: background-color 0.4s ease;
}

/* Input styling */
input[type="text"] {
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Text transitions */
p {
  transition: color 0.4s ease;
}

/* Fix for text alignment */
.agency p {
  text-align: justify;
}

/* Input label positioning */
.input_1 {
  position: relative;
  margin-bottom: 10px;
}

.input_1 input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.input_1 input[type="text"]:focus {
  outline: none;
  border-color: #6ab547;
}

.input_1 span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all 0.3s ease;
  color: #999;
  font-size: 14px;
}

.input_1 input[type="text"]:focus + span,
.input_1 input[type="text"]:not(:placeholder-shown) + span {
  top: -10px;
  left: 10px;
  font-size: 11px;
  background: white;
  padding: 0 5px;
  color: #6ab547;
}

.green-section .row > div {
  margin-bottom: 20px;
}

/* Social icons layout */
.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-icons li {
  margin: 0 8px;
}

/* Footer layout */
.main-footer .row {
  margin-left: 0;
  margin-right: 0;
}

.main-footer .col-md-8,
.main-footer .col-md-4 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Portfolio grid */
.portfolio_container .col-md-4 {
  padding: 10px;
}

/* Newsletter input */
.newsletter-input {
  width: 100%;
}
