/* Shared styles for muhammadaqeel.com */

/* Index (home) page styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0b0b0b;
    color: #334155;
    letter-spacing: -0.02em;
    scroll-behavior: smooth;
}

.descript-pill {
    border-radius: 9999px;
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(11, 11, 11, 0.8);
}

.hero-dark {
    position: relative;
    background-color: #0b0b0b;
    overflow: hidden;
}

/* Background image only for home page hero */
.home-hero {
    background-image: url('https://img.freepik.com/free-vector/abstract-technology-particle-background_23-2148426649.jpg?w=1800');
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(11, 11, 11, 0.4) 0%,
        rgba(11, 11, 11, 0.2) 40%,
        rgba(11, 11, 11, 0.9) 90%,
        #0f172a 100%
    );
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.92;
    font-weight: 800;
    position: relative;
    z-index: 2;
    color: #fff;
}

.home-hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
}

.text-serious {
    color: #c084fc;
    text-shadow: 0 0 40px rgba(192, 132, 252, 0.4);
}

.bridge-section {
    background-color: #0f172a;
    height: 100px;
    margin-top: -2px;
}

.main-white {
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    border-radius: 64px 64px 0 0;
    margin-top: -60px;
    box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.3);
}

.btn-purple {
    background-color: #7c3aed;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.3);
}

.btn-purple:hover {
    background-color: #6d28d9;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6);
}

.terminal-bg {
    background: #0b0f1a;
    border-radius: 16px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.service-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.exp-card-accent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #7c3aed;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exp-card-accent:hover::before {
    opacity: 1;
}

.feature-tag {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.italic-fix {
    padding-right: 0.15em;
    display: inline-block;
}

/* About page extras */
.accent-text {
    color: #c084fc;
    font-style: italic;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.3);
}

.stat-card {
    border-left: 2px solid #7c3aed;
    padding-left: 1.5rem;
}

.mobile-highlight {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.5);
}

/* Services page extras */
.mono {
    font-family: 'JetBrains Mono', monospace;
}

.hero-dark.services-hero {
    color: #ffffff;
}

.main-white.services-main {
    border-radius: 48px 48px 0 0;
    box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.4);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
}

.service-card.services-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card.services-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 30px 60px -12px rgba(124, 58, 237, 0.12);
    transform: translateY(-8px);
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 14px;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: #f5f3ff;
    color: #7c3aed;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.status-badge {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Experience page extras */
.exp-card {
    background: #ffffff;
    border-radius: 32px;
    padding: 40px;
    border: 1px solid #f1f5f9;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exp-card:hover {
    transform: translateY(-10px);
    border-color: #7c3aed;
    box-shadow: 0 30px 60px -15px rgba(124, 58, 237, 0.1);
}

.tech-tag {
    background: #f8fafc;
    color: #64748b;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #e2e8f0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, #7c3aed, #e2e8f0);
}

.featured-case {
    background: #0b0b0b;
    color: white;
    border-radius: 40px;
    overflow: hidden;
}

/* Contact page extras */
.main-white.contact-main {
    color: #1a1a1a;
    border-radius: 48px 48px 0 0;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 32px 32px;
}

.input-field {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #1e293b;
}

.input-field:focus {
    border-color: #7c3aed;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
    transform: translateY(-1px);
}

.contact-method {
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    display: block;
}

.contact-method:hover {
    padding-left: 12px;
    border-color: #7c3aed;
    background-image: linear-gradient(to right, rgba(124, 58, 237, 0.05), transparent);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '↓';
    font-family: 'JetBrains Mono';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
}

/* AI-products page extras */
.product-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 48px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -16px rgba(124, 58, 237, 0.1);
}

.feature-tag.light {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
}

/* Chatbot styles - Premium Design */

