/* Custom CSS for Adverta Limited Website */

/* Root Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    
    --font-family-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-serif: Georgia, 'Times New Roman', Times, serif;
    
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --transition: all 0.3s ease-in-out;
}

/* Base Styles */
body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    padding-top: 76px; /* Account for fixed navbar */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.1;
}

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Navigation */
.navbar {
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(52, 58, 64, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,100 50,125 100,100 150,125 200,100 250,125 300,100 350,125 400,100 450,125 500,100 550,125 600,100 650,125 700,100 750,125 800,100 850,125 900,100 950,125 1000,100 1000,300 0,300"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
}

/* Page Header */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    position: relative;
}

.page-header::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"><polygon fill="%23ffffff" fill-opacity="0.1" points="0,20 50,40 100,20 150,40 200,20 250,40 300,20 350,40 400,20 450,40 500,20 550,40 600,20 650,40 700,20 750,40 800,20 850,40 900,20 950,40 1000,20 1000,100 0,100"/></svg>');
    background-size: cover;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

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

.service-icon i {
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* Additional Service Cards */
.additional-service-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.additional-service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

/* Mission & Vision Cards */
.mission-card, .vision-card {
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

/* Value Cards */
.value-card {
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-3px);
}

.value-icon i {
    transition: var(--transition);
}

.value-card:hover .value-icon i {
    transform: scale(1.1);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
}

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

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

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Contact Info Card */
.contact-info-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

/* Social Links */
.social-links a {
    display: inline-block;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Company Info Card */
.company-info-card {
    background: var(--white);
    border: 1px solid #e9ecef;
}

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

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(52, 58, 64, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: var(--transition);
}

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

.cookie-consent a {
    color: var(--white);
}

.cookie-consent a:hover {
    color: #ccc;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004494);
    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);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark-color);
}

/* Legal Content */
.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.legal-content h3 {
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.contact-details {
    background: var(--light-color);
    border-left: 4px solid var(--primary-color);
}

/* Tables */
.table {
    background: var(--white);
}

.table th {
    background: var(--dark-color);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.table td {
    border-color: #e9ecef;
}

/* Accordion */
.accordion-button {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

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

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

/* Form Validation Styles */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.feature-item i {
    margin-right: 0.5rem;
}

/* Stat Items */
.stat-item h4 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: 80vh;
        background-attachment: scroll;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .cookie-consent {
        padding: 0.75rem 0;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .stat-item h4 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        background: none !important;
        color: var(--dark-color) !important;
        padding: 2rem 0;
    }
    
    .hero-section {
        background: none !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-overlay {
        background: none !important;
    }
    
    a {
        color: var(--dark-color) !important;
        text-decoration: underline !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --dark-color: #000000;
        --light-color: #ffffff;
    }
    
    .service-card,
    .contact-form-wrapper,
    .contact-info-card {
        border: 2px solid var(--dark-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

/* Ensure proper contrast for all text elements */
.hero-section .text-white {
    color: #ffffff !important;
}

.page-header .text-white {
    color: #ffffff !important;
}

.bg-dark .text-white {
    color: #ffffff !important;
}

.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.bg-light .text-muted {
    color: #6c757d !important;
}

.service-card {
    background: #ffffff !important;
    color: #212529 !important;
}

.service-card .text-muted {
    color: #6c757d !important;
}

.additional-service-card {
    background: #ffffff !important;
    color: #212529 !important;
}

.additional-service-card .text-muted {
    color: #6c757d !important;
}

.mission-card, .vision-card {
    background: #ffffff !important;
    color: #212529 !important;
}

.value-card .text-muted {
    color: #6c757d !important;
}

.contact-form-wrapper {
    background: #ffffff !important;
    color: #212529 !important;
}

.contact-info-card {
    background: #f8f9fa !important;
    color: #212529 !important;
}

.company-info-card {
    background: #f8f9fa !important;
    color: #212529 !important;
}

/* Footer styling */
footer.bg-dark {
    background-color: #343a40 !important;
    color: #ffffff !important;
}

footer.bg-dark .text-light {
    color: #f8f9fa !important;
}

footer.bg-dark .text-muted {
    color: #adb5bd !important;
}

/* Ensure form elements are readable */
.form-control, .form-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #ced4da !important;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #86b7fe !important;
}

/* Legal content styling */
.legal-content {
    color: #212529 !important;
}

.legal-content .text-muted {
    color: #6c757d !important;
}

/* Table styling */
.table {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.table-dark th {
    background-color: #343a40 !important;
    color: #ffffff !important;
}

/* Dark Mode Support - Remove problematic dark mode overrides */
@media (prefers-color-scheme: dark) {
    /* Keep only essential dark mode styles that don't break contrast */
    .navbar-dark {
        background-color: #343a40 !important;
    }
}
