/* Custom CSS for CreaSolutions Bootstrap Website */

:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-muted: #6b7280;
    --white: #ffffff;
    --light-gray: #f9fafb;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Custom Gradients */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.bg-gradient-kotzorg {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1f2937;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
}

/* Logo styling */
.navbar-brand img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

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

/* Navbar height adjustment for larger logo */
.navbar {
    min-height: 90px;
}

.navbar .container {
    min-height: 90px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.kotzorg-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.kotzorg-card .service-icon {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Feature Icons */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Shadows */
.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

/* Background Colors */
.bg-primary {
    background-color: #3b82f6 !important;
}

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

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

.bg-info {
    background-color: #06b6d4 !important;
}

/* Override Bootstrap dark backgrounds */
.bg-dark {
    background-color: #1f2937 !important;
}

/* Light backgrounds for better readability */
.bg-light {
    background-color: #f8fafc !important;
}

/* White backgrounds */
.bg-white {
    background-color: #ffffff !important;
}

/* Override Bootstrap's default dark colors */
.bg-primary {
    background-color: #3b82f6 !important;
}

/* Ensure light backgrounds for content sections */
section:not(.hero-section):not(.bg-primary):not(.bg-dark) {
    background-color: #ffffff !important;
}

/* Light gray for alternating sections */
.bg-light {
    background-color: #f8fafc !important;
}

/* Custom Spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Hero Text */
.display-4 {
    font-weight: 800;
    line-height: 1.2;
}

.display-5 {
    font-weight: 700;
    line-height: 1.3;
}

.display-6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Lead Text */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Service Icons */
.service-icon {
    transition: all 0.3s ease;
}

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

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

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Input Group */
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

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

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

/* Enhanced Responsive Design */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        padding-top: 140px;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
    
    .display-5 {
        font-size: 3rem;
    }
    
    .display-6 {
        font-size: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.75rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
    
    .display-6 {
        font-size: 1.875rem;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 1.05rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Improve card spacing on tablets */
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Better grid layout for tablets */
    .row.g-4 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
    
    /* Navbar adjustments for tablets */
    .navbar {
        min-height: 80px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding-top: 90px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .display-5 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-6 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1.15rem;
    }
    
    .btn-lg {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    /* Better spacing for small devices */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Card improvements */
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Improve button spacing */
    .d-flex.gap-3 {
        gap: 1rem !important;
        flex-direction: column;
        align-items: center;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Navbar improvements */
    .navbar {
        min-height: 75px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
        min-height: 80vh;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 8px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    /* Container padding for mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Reduce section padding */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Card improvements for mobile */
    .card-body {
        padding: 1rem !important;
    }
    
    .card-body.p-5 {
        padding: 1.25rem !important;
    }
    
    /* Button improvements */
    .d-flex.gap-3 {
        gap: 0.75rem !important;
        flex-direction: column;
        align-items: center;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Navbar improvements for mobile */
    .navbar {
        min-height: 70px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Service icon adjustments */
    .service-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .service-icon i {
        font-size: 1.5rem !important;
    }
    
    /* Process step adjustments */
    .process-step {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Footer improvements */
    footer .row.g-4 {
        --bs-gutter-y: 2rem;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    /* Form improvements */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Image improvements */
    .img-fluid {
        margin-top: 1rem;
    }
    
    /* Text improvements */
    .text-center.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Alert improvements */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Very small devices (320px and up) */
@media (max-width: 374.98px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .btn-lg {
        padding: 6px 16px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 2rem;
    }
    
    .min-vh-100 {
        min-height: 100vh !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .service-icon,
    .process-step {
        transform: translateZ(0); /* Hardware acceleration */
    }
}

/* Enhanced Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 10px;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
    }
}

/* Enhanced Form Responsive */
@media (max-width: 767.98px) {
    .form-control,
    .form-select,
    textarea.form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    .input-group .form-control {
        border-radius: 8px 0 0 8px;
    }
    
    .input-group .btn {
        border-radius: 0 8px 8px 0;
    }
    
    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
    }
    
    .form-check {
        margin-top: 1rem;
    }
    
    .form-check-label {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Enhanced Card Responsive */
@media (max-width: 575.98px) {
    .card {
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-body.p-4 {
        padding: 1rem !important;
    }
    
    .card-body.p-5 {
        padding: 1.25rem !important;
    }
    
    /* Service card specific adjustments */
    .service-card .card-body {
        text-align: center;
    }
    
    .service-card .list-unstyled {
        text-align: left;
        margin-top: 1rem;
    }
    
    .service-card .list-unstyled li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Button Responsive */
@media (max-width: 575.98px) {
    .btn {
        border-radius: 25px;
        font-weight: 600;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
        min-height: 44px; /* Minimum touch target size */
    }
    
    .btn-primary,
    .btn-outline-primary,
    .btn-warning,
    .btn-success {
        width: 100%;
        max-width: 300px;
        margin: 0.25rem 0;
    }
    
    /* CTA button adjustments */
    .btn-warning {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
    }
    
    .btn-warning:hover {
        background-color: #e58e0a;
        border-color: #e58e0a;
    }
}

/* Enhanced Hero Section Responsive */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    .hero-section .d-flex.gap-3 {
        justify-content: center;
        margin-top: 2rem;
    }
}

/* Enhanced Footer Responsive */
@media (max-width: 767.98px) {
    footer {
        text-align: center;
    }
    
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    footer .d-flex.gap-3 {
        justify-content: center;
        margin-top: 1rem;
    }
    
    footer .input-group {
        max-width: 300px;
        margin: 0 auto;
    }
    
    footer .row.align-items-center {
        text-align: center;
    }
    
    footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Enhanced Grid Responsive */
@media (max-width: 575.98px) {
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8 {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps responsive */
    .col-lg-3.col-md-6 {
        margin-bottom: 2rem;
    }
    
    .process-step {
        margin: 0 auto 1rem;
    }
}

/* Enhanced Typography Responsive */
@media (max-width: 575.98px) {
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .text-muted {
        font-size: 0.95rem;
    }
    
    .fw-bold {
        font-weight: 700;
    }
    
    .fw-semibold {
        font-weight: 600;
    }
}

/* Enhanced Animation Responsive */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover,
    .card:hover {
        transform: none !important;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .card:hover,
    .btn:hover {
        transform: none;
    }
    
    .service-card:active,
    .card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Custom Utilities */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

/* Loading Animation */
.loading {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}