/* Custom CSS for Christopher Kappelmann Landing Page */

/* Color Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --light-gray: #f8fafc;
    --dark-gray: #334155;
    --success-color: #059669;
    --warning-color: #d97706;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

/* Accessibility - Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    z-index: 1100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    color: white;
    text-decoration: none;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Override Bootstrap primary color */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
}

.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);
}

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

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

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

/* Services Section */
.service-icon i {
    font-size: 3rem;
    display: block;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Experience Section */
.experience-card .card {
    border-left: 4px solid var(--primary-color);
}

.experience-header h5 {
    font-weight: 600;
}

.tech-tags {
    margin-top: 1rem;
}

.tech-tags .badge {
    font-weight: 500;
}

/* Project Cards Container */
.projects-container {
    position: relative;
    max-width: 100%;
    padding: 0 60px;
    margin: 0 -60px;
}

.projects-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.projects-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.project-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    aspect-ratio: 1;
}

.project-card .card {
    height: 100%;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card .card-text {
    flex-grow: 1;
    line-height: 1.4;
    font-size: 0.9rem;
}

.project-card .tech-tags {
    margin-top: auto;
}

/* Navigation buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
    left: 10px;
}

.scroll-btn-right {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .project-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 250px;
    }
    
    .projects-container {
        padding: 0 50px;
        margin: 0 -50px;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 calc(85% - 0.5rem);
        min-width: 220px;
    }
    
    .projects-scroll {
        gap: 1rem;
    }
    
    .projects-container {
        padding: 0 45px;
        margin: 0 -45px;
    }
    
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .scroll-btn-left {
        left: 5px;
    }
    
    .scroll-btn-right {
        right: 5px;
    }
}

/* Skills Section */
.skill-category h5 {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}


/* Contact Section */
.contact-info {
    text-align: center;
    padding: 1.5rem;
}

.contact-info i {
    font-size: 2.5rem;
    display: block;
    margin: 0 auto 1rem;
}

.contact-info h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* CTA Buttons */
.cta-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-image-placeholder {
        margin: 1rem 0;
        padding: 2rem 1rem;
    }
    
    .hero-image-placeholder i {
        font-size: 5rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Animation for elements coming into view */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Badge enhancements */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Display font improvements */
.display-4,
.display-5 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Lead text styling */
.lead {
    font-weight: 400;
    color: var(--text-secondary);
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

/* Enhanced Focus Management for Accessibility */
.btn:focus,
.nav-link:focus,
.scroll-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Ensure focus is visible for all interactive elements */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip focus outline for mouse users */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .text-primary {
        color: #000000 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card,
    .scroll-btn,
    .skip-link,
    .nav-link {
        transition: none;
    }
    
    .animate-on-scroll {
        animation: none;
    }
}

/* Link styling */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

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