﻿
:root {
    /* Light Theme Variables */
    --primary: #6200ee;
    --primary-dark: #3700b3;
    --secondary: #03dac6;
    --background: #ffffff;
    --surface: #f5f5f5;
    --error: #b00020;
    --on-primary: #ffffff;
    --on-secondary: #000000;
    --on-background: #121212;
    --on-surface: #121212;
    --on-error: #ffffff;
    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --primary: #bb86fc;
    --primary-dark: #3700b3;
    --secondary: #03dac6;
    --background: #121212;
    --surface: #1e1e1e;
    --error: #cf6679;
    --on-primary: #000000;
    --on-secondary: #000000;
    --on-background: #ffffff;
    --on-surface: #ffffff;
    --on-error: #000000;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--on-background);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.material-card {
    background-color: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}

[data-theme="dark"] .material-card {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .material-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.btn {
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        box-shadow: 0 4px 8px rgba(98, 0, 238, 0.3);
    }

.btn-secondary {
    background-color: var(--secondary);
    color: var(--on-secondary);
}

    .btn-secondary:hover {
        box-shadow: 0 4px 8px rgba(3, 218, 198, 0.3);
    }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

    .btn-outline:hover {
        background-color: rgba(98, 0, 238, 0.1);
    }

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--on-background);
}

.bg-surface {
    background-color: var(--surface);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Loading Animation */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .loader-container.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader {
    position: relative;
    width: 200px;
    height: 200px;
}

.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    animation: spin 1.5s linear infinite;
}

    .circle:nth-child(2) {
        width: 80%;
        height: 80%;
        top: 10%;
        left: 10%;
        border-top-color: var(--secondary);
        animation-duration: 1.2s;
        animation-direction: reverse;
    }

    .circle:nth-child(3) {
        width: 60%;
        height: 60%;
        top: 20%;
        left: 20%;
        border-top-color: var(--error);
        animation-duration: 0.9s;
    }

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--on-background);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: var(--surface);
    cursor: pointer;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

    .theme-toggle::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: var(--primary);
        transition: transform 0.3s ease, background-color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(30px);
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: var(--on-surface);
    font-size: 16px;
}

    .theme-toggle-icon.sun {
        left: 7px;
    }

    .theme-toggle-icon.moon {
        right: 7px;
    }

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

    .hero-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(98, 0, 238, 0.1) 0%, rgba(3, 218, 198, 0.1) 100%);
    }

[data-theme="dark"] .hero-bg::before {
    background: linear-gradient(135deg, rgba(98, 0, 238, 0.2) 0%, rgba(3, 218, 198, 0.2) 100%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

[data-theme="dark"] .hero-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Skills */
.skill-bar {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .skill-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0;
    transition: width 1.5s ease;
}

/* Projects */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(98, 0, 238, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

    .chatbot-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(98, 0, 238, 0.5);
    }

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: var(--surface);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    border: 1px solid var(--border-color);
}

    .chatbot-container.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

.chatbot-header {
    padding: 16px;
    background-color: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color 0.3s ease;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.3s ease;
}

.bot-message {
    background-color: rgba(98, 0, 238, 0.1);
    border-top-left-radius: 4px;
    align-self: flex-start;
    color: var(--on-background);
}

.user-message {
    background-color: var(--primary);
    color: var(--on-primary);
    border-top-right-radius: 4px;
    align-self: flex-end;
}

.chatbot-input {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

    .chatbot-input input {
        flex: 1;
        padding: 12px 16px;
        border-radius: 24px;
        border: 1px solid var(--border-color);
        background-color: var(--background);
        color: var(--on-background);
        font-size: 14px;
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }

        .chatbot-input input:focus {
            outline: none;
            border-color: var(--primary);
        }

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .send-btn:hover {
        background-color: var(--primary-dark);
    }

/* Certificates */
.certificate-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary);
    transition: border-color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100% - 40px);
        height: 60vh;
        right: 20px;
        bottom: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Floating elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glow effect */
