/* Base Settings */
:root {
    --primary-color: #e62020;
    --primary-hover: #cc0000;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-main: #ffffff;
    --bg-alt: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 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);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Headers */
.page-header {
    background: var(--bg-alt);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    color: #111827;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    background: var(--bg-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 50px;
    width: auto;
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 160px 0;
    text-align: center;
}

.hero-content {
    background: rgba(255,255,255,0.8);
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111827;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow);
}

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

.btn-full {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

/* Services Grid (Home) */
.services {
    background-color: var(--bg-main);
}

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

.service-card {
    background: var(--bg-main);
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 20px;
    color: #111827;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 20px 20px;
}

.read-more {
    display: inline-block;
    margin: 0 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* About Section */
.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Service Detail (Services Page) */
.service-detail-row {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.service-detail-row.reverse {
    flex-direction: row-reverse;
}

.service-detail-text {
    flex: 1;
}

.service-detail-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-detail-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.service-detail-text ul {
    list-style: none;
    margin-top: 20px;
}

.service-detail-text ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 600;
    color: #111827;
}

.service-detail-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-detail-img {
    flex: 1;
}

.service-detail-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.service-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 60px 0;
}

/* Contact Page */
.contact-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 40px;
}

.contact-details-box {
    width: 100%;
    text-align: center;
}

.contact-form-box {
    width: 100%;
    background: var(--bg-main);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-details-box h2, .contact-form-box h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-form-box h2 {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item strong {
    display: block;
    font-size: 1.1rem;
    color: #111827;
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    font-size: 1rem;
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-alt);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(230, 32, 32, 0.15);
}

.success-alert {
    background: #def7ec;
    color: #03543f;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Footer */
footer {
    background: #111827;
    color: #f9fafb;
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

#chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#chat-toggle:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

#chat-toggle svg {
    width: 28px;
    height: 28px;
}

#chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#chat-box.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

#close-chat {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    padding: 20px;
    background: #f9fafb;
}

.chat-body .form-group label {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.chat-body .form-group input, .chat-body .form-group textarea {
    padding: 8px;
    font-size: 0.9rem;
}

.chat-body .form-group textarea {
    height: 80px;
}

/* Responsive */
@media (max-width: 900px) {
    .about-container, .service-detail-row, .contact-page-container {
        flex-direction: column;
    }
    
    .service-detail-row.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    #chat-box {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        height: auto;
        border-radius: 0;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    #chat-widget {
        bottom: 20px;
        right: 20px;
    }
}
