/* Custom CSS Variables for Colors */
:root {
    --primary-brand-color: #2C3E50;
    --primary-brand-color-darker: #212F3C; 
    --accent-color-1: #FFB270;
    --accent-color-2: #E8A29A;
    --accent-color-text: #C8742A; 
    --body-text-color: #4A4A4A;
    --light-text-color: #777777;
    --background-color: #F9F9F9;
    --white-color: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --standard-border-radius: 12px;
}

/* Universal Box-Sizing & Basic Reset */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Base Body Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--body-text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: 100px; 
}

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 0 30px; }

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--light-text-color); 
}
.hero-content-container {
    text-align: center;
}

main section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}
main section:last-of-type { border-bottom: none; } 
main section#home { padding: 0; border-bottom: none; }
main section.contact-form-section { 
    background-color: var(--white-color); 
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Images */
.content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 3px 8px var(--shadow-light);
}

/* Headings */
h1, .hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 3.0em; color: var(--white-color); margin-bottom: 0.5em; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.25); min-height: 90px; }
h2, h3 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    color: var(--primary-brand-color); 
    margin-bottom: 1.5em; 
    text-align: center; 
} 
h2 { font-size: 2.5em; }
h3 { font-size: 2em; margin-bottom: 1.2em; line-height: 1.4; } 
h4 { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.25em; color: var(--primary-brand-color); margin-bottom: 0.7em; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--primary-brand-color); }

/* Buttons */
.button { display: inline-block; background-image: linear-gradient(to bottom, var(--accent-color-1), #E89250); color: var(--white-color) !important; padding: 14px 30px; border-radius: 8px; transition: all 0.3s ease; font-weight: 600; text-transform: uppercase; font-size: 1em; margin-top: 20px; border: none; box-shadow: 0 4px 15px rgba(255,178,112, 0.25); }
.button:hover { background-image: linear-gradient(to bottom, #FFBF80, var(--accent-color-1)); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,178,112, 0.35); cursor: pointer; }

/* Links */
a {
    color: var(--accent-color-text);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-color-2);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 30px; box-shadow: 0 1px 3px var(--shadow-light);
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: 100px; 
}

.logo { display: flex; align-items: center; }
.logo img.animated-logo { 
    height: 60px; width: auto; display: block; 
    animation: pulseLogo 3.5s infinite ease-in-out; 
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.logo a:hover img.animated-logo {
    transform: scale(1.12) rotate(-3deg); 
    animation-play-state: paused; 
}

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 40px; }
nav ul li a {
    color: var(--primary-brand-color); font-weight: 600; font-size: 1.1em;
    padding: 38px 0; border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
nav ul li a:hover { color: var(--accent-color-1); }
nav ul li a.active-nav-link {
    color: var(--accent-color-1); font-weight: 700; border-bottom-color: var(--accent-color-1);
}

/* Hero Section */
.hero.hero-background {
    position: relative; display: flex; justify-content: center; align-items: center;
    text-align: center; min-height: calc(100vh - 100px); padding: 40px;
    background-size: cover; background-position: center center;
    transition: background-image 1.5s ease-in-out;
}
.hero.hero-background::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.45); z-index: 1;
}
.hero.hero-background > * { position: relative; z-index: 2; }
.hero .subheadline {
    font-size: 1.4em; margin-bottom: 1.5rem; color: rgba(255, 255, 255, 0.9); max-width: 800px;
}

/* Grids & Cards */
.services-grid, .values-grid, .industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card, .value-card, .industry-card { background-color: var(--white-color); padding: 35px; border-radius: var(--standard-border-radius); box-shadow: 0 6px 15px var(--shadow-light); text-align: center; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.service-card:hover, .value-card:hover, .industry-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px var(--shadow-medium); }
.service-card p, .value-card p, .industry-card p { color: var(--light-text-color); margin-bottom: 0; }

/* Icons */
.service-card i, .value-card i, .industry-card i { 
    font-size: 2.8rem; 
    color: var(--accent-color-1); 
    margin-bottom: 1.5rem; 
    display: inline-block;
    transition: transform 0.4s ease; 
    width: 45px;
    height: 45px;
    line-height: 45px;
}
.service-card:hover i, .value-card:hover i, .industry-card:hover i { transform: scale(1.1); }

/* Service Categories */
.service-category { margin-bottom: 4rem; }
.service-category:last-of-type { margin-bottom: 0; }
.service-category > p { text-align: center; max-width: 90%; margin-left: auto; margin-right: auto; }
.service-category .services-grid { margin-top: 2rem; }

/* CTA Section */
.cta-services {
    color: var(--white-color); padding: 60px 50px; border-radius: var(--standard-border-radius);
    text-align: center; margin-top: 4rem; position: relative; overflow: hidden;
    background: url('images/services-header.jpg') no-repeat center center/cover;
    z-index: 1;
}
.cta-services > * {
    position: relative;
    z-index: 2;
}
.cta-services::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 62, 80, 0.75); z-index: -1;
    transition: background-color 0.3s ease;
}
.cta-services:hover::before {
    background-color: rgba(44, 62, 80, 0.65);
}
.cta-services h2 { color: var(--white-color); margin-bottom: 0.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.cta-services p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 1.5rem auto; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* Industries Section Background */
#industries {
    position: relative;
    background: url('images/industries-header.jpg') no-repeat center center/cover;
    z-index: 1;
}
#industries::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 62, 80, 0.85); z-index: -1;
}
#industries h2, #industries .section-intro {
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#industries .industry-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
#industries .industry-card h4, #industries .industry-card p {
    color: var(--white-color);
}
#industries .industry-card p {
    color: rgba(255, 255, 255, 0.8);
}


