/* ================================
   CSS Variables & Base Styles
   ================================ */
:root {
    --primary: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #E6F0FA;
    --secondary: #1A365D;
    --accent: #00A3A3;
    --text: #1A202C;
    --text-light: #4A5568;
    --text-muted: #718096;
    --background: #FFFFFF;
    --background-alt: #F7FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-nav {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ================================
   Header
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: var(--radius);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.02em;
}

.logo-img {
    height: 48px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}

.nav .btn {
    margin-left: 8px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--background) 0%, var(--primary-light) 100%);
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ================================
   Section Styles
   ================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

/* ================================
   Services Section
   ================================ */
.services {
    padding: 100px 0;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, var(--primary-light), var(--background));
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card > p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.service-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 600;
}

/* ================================
   Pricing Section
   ================================ */
.pricing {
    padding: 100px 0;
    background: var(--background-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, var(--primary-light), var(--white));
}

.pricing-header h3 {
    margin-bottom: 8px;
    color: var(--secondary);
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-items {
    padding: 24px 32px 32px;
}

.pricing-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.item-dots {
    flex: 1;
    height: 1px;
    margin: 0 12px;
    background: repeating-linear-gradient(
        to right,
        var(--border),
        var(--border) 4px,
        transparent 4px,
        transparent 8px
    );
}

.item-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ================================
   About Section
   ================================ */
.about {
    padding: 100px 0;
    background: var(--background-alt);
}

.about-grid {
    max-width: 700px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text);
}

.credential svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* ================================
   Contact Section
   ================================ */
.contact {
    padding: 100px 0;
    background: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    display: block;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--background-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

input, select, textarea {
    padding: 14px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ================================
   Footer
   ================================ */
.footer {
    padding: 64px 0 32px;
    background: var(--secondary);
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* ================================
   Chatbot Widget
   ================================ */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
}

.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    height: 500px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.chatbot-widget.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-widget.fullscreen {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
}

.chatbot-widget.fullscreen .chatbot-messages {
    max-height: calc(100vh - 160px);
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary);
}

.chatbot-header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-fullscreen,
.chatbot-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-fullscreen svg,
.chatbot-close svg {
    width: 20px;
    height: 20px;
}

.chatbot-fullscreen {
    font-size: 1.2rem;
}

.chatbot-close {
    font-size: 1.5rem;
}

.chatbot-fullscreen:hover,
.chatbot-close:hover {
    color: var(--primary);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--background-alt);
}

.chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
    line-height: 1.5;
}

.chatbot-message strong {
    font-weight: 600;
}

.chatbot-message ul {
    margin: 8px 0;
    padding-left: 20px;
}

.chatbot-message li {
    margin: 4px 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message-user {
    align-self: flex-end;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px 0 12px 12px;
}

.chatbot-message-bot {
    align-self: flex-start;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px;
}

.chatbot-message.error {
    background: #FEE;
    color: #C33;
    border-color: #FCC;
}

.chatbot-message.loading .loading-dots {
    display: flex;
    gap: 4px;
}

.chatbot-message.loading .loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s infinite;
}

.chatbot-message.loading .loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-message.loading .loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

.chatbot-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--background);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    align-items: flex-end;
    flex-shrink: 0;
}

.chatbot-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    resize: none;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.4;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.chatbot-send {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-send:hover {
    background: var(--primary-dark);
}

.chatbot-send:active {
    transform: scale(0.95);
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-widget {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .chatbot-toggle {
        bottom: 24px;
        right: 24px;
    }
    
    .chatbot-messages {
        max-height: calc(100vh - 200px);
    }
}

@media (max-width: 480px) {
    .chatbot-widget {
        width: 100%;
        height: 50vh;
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 16px 16px 0 0;
        max-height: 50vh;
    }
    
    .chatbot-widget.fullscreen {
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        top: 0 !important;
    }
    
    .chatbot-widget.fullscreen .chatbot-messages {
        max-height: calc(100vh - 200px) !important;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .chatbot-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .chatbot-header {
        padding: 12px 16px;
    }
    
    .chatbot-header h3 {
        font-size: 0.9rem;
    }
    
    .chatbot-messages {
        max-height: calc(50vh - 160px);
        padding: 12px;
        gap: 8px;
    }
    
    .chatbot-message {
        max-width: 95%;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .chatbot-input-area {
        padding: 10px;
        gap: 6px;
    }
    
    .chatbot-input {
        padding: 8px 10px;
        font-size: 0.9rem;
        min-height: 40px;
        max-height: 100px;
    }
    
    .chatbot-send {
        padding: 8px 12px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
}