/* Floating Button */
.aq-chat-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #4c1d95 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), 
                0 0 0 0 rgba(124, 58, 237, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Single unbreakable unit for Safari: icon + text on one line */
.aq-chat-btn-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.aq-chat-btn-text {
    flex-shrink: 0;
}

.aq-chat-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aq-chat-btn-icon svg {
    display: block;
}

.aq-chat-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5),
                0 0 0 4px rgba(124, 58, 237, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.aq-chat-button:active {
    transform: translateY(-2px) scale(0.98);
}

/* Chat Window */
.aq-chat-window {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 400px;
    height: 580px;
    background: #ffffff;
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(124, 58, 237, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

@keyframes slideUp {
    from { 
        transform: translateY(60px) scale(0.95); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

/* Header - Premium Gradient */
.aq-chat-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, 
        #7c3aed 0%, 
        #6d28d9 30%, 
        #5b21b6 60%, 
        #4c1d95 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aq-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%,
        rgba(192, 132, 252, 0.1) 100%);
    pointer-events: none;
}

/* Wrapper forces round clip in Safari (border-radius on img can fail) */
.aq-chat-header-avatar-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aq-chat-header-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.aq-chat-header-info {
    min-width: 0;
    flex: 1;
    position: relative;
    z-index: 1;
}

.aq-chat-header strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.aq-status {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aq-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.aq-close {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.aq-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Body */
.aq-chat-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
}

.aq-chat-body::-webkit-scrollbar {
    width: 6px;
}

.aq-chat-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.aq-chat-body::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 3px;
}

.aq-chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* Footer */
.aq-chat-footer {
    display: flex;
    align-items: flex-end;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 4px;
}

.aq-chat-footer .aq-chat-input,
.aq-chat-footer input,
.aq-chat-footer textarea {
    flex: 1;
    min-height: 48px;
    max-height: 120px;
    padding: 16px 20px;
    border: none;
    background: #f9fafb;
    color: #1f2937;
    outline: none;
    border-radius: 12px;
    margin: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
    resize: none;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.aq-chat-footer textarea.aq-chat-input {
    display: block;
}

.aq-chat-footer .aq-chat-input:focus,
.aq-chat-footer input:focus,
.aq-chat-footer textarea:focus {
    background: #ffffff;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.aq-chat-footer .aq-chat-input::placeholder,
.aq-chat-footer input::placeholder,
.aq-chat-footer textarea::placeholder {
    color: #9ca3af;
}

/* Chat input scrollbar – minimal, on-brand (purple), no arrow buttons */
.aq-chat-footer textarea.aq-chat-input::-webkit-scrollbar,
.aq-chat-footer .aq-chat-input::-webkit-scrollbar {
    width: 6px;
}

.aq-chat-footer textarea.aq-chat-input::-webkit-scrollbar-button,
.aq-chat-footer .aq-chat-input::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.aq-chat-footer textarea.aq-chat-input::-webkit-scrollbar-track,
.aq-chat-footer .aq-chat-input::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.aq-chat-footer textarea.aq-chat-input::-webkit-scrollbar-thumb,
.aq-chat-footer .aq-chat-input::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.25);
    border-radius: 3px;
}

.aq-chat-footer textarea.aq-chat-input::-webkit-scrollbar-thumb:hover,
.aq-chat-footer .aq-chat-input::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.45);
}

.aq-chat-footer textarea.aq-chat-input::-webkit-scrollbar-thumb:active,
.aq-chat-footer .aq-chat-input::-webkit-scrollbar-thumb:active {
    background: rgba(124, 58, 237, 0.6);
}

.aq-chat-footer textarea.aq-chat-input,
.aq-chat-footer .aq-chat-input {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.35) transparent;
}

.aq-chat-footer button {
    flex-shrink: 0;
    align-self: flex-end;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: none;
    color: white;
    padding: 0 24px;
    margin: 4px;
    min-height: 48px;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aq-chat-footer button:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.aq-chat-footer button:active {
    transform: translateY(0);
}

.aq-chat-footer button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Messages - Premium Styling */
.bot-msg {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08) 0%, 
        rgba(124, 58, 237, 0.04) 100%);
    padding: 14px 18px;
    margin-bottom: 12px;
    max-width: 85%;
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    color: #1f2937;
    line-height: 1.6;
    background-clip: padding-box;
    overflow: hidden;
}

.bot-msg::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #7c3aed, #6d28d9);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 4px;
}

.user-msg {
    background: linear-gradient(135deg, 
        #f3f4f6 0%, 
        #e5e7eb 100%);
    padding: 14px 18px;
    margin-bottom: 12px;
    margin-left: auto;
    max-width: 85%;
    text-align: right;
    border: 1px solid #d1d5db;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #1f2937;
    line-height: 1.6;
    position: relative;
    background-clip: padding-box;
    overflow: hidden;
}

.user-msg::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6b7280, #9ca3af);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.aq-chat-loading {
    opacity: 0.9;
    font-style: italic;
    color: #6b7280;
}

.aq-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

.aq-loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: inline-block;
    animation: aq-dot-bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
}

.aq-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.aq-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.aq-loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes aq-dot-bounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.2) translateY(-4px);
        opacity: 1;
    }
}

.aq-chat-error {
    background: linear-gradient(135deg, 
        rgba(254, 226, 226, 0.8) 0%, 
        rgba(254, 226, 226, 0.6) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

.aq-chat-error::before {
    background: linear-gradient(to bottom, #dc2626, #b91c1c) !important;
}

/* Chat: mobile full-screen so nothing is cut off */
@media (max-width: 768px) {
    .aq-chat-window {
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        width: 100%;
        max-width: 100vw;
        height: 100%;
        height: 100dvh;
        max-height: 100vh;
        border-radius: 0;
        box-sizing: border-box;
    }

    .aq-chat-header {
        padding: 14px 16px;
        box-sizing: border-box;
    }

    .aq-chat-body {
        padding: 16px;
        box-sizing: border-box;
    }

    .aq-chat-footer {
        padding: 8px;
        box-sizing: border-box;
    }

    .aq-chat-button {
        bottom: 20px;
        right: 16px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .aq-chat-window {
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
        width: 100%;
        max-width: 100vw;
        height: 100%;
        height: 100dvh;
        max-height: 100vh;
        border-radius: 0;
    }

    .aq-chat-header strong {
        font-size: 15px;
    }

    .aq-status {
        font-size: 10px;
    }

    .bot-msg,
    .user-msg {
        max-width: 92%;
    }
}


