/* --- Variables & Reset --- */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #d4af37;
    /* Gold */
    --accent-light: #f4e9d7;
    /* Champagne */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    display: block;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.small-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    position: relative;
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--white);
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 80%;
        height: 100vh;
        text-align: center;
        transition: 0.4s;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        margin-bottom: 30px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .mobile-menu-overlay.active {
        display: block;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), url('../assets/images/hero_bg.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content h2 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-down i {
    margin-top: 10px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* --- Sections General --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* --- Services --- */
.services {
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--text-muted);
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-auto-rows: 500px;
    /* Taller, uniform rows */
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    border-radius: 4px;
    /* Slight softening */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Removed .portfolio-item.large to ensure uniformity */

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: 0.4s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item .text h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: 0.4s;
}

.portfolio-item .text p {
    color: var(--white);
    transform: translateY(20px);
    transition: 0.4s 0.1s;
}

.portfolio-item:hover .text h3,
.portfolio-item:hover .text p {
    transform: translateY(0);
}

/* --- About --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
}


.image-wrapper img {
    width: 100%;
    transition: 0.5s;
    border-radius: 10px;
}

.image-wrapper:hover img {
    transform: perspective(800px) rotateX(25deg);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
    }
}

/* --- Contact --- */
.contact {
    background-color: var(--secondary-color);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--primary-color);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin-top: 40px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details i {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: var(--white);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        padding: 30px;
    }
}

/* --- Footer --- */
.footer {
    padding: 60px 0 20px;
    background-color: #000;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.footer-logo p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: #666;
    font-size: 0.8rem;
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--secondary-color);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border: 1px solid var(--accent-color);
    position: relative;
    border-radius: 5px;
    transform: translateY(20px);
    transition: 0.4s;
}

.modal.open .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: var(--accent-color);
}

.quiz-container {
    text-align: center;
}

.quiz-step {
    display: none;
    animation: fadeEffect 0.5s;
}

.quiz-step.active {
    display: block;
}

.quiz-step h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 400;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--white);
    padding: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
}

.quiz-opt:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
}

.quiz-result {
    text-align: center;
}

