/* Custom CSS for Calloratech Website */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    --gradient: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background-color: var(--black) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 25px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(0, 123, 255, 0.1);
}

.navbar-nav .btn {
    margin-left: 10px;
    border-radius: 25px;
    padding: 8px 20px !important;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23007bff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero-content h1 {
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-content .text-primary {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons .btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card span {
    font-weight: 600;
    color: var(--dark-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-in {
    animation: slideIn 1s ease-out 0.5s both;
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.visual-element {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.visual-element:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Solution Cards */
.solution-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.2);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.solution-icon i {
    font-size: 2rem;
    color: var(--white);
}

.solution-card h4 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.solution-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* AI Solutions */
.ai-features {
    margin-top: 40px;
}

.ai-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.ai-feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ai-feature-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    margin-top: 5px;
}

.ai-feature-content h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.ai-feature-content p {
    color: var(--secondary-color);
    margin: 0;
}

.ai-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ai-dashboard {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.ai-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Choose Cards */
.why-choose-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.why-choose-card .card-header {
    background: var(--gradient);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.why-choose-card .card-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.why-choose-card .card-header h4 {
    font-weight: 600;
    margin: 0;
}

.why-choose-card .card-body {
    padding: 30px;
}

.why-choose-card .card-body p {
    color: var(--secondary-color);
    line-height: 1.7;
    margin: 0;
}

/* Demo Section */
.demo-benefits {
    list-style: none;
    padding: 0;
}

.demo-benefits li {
    padding: 10px 0;
    font-size: 1.1rem;
}

.demo-benefits i {
    color: var(--white);
    margin-right: 10px;
}

.demo-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.demo-form-card .form-control,
.demo-form-card .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: var(--transition);
}

.demo-form-card .form-control:focus,
.demo-form-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Trial Section */
.trial-feature {
    padding: 30px 20px;
    text-align: center;
}

.trial-feature h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.trial-feature p {
    color: var(--secondary-color);
    margin: 0;
}

.trial-cta .btn {
    border-radius: 30px;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.trial-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact-form .form-control,
.contact-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--white);
    padding: 12px 15px;
    transition: var(--transition);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: var(--white);
}

.contact-info {
    padding: 30px 20px;
}

.contact-info i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.welcome-popup-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .ai-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .navbar-nav .btn {
        margin: 5px 0;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .demo-form-card {
        padding: 20px;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Welcome Popup Styles */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-popup.show {
    opacity: 1;
    visibility: visible;
}

.welcome-popup-content {
    background: var(--black);
    color: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.welcome-popup.show .welcome-popup-content {
    transform: scale(1);
}

.welcome-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.welcome-popup-close:hover {
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

.welcome-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-popup-header h3 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.welcome-popup-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.welcome-popup-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* External Chatbot Integration */
/* The external chatbot (Collect.chat) will provide its own styling */
