/* Modern CSS Enhancements for Teknosage Innovation */
/* Clean, Professional Design with Subtle Modern Effects */

/* 1. Loading Animation - Subtle */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1F44 0%, #4CAF50 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFCA28;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 2. Subtle Scroll Animations */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Clean Navigation - No Glassmorphism */
.nav-clean {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. Professional Button Styles */
.btn-clean {
    background: linear-gradient(135deg, #0A1F44, #2EC4B6);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.btn-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #0A1F44;
    transform: translateY(-2px);
}

/* 5. Subtle Floating Animation */
.floating-subtle {
    animation: floatSubtle 4s ease-in-out infinite;
}

@keyframes floatSubtle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* 6. Clean Service Cards - Matching Image Design */
.service-card-clean {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(10, 31, 68, 0.1);
}

.service-card-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0A1F44, #4CAF50, #2EC4B6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card-clean:hover::before {
    transform: scaleX(1);
}

.service-card-clean:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-card-clean .service-title {
    color: #0A1F44;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.service-card-clean .service-description {
    color: #666;
    font-family: 'Roboto', sans-serif;
}

.service-card-clean .service-features li {
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.service-card-clean .service-link {
    color: #2EC4B6;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* 7. Clean Form Styles */
.form-clean {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.input-clean {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: 'Roboto', sans-serif;
}

.input-clean:focus {
    outline: none;
    border-color: #2EC4B6;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

/* 8. Contact Info Cards - Clean Design */
.contact-item-clean {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 31, 68, 0.1);
}

.contact-item-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-item-clean h4 {
    color: #0A1F44;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.contact-item-clean p {
    color: #666;
    font-family: 'Roboto', sans-serif;
}

/* 9. Hero Section - Clean Design */
.hero-clean {
    position: relative;
    overflow: hidden;
}

.hero-clean::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(46, 196, 182, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.05) 0%, transparent 50%);
    animation: pulseSubtle 6s ease-in-out infinite;
}

@keyframes pulseSubtle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 10. Clean Typography */
.text-clean {
    color: #B0BEC5;
    font-family: 'Roboto', sans-serif;
}

.title-clean {
    color: #2EC4B6;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

/* 11. Subtle Particle Background */
.particles-subtle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* 12. Clean Navigation Links */
.nav-link-clean {
    color: #B0BEC5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link-clean:hover,
.nav-link-clean.active {
    color: #2EC4B6;
    background: rgba(46, 196, 182, 0.1);
}

/* 13. Responsive Design */
@media (max-width: 768px) {
    .service-card-clean {
        padding: 1.5rem;
    }
    
    .form-clean {
        padding: 2rem;
    }
    
    .contact-item-clean {
        padding: 1.25rem;
    }
}

/* 14. Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 15. PWA Styles */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0A1F44;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

/* 16. Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A1F44, #2EC4B6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbot-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.chatbot-widget i {
    color: white;
    font-size: 24px;
}

.chatbot-panel {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(10, 31, 68, 0.1);
}

.chatbot-header {
    background: linear-gradient(135deg, #0A1F44, #2EC4B6);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.chatbot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chatbot-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    height: 350px;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.message.bot {
    align-items: flex-start;
}

.message.user {
    align-items: flex-end;
}

.message p {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot p {
    background: white;
    color: #333;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.message.user p {
    background: linear-gradient(135deg, #0A1F44, #2EC4B6);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
    border-color: #2EC4B6;
}

.chatbot-input button {
    background: linear-gradient(135deg, #0A1F44, #2EC4B6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.3);
}

.chatbot-input button i {
    font-size: 14px;
}

/* 17. Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.7);
    z-index: -1;
}

/* 18. Interactive Map Styles */
.map-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* 19. Analytics Dashboard Styles */
.analytics-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.analytics-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0A1F44;
    font-family: 'Montserrat', sans-serif;
}

/* 20. Real-time Updates */
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