.glow {
    box-shadow: 0 0 15px rgba(98, 0, 238, 0.5);
}

/* Typing animation */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--on-background);
    animation: typingAnimation 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingAnimation {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Additional theme-specific styles */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
}







/* Chat system */
.chat-bar {
    position: fixed;
    bottom: 0;
    right: calc(20px + 0 * (320px + 16px)); /* Adjusted if needed */
    width: 260px;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    transition: height 0.3s ease;
    height: 48px;
}

    .chat-bar.expanded {
        height: 400px;
    }

.chat-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #1877f2;
    color: white;
    cursor: pointer;
}

.chat-bar-title {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-bar-toggle {
    transition: transform 0.3s;
}

.chat-bar.expanded .chat-bar-toggle {
    transform: rotate(180deg);
}

.chat-contacts-container {
    height: calc(100% - 48px);
    overflow-y: auto;
}
[data-theme="dark"] .chat-contacts-container {
    background-color: #1B1D3B;
    color: white;
}



.chat-contacts {
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .chat-contacts {
    background-color: #1B1D3B;
    color: white;
}

    

.chat-contact {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

    .chat-contact:hover {
        background-color: #f0f2f5;
    }

[data-theme="dark"] .chat-contact:hover {
    background-color: #5D6B99;
    color: white;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1877f2;
    margin-right: 12px;
    position: relative;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #31a24c;
    border: 2px solid #ffffff;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 500;
    font-size: 14px;
}

.contact-id {
    font-size: 12px;
    color: #65676b;
}

.chat-window {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 320px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 101;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
    overflow: hidden;
}

[data-theme="dark"] .chat-window {
    background-color: #5D6B99;
}

    [data-theme="dark"] .chat-window input,
    [data-theme="dark"] .chat-window textarea,
    [data-theme="dark"] .chat-window select {
        background-color: #4a567a; /* darker background */
        color: white; /* white text */
        border: 1px solid #7c89b6; /* subtle border */
    }

        [data-theme="dark"] .chat-window input::placeholder,
        [data-theme="dark"] .chat-window textarea::placeholder {
            color: #d0d4e6; /* lighter placeholder text */
        }

    .chat-window.active {
        transform: scale(1);
        opacity: 1;
    }

.chat-window-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #1877f2;
    color: white;
    cursor: pointer;
}

.chat-window-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e4e6eb;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    font-weight: bold;
    position: relative;
}

    .chat-window-avatar .online-indicator {
        width: 8px;
        height: 8px;
    }

.chat-window-info {
    flex: 1;
}

.chat-window-name {
    font-weight: 500;
    font-size: 14px;
}

.chat-window-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.chat-window-actions {
    display: flex;
    gap: 8px;
}

.chat-window-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .chat-window-action:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .chat-window-action .material-icons {
        font-size: 18px;
    }

.chat-window-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[data-theme="dark"] .chat-window-messages {
    background-color: #5D6B99;
    color: white;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 13px;
    position: relative;
    word-break: break-word;
}

    .message.received {
        align-self: flex-start;
        background-color: #e4e6eb;
    }

[data-theme="dark"] .message.received {
    color: black;
}

    .message.sent {
        align-self: flex-end;
        background-color: #0084ff;
        color: white;
    }

[data-theme="dark"] .message.sent {
    color: black;
}

.message-time {
    font-size: 9px;
    color: #65676b;
    margin-top: 4px;
    text-align: right;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-window-input {
    padding: 8px 12px;
    border-top: 1px solid #e4e6eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-field {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    background-color: #f0f2f5;
    font-size: 13px;
    outline: none;
}

.send-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1877f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .send-button:hover {
        background-color: #166fe5;
    }

    .send-button .material-icons {
        font-size: 16px;
    }

/* Call modal */
.call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .call-modal.active {
        opacity: 1;
        pointer-events: auto;
    }

.call-container {
    width: 100%;
    max-width: 360px;
    background-color: #242526;
    border-radius: 8px;
    overflow: hidden;
    color: white;
}

.call-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.call-type {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.call-name {
    font-size: 20px;
    font-weight: 500;
}

.call-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #3a3b3c;
    margin: 32px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #1877f2;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 16px;
}

.call-action {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .call-action.end {
        background-color: #f02849;
    }

    .call-action.toggle {
        background-color: #3a3b3c;
    }

    .call-action .material-icons {
        font-size: 24px;
    }

/* Minimize chat window */
.chat-window.minimized {
    height: 46px;
}

    .chat-window.minimized .chat-window-messages,
    .chat-window.minimized .chat-window-input {
        display: none;
    }

/* Responsive styles */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .chat-bar {
        width: 200px;
    }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

    .ripple:after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
    }

    .ripple:active:after {
        transform: scale(0, 0);
        opacity: .3;
        transition: 0s;
    }

.skill-bar {
    @apply w-full bg-border-color rounded-full h-3 overflow-hidden;
}

.skill-progress {
    @apply bg-secondary h-full rounded-full transition-all duration-700 ease-in-out;
    width: 0; /* Default width */
}

.skill-bar {
    width: 100%;
    background-color: var(--border-color);
    border-radius: 9999px;
    height: 0.75rem; /* h-3 */
    overflow: hidden;
}

.skill-progress {
    background-color: var(--secondary);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.7s ease-in-out;
    width: 0;
}


/* Apply background image to the grid container */
/* Apply background image to the grid container */
.grid-container {
    width: 100%;
    height: 100%;
    min-height: 0; /* Ensures it respects parent's height */
    box-sizing: border-box; /* Includes padding in the width/height calculation */
    background-image: url('../daban.jpg'); /* Replace with your base64 encoded image or URL */
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    vertical-align:central;
    position: relative;
    height: 100vh; /* Full viewport height, adjust as needed */
    overflow: hidden;
    padding: 2rem;
}



    .grid-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../daban.jpg'); /* same image */
        background-size: cover;
        background-position: center;
        filter: blur(15px); /* Apply blur to this layer only */
        z-index: 0;
        pointer-events: none;
        /* Mask center 25% to make it unblurred */
        mask-image: linear-gradient( to right, black 0%, black 45%, /* Left blur ends */
        transparent 42%, /* Clear center starts */
        transparent 70%, /* Clear center ends (25%) */
        black 70%, /* Right blur starts */
        black 100% );
        -webkit-mask-image: linear-gradient( to right, black 0%, black 45%, transparent 45%, transparent 70%, black 70%, black 100% );
    }



    /* Ensure content is above the blur */
    .grid-container > * {
        position: relative;
        z-index: 2;
    }

/* Floating animation for the SVG (if still present) */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Default (Light Theme) */
.glow-text {
    color: black;
    text-shadow: 0 0 3px white, 0 0 6px white;
}

/* Dark Theme */
[data-theme="dark"] .glow-text {
    color: white;
    text-shadow: 0 0 3px black, 0 0 6px black;
}



#acceptCallBtn:hover {
    background-color: #0f0;
    box-shadow: 0 0 10px #0f0;
    cursor: pointer;
}
.video-call-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .video-call-modal.active {
        display: flex; /* visible when active */
    }

