/* SGM IT Services - Custom CSS */

/* CSS Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #25d366;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --transition: all 0.3s ease-in-out;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.fw-500 {
    font-weight: 500 !important;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.top-bar {
    background: var(--gradient-primary) !important;
    font-size: 0.875rem;
}

.top-bar a:hover {
    text-decoration: underline !important;
}

.navbar-brand {
    font-size: 1.5rem !important;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::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 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,100"/></svg>') no-repeat center bottom;
    background-size: 100% 100px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    border: 1px solid var(--success-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
    border: 2px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.service-card .service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--white);
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-item .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.feature-item h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--secondary-color);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.about-content {
    padding: 2rem;
}

.about-stats {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-color);
}

.testimonial-role {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    color: var(--white);
}

.footer h5, .footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer .text-light {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer a.hover-primary:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.footer .contact-info i {
    width: 20px;
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-color);
    border: none;
    transition: var(--transition);
}

.whatsapp-float .btn:hover {
    background: #128c7e;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top .btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Services Page Specific */
.service-detail {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.service-detail h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-detail ul {
    margin-left: 1rem;
}

.service-detail ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.service-detail ul li::marker {
    color: var(--primary-color);
}

/* Contact Page Specific */
.contact-info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
}

.contact-info-card .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-info-card h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float .btn {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        bottom: 75px;
        right: 15px;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer .contact-info {
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .features {
        padding: 2rem 0;
    }
    
    .about-section {
        padding: 2rem 0;
    }
    
    .testimonials {
        padding: 2rem 0;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
    
    .service-detail {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .btn {
        display: none !important;
    }
    
    body {
        background: var(--white) !important;
        color: var(--dark-color) !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000000;
    }
    
    .btn-primary {
        background: #0000ff;
        border-color: #0000ff;
    }
    
    .card {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Fix for Achievement Numbers Visibility in about.php */

/* Statistics Section - Make numbers visible on blue background */
.bg-primary .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff !important; /* Force white color */
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Add shadow for better visibility */
}

.bg-primary .stat-label {
    color: #ffffff !important; /* Force white color */
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.bg-primary .display-4 {
    color: #ffffff !important; /* Ensure display-4 numbers are white */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bg-primary .h6 {
    color: #ffffff !important; /* Ensure h6 labels are white */
}

.bg-primary .small {
    color: rgba(255,255,255,0.8) !important; /* Light white for small text */
}

/* Alternative: If you want to override the entire statistics section */
.py-5.bg-primary.text-white .stat-number,
.py-5.bg-primary.text-white .display-4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.py-5.bg-primary.text-white .stat-label,
.py-5.bg-primary.text-white .h6 {
    color: #ffffff !important;
    opacity: 0.95 !important;
}

.py-5.bg-primary.text-white .small.opacity-75 {
    color: rgba(255,255,255,0.85) !important;
}

/* Mobile responsive fix */
@media (max-width: 768px) {
    .bg-primary .stat-number,
    .bg-primary .display-4 {
        font-size: 2rem !important;
        color: #ffffff !important;
    }
}