/* SVS IT CONSULTANTS LIMITED - Custom Styles */

/* CSS Variables for Corporate Colors */
:root {
    --primary-blue: #0052cc;
    --secondary-blue: #1a73e8;
    --dark-blue: #003d99;
    --light-blue: #e3f2fd;
    --gray-dark: #333333;
    --gray-medium: #666666;
    --gray-light: #f8f9fa;
    --white: #ffffff;
    --success-green: #28a745;
    --warning-orange: #ffc107;
    --danger-red: #dc3545;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --transition-smooth: all 0.3s ease;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    padding-top: 76px; /* Account for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Custom Bootstrap Overrides */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--light-blue) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/hero-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

/* Page Headers */
.page-header {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--primary-blue);
}

.service-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
    border-left-color: var(--secondary-blue);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
}

/* Technology Items */
.tech-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.tech-item:hover {
    background: var(--light-blue);
    transform: translateY(-5px);
}

/* Contact Information */
.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    height: 100%;
}

.contact-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.25);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success-green);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--danger-red);
    color: #721c24;
}

.alert-info {
    background-color: var(--light-blue);
    border-left-color: var(--primary-blue);
    color: var(--dark-blue);
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--warning-orange);
    color: #856404;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-dark);
    color: var(--white);
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-consent .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--gray-dark) !important;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

footer p {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

footer a {
    color: #adb5bd;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--white);
    text-decoration: none;
}

/* Stats Section */
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Policy Content */
.policy-content h2,
.terms-content h2,
.cookie-content h2 {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.policy-content h4,
.terms-content h4,
.cookie-content h4 {
    color: var(--gray-dark);
    margin-top: 1.5rem;
}

/* Error Pages */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-blue);
    opacity: 0.3;
    line-height: 1;
}

/* Map Placeholder */
.map-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue), #f8f9fa);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .feature-card,
    .service-card {
        margin-bottom: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    .cookie-consent .container .row {
        text-align: center;
    }
    
    .cookie-consent .col-md-4 {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 70vh;
    }
    
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .feature-card,
    .service-card,
    .contact-info {
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        background: none !important;
        color: var(--gray-dark) !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0044aa;
        --secondary-blue: #1166cc;
        --dark-blue: #002266;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
