/* Container Reset for Isolation */
#fubar-zot-box.ui-reset {
    /* Ensures styles within are contained */
    all: initial; 
    /* Set a specific display for the container itself */
    display: block; 
    /* Add basic styling that used to be on the body for visual appeal */
    /* background-color: #f0ffef; */ /* Light, neutral background */
    padding: 20px;
    font-family: Arial, sans-serif;
    /* You may need to add width/height here depending on where it's placed */
    width: 100%; 
    box-sizing: border-box;
}

/* All other styles are now nested under the new ID for specificity */
#fubar-zot-box .zorp-fizzle-flarb { /* .countries-container */
    display: flex;
    /* Use max-width/height instead of vw/vh for better integration */
    max-width: 1200px;
    height: 500px; 
    margin: 0 auto; /* Center the component if its width is restricted */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#fubar-zot-box .gloop-snart { /* .country-card */
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    cursor: pointer;
    transition: flex 0.7s ease, filter 0.7s ease;
    filter: brightness(0.7);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    box-sizing: border-box;
}

#fubar-zot-box .gloop-snart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}

#fubar-zot-box .gloop-snart .blob-quack { /* .country-card .content */
    position: relative;
    z-index: 2;
    padding: 10px;
    width: 100%;
}

#fubar-zot-box .gloop-snart h2 {
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    /* Adding text color reset for safety */
    color: white; 
}

#fubar-zot-box .gloop-snart p {
    font-size: 0.9em;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#fubar-zot-box .gloop-snart button.plonk-whizz { /* .country-card button.learn-more */
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    font-size: 0.9em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.5s ease-out;
    opacity: 0;
    pointer-events: none;
}

#fubar-zot-box .gloop-snart button.plonk-whizz:hover {
    background-color: white;
    color: #333;
}

/* Hover state for expanding the card */
#fubar-zot-box .gloop-snart.active-fizz { /* .country-card.active */
    flex: 5;
    filter: brightness(1);
}

#fubar-zot-box .gloop-snart.active-fizz .blob-quack p,
#fubar-zot-box .gloop-snart.active-fizz .blob-quack button.plonk-whizz {
    max-height: 100px;
    opacity: 1;
    pointer-events: auto;
}

