/* AirMailChemist - Custom Styles */
/* ================================ */

/* Root Variables */
:root {
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-secondary: #1e3a5f;
    --color-accent: #10b981;
    --color-dark: #0f172a;
    --color-light: #f8fafc;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Navigation Links */
.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.1);
}

.nav-link.active {
    color: #fbbf24;
    background-color: rgba(251, 191, 36, 0.15);
}

/* Footer Links */
.footer-link {
    display: inline-block;
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fbbf24;
    transform: translateX(4px);
}

/* Notice Banner */
.notice-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.3) 50%, transparent 51%);
    background-size: 10px 10px;
    pointer-events: none;
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 2rem 1rem 1rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(to top, rgba(245,158,11,0.9) 0%, rgba(245,158,11,0.5) 50%, transparent 100%);
}

.category-title {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Feature Badges */
.feature-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-align: center;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

/* Placeholder Image Styles */
.placeholder-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.placeholder-image::before {
    content: '📷';
    font-size: 2rem;
    display: block;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* Star Rating */
.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    letter-spacing: 0.25rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* ============================== */
/* AI Robot Section */
/* ============================== */
.ai-robot-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 2.5rem 0;
    overflow: hidden;
    position: relative;
}

.ai-robot-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245,158,11,0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(59,130,246,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ai-robot-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Robot Character */
.ai-robot-character {
    flex-shrink: 0;
    animation: robotFloat 3s ease-in-out infinite;
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.robot-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-antenna {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.antenna-ball {
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(251,191,36,0.8);
    animation: antennaPulse 2s ease-in-out infinite;
}

@keyframes antennaPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(251,191,36,0.8); }
    50% { box-shadow: 0 0 24px rgba(251,191,36,1); }
}

.antenna-stick {
    width: 3px;
    height: 14px;
    background: linear-gradient(to bottom, #94a3b8, #64748b);
    border-radius: 2px;
}

.robot-face {
    width: 80px;
    height: 60px;
    background: linear-gradient(145deg, #334155, #1e293b);
    border-radius: 16px 16px 12px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 10px 6px;
    border: 2px solid #475569;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.robot-eye {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle, #60a5fa, #3b82f6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(96,165,250,0.6);
    animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.robot-mouth {
    width: 24px;
    height: 6px;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

.robot-body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-top: 4px;
}

.robot-chest {
    width: 56px;
    height: 44px;
    background: linear-gradient(145deg, #334155, #1e293b);
    border-radius: 8px;
    border: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.robot-heart {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #ef4444, #dc2626);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(239,68,68,0.6);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}

.robot-arm {
    width: 12px;
    height: 34px;
    background: linear-gradient(145deg, #475569, #334155);
    border-radius: 6px;
    margin-top: 4px;
    border: 1px solid #64748b;
}

.left-arm {
    animation: waveArm 2.5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes waveArm {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
}

/* Speech Bubble */
.ai-robot-bubble {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    position: relative;
    max-width: 380px;
    animation: fadeInUp 0.6s ease forwards;
}

.ai-robot-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(255,255,255,0.15);
}

.bubble-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.35rem;
}

.bubble-text {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.bubble-text strong {
    color: #fbbf24;
}

/* ============================== */
/* Contact Info Bar */
/* ============================== */
.contact-bar {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
    padding: 1.25rem 0;
    border-top: 3px solid #22c55e;
    border-bottom: 1px solid #e5e7eb;
}

.contact-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item.whatsapp .contact-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.contact-item.telegram .contact-icon {
    background: linear-gradient(135deg, #0088cc, #0077b5);
    color: white;
}

.contact-item.signal .contact-icon {
    background: linear-gradient(135deg, #3a76f0, #2c4fbd);
    color: white;
}

.contact-item.session .contact-icon {
    background: linear-gradient(135deg, #333333, #111111);
    color: #00f782;
}

.contact-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 600;
}

.contact-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.session-id-val {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================== */
/* "Have Question?" CTA */
/* ============================== */
.msg-cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #db2777 100%);
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
}

.msg-cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
    pointer-events: none;
}

.msg-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.msg-cta-icon {
    flex-shrink: 0;
    color: rgba(255,255,255,0.85);
    animation: pulse 2s ease-in-out infinite;
}

.msg-cta-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.15rem;
}

.msg-cta-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.msg-cta-text strong {
    color: white;
}

.msg-cta-badge {
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    text-align: center;
    animation: pulse 3s ease-in-out infinite;
}

.msg-cta-badge span {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.msg-cta-badge small {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-card img {
        height: 150px;
    }
    
    .category-title {
        font-size: 0.8rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    .ai-robot-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .ai-robot-bubble::before {
        display: none;
    }

    .contact-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .msg-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #d97706);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
}

/* Selection Color */
::selection {
    background: #f59e0b;
    color: white;
}