.quiz-result h3 {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quiz-result h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.hidden {
    display: none;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Animations --- */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Consultation CTA --- */
.consultation-cta {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content h2 {
    color: var(--accent-light);
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}


/* --- Cortex Fixes & Consult CTA --- */
.consultation-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.consultation-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.consultation-cta .container {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#consult-btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

#consult-btn:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
}

/* Fix Visibility of Hero Text */
.hero-content h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    font-weight: 400;
}

/* --- Multi-Page Styles --- */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.breadcrumb {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Masonry Gallery --- */
.gallery-section {
    padding: 0 0 100px;
}

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    display: block;
    height: auto;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}


/* --- Homepage Extensions --- */

/* Experience Section */
.experience-section {
    text-align: center;
    padding: 80px 0;
}

.experience-section .subtitle {
    display: block;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.experience-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn-outline-dark {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    color: var(--white);
}

/* Trending Services specific */
.services-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    margin-top: 15px;
    text-decoration: none;
    font-weight: 500;
}

.link-arrow i {
    margin-left: 5px;
    transition: 0.3s;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* Comparison / Transformation Section */
.bg-black {
    background-color: #000;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.comparison-card {
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.comparison-card h3 {
    margin-top: 15px;
    color: var(--accent-color);
}

.comparison-images {
    display: flex;
    gap: 10px;
}

.img-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.img-wrapper span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 0.8rem;
    padding: 5px 0;
    text-align: center;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testi-card {
    background: rgba(255, 255, 255, 0.05);
    /* Glass feel */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testi-card .stars {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testi-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testi-card h4 {
    color: var(--white);
    font-family: 'Playfair Display', serif;
}


/* --- Gamora Chat Interface --- */
.chat-section {
    max-width: 800px;
    margin: 0 auto;
}

.chat-wrapper {
    background: var(--secondary-color);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-header-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.bot-info h3 {
    font-size: 1.1rem;
    color: var(--white);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 5px;
}

.chat-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
    background: var(--accent-color);
    color: var(--primary-color);
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.chat-input-area {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-area textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: var(--white);
    resize: none;
    font-family: inherit;
    min-height: 45px;
    max-height: 120px;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.icon-btn:hover {
    color: var(--accent-color);
}


/* --- Full Page Chat Layout Refinement --- */
.chat-section-full {
    height: 100vh;
    height: 100dvh;
    /* Full viewport height including padding */
    margin-top: 0;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-wrapper-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.chat-input-area {
    margin-top: auto;
    /* Pushes to bottom if flex container grows */
    flex-shrink: 0;
    width: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    /* Darker bg for input area */
    backdrop-filter: blur(10px);
}


/* --- Chat Attachment Menu --- */
.attach-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.chat-input-area .icon-btn {
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.chat-input-area .icon-btn:hover,
.chat-input-area .icon-btn.active {
    color: var(--accent-color);
}

.attach-menu {
    position: absolute;
    bottom: 140%;
    /* Position above the button */
    left: 0;
    width: 160px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 20;
}

.attach-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.attach-opt {
    background: none;
    border: none;
    color: var(--white);
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.attach-opt:hover {
    background: rgba(255, 255, 255, 0.1);
}

.attach-opt i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}


/* --- Attachment Styling Refinements --- */
.attach-wrapper {
    height: 45px;
    /* Match textarea min-height */
    display: flex;
    align-items: center;
}

.chat-input-area .icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Added Border */
    border-radius: 8px;
    /* Rounded corners */
    margin-right: 10px;
    height: 40px;
    width: 40px;
    justify-content: center;
    padding: 0;
}

.chat-input-area .icon-btn:hover {
    border-color: var(--accent-color);
}

/* Attachment Preview */
.attachment-preview {
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--accent-color);
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#remove-attach-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --- Camera Modal Styles --- */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.camera-modal.open {
    display: flex;
}

.camera-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#camera-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #222;
}

.camera-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 20px;
}

.camera-controls .btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
}

#snap-photo {
    background: var(--white);
    color: #000;
    border: none;
}

#close-camera {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid #fff;
}


/* --- Missing Keyframes for Chat --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Chat Message Actions --- */
.message {
    position: relative;
    padding-bottom: 25px;
    /* Make space for buttons */
}

.message-actions {
    position: absolute;
    bottom: 2px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.message:hover .message-actions {
    opacity: 1;
}

.msg-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 5px;
    transition: 0.2s;
}

.msg-btn:hover {
    color: var(--white);
    transform: scale(1.1);
}

.bot-message .msg-btn:hover {
    color: var(--accent-color);
}


/* --- Inline Edit Styles --- */
.inline-edit-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.inline-edit-area textarea {
    width: 100%;
    min-height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-color);
    color: var(--white);
    padding: 8px;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.edit-btn-action {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.save-edit {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cancel-edit {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.save-edit:hover {
    background: var(--white);
}

.cancel-edit:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* --- Service Menu --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.menu-category h3 {
    color: var(--accent-light);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-category h3 i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.menu-category ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.menu-category ul li::before {
    content: '�';
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.service-name {
    color: var(--white);
    font-size: 1.05rem;
    transition: 0.3s;
}

.menu-category ul li:hover .service-name {
    color: var(--accent-color);
    transform: translateX(5px);
}


/* Update Bullet Style */
.menu-category ul li::before {
    content: '';
    font-size: 0.8rem;
}


/* Update Bullet Style */
.menu-category ul li::before {
    content: '\2756';
    /* Diamond Symbol escaped */
    font-size: 0.8rem;
}

/* --- Text Selection Control --- */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
img,
.subtitle,
.title,
.service-name,
.hero-content,
.footer-content,
.service-card,
.portfolio-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* --- Text Selection Control --- */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
img,
.subtitle,
.title,
.service-name,
.hero-content,
.footer-content,
.service-card,
.portfolio-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* --- Gamora CSS Logo --- */
.bot-avatar {
    background: #000;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    background: linear-gradient(45deg, var(--accent-color), #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100%;
    }

    100% {
        background-position: 200%;
    }
}

/* --- Inline Edit Styles --- */
.inline-edit-area {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.inline-edit-area textarea {
    width: 100%;
    min-height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-color);
    color: var(--white);
    padding: 8px;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.edit-btn-action {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.save-edit {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cancel-edit {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.save-edit:hover {
    background: var(--white);
}

.cancel-edit:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* --- Service Menu --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.menu-category h3 {
    color: var(--accent-light);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-category h3 i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.menu-category ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.menu-category ul li::before {
    content: '\2756';
    /* Diamond Symbol */
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.8rem;
}

.service-name {
    color: var(--white);
    font-size: 1.05rem;
    transition: 0.3s;
}

.menu-category ul li:hover .service-name {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* --- Map Section --- */
.map-section {
    padding: 100px 0;
    background: var(--primary-color);
}

.map-container {
    border: 1px solid var(--accent-color);
    border-radius: 15px;
    overflow: hidden;
    height: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.map-container:hover {
    transform: translateY(-5px);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Text Selection Control --- */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
img,
.subtitle,
.title,
.service-name,
.hero-content,
.footer-content,
.service-card,
.portfolio-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- Gamora Elements --- */
.bot-avatar {
    background: #000;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* --- Image Message Specifics --- */
.message.image-message {
    padding: 2px !important;
}

/* --- Contact Page Specific --- */
.section.contact {
    padding-top: 0;
}

.page-header.contact-header {
    height: 65vh;
}

/* --- Quick Contact Grid --- */
.quick-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.quick-contact-grid .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

@media (max-width: 480px) {
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
}