.video-call-container {
    background: #111;
    border-radius: 12px;
    padding: 16px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
}

.video-call-header {
    margin-bottom: 10px;
}

.video-call-content {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.video-call-container .video-wrapper {
    position: relative;
    width: 48%;
    border: 4px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

    .video-call-container .video-wrapper.talking {
        border-color: #00ff00;
        box-shadow: 0 0 10px #00ff00;
    }

.video-call-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: black;
}

.video-call-actions.center {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.video-call-actions .call-action.ripple {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .video-call-actions .call-action.ripple:hover {
        transform: scale(1.1);
    }




.user-info-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

    .user-info-modal.active {
        display: flex; /* show when active */
    }

.user-info-container {
    background: #222;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    color: white;
    text-align: center;
}

.user-info-header {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: bold;
}

.user-info-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.user-info-input {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    color:black;
}

.user-info-actions {
    display: flex;
    justify-content: center;
}

.user-info-button {
    background-color: #4caf50;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    .user-info-button:hover {
        background-color: #45a049;
    }




   





#incomingCallOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-in-out;
}

#incomingCallContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    width: 300px;
}

    #incomingCallContainer h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    #incomingCallContainer .buttons {
        margin-top: 20px;
    }

        #incomingCallContainer .buttons button {
            padding: 10px 20px;
            font-size: 1em;
            margin: 0 10px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: 0.3s;
        }

