/* ============================================
   SAM DIGITAL SOLUTIONS - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #003366;
    --primary-light: #3399ff;
    --secondary-color: #ff6b00;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --white: #ffffff;
    --black: #000000;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', var(--font-primary);
    
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    --box-shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --box-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll To Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--box-shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-left ul,
.top-bar-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left .contact-info li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left .contact-info a {
    color: rgba(255,255,255,0.9);
}

.top-bar-left .contact-info a:hover {
    color: var(--white);
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.social-links a:hover {
    color: var(--white);
}

/* Header / Navigation */
.site-header {
    background: var(--white);
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--box-shadow);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.logo-white {
    display: none;
}

.navbar-nav {
    gap: 5px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 18px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0,102,204,0.05);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(0,102,204,0.05);
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,102,204,0.3);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    opacity: 0.8;
    font-size: 14px;
}

/* Floating Cards */
.hero-image {
    position: relative;
}

.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--dark-color);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--box-shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary-color);
    font-size: 20px;
}

.card-1 { top: 20%; left: -20px; animation-delay: 0s; }
.card-2 { top: 45%; right: -30px; animation-delay: 0.5s; }
.card-3 { bottom: 30%; left: -40px; animation-delay: 1s; }
.card-4 { bottom: 15%; right: -20px; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Styles */
.section-subtitle {
    display: inline-block;
    background: rgba(0,102,204,0.1);
    color: var(--primary-color);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-xl);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 32px;
    color: var(--white);
}

.service-card h4 {
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.cta-wrapper {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-widget h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-about {
    opacity: 0.8;
    margin: 20px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact .text {
    opacity: 0.8;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-payment {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
}

.payment-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-bottom {
    padding: 20px 0;
    font-size: 14px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* Quick Contact Widget */
.quick-contact-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
}

.quick-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.quick-contact-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn { background: #25D366; }
.phone-btn { background: var(--primary-color); }
.email-btn { background: #ea4335; }
.chat-btn { background: #ff9800; }

/* Live Chat Box */
.live-chat-box {
    position: fixed;
    bottom: 100px;
    right: 100px;
    width: 350px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    z-index: 999;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-status {
    font-size: 12px;
    opacity: 0.9;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
}

.chat-body {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
}

.message.received .message-content {
    background: var(--white);
    border-bottom-left-radius: 5px;
}

.message.sent .message-content {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 11px;
    color: var(--gray-color);
    margin-top: 5px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-reply-btn {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.chat-footer {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid #eee;
}

.chat-footer form {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow-lg);
        margin-top: 15px;
    }
    
    .navbar-actions {
        margin-top: 20px;
        display: flex;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .live-chat-box {
        width: 300px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .top-bar {
        display: none;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .quick-contact-widget {
        bottom: 80px;
        right: 20px;
    }
}