/*
Theme Name: BBCO
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: Custom WordPress theme for BBCO Law Firm
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbco
*/

/* Your CSS content goes here exactly as in your HTML file */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Roboto', sans-serif;
      color: #ffffff;
      line-height: 1.6;
      background-color: #101513;
    }

    h1, h2, h3, h4 {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      color: #ffffff;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .container {
      width: 90%;
      max-width: 1200px;
      margin: 0 auto;
    }

    .btn {
      display: inline-block;
      padding: 12px 30px;
      background-color: #d4af37;
      color: #101513;
      border-radius: 4px;
      font-weight: 500;
      transition: all 0.3s ease;
    }

    .btn:hover {
      background-color: #c9a227;
      transform: translateY(-2px);
    }

    /* Header */
    header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      padding: 0;
      transition: all 0.3s ease;
    }

    header.scrolled {
      background-color: rgba(16, 21, 19, 0.95);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      padding: 5px 0;
      position: fixed;
    }

    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
    }

    .logo img {
      height: 220px;
      display: block;
    }

    header.scrolled .logo img {
      height: 36px;
    }

    nav ul {
      display: flex;
      list-style: none;
    }

    nav ul li {
      margin-left: 30px;
    }

    nav ul li a {
      color: white;
      font-weight: 500;
      position: relative;
      padding-bottom: 5px;
    }

    header.scrolled nav ul li a {
      color: #ffffff;
    }

    nav ul li a:after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      background-color: #d4af37;
      bottom: 0;
      left: 0;
      transition: width 0.3s ease;
    }

    nav ul li a:hover:after {
      width: 100%;
    }

    .menu-toggle {
      display: none;
      cursor: pointer;
      color: white;
      font-size: 24px;
    }

    header.scrolled .menu-toggle {
      color: #ffffff;
    }

    /* Responsive */
    @media (max-width: 992px) {
      nav ul {
        display: none;
      }

      .menu-toggle {
        display: block;
      }
    }

    /* Hero Slider Styles */
    .hero-slider {
      width: 100%;
      height: 100vh;
      min-height: 600px;
    }

    .swiper-slide {
      position: relative;
      overflow: hidden;
    }

    .slide-bg {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .slide-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
    }

    .slide-content {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: white;
      max-width: 800px;
      padding: 0 5%;
    }

    .slide-content h1 {
      font-size: 48px;
      margin-bottom: 20px;
      line-height: 1.2;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }

    .slide-content p {
      font-size: 18px;
      margin-bottom: 30px;
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.12s ease 0.2s;
    }

    .slide-content .btn {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.12s ease 0.4s;
    }

    .swiper-slide-active .slide-content h1,
    .swiper-slide-active .slide-content p,
    .swiper-slide-active .slide-content .btn {
      opacity: 1;
      transform: translateY(0);
    }

    .swiper-button-next,
    .swiper-button-prev {
      color: white;
      width: 50px;
      height: 50px;
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transition: all 0.3s ease;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
      background-color: rgba(255, 255, 255, 0.4);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
      font-size: 20px;
    }

    .swiper-pagination-bullet {
      width: 12px;
      height: 12px;
      background-color: white;
      opacity: 0.6;
    }

    .swiper-pagination-bullet-active {
      opacity: 1;
      background-color: #d4af37;
    }

    @keyframes zoomIn {
      0% {
        transform: scale(1);
      }
      100% {
        transform: scale(1.1);
      }
    }

    .swiper-slide-active .slide-bg {
      animation: zoomIn 12s ease-in-out forwards;
    }

    

    #preloader .loader img {
      height: 450px;
      animation: fadeInOut 2s infinite ease-in-out;
    }

    @keyframes fadeInOut {
      0%, 100% {
        opacity: 0.4;
        transform: scale(0.95);
      }
      50% {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* Sections */
    section {
      padding: 80px 0;
      background-color: #101513;
      color: #ffffff;
    }

    .section-title {
      text-align: center;
      margin-bottom: 60px;
      position: relative;
    }

    .section-title h2 {
      font-size: 36px;
      margin-bottom: 15px;
    }

    .section-title:after {
      content: '';
      display: block;
      width: 80px;
      height: 3px;
      background-color: #d4af37;
      margin: 0 auto;
    }

    /* About Section */
    .about-content {
      display: flex;
      align-items: center;
      gap: 50px;
    }

    .about-img {
      flex: 1;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 15px 30px rgba(0,0,0,0.3);
      transform: translateX(-50px);
      opacity: 0;
      transition: all 0.6s ease-out;
    }

    .about-img img {
      width: 100%;
      height: auto;
      display: block;
    }

    .about-text {
      flex: 1;
      transform: translateX(50px);
      opacity: 0;
      transition: all 0.6s ease-out;
    }

    .about-text p {
      margin-bottom: 20px;
      font-size: 16px;
    }

    /* Practice Areas Section */
    .practice-areas {
      background-color: #0c100e;
    }

    .areas-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    .area-card {
      background-color: #101513;
      border: 1px solid #1a211e;
      border-radius: 8px;
      padding: 30px;
      transition: all 0.3s ease;
    }

    .area-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.3);
      border-color: #d4af37;
    }

    .area-card i {
      font-size: 40px;
      color: #d4af37;
      margin-bottom: 20px;
    }

    .area-card h3 {
      font-size: 22px;
      margin-bottom: 15px;
    }

    /* Attorneys Section */
    .attorneys-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
    }

    .attorney-card {
      background-color: #0c100e;
      border-radius: 8px;
      overflow: hidden;
      text-align: center;
      transition: all 0.3s ease;
    }

    .attorney-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    }

    .attorney-img {
      width: 100%;
      height: 300px;
      object-fit: cover;
    }

    .attorney-info {
      padding: 25px;
    }

    .attorney-info h3 {
      margin-bottom: 5px;
    }

    .attorney-info p.position {
      color: #d4af37;
      margin-bottom: 15px;
      font-style: italic;
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 15px;
    }

    .social-links a {
      color: #ffffff;
      transition: all 0.3s ease;
    }

    .social-links a:hover {
      color: #d4af37;
    }

    /* Animated State */
    .about-img.animated, 
    .about-text.animated,
    .area-card.animated,
    .attorney-card.animated {
      transform: translateX(0);
      opacity: 1;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .about-content {
        flex-direction: column;
      }
      .about-img, 
      .about-text {
        flex: none;
        width: 100%;
      }
      .about-img {
        margin-bottom: 30px;
      }
      
      .section-title h2 {
        font-size: 28px;
      }
    }
    
    #preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #101513;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