#acceptCallBtn {
    background: #4caf50;
    color: white;
}

#rejectCallBtn {
    background: #f44336;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}


.audio-record-button {
    position: relative;
    background: #f44336;
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 30px;
    cursor: pointer;
    outline: none;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width:30px;
}


    .audio-record-button .material-icons {
        font-size: 24px;
        pointer-events: none;
    }

/* Recording wave animation */
.recording-wave {
    position: absolute;
    border: 2px solid #f44336;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    animation: wave-pulse 1.5s infinite;
    transform-origin: center;
}

.audio-record-button.recording .recording-wave {
    opacity: 1;
}

@keyframes wave-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.message.audio-message .message-content {
    padding: 8px 12px;
    border-radius: 15px;
    background-color: #f0f0f0;
    display: inline-block;
    width: 200px;
    box-sizing: border-box;
}

.message.audio-message audio {
    width: 100%;
    outline: none;
    border-radius: 8px;
}


.video-call-controls {
    display: flex;
    gap: 1rem;
    padding: 10px;
    background: #222;
    color: white;
    align-items: center;
    justify-content: center;
}

    .video-call-controls button {
        padding: 6px 12px;
        border: none;
        background: #555;
        color: white;
        cursor: pointer;
        border-radius: 4px;
    }

    .video-call-controls input[type=range] {
        width: 100px;
    }

/* Light theme (default) */
.map-modal-content {
    background-color: white;
    color: #1f2937; /* dark gray text */
}

.map-modal-header {
    border-color: #e5e7eb; /* light border */
}

.map-close-btn {
    color: #4b5563; /* gray-600 */
}

    .map-close-btn:hover {
        color: #111827; /* gray-900 */
    }

/* Dark theme */
[data-theme="dark"] .map-modal-content {
    background-color: #1e293b; /* slate-800 */
    color: #f1f5f9; /* slate-100 */
}

[data-theme="dark"] .map-modal-header {
    border-color: #334155; /* slate-700 */
}

[data-theme="dark"] .map-close-btn {
    color: #94a3b8; /* slate-400 */
}

    [data-theme="dark"] .map-close-btn:hover {
        color: #f1f5f9; /* slate-100 */
    }

/* Make map area adjust fully */
#map {
    width: 100%;
    height: 100%;
}

.flag-dropdown {
    position: relative;
    width: 80px;
    user-select: none;
}

.flag-selected {
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

    .flag-selected img {
        width: 32px;
        height: 24px;
        object-fit: cover;
        border-radius: 3px;
    }

.flag-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    flex-direction: column;
    z-index: 10;
}

.flag-option {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

    .flag-option:last-child {
        border-bottom: none;
    }

    .flag-option img {
        width: 32px;
        height: 24px;
        border-radius: 3px;
    }

    .flag-option:hover {
        background-color: #e0e7ff;
    }

#flagDropdown img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

#flagDropdown #selectedFlag img {
    width: 28px;
    height: 18px;
    cursor: pointer;
}

#flagDropdown .flag-option {
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

    #flagDropdown .flag-option img {
        width: 24px;
        height: 16px;
        border-radius: 2px;
    }

.absolute.inset-0 {
    background-color: #F5F5F5;
    opacity: 0.5;
    z-index: 0;
}

[data-theme="dark"] .absolute.inset-0 {
    background-color: black;
   
    opacity: 0.5;
}