/* ===== ROOT VARIABLES ===== */
:root {
    --bg-dark: #070b15;
    --bg-card: rgba(15, 23, 42, 0.45);
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --secondary: #fbbf24;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-sans: 'Outfit', sans-serif;
}

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

body {
    background: linear-gradient(rgba(7, 11, 21, 0.65), rgba(7, 11, 21, 0.82)), url('fethiye_bg.png') no-repeat center center / cover;
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow: hidden;
    position: relative;
    height: 100vh;
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* ===== CANVAS BACKGROUND ===== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===== GLOW EFFECTS ===== */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 2;
    pointer-events: none;
}
.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* ===== HEADER ===== */
header {
    background: rgba(7, 11, 21, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    padding: 12px 0;
    flex-shrink: 0;
}
.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}
.accent-text {
    color: var(--accent);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lang-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}
.lang-btn:hover {
    color: var(--text-light);
}
.lang-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
}
.btn-call-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-call-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* ===== MAIN DASHBOARD CONTAINER ===== */
.dashboard-container {
    flex: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.dashboard-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

/* ===== LEFT SIDE: CORE SERVICES & BRANDING ===== */
.dashboard-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-right: 8px;
}

.branding-header {
    margin-bottom: 12px;
}
.tagline {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.branding-header h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}
.gradient-text {
    background: linear-gradient(135deg, #22d3ee 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lead-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 580px;
}

/* COMPACT SERVICE LIST */
.services-list-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.service-item-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-item-compact:hover {
    transform: translateX(4px);
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(15, 23, 42, 0.55);
}
.icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}
.icon-wrap.camera { background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%); }
.icon-wrap.computer { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.icon-wrap.paint { background: linear-gradient(135deg, var(--secondary) 0%, #d97706 100%); }

.service-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1px;
}
.service-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* CTA PHONE BLOCK */
.cta-phone-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.14) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 2px solid rgba(6, 182, 212, 0.45);
    border-radius: 18px;
    padding: 12px 18px;
    margin-bottom: 8px;
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.15);
}
.cta-phone-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.phone-ring-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    animation: ring-pulse 2s ease-in-out infinite;
}
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 0 12px 4px rgba(6, 182, 212, 0.5); }
}
.phone-details {
    flex: 1;
}
.phone-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.phone-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.phone-number:hover {
    color: var(--accent);
}
.whatsapp-btn {
    background: linear-gradient(135deg, #128c7e, #25d366);
    color: #fff;
    padding: 9px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    flex-shrink: 0;
}
.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* AnyDesk Remote Support Row styling */
.anydesk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.anydesk-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.remote-icon {
    font-size: 14px;
    color: var(--secondary);
}
.remote-text {
    font-size: 11px;
    color: var(--text-muted);
}
.anydesk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.anydesk-badge:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.anydesk-svg {
    color: #f87171;
    transition: color 0.3s ease;
}
.anydesk-badge:hover .anydesk-svg {
    color: #fff;
}

.dashboard-footer {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.55);
}

/* ===== RIGHT SIDE: NATIVE PERSISTENT CHAT WINDOW ===== */
.dashboard-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.dashboard-right .chat-window {
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    padding: 12px 16px;
    background: rgba(20, 30, 55, 0.8);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}
.chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-icon {
    font-size: 16px;
    color: var(--accent);
}
.chat-header h4 {
    font-size: 13px;
    font-weight: 700;
}
.status-online {
    font-size: 10px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.system-msg {
    align-self: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 8px;
    max-width: 100%;
}
.bot-msg {
    align-self: flex-start;
    background: rgba(20, 30, 55, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-bottom-left-radius: 2px;
}
.user-msg {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
    color: var(--bg-dark);
    font-weight: 600;
    border-bottom-right-radius: 2px;
}
.chat-input-area {
    padding: 10px 14px;
    background: rgba(20, 30, 55, 0.5);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    align-items: center;
}
#chat-input {
    flex: 1;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}
#chat-input:focus {
    border-color: var(--accent);
}
#chat-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    flex-shrink: 0;
}
#chat-send:hover {
    background: #22d3ee;
}

/* Reviews Slider Card styling */
.reviews-slider-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px 16px;
    margin-bottom: 8px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.reviews-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.reviews-container {
    position: relative;
    height: 48px;
    overflow: hidden;
}
.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.review-slide.active {
    opacity: 1;
    position: relative;
}
.review-text {
    font-size: 12px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.review-author {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    align-self: flex-end;
}

/* ===== RESPONSIVE GRID LAYOUT ===== */
@media(max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
    }
    .dashboard-container {
        padding: 10px;
    }
    .dashboard-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 12px;
        height: 100%;
    }
    .dashboard-left {
        padding-right: 0;
        justify-content: flex-start;
        gap: 8px;
    }
    .branding-header {
        margin-bottom: 2px;
    }
    .branding-header h1 {
        font-size: 20px;
        margin-bottom: 2px;
        margin-top: 2px;
    }
    .tagline {
        font-size: 10px;
        margin-bottom: 2px;
    }
    .lead-text {
        display: none; /* Hide descriptive texts to preserve height on mobile */
    }
    .services-list-compact {
        flex-direction: row;
        gap: 6px;
        margin-bottom: 4px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .services-list-compact::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .service-item-compact {
        padding: 6px 10px;
        flex: 1;
        min-width: 90px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        border-radius: 10px;
    }
    .service-item-compact .icon-wrap {
        width: 30px;
        height: 30px;
        font-size: 13px;
        border-radius: 8px;
    }
    .service-info h3 {
        font-size: 10px;
        font-weight: 700;
        margin: 0;
    }
    .service-info p {
        display: none; /* Hide sub-text on mobile to fit screen */
    }
    .cta-phone-card {
        padding: 8px 12px;
        border-radius: 12px;
        margin-bottom: 2px;
    }
    .phone-ring-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .phone-label {
        font-size: 9px;
        margin-bottom: 0px;
    }
    .phone-number {
        font-size: 16px;
    }
    .whatsapp-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 8px;
    }
    .anydesk-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding-top: 8px;
        margin-top: 8px;
    }
    .remote-text {
        font-size: 10px;
    }
    .anydesk-badge {
        padding: 3px 8px;
        font-size: 10px;
    }
    .reviews-slider-card {
        padding: 8px 12px;
        min-height: 60px;
        margin-bottom: 4px;
    }
    .reviews-container {
        height: 36px;
    }
    .review-text {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    .review-author {
        font-size: 8px;
        margin-top: 1px;
    }
    .dashboard-footer {
        display: none;
    }
    .dashboard-right {
        height: 100%;
        overflow: hidden;
    }
    .dashboard-right .chat-window {
        border-radius: 16px;
    }
    .chat-header {
        padding: 8px 12px;
    }
    .chat-messages {
        padding: 10px;
        gap: 8px;
    }
    .message {
        font-size: 12px;
        padding: 6px 10px;
    }
}
