@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #A83232;
    /* Deep Professional Red */
    --secondary-red: #c94040;
    --dark-red: #7f2525;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --bg-light: #FFFFFF;
    --bg-off-white: #F9FAFB;
    --bg-dark: #111827;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.bg-off-white {
    background-color: var(--bg-off-white);
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--primary-red);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

header.scrolled nav {
    height: 70px;
    /* Shrink on scroll smoothly */
}

/* Ensure Logo text aligns perfectly */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    /* Full height to align */
}

.logo-img {
    height: 50px;
    /* Slightly smaller for better proportion */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

header.scrolled .logo-img {
    height: 40px;
    /* Shrink logo on scroll */
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
    padding-top: 4px;
    /* Optical alignment */
}

/* Nav Links - Button Style */
.nav-links {
    display: flex;
    gap: 1rem;
    /* Reduced gap since items are wider now */
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    /* Dark text by default */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    /* Add horizontal padding for button shape */
    border-radius: 5px;
    /* Rounded corners */
    background-color: transparent;
    /* "Normal White" interpreted as transparent/white */
}

/* Red Background on Hover & Active */
.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-red);
    color: var(--white) !important;
    /* Force white text */
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Remove old underline effect logic if present */
.nav-links a::after {
    display: none;
}

/* Hero Section */
#main {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%), url('hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Hero Section - Full Screen Revamp */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 60px;
    /* Account for fixed header */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    /* Increased from 700px */
    padding: 0;
    /* Removed card styles for cleaner "Full" look */
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
}

.hero-title {
    font-size: 4.5rem;
    /* Larger title */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    /* Reduced from 50% */
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03) 0%, rgba(220, 38, 38, 0.08) 100%);
    /* Softer gradient */
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    /* Adjusted angle */
    z-index: 1;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding: 100px 0 60px;
        min-height: auto;
        /* Relax height constraint */
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        margin-left: 0 !important;
        justify-content: center;
    }

    .hero-cta a {
        width: 100%;
        margin-left: 0 !important;
    }

    .hero-shape {
        width: 100%;
        opacity: 0.1;
        clip-path: none;
        height: 50%;
        /* limit height on mobile */
    }
}

/* Profile Section */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-red);
}

/* Service/Solution Section */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-red);
    transition: height 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-card:hover::before {
    height: 100%;
}

.solution-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

/* Gallery Section - Slider */
.gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(168, 50, 50, 0.8);
    /* Primary Red */
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.fade-in-slide {
    animation: fadeIn 0.5s ease;
}

/* Customer Section - Marquee */
.customer-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.marquee-content {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    /* Slower 30s for more logos */
    gap: 4rem;
    /* Spacing between logos */
}

.customer-logo-img {
    height: 120px;
    /* Increased size */
    width: auto;
    object-fit: contain;
    /* Removed grayscale and opacity for full color */
    transition: transform 0.3s ease;
}

.customer-logo-img:hover {
    transform: scale(1.1);
    /* Zoom effect instead of color change */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half width because we duplicated content */
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(168, 50, 50, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-red);
    font-size: 1.25rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Prompt', sans-serif;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu todo */
    }

    .profile-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-shape {
        display: none;
    }
}

/* --- Chatbot Widget Styles --- */
#chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

#chatbot-toggle-btn {
    background: var(--primary-red);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#chatbot-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-red);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

#chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--primary-red);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

#close-chat {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

#close-chat:hover {
    opacity: 0.7;
}

#chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.bot-message {
    background: white;
    color: var(--text-primary);
    border-top-left-radius: 2px;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.bot-message::before {
    content: 'Admin';
    position: absolute;
    top: -18px;
    left: 0;
    font-size: 0.7rem;
    color: #6b7280;
}

.user-message {
    background: var(--primary-red);
    color: white;
    border-top-right-radius: 2px;
    align-self: flex-end;
    box-shadow: 0 2px 4px rgba(168, 50, 50, 0.2);
}

.user-message::before {
    content: 'You';
    position: absolute;
    top: -18px;
    right: 0;
    font-size: 0.7rem;
    color: #6b7280;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.option-btn {
    background: white;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    background: var(--primary-red);
    color: white;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}

#chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

#send-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#send-btn:hover {
    background: var(--secondary-red);
}

/* Typing Indicator Animation */
.typing {
    display: inline-flex;
    gap: 3px;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 12px;
    border-top-left-radius: 2px;
    align-self: flex-start;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    #chat-window {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 10000;
    }

    #chatbot-toggle-btn {
        bottom: 20px;
        right: 20px;
    }

    #chatbot-container {
        /* Reset position for full screen mode handling if needed, 
           or just keep it fixed. 
           But if window is fixed bottom 0, container position matters less 
           except for the button. */
        z-index: 10000;
        /* Ensure above everything */
    }
}