/* For non-active cards, slightly dim further */
#fubar-zot-box .zorp-fizzle-flarb:hover .gloop-snart:not(.active-fizz) {
    filter: brightness(0.4);
}
/* From Uiverse.io by Creatlydev */
.quux { /* Renamed from .card */
  margin: auto;
  width: min(300px, 100%);
  background-color: #fefefe;
  border-radius: 1rem;
  padding: 0.5rem;
  color: #141417;
}
.xyzzy { /* Renamed from .card__hero */
  background-color: #fef4e2;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 1.5rem;
  font-size: 0.875rem;
}
.xyzzy .plugh { /* Renamed from .card__hero .card__job-title */
  margin: 2rem 0;
  font-size: 2rem;
  font-weight: 600;
  padding-right: 2rem;
}
.thud { /* Renamed from .card__hero-header */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  font-weight: 700;
}
.snarf { /* Renamed from .card__footer */
  display: flex;
  justify-content: flex-start;
  align-items: start;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 0.75rem;
  row-gap: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
}
@media (min-width: 340px) {
  .snarf {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}
.garply { /* Renamed from .card__job-summary */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
}
.wibble { /* Renamed from .card__btn */
  width: 100%;
  font-weight: 400;
  border: none;
  display: block;
  cursor: pointer;
  text-align: center;
  padding: 0.5rem 1.25rem;
  border-radius: 1rem;
  background-color: #141417;
  color: #fff;
  font-size: 1rem;
}
@media (min-width: 340px) {
  .wibble {
    width: max-content;
  }
}
        /* Base Styles */
        body {
            background-color: #25201E;
            min-height: 100vh;
            font-family: 'Inter', sans-serif;
            margin: 0;
        }

        /* Main Content Styling */
        .main-content {
            padding: 40px;
            text-align: center;
        }

        .main-content h1 {
            font-size: 1.875rem; /* 30px */
            font-weight: 700;
            color: #1f2937;
        }

        .main-content p {
            color: #6b7280;
            margin-top: 8px;
        }

        /* Floating Chat Widget Container */
        .chat-widget-container {
            position: fixed;
            bottom: 16px;
            right: 16px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            z-index: 50;
        }
        
        /* Custom styles for the animated chat bubble (DevPTG) */
        .chat-icon-container {
            display: flex;
            position: relative;
            z-index: 100; /* Ensure it is above the main dialog */
        }
        
        .background {
            background-color: #EE2A2F;
            border-radius: 50%;
            box-shadow: 0 2.1px 1.3px rgba(0, 0, 0, 0.044),
                0 5.9px 4.2px rgba(0, 0, 0, 0.054), 0 12.6px 9.5px rgba(0, 0, 0, 0.061),
                0 25px 20px rgba(0, 0, 0, 0.1);
            height: 80px;
            left: 10px;
            position: absolute;
            top: 10px;
            width: 80px;
        }
        
        .chat-bubble {
            cursor: pointer;
            position: relative;
        }
        
        .bubble {
            transform-origin: 50%;
            transition: transform 500ms cubic-bezier(0.17, 0.61, 0.54, 0.9);
        }
        
        .line {
            fill: none;
            stroke: #ffffff;
            stroke-width: 2.75;
            stroke-linecap: round;
            transition: stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .line1 {
            stroke-dasharray: 60 90;
            stroke-dashoffset: -20;
        }
        
        .line2 {
            stroke-dasharray: 67 87;
            stroke-dashoffset: -18;
        }
        
        .circle {
            fill: #FFFFFF;
            stroke: none;
            transform-origin: 50%;
            transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .chat-bubble.active .bubble {
            transform: translateX(24px) translateY(4px) rotate(45deg);
        }
        
        .chat-bubble.active .line1 {
            stroke-dashoffset: 21;
        }
        
        .chat-bubble.active .line2 {
            stroke-dashoffset: 30;
        }
        
        .chat-bubble.active .circle {
            transform: scale(0);
        }

        /* Custom styles for the chat dialog (ahmed150up) */
        .card-container {
            background-color: #fff;
            border-radius: 10px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            width: 280px;
            height: 400px; /* Fixed height for chat window */
            overflow: hidden;
            margin-bottom: 16px;
            /* Smoother transitions for the chat dialog */
            transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease-out;
            transform-origin: bottom right; /* Ensures scaling from the chat button */
        }
        
        /* Initial hidden state for dialog */
        .card-container.hidden-dialog {
            opacity: 0;
            transform: translateY(20px) scale(0.8); /* Starts slightly lower and smaller */
            pointer-events: none; /* Prevents interaction when hidden */
        }

        /* Visible state for dialog */
        .card-container.visible-dialog {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: all;
        }

        .card-header {
            display: flex;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid #ccc;
            background-color: #CC2226;
            color: white;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }
        
.card-header .img-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 15px;
    background-image: url('logo.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 2px white;
}
        .card-header .text-chat {
            font-size: 18px;
            font-weight: 600;
        }
        
        .card-body {
            flex: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            padding: 10px 0;
        }
        
        .messages-container {
            padding: 0 10px;
        }
        
        .message-box {
            max-width: 80%;
            padding: 8px 12px;
            margin-bottom: 10px;
            border-radius: 15px;
            line-height: 1.4;
            word-wrap: break-word;
            /* Animation for messages appearing */
            opacity: 0;
            transform: translateY(10px);
            animation: fadeInMessage 0.3s ease-out forwards;
        }

        @keyframes fadeInMessage {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Delay subsequent messages */
        .message-box:nth-child(n+2) {
            animation-delay: 0.1s;
        }
        .message-box:nth-child(n+3) {
            animation-delay: 0.2s;
        }
        .message-box:nth-child(n+4) {
            animation-delay: 0.3s;
        }


        .message-box p {
            margin: 0;
            font-size: 13px;
        }

        .message-box.left {
            background-color: #f1f1f1;
            color: #333;
            margin-right: auto;
            border-bottom-left-radius: 4px;
        }
        
        .message-box.right {
            background-color: #25201E;
            color: #fff;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }

        .message-input {
            padding: 10px;
            border-top: 1px solid #ccc;
            background-color: #fff;
        }

        .message-input form {
            display: flex;
            gap: 5px;
        }

        .message-input .message-send {
            flex-grow: 1;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 20px;
            resize: none;
            height: 38px;
            overflow-y: hidden;
            font-size: 14px;
        }
        
        .message-input .button-send {
            background-color: #EE2A2F;
            color: #fff;
            padding: 0 15px;
            border: none;
            cursor: pointer;
            border-radius: 20px;
            font-size: 14px;
            transition: background-color 0.2s;
            height: 38px;
        }
        
        .message-input .button-send:hover {
            background-color: #CC2226;
        }

        /* Loader specific styles */
        .loader-box {
            display: flex;
            align-items: center;
        }

        .loader-text {
            margin-left: 8px;
            font-style: italic;
            color: #25201E;
        }

        .loader {
            border: 4px solid #504845;
            border-top: 4px solid #423A37;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            animation: spin 2s linear infinite;
            margin: 10px 0;
            flex-shrink: 0; /* Prevent loader from shrinking */
	    margin-right: 5px
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #231F20; /* Dark/Black from logo */
    --secondary-color: #f4f4f4; /* Light Gray - kept for contrast */
    --accent-color: #EE2A2F; /* Red from logo */
    --text-color: #333;
    --light-text-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* --- Header & Navigation Bar --- */
.navbar {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}
 
.navbar.scrolled {
    background: rgba(35, 31, 32, 0.95); /* Slightly transparent dark */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar .nav-links li {
    margin-left: 2rem;
}

.navbar .nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}
.menu-toggle .bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    transition: all 0.3s ease-in-out; background-color: var(--light-text-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(35, 31, 32, 0.7), rgba(35, 31, 32, 0.7)), url('header-ups.jpg') no-repeat center center/cover;
    height: 100vh;
    color: var(--light-text-color);
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; padding: 0 1rem;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 2rem; }

.btn {
    display: inline-block; padding: 0.8rem 2rem; background: var(--accent-color);
    color: var(--light-text-color); border: none; border-radius: 5px; text-decoration: none;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease;
}
.btn:hover { background: #CC2226; transform: translateY(-2px); /* Slightly darker red */ }

/* --- About Section --- */
#about { background: var(--secondary-color); }
#about .about-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center; margin-bottom: 4rem;
}
#about img { width: 100%; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
#about p { margin-bottom: 1rem; }
 
.mission-vision {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    margin-top: 3rem; text-align: center;
}
.mission-vision .card { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.mission-vision .card h3 { color: var(--primary-color); }

/* --- Services Section --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.service-card {
    background: #fff; padding: 2.5rem 2rem; border-radius: 10px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.service-card h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.service-card .icon { font-size: 3rem; margin-bottom: 1rem; color: var(--accent-color); }

/* --- Team Section --- */
#team { background-color: var(--secondary-color); }
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem;
}
.team-card {
    background: #fff; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center; padding: 2rem 1.5rem; transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-10px); }
.team-card img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--accent-color); margin-bottom: 1rem;
}
.team-card .role { font-weight: 600; color: var(--accent-color); margin-bottom: 0.5rem; }

/* --- Testimonials Section --- */
#testimonials { background: var(--primary-color); color: var(--light-text-color); }
#testimonials .section-title { color: var(--light-text-color); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: rgba(255, 255, 255, 0.1); padding: 2rem; border-radius: 10px;
    border-left: 5px solid var(--accent-color);
}
.testimonial-card p.quote { font-style: italic; margin-bottom: 1rem; }
.testimonial-card .author { font-weight: 700; text-align: right; }

/* --- Contact Section --- */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.contact-info p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.contact-info i { color: var(--accent-color); margin-right: 1rem; width: 20px; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.8rem; border-radius: 5px;
    border: 1px solid #ccc; font-family: 'Montserrat', sans-serif;
}
.contact-form textarea { resize: vertical; height: 150px; }

/* --- Footer --- */
.footer { background: #111; color: var(--light-text-color); text-align: center; padding: 2rem 0; }
 
/* --- Responsive Design --- */
@media(max-width: 768px) {
    .menu-toggle { display: block; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        display: flex; flex-direction: column; position: absolute; width: 100%;
        background: var(--primary-color); top: 70px; left: -100%;
        transition: all 0.5s ease; padding-bottom: 1rem;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; text-align: center; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .section-title { font-size: 2rem; }
    
    #about .about-content, .mission-vision, .contact-grid { grid-template-columns: 1fr; }
    #about img { margin-bottom: 2rem; }
}