/* ========== VARIABLES ========== */
:root {
    --primary-color: #0078D4;
    --primary-dark: #005A9E;
    --primary-light: #1E90FF;
    --accent-color: #FF9800;
    --accent-orange: #FFA500;
    --secondary-color: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 120, 212, 0.15);
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-light);
    margin-bottom: 15px;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon {
    font-size: 2rem;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.logo-text-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-text-sub {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px !important;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 215, 0, 0.9);
    font-weight: 600;
    margin-bottom: 20px !important;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 30px !important;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 80px 20px;
    background-color: var(--secondary-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.15);
    border-top: 4px solid var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* ========== CTA SECTION ========== */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ========== ABOUT SECTION ========== */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
}

.about-content {
    padding: 80px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2,
.about-text h3 {
    margin-top: 30px;
}

.about-text p {
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.stat-detail {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 8px;
}

/* ========== TEAM SECTION ========== */
.team {
    background-color: var(--secondary-color);
    padding: 80px 20px;
}

.team h2 {
    text-align: center;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-image {
    font-size: 4rem;
    margin-bottom: 20px;
}

.team-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 20px;
    border-radius: 50%;
    color: var(--white);
}

.team-position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ========== SERVICES SECTION ========== */
.services-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.services-hero h1 {
    color: var(--white);
}

.services-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.services-list {
    padding: 80px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.15);
    border-top-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-item ul {
    list-style-position: inside;
    margin-top: 15px;
}

.service-item li {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* ========== CONTACT SECTION ========== */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.contact-hero h1 {
    color: var(--white);
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.contact-content {
    padding: 80px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* ========== FORM STYLES ========== */
.contact-form {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ========== INFO BOXES ========== */
.info-box {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    margin-bottom: 10px;
}

.info-box p {
    line-height: 1.8;
}

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

.social-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.social-btn:hover {
    background-color: var(--primary-dark);
}

/* ========== CHAT SECTION ========== */
.chat-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.chat-hero h1 {
    color: var(--white);
}

.chat-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.chat-content {
    padding: 80px 20px;
}

.chat-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.chat-box {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px;
    border-bottom: 3px solid var(--accent-color);
}

.chat-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 1.5rem;
}

.chat-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f9f9f9;
}

.chat-welcome {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    background-color: var(--white);
    border-left: 4px solid var(--primary-color);
}

.chat-message.admin {
    background-color: #e3f2fd;
    border-left-color: var(--accent-color);
    margin-left: 20px;
}

.chat-message.user {
    background-color: var(--white);
    margin-right: 20px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.message-header strong {
    color: var(--primary-color);
}

.message-time {
    color: var(--text-light);
    font-size: 0.75rem;
}

.message-body {
    color: var(--text-dark);
    word-wrap: break-word;
    line-height: 1.5;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-form .form-group {
    margin-bottom: 0;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: none;
}

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.btn-send {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.chat-info {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
}

.chat-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.info-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== CHAT WIDGET (Facebook Messenger Style) ========== */

/* Chat Launcher Button */
.chat-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}

.chat-launcher-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chat-launcher-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 120, 212, 0.5);
}

.chat-launcher-btn.open {
    transform: scale(0.9);
}

.chat-launcher-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF4458;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Chat Widget Container */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 420px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-widget.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.chat-widget.minimized {
    height: auto;
}

.chat-widget.minimized .chat-widget-messages,
.chat-widget.minimized .chat-widget-input-area {
    display: none;
}

/* Chat Widget Header */
.chat-widget-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.chat-widget-title {
    display: flex;
    gap: 12px;
    flex: 1;
}

.chat-widget-avatar {
    font-size: 32px;
    min-width: 40px;
    text-align: center;
}

.chat-widget-title h3 {
    color: white;
    font-size: 16px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.chat-widget-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
}

.chat-response-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-widget-controls {
    display: flex;
    gap: 8px;
}

.chat-widget-btn {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-widget-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Chat Messages */
.chat-widget-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f5f5f5;
    min-width: 0;
}

.chat-widget-welcome {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.chat-widget-welcome p {
    margin: 8px 0;
}

.chat-widget-message {
    display: flex;
    margin-bottom: 8px;
    min-width: 0;
}

.chat-widget-message.user {
    justify-content: flex-end;
}

.chat-widget-message.admin {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 100%;
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.chat-widget-message.admin .message-bubble {
    background: #e3f2fd;
    border-left: 3px solid var(--primary-color);
}

.message-text {
    color: #333;
    font-size: 14px;
    word-wrap: break-word;
    margin-bottom: 4px;
}

.message-time {
    font-size: 12px;
    color: #999;
    display: block;
}

/* Chat Input Area */
.chat-widget-input-area {
    padding: 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.chat-widget-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-widget-form input {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
}

.chat-widget-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.chat-widget-input-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
}

.chat-widget-form textarea {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    flex: 1;
    min-width: 0;
    min-height: 40px;
    max-height: 150px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
}

.chat-widget-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.chat-widget-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-widget-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-widget-send-btn:active {
    transform: scale(0.95);
}

.chat-widget-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Scrollbar Styling */
.chat-widget-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-widget-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-widget-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.chat-widget-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }

    .hero {
        padding: 60px 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
