/* Home page specific styles */

/* Top bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(15px);
    min-height: 60px;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* Cursor-following border glow effect - only on outline */
/* Cursor-following border glow effect for top bar */
.top-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 1;

    /* Improved mask with elliptical larger horizontal glow */
    -webkit-mask: radial-gradient(
        ellipse 120px 60px at var(--mouse-x, -100px) var(--mouse-y, -100px),
        white 0%,
        white 20%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    mask: radial-gradient(
        ellipse 120px 60px at var(--mouse-x, -100px) var(--mouse-y, -100px),
        white 0%,
        white 20%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
}

.top-bar:hover::before {
    opacity: 1;
}

.id-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    min-width: 0;
}

.id-label {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.id-value {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    backdrop-filter: blur(10px);
    min-width: 180px;
    text-align: center;
}

/* Main layout */
.main-layout {
    flex: 1;
    display: flex;
    gap: var(--space-xl);
    min-height: 0;
}

/* Call area */
.call-area {
    flex: 2;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.call-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.01) 0%,
        rgba(255, 255, 255, 0.005) 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    pointer-events: none;
}

.call-icon {
    width: 140px;
    height: 140px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.call-icon svg {
    width: 120px;
    height: 120px;
}

.call-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Contact Form */

.contact-input::placeholder {
    color: var(--text-tertiary);
    font-size: 15px;
}

/* Bottom Control Panel - Minimalistic Design */
.bottom-control-panel {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.5vh 2vw;
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 0.5px 2px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    z-index: 2;
    min-height: 7vh;
}

/* Language Section */
.language-section {
    display: flex;
    align-items: center;
    gap: 1vw;
    flex-shrink: 0;
}

.language-selector {
    width: 4.5vh;
    height: 4.5vh;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow:
        inset 0 0.1vh 0.2vh rgba(0, 0, 0, 0.15),
        0 0.1vh 0.4vh rgba(0, 0, 0, 0.1);
}

.language-selector:hover {
    background: var(--bg-surface-active);
    border-color: var(--border-secondary);
}

.selected-language {
    font-size: 2vh;
    color: var(--text-primary);
    font-weight: 500;
}

.language-label {
    font-size: 1.6vh;
    color: var(--text-secondary);
    font-weight: 400;
}

.label-full {
    display: inline;
}

.label-short {
    display: none;
}

/* Request Section */
.request-section {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    flex: 1;
    justify-content: flex-end;
    max-width: 45vw;
}

.contact-id-input {
    padding: 1.5vh 1.2vw;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.7vh;
    font-weight: 400;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    width: 18vw;
    min-width: 160px;
    height: 5vh;
    box-shadow:
        inset 0 0.1vh 0.2vh rgba(0, 0, 0, 0.15),
        0 0.1vh 0.4vh rgba(0, 0, 0, 0.05);
}

.contact-id-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: var(--bg-surface-hover);
    box-shadow:
        inset 0 0.1vh 0.2vh rgba(0, 0, 0, 0.1),
        0 0 0 0.1vh rgba(255, 255, 255, 0.2);
}

.contact-id-input::placeholder {
    color: var(--text-tertiary);
    font-size: 1.5vh;
}

.submit-request-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6vw;
    padding: 1.5vh 1.5vw;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.7vh;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    min-width: 11vw;
    height: 5vh;
    box-shadow:
        inset 0 0.1vh 0.2vh rgba(0, 0, 0, 0.15),
        0 0.1vh 0.4vh rgba(0, 0, 0, 0.05);
}

.submit-request-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.submit-request-btn:active {
    border-color: rgba(255, 255, 255, 0.6);
}

.submit-request-btn svg {
    width: 1.8vh;
    height: 1.8vh;
    flex-shrink: 0;
}

/* Responsive adjustments for compact window sizes */
@media (max-width: 1400px) {
    .label-full {
        display: none;
    }

    .label-short {
        display: inline;
    }

    .bottom-control-panel {
        gap: 2vw;
    }

    .language-section {
        gap: 1.2vw;
    }

    .request-section {
        gap: 1.5vw;
    }
}

/* Additional adjustments for very small window sizes */
@media (max-width: 1100px) and (max-height: 800px) {
    .bottom-control-panel {
        gap: 2vw;
    }

    .language-section {
        gap: 1.2vw;
    }

    .request-section {
        gap: 1.5vw;
    }
}
/* Side panels */
.side-panels {
    flex: 1;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: var(--space-xl);
}

.panel-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
    min-height: 120px;
}

/* Animated arrow that slides from right */
.panel-item::before {
    content: "→";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

/* Darkening gradient behind arrow - more stretched */
.panel-item::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%
    );
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.panel-item:hover {
    border-color: var(--border-hover);
}

.panel-item:hover::before {
    opacity: 1;
    right: var(--space-md);
    transform: translateY(-50%) scale(1.1);
}

.panel-item:hover::after {
    opacity: 1;
    width: 55%;
}

.panel-item:active {
    transform: translateY(-1px);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 2;
}

.panel-icon {
    color: var(--text-secondary);
    transition: color var(--transition-normal);
    flex-shrink: 0;
}

.panel-icon svg {
    width: 24px;
    height: 24px;
}

.panel-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
    line-height: 1.2;
    opacity: 0.9;
}

.panel-description {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: left;
    position: relative;
    z-index: 2;
    opacity: 0.7;
    line-height: 1.4;
    margin-top: auto;
    transition: opacity var(--transition-normal);
    padding-bottom: var(--space-sm);
}

/* Subtle darkening at bottom for description */
.panel-description::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -var(--space-lg);
    right: -var(--space-lg);
    height: 30px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
    opacity: 0.6;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    pointer-events: none;
    z-index: 1;
}

.panel-item:hover .panel-text {
    opacity: 1;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.panel-item:hover .panel-description {
    opacity: 0.8;
}

/* Panel glow overlay - separate element to avoid pseudo-element conflicts */
.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 3;

    /* Improved mask with elliptical larger horizontal glow */
    -webkit-mask: radial-gradient(
        ellipse 100px 50px at var(--mouse-x, -100px) var(--mouse-y, -100px),
        white 0%,
        white 20%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    mask: radial-gradient(
        ellipse 100px 50px at var(--mouse-x, -100px) var(--mouse-y, -100px),
        white 0%,
        white 20%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
}

.panel-item:hover .panel-glow {
    opacity: 1;
}

/* Adaptive text descriptions for panel cards */
.desc-full {
    display: block;
}

.desc-short {
    display: none;
}

/* Show shortened text only at minimum window size (1100x800) */
@media (max-width: 1100px) and (max-height: 800px) {
    .desc-full {
        display: none;
    }

    .desc-short {
        display: block;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .call-area {
        flex: none;
        min-height: 300px;
    }

    .side-panels {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}
