/* Custom CSS for Mateusz Gierlach Consulting Website */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0066cc; /* Original blue */
    --primary-dark: #0052a3; /* Darker blue */
    --secondary-color: #6c757d; /* Secondary gray */
    --success-color: #28a745;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: #b8deff; /* Light blue background */
    color: #333;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

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

.hero-section .display-4 {
    text-shadow: none;
}

.hero-section .text-primary {
    color: var(--primary-color) !important; /* Same blue as badges */
}

.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 280px;
    height: 320px; /* Slightly taller than wide for subtle oval */
    object-fit: contain; /* Keep the perfect zoom level */
    object-position: center center;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--box-shadow-lg);
    transition: transform 0.3s ease;
    border-radius: 50%; /* Creates subtle oval */
    background-color: #b8deff; /* Match hero background for any empty space */
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Badges */
.badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Ensure badges container doesn't wrap */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .badge-container {
        flex-wrap: nowrap;
    }
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

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

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

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

.service-icon {
    text-align: center;
}

/* Expertise Cards */
.expertise-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.expertise-card:hover::before {
    transform: scaleY(1);
}

.expertise-card:hover {
    background-color: var(--light-bg);
    transform: translateX(5px);
}

.expertise-number {
    background: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    min-width: 3rem;
    min-height: 3rem;
}

.expertise-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
}

.expertise-card ul li ul {
    margin-top: 0.25rem;
    margin-left: 1rem;
}

.expertise-card ul li ul li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
}

.expertise-card ul li ul li i {
    font-size: 0.6rem;
}

/* About Section Features */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    text-align: center;
}

/* Stats */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Contact Section */
.contact-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info-item {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

/* Sections */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .expertise-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9rem;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .contact-info-item {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .expertise-card {
        margin-bottom: 1rem;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {
    .expertise-card,
    .service-card,
    .feature-item,
    .stat-item,
    .contact-info-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .expertise-card:nth-child(even) {
        animation-delay: 0.1s;
    }
    
    .service-card:nth-child(2) {
        animation-delay: 0.1s;
    }
    
    .service-card:nth-child(3) {
        animation-delay: 0.2s;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Footer */
footer {
    margin-top: auto;
}

/* Loading Animation for Page */
.page-loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
    outline: none;
}

/* Client type items styling */
.client-type-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.client-type-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

/* Print styles */
@media print {
    .navbar,
    footer {
        display: none;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .expertise-card,
    .service-card {
        break-inside: avoid;
    }
}