/* Contact Form Section */
.contact-form-section { 
    max-width: 800px; margin: 2rem auto 0 auto;
}
.contact-form { 
    display: flex; flex-direction: column; gap: 20px;
}
.contact-form .form-group label {
    display: block; margin-bottom: 8px; font-weight: 600;
    color: var(--primary-brand-color); font-size: 1em; text-align: left;
}
.contact-form .form-group input, 
.contact-form .form-group textarea { 
    width: 100%; padding: 12px; border: 1px solid var(--border-color); 
    border-radius: 6px; font-size: 1em; font-family: 'Open Sans', sans-serif; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}
.contact-form .form-group input:focus, 
.contact-form .form-group textarea:focus { 
    border-color: var(--accent-color-1); 
    box-shadow: 0 0 0 3px rgba(255,178,112, 0.2); outline: none; 
}
.contact-form .button { align-self: flex-start; }

/* Footer */
footer {
    background-color: var(--primary-brand-color); color: rgba(255,255,255,0.7);
    padding: 60px 0 0 0; margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 60px;
    padding-bottom: 60px;
}
.footer-col h4 {
    color: var(--white-color); font-weight: 600; margin-bottom: 1.5rem; font-size: 1.2em;
    text-align: left; 
}
.footer-col p { color: rgba(255,255,255,0.6); text-align: left; } 
.footer-col.footer-about { text-align: left; } 
.footer-logo.animated-logo { 
    height: 50px; 
    width: auto;
    margin-bottom: 1rem;
    display: block; 
    animation: pulseLogo 3.5s infinite ease-in-out 0.3s; 
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-col.footer-about:hover .footer-logo.animated-logo { 
    transform: scale(1.12) rotate(3deg); animation-play-state: paused;
}
.footer-col ul { text-align: left; } 
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul a { color: rgba(255,255,255,0.7); font-weight: normal; }
.footer-col ul a:hover { color: var(--white-color); }
.footer-col ul i { margin-right: 10px; width: 20px; text-align: center; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0;
}
.footer-bottom-content {
    display: flex; justify-content: space-between; align-items: center; 
    flex-wrap: wrap; gap: 15px;
}
.footer-social-icons { display: flex; align-items: center; gap: 15px; }
.footer-social-icons a {
    font-size: 1.1em; color: rgba(255,255,255,0.7);
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social-icons a:hover { color: var(--white-color); transform: scale(1.2); }
.footer-copyright {
    flex-grow: 1; text-align: center; margin: 0;
    color: rgba(255,255,255,0.6); font-size: 0.9em;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;}
.footer-legal-links a { color: rgba(255,255,255,0.6); font-size: 0.9em; }
.footer-legal-links a:hover { color: var(--white-color); }
#notifications-button.button {
    margin: 0 0 0 10px; padding: 6px 12px; font-size: 0.8em; text-transform: none;
    background-image: none; background-color: var(--accent-color-2);
}
#notifications-button.button:hover { background-color: var(--accent-color-1); }
.footer-social-icons .social-icon-facebook i { color: #1877F2; }
.footer-social-icons .social-icon-x i { color: #ffffff; }
.footer-social-icons .social-icon-linkedin i { color: #0A66C2; }
.footer-social-icons .social-icon-instagram i { color: #E1306C; }
.footer-social-icons .social-icon-facebook:hover i,
.footer-social-icons .social-icon-x:hover i,
.footer-social-icons .social-icon-linkedin:hover i,
.footer-social-icons .social-icon-instagram:hover i { color: var(--white-color); }

/* Animations */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
#hero-headline .typing-cursor {
    background-color: var(--accent-color-1); display: inline-block; width: 4px;
    margin-left: 8px; animation: blink 1s infinite; position: relative; top: -4px;
}
@keyframes blink { 50% { background-color: transparent; } }
@keyframes pulseLogo { 0% { transform: scale(1); } 50% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* Scroll-to-Top */
#scroll-to-top { position: fixed; bottom: 30px; right: 30px; background-color: var(--accent-color-1); color: var(--white-color); border: none; border-radius: 50%; width: 55px; height: 55px; font-size: 1.8em; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 5px 12px var(--shadow-medium); opacity: 0; visibility: hidden; transition: all 0.3s ease-in-out; z-index: 999; }
#scroll-to-top.show { opacity: 1; visibility: visible; }
#scroll-to-top:hover { background-color: var(--accent-color-2); transform: translateY(-4px); box-shadow: 0 8px 16px var(--shadow-strong); }

/* Chat Widget Styles */
#chat-bubble { position: fixed; bottom: 30px; right: 100px; width: 60px; height: 60px; background-color: var(--accent-color-1); color: var(--white-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.8em; cursor: pointer; box-shadow: 0 4px 12px var(--shadow-medium); transition: transform 0.3s ease, background-color 0.3s ease; z-index: 1000; }
#chat-bubble:hover { background-color: var(--accent-color-2); transform: scale(1.1); }
#chat-window { position: fixed; bottom: 100px; right: 30px; width: 350px; max-height: 450px; background-color: var(--white-color); border-radius: var(--standard-border-radius); box-shadow: 0 5px 20px var(--shadow-strong); display: flex; flex-direction: column; overflow: hidden; z-index: 1001; transition: opacity 0.3s ease, transform 0.3s ease; }
#chat-window.hidden { opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; }
.chat-header { background-color: var(--primary-brand-color); color: var(--white-color); padding: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; border-top-left-radius: var(--standard-border-radius); border-top-right-radius: var(--standard-border-radius); }
#close-chat { background: none; border: none; color: var(--white-color); font-size: 1.2em; cursor: pointer; padding: 5px; }
#close-chat:hover { color: rgba(255,255,255,0.7); }
#chat-messages { flex-grow: 1; padding: 15px; overflow-y: auto; background-color: #f7f7f7; }
.message { margin-bottom: 10px; padding: 10px 15px; border-radius: 18px; line-height: 1.4; max-width: 80%; word-wrap: break-word; }
.user-message { background-color: var(--accent-color-1); color: var(--white-color); margin-left: auto; border-bottom-right-radius: 5px; }
.bot-message { background-color: #e9e9eb; color: var(--body-text-color); margin-right: auto; border-bottom-left-radius: 5px; }
.bot-message a { color: var(--primary-brand-color); font-weight: 600; text-decoration: underline; }
.bot-message a:hover { color: var(--accent-color-2); }
.chat-input-area { display: flex; padding: 10px; border-top: 1px solid var(--border-color); background-color: var(--white-color); }
#chat-input { flex-grow: 1; padding: 10px; border: 1px solid var(--border-color); border-radius: 20px; margin-right: 10px; font-size: 0.95em; }
#chat-input:focus { outline: none; border-color: var(--accent-color-1); box-shadow: 0 0 0 2px rgba(255,178,112, 0.2); }
#chat-send { background-color: var(--accent-color-1); color: var(--white-color); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.1em; cursor: pointer; transition: background-color 0.3s ease; }
#chat-send:hover { background-color: var(--accent-color-2); }

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col.footer-about { text-align: center; } 
    .footer-logo.animated-logo { margin-left: auto; margin-right: auto; } 
    .footer-col h4 { text-align: center; } 
    .footer-col ul { text-align: center; } 
    header { height: 90px; }
    body { padding-top: 90px; }
    nav ul li a { padding: 33px 0; } 
    .logo img.animated-logo { height: 50px; }
    .hero.hero-background { min-height: calc(100vh - 90px); }
    .footer-bottom-content { justify-content: center; } 
}
@media (max-width: 768px) {
    body { padding-top: 80px; } 
    header { height: 80px; padding: 0 20px; } 
    nav { display: none; } 
    .container { padding: 0 20px; } main section { padding: 60px 0; }
    h1 { font-size: 2.2em; min-height: 120px; } h2 { font-size: 2em; }
    .hero.hero-background { min-height: calc(100vh - 80px); }
    #scroll-to-top { width: 45px; height: 45px; font-size: 1.6em; }
    .footer-bottom-content { flex-direction: column; }
    .footer-legal-links { margin-top: 10px; }
    .footer-copyright { order: -1; margin-bottom: 10px; }
    main section.contact-form-section { padding-left: 15px; padding-right: 15px; }
    .contact-form-section .section-intro { margin-bottom: 2rem; }
    #chat-window { width: calc(100% - 40px); max-height: 70vh; bottom: 20px; right: 20px; border-radius: var(--standard-border-radius); }
    #chat-bubble { right: 20px; bottom: 20px; }
    #industries h3 {text-align: center;} 
    .service-category h3, .service-category > p { text-align: center; max-width: 100%; }
}