/*
* Premium CSS for a visually stunning TBBC website
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;700&display=swap');

/* Variables */
:root {
    --primary-color: #2c3e50; /* Deep Blue-Gray */
    --secondary-color: #34495e; /* Lighter Blue-Gray */
    --accent-color: #d35400; /* Gold */
    --background-color: #ecf0f1; /* Soft Off-White */
    --text-color: #7f8c8d; /* Gray */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Lato', sans-serif;
}

/* Layout helpers */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.wraper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* Header */
.head {
    background-color: transparent;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s;
}

.head.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    height: 240px;
    width: auto;
    transition: height 0.3s;
}

.head.scrolled .logo img {
    height: 180px;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.head.scrolled .menu a {
    color: var(--primary-color);
}

.menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.menu a:hover:after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: transform 0.3s;
}

/* Main Content */
main {
    padding-top: 0;
}

/* Intro Section */
#intro {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    filter: blur(5px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: -1;
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

.hero-logo {
    max-width: 400px; /* Adjust as needed */
    margin-bottom: 30px;
    animation: fadeIn 1s ease-in-out 0.5s; /* Add animation with a delay */
}

.hero-content h1 {
    font-size: 80px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 24px;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-button {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Services Section */
#services {
    padding: 100px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s, transform 0.5s;
}

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

.service h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* FAQ Section */
#faq {
    padding: 100px 0;
    background-color: #ffffff;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h3 {
    color: var(--secondary-color);
    font-size: 24px;
}

/* Contact Section */
#contact {
    padding: 100px 0;
    text-align: center;
}

.social-links {
    margin-top: 30px;
    margin-bottom: 30px;
}

.social-links a {
    margin: 0 15px;
    font-size: 30px;
    color: var(--primary-color);
}

.social-links a:hover {
    color: var(--accent-color);
}

.map-container {
    width: 100%;
    height: 450px;
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .wraper {
        padding: 20px;
    }

    .head {
        padding: 10px 20px;
    }

    .logo img {
        height: 120px;
    }

    .head.scrolled .logo img {
        height: 90px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        margin: 10px 0;
        text-align: center;
    }

    .menu a {
        color: var(--primary-color);
    }

    .hamburger-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 18px;
    }

    #services,
    #faq,
    #contact {
        padding: 60px 0;
    }

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

    #hero-video {
        display: none;
    }

    #intro {
        background-color: var(--primary-color);
        background-image: none;
    }
}
