/* Apple-inspired design for HFB Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0071e3;
    --secondary-color: #86868b;
    --dark-gray: #1d1d1f;
    --light-gray: #f5f5f7;
    --text-color: #1d1d1f;
    --white: #ffffff;
    --section-spacing: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    font-weight: 400;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 56px;
    line-height: 1.07143;
}

h2 {
    font-size: 48px;
    line-height: 1.10722;
}

h3 {
    font-size: 28px;
    line-height: 1.14286;
    margin-bottom: 14px;
}

p {
    font-size: 17px;
    line-height: 1.47059;
}

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

a:hover {
    color: #2997ff;
}

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

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 66px; /* Increased by 50% from 44px */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 21px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    height: 66px; /* Increased by 50% from 44px */
}

.logo img {
    max-height: 45px; /* Increased by 50% from 30px */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-size: 12px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--dark-gray);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    max-width: 500px; /* Doubled from 250px to 500px */
    height: auto;
    /* No filter to ensure logo displays in original colors */
}

.hero-content h1 {
    margin-bottom: 10px;
}

.hero-content h2 {
    margin-bottom: 20px;
    font-weight: 400;
}

.tagline {
    font-size: 24px;
    font-weight: 300;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animated text container styles */
.animated-text-container {
    height: 120px; /* Fixed height to prevent layout shift during animation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.animated-text {
    min-height: 1.2em;
    position: relative;
    margin: 10px 0;
}

#animated-heading {
    font-size: 2.5rem;
    font-weight: 600;
}

#animated-tagline {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Services Section */
.services-section {
    padding: var(--section-spacing) 0;
    max-width: 980px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    padding: 0 40px;
}

.service-image {
    flex: 1;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: auto;
    max-width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 12px;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-container:hover {
    transform: scale(1.02);
}

/* Management Section */
.management-section {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
}

.team-container {
    display: flex;
    justify-content: center;
    max-width: 980px;
    margin: 0 auto;
    gap: 40px;
}

.team-member {
    text-align: center;
    flex: 1;
    max-width: 300px;
    margin-bottom: 2rem;
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgb(229, 229, 229);
    margin: 0 auto 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific styling for Frank Bauer's image */
.member-image img[src*="FrankBauer_transparent"] {
    background-color: rgb(229, 229, 229);
}

.member-slogan {
    margin-top: 1rem;
    font-style: italic;
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
    text-align: center;
}

.member-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.team-member h3 {
    margin-bottom: 5px;
}

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

.linkedin-link, .email-link {
    display: inline-block;
}

.linkedin-icon, .email-icon {
    fill: var(--secondary-color);
    transition: fill 0.3s ease;
}

.linkedin-link:hover .linkedin-icon, .email-link:hover .email-icon {
    fill: var(--primary-color);
}

/* About Section */
.about-section {
    padding: var(--section-spacing) 0;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.values {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    gap: 20px;
}

.value-item {
    flex: 1;
    padding: 30px 20px;
    background-color: var(--light-gray);
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
}

/* Contact Section */
.contact-section {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
}

.contact-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0077ed;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--secondary-color);
    padding: 30px 0;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 30px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.footer-links {
    margin-bottom: 20px;
    text-align: center;
}

.footer-links a {
    color: var(--secondary-color);
    margin: 0 15px;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-legal {
    font-size: 12px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 40px;
    align-items: flex-start;
}

.footer-column {
    text-align: left;
}

.footer-column.registration-info {
    flex: 1;
    text-align: left;
}

.footer-column.registration-info h3,
.footer-column.registration-info p,
.footer-column.registration-info a {
    text-align: left;
}

.footer-column.privacy-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
    text-align: right;
}

.footer-column.privacy-info div {
    width: 100%;
}

.footer-column.privacy-info p {
    text-align: right;
}

.footer-column.privacy-info h3 {
    text-align: right;
    color: var(--white);
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-column p {
    font-size: 12px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.footer-legal p {
    margin-bottom: 10px;
    font-size: 12px;
    text-align: center;
}

.footer-divider {
    margin: 15px auto;
    width: 50%;
    border: 0;
    height: 1px;
    background-color: var(--secondary-color);
    opacity: 0.5;
}

.footer-legal a {
    color: var(--secondary-color);
}

.footer-legal a:hover {
    color: var(--white);
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .service-item, .service-item.reverse {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .service-text {
        padding: 0 20px;
        margin-bottom: 30px;
        text-align: center;
    }

    .service-image {
        width: 100%;
        height: 300px;
    }

    .team-container {
        flex-direction: column;
        align-items: center;
    }

    .values {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        text-align: center;
        margin-bottom: 40px;
    }
}

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

.service-item, .team-member, .value-item, .contact-info, .contact-form {
    animation: fadeIn 1s ease-out;
}

/* Parallax Effect for Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

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

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

/* Hover down arrow */
#scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Add styles for scrolling customer logos */

/* Customers Section */
.customers-section {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
    overflow: hidden;
}

.logo-carousel-container {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
}

.logo-carousel {
    display: flex;
    width: auto;
    animation: scrollLogo 20s linear infinite;
    white-space: nowrap;
}

.logo-carousel a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    min-width: 180px;
    height: 80px;
    flex-shrink: 0;
}

.logo-carousel img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
    vertical-align: middle;
}

.logo-carousel a:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollLogo {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 6 - 60px * 6)); /* (Logo width + padding) * number of unique logos */
    }
}

/* Add hover pause effect */
.logo-carousel:hover {
    animation-play-state: paused;
}

/* Responsive adjustments for the customer carousel */
@media screen and (max-width: 768px) {
    .logo-carousel a {
        min-width: 150px;
        margin: 0 15px;
    }
    
    .logo-carousel img {
        max-height: 50px;
    }
}

/* Responsive Design */