:root {
    --bg-color: #ffffff;
    --text-color: #000000; /* Black */
    --icon-color: #000000; /* Black */
    --gold-accent: #C5A059;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --sidebar-width: 250px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Particles Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-color);
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.nav-menu {
    list-style: none;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(212, 175, 55, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before, .nav-item.active::before {
    width: 100%;
}

.nav-item:hover, .nav-item.active {
    border-right: 4px solid var(--text-color);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    fill: var(--icon-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.page-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--text-color);
    transition: width 0.3s ease;
}

.page-content:hover h1::after {
    width: 100%;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Accordion (Products) */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.accordion-item {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--text-color);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.accordion-item:hover {
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.chevron {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
    transition: transform 0.4s ease;
}

.accordion-item.open .chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
}

.accordion-item.open .accordion-body {
    max-height: 2000px;
    opacity: 1;
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Service Grid 2 Col */
.service-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .service-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Sub Accordion */
.sub-accordion-item {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.sub-accordion-header {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(212, 175, 55, 0.05);
}

.sub-accordion-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-accent);
}

.sub-chevron {
    width: 20px;
    height: 20px;
    fill: var(--gold-accent);
    transition: transform 0.3s ease;
}

.sub-accordion-item.open .sub-chevron {
    transform: rotate(180deg);
}

.sub-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.sub-accordion-item.open .sub-accordion-body {
    max-height: 500px;
}

.sub-accordion-body ul {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.service-item {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.service-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold-accent);
    transition: transform 0.2s ease;
}

.service-item:hover {
    color: var(--gold-accent);
}

.service-item:hover::before {
    transform: translateX(5px);
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    border: 2px solid var(--text-color);
    box-shadow: 0 0 30px rgba(212,175,55,0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

#modal-caption {
    margin-top: 15px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


/* Contact Styles */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    max-width: 320px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.contact-btn:hover::before {
    width: 100%;
}

.contact-btn:hover {
    color: var(--bg-color);
}

.contact-btn:hover svg {
    fill: var(--bg-color);
}

.contact-btn svg {
    margin-right: 10px;
    fill: var(--text-color);
    transition: fill 0.3s ease;
}

.hidden-numbers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.hidden-numbers.active {
    max-height: 200px;
    opacity: 1;
}

.sub-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    margin-left: 2rem;
    max-width: 250px;
}

/* Mobile Header */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.logo-mobile {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--icon-color);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-header {
        display: none !important;
    }
    .sidebar {
        transform: translateX(0);
        top: 0;
        width: 80px;
        height: 100vh;
        padding-top: 1rem;
    }
    .logo {
        display: none;
    }
    .nav-item {
        flex-direction: column;
        padding: 0.8rem 0.2rem;
        font-size: 0.75rem;
        text-align: center;
        gap: 0.4rem;
    }
    .nav-item svg {
        margin-right: 0;
        width: 24px;
        height: 24px;
    }
    .main-content {
        margin-left: 80px;
        padding: 2rem 1.5rem 2rem 1.5rem;
    }
    h1 {
        font-size: 2rem;
    }
}

/* AI Chat Interface */
.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 50vh;
}

.message {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.4s ease-out;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
}

.msg-bubble {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
}

body.ai-fullscreen .sidebar {
    display: none !important;
}

body.ai-fullscreen .mobile-header {
    display: none !important;
}

body.ai-fullscreen .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.message.ai .msg-bubble {
    background: rgba(212, 175, 55, 0.1);
    color: var(--icon-color);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.message.user .msg-bubble {
    background: var(--text-color);
    color: var(--bg-color);
    border-bottom-right-radius: 4px;
}

.ai-controls {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    align-items: center;
    padding-left: 0.5rem;
}

.ai-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 0;
}

.ai-action-btn:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.ai-action-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
    margin-right: 6px;
}

.chat-input-area {
    display: flex;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 30px;
    font-size: 1.1rem;
    outline: none;
    background: var(--bg-color);
    color: var(--icon-color);
    transition: box-shadow 0.3s ease;
    font-family: var(--font-body);
}

.chat-input:focus {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.chat-send-btn {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    margin-left: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    background: var(--gold-accent);
}

.chat-send-btn svg {
    width: 26px;
    height: 26px;
    fill: var(--bg-color);
    margin-left: 3px;
}
