/* Custom styles for BHocking Constructions */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --primary: #2a363b;
  --primary-dark: #1d282c;
  --secondary: #e84a5f;
  --secondary-light: #ff6b7d;
  --light: #f9f9f9;
  --light-gray: #f2f2f2;
  --dark: #1a1a1a;
  --accent: #ff847c;
  --accent-light: #ffb4a2;
  --neutral: #6c757d;
  --overlay: rgba(42, 54, 59, 0.85);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --bezier: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

.hero-image {
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(42, 54, 59, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
  z-index: 1;
}

.hero-text-animated {
  position: relative;
}

.hero-text-animated:after {
  display: none;
}

.scrolling-text-container {
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--overlay);
  padding: 15px 0;
}

.scrolling-text {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
  color: white;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.project-card {
  transition: all 0.4s var(--bezier);
  position: relative;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.project-card .project-image {
  overflow: hidden;
}

.project-card .project-image img {
  transition: transform 0.7s var(--bezier);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--primary) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--bezier);
}

.project-card:hover .project-overlay {
  opacity: 0.8;
}

.service-card {
  transition: all 0.3s var(--bezier);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.service-card:before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--secondary);
  transform: translateX(-100%);
  transition: transform 0.3s var(--bezier);
}

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

.service-card:hover:before {
  transform: translateX(0);
}

.service-icon {
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
  color: var(--secondary);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--bezier);
  position: relative;
}

.btn-primary:hover {
  background-color: var(--secondary);
  box-shadow: 0 5px 15px rgba(232, 74, 95, 0.3);
}

.btn-primary:before {
  display: none;
}

.header-border {
  position: relative;
}

.header-border:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  transition: width 0.3s var(--bezier);
}

.header-border:hover:after {
  width: 100px;
}

.gradient-overlay {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.testimonial-card {
  transition: all 0.3s var(--bezier);
  position: relative;
}

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

.testimonial-card:before {
  content: '❞';
  font-family: serif;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  color: var(--secondary);
  opacity: 0.1;
  line-height: 1;
}

.animated-icon {
  transition: all 0.3s ease;
}

.animated-icon:hover {
  transform: scale(1.2);
  color: var(--secondary);
}

.contact-form-input {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-form-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(232, 74, 95, 0.1);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.rotating-border {
  position: relative;
}

.rotating-border:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  border-radius: 6px;
}

.rotating-border:hover:before {
  border-color: var(--secondary);
  animation: border-rotation 2s linear infinite;
}

@keyframes border-rotation {
  0% {
    clip-path: inset(0 0 calc(100% - 2px) 0);
  }
  25% {
    clip-path: inset(0 0 0 calc(100% - 2px));
  }
  50% {
    clip-path: inset(calc(100% - 2px) 0 0 0);
  }
  75% {
    clip-path: inset(0 calc(100% - 2px) 0 0);
  }
  100% {
    clip-path: inset(0 0 calc(100% - 2px) 0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-image {
    height: 100vh;
  }
  
  .header-border:after {
    width: 40px;
  }
  
  .scrolling-text {
    font-size: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Fixed Background Effect */
.bg-fixed {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
} 