/* aIRONick Main Styles - Refactored Version */
/* Import all component styles */
@import url('components/base.css');
@import url('components/navigation.css');
@import url('components/sections.css');
@import url('components/cards.css');

/* CSS Custom Properties */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #2c3e50;
    --text-muted: #495057;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Force consistent rendering across browsers and environments */
html {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Additional custom styles */
.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

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

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    font-family: var(--font-family);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.5rem !important;
    margin-bottom: 2.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-section .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0.25rem;
    text-shadow: none;
}

.hero-section .badge.bg-primary {
    background-color: rgba(13, 110, 253, 0.8) !important;
}

.hero-section .badge.bg-success {
    background-color: rgba(25, 135, 84, 0.8) !important;
}

.hero-section .badge.bg-info {
    background-color: rgba(13, 202, 240, 0.8) !important;
}

.hero-icon i {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-icon p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    margin-top: 1rem !important;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Container fixes */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Force consistent font rendering */
body, h1, h2, h3, h4, h5, h6, p, span, div, a, button {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Improve text readability and contrast */
body {
    color: var(--text-color);
}

p, li, span {
    color: var(--text-color);
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
}

/* Ensure consistent button styling */
.btn {
    font-family: var(--font-family);
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
}

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

.btn-primary:hover {
    color: white;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

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

.btn-light:hover {
    color: var(--dark-color);
    background-color: #e9ecef;
    border-color: #dae0e5;
}

.btn-outline-light {
    color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    background-color: transparent !important;
}

.btn-outline-light:hover {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
}

/* Card enhancements */
.card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    background-color: white;
}

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

/* Card content text visibility */
.card-body p, .card-body li, .card-body span {
    color: var(--text-color);
    font-weight: 500;
}

.feature-item {
    color: var(--text-color);
    font-weight: 500;
}

/* Badge styling */
.badge {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875em;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    margin: 0.125rem;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.text-dark {
    color: #212529 !important;
}

/* Icon styling */
.fas, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

.fa-3x {
    font-size: 3em !important;
}

/* Hero service cards */
.hero-service-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.hero-service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-service-card .hero-icon {
    transition: transform 0.3s ease;
}

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

/* Utility classes */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #495057 !important;
    font-weight: 500 !important;
}

.h-100 {
    height: 100% !important;
}

.lead {
    font-size: 1.25rem !important;
    font-weight: 300 !important;
}

/* List styling */
ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }

    .hero-section p {
        font-size: 1.2rem !important;
    }

    .main-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .hero-section .badge {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section p {
        font-size: 1.1rem !important;
    }

    .card {
        margin-bottom: 1rem;
    }

    .hero-section .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        margin: 0.2rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    #loading,
    .btn {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }

    .hero-section {
        background: #f8f9fa !important;
        color: #212529 !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Force visibility and layout fixes */
.section {
    display: block !important;
    width: 100%;
    clear: both;
}

.section.d-none {
    display: none !important;
}

/* Ensure Bootstrap grid works properly */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}