/* AlpsCraft Web Agency - Main Styles */

/* CSS Custom Properties - Glacial Tech Color Palette */
:root {
    /* Primary Alpine Green - Inspired by alpine meadows and evergreen forests */
    --primary-color: #2E8B57;
    /* Sea Green - Professional yet natural */

    /* Secondary Mountain Green - Deeper forest tones for contrast */
    --secondary-color: #1B5E3F;
    /* Dark Forest Green */

    /* Text Colors - Maintaining readability and professionalism */
    --text-primary: #1C2331;
    /* Charcoal - Unchanged for optimal readability */
    --text-light: #FFFFFF;
    /* Pure White - Clean alpine snow */

    /* Background - Soft natural tones */
    --background-light: #F7FAF8;
    /* Soft Mint White - Subtle green tint */

    /* Accent Gradient - Mountain to meadow transition */
    --accent-gradient: linear-gradient(135deg, #2E8B57 0%, #1B5E3F 100%);

    --section-padding: 5rem 0;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --text-secondary: #495057;  /* 6.0:1 ratio on white - passes WCAG AA at all sizes */
}

/* Base Styles */
* {
    box-sizing: border-box;
}

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

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

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

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

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    color: var(--text-primary) !important;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.03;
    transform: skewX(-15deg);
    transform-origin: top left;
    z-index: 0;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #6c757d;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badges {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: 25px;
}

.hero-graphic {
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hero-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: drop-shadow(0 20px 40px rgba(46, 139, 87, 0.15));
    transition: var(--transition);
    border-radius: calc(var(--border-radius) * 1.5);
}

.hero-img:hover {
    filter: drop-shadow(0 25px 50px rgba(46, 139, 87, 0.2));
    transform: translateY(-5px);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(46, 139, 87, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

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

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

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--card-shadow);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

/* Section Styles */
.section-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Left-aligned variant for section titles */
.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(46, 139, 87, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Value Proposition */
.value-proposition {
    background: white;
}

.value-point {
    display: flex;
    margin-bottom: 2rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.value-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.value-text p {
    color: #6c757d;
    margin-bottom: 0;
}

.value-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    text-align: center;
    padding: 3rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 2px dashed #dee2e6;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #495057;
    margin-bottom: 0;
}

.testimonial-author strong {
    color: var(--text-primary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.badge-item {
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: var(--accent-gradient);
    color: white;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--text-primary) !important;
}

.footer h5,
.footer h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links a {
    font-size: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.cookie-consent.hidden {
    display: none;
}

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

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 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;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        --card-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-graphic {
        animation: none;
    }
}

/* About Page Styles */
.page-header {
    padding-top: 120px;
    padding-bottom: 30px;
}

.page-header.bg-light {
    padding-top: 140px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e9ecef;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.25rem;
}

.min-vh-50 {
    min-height: 50vh;
}

.story-content {
    padding-right: 2rem;
}

.story-highlights {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
}

.highlight-item {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(46, 139, 87, 0.2);
}

.value-card .value-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.value-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

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

.team-card .image-placeholder {
    width: 120px;
    height: 120px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e9ecef;
}

.team-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-social a {
    font-size: 1.25rem;
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--secondary-color) !important;
}

.expertise-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
}

.industry-list {
    list-style: none;
    padding: 0;
}

.industry-list li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

.why-item {
    display: flex;
    margin-bottom: 2rem;
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.why-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.why-content p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Services Page Styles */
.services-nav {
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.services-nav .nav-pills .nav-link {
    color: var(--text-primary);
    background: transparent;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.services-nav .nav-pills .nav-link:hover,
.services-nav .nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.service-section {
    scroll-margin-top: 120px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-section h2 {
    color: var(--text-primary);
    margin-bottom: 0;
    font-size: 2.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-pricing {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #e9ecef;
}

.service-pricing h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.pricing-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.price-item {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
    min-width: 150px;
}

.price-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.price-item .price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-item .description {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.process-step {
    padding: 2rem 1rem;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.process-step p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Portfolio Page Styles */
.portfolio-filter {
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.portfolio-filter .nav-pills button {
    color: var(--text-primary);
    background: transparent;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.portfolio-filter .nav-pills button:hover,
.portfolio-filter .nav-pills button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.featured-project {
    background: white;
}

.project-image .image-placeholder.large {
    height: 400px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 2px dashed #dee2e6;
}

.project-details {
    padding-left: 2rem;
}

.project-category {
    margin-bottom: 1rem;
}

.project-category .badge {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

.project-details h3 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-features {
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.project-tech {
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--background-light);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    border: 1px solid #dee2e6;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid #e9ecef;
    height: 100%;
}

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

.project-card .project-image {
    position: relative;
    overflow: hidden;
}

.project-card .image-placeholder {
    height: 200px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 139, 87, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-content h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-content p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.stats-section {
    background: white;
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonials-section .testimonial-card {
    height: 100%;
}

/* Portfolio Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

.portfolio-item {
    animation: fadeInScale 0.5s ease-out;
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--card-shadow-hover);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: var(--background-light);
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* Contact Page Styles */
.contact-info-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(46, 139, 87, 0.2);
}

.contact-info-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.contact-info-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info-card p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.contact-details {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-details strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #e9ecef;
}

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

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

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.15);
}

.contact-form .form-control.is-valid,
.contact-form .form-select.is-valid {
    border-color: #198754;
}

.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid {
    border-color: #dc3545;
}

.contact-form .form-check-input {
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

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

.contact-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.15);
}

.contact-form .form-check-input.is-invalid {
    border-color: #dc3545;
}

.contact-form .form-check-label {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-form .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
}

/* FAQ Accordion Styles */
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: white;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: var(--background-light);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.15);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E8B57'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: #6c757d;
    line-height: 1.6;
}

/* Language Switcher Styles */
.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    margin-right: 0.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    vertical-align: middle;
}

/* Flag icons using CSS background images */
.flag-icon.flag-en {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCAzMCI+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBkPSJNMCAwdjMwaDYwVjB6Ii8+PC9jbGlwUGF0aD48Y2xpcFBhdGggaWQ9ImIiPjxwYXRoIGQ9Ik0zMCAxNWgzMHYxNXptMCAwSDB2MTV6bTAtMTVoMzB2MTV6bTMwIDBIMzB2MTVoMzB6Ii8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGZpbGw9IiMwMTIxNjkiIGQ9Ik0wIDBoNjB2MzBIMHoiLz48cGF0aCBkPSJNMCAwbDYwIDMwbTAtMzBMNjAgMzB6IiBzdHJva2U9IiNmZmYiIHN0cm9rZS13aWR0aD0iNiIvPjxwYXRoIGQ9Ik0wIDBsNjAgMzBtMC0zMEwwIDMweiIgc3Ryb2tlPSIjQzgxMDJFIiBzdHJva2Utd2lkdGg9IjIiIGNsaXAtcGF0aD0idXJsKCNiKSIvPjxwYXRoIGQ9Ik0zMCAwdjMwTTAgMTVoNjAiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxMCIvPjxwYXRoIGQ9Ik0zMCAwdjMwTTAgMTVoNjAiIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI2Ii8+PC9nPjwvc3ZnPg==');
}

.flag-icon.flag-de {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjYiIGZpbGw9IiMwMDAiLz4KPHJlY3QgeT0iNiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjYiIGZpbGw9IiNERDAwM0YiLz4KPHJlY3QgeT0iMTIiIHdpZHRoPSIyNCIgaGVpZ2h0PSI2IiBmaWxsPSIjRkZDRTAwIi8+Cjwvc3ZnPgo=');
}

.flag-icon.flag-pl {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyNCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjkiIGZpbGw9IiNGRkYiLz4KPHJlY3QgeT0iOSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjkiIGZpbGw9IiNEQzE0M0MiLz4KPC9zdmc+Cg==');
}

.flag-emoji {
    font-size: 1.2em;
    line-height: 1;
    display: inline-block;
    margin-right: 0.25rem;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

#languageSwitcher .dropdown-toggle {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#languageSwitcher .dropdown-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

#languageSwitcher .dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

#languageSwitcher .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#languageSwitcher .dropdown-item:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

#languageSwitcher .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-info-card {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    /* Mobile language switcher adjustments */
    #languageSwitcher .dropdown-toggle {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Minimalistic Portfolio Styles */
.portfolio-section {
    background: white;
    padding-bottom: 4rem;
}

.portfolio-item-minimal {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.portfolio-item-minimal:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(46, 139, 87, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.portfolio-image {
    overflow: hidden;
    position: relative;
    background: var(--background-light);
    height: 300px;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item-minimal:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item-minimal:hover .portfolio-image img {
    transform: scale(1.06);
}

.portfolio-content {
    padding: 0 1.5rem 1.5rem;
}

.portfolio-title {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.portfolio-description {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    color: #5a6673;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f2f5;
}

.portfolio-meta .text-muted {
    font-size: 0.825rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 500;
    color: #8a95a3 !important;
}

.portfolio-link {
    color: var(--primary-color);
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.08);
}

.portfolio-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive adjustments for portfolio */
@media (max-width: 768px) {
    .portfolio-section .row {
        gap: 1.5rem !important;
    }

    .portfolio-image {
        height: 220px;
    }

    .portfolio-title {
        font-size: 1.2rem;
    }

    .portfolio-description {
        font-size: 0.875rem;
    }

    .portfolio-content {
        padding: 0 1rem 1rem;
    }
}

/* Additional responsive breakpoint for very small screens */
@media (max-width: 480px) {
    .portfolio-image {
        height: 180px;
    }
}

/* ========================================
   About Page Styles - Redesigned
   ======================================== */

/* Personal Story Section */
.about-story {
    position: relative;
}

.about-image .image-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    background: var(--background-light);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.about-image .image-placeholder:hover {
    box-shadow: var(--card-shadow-hover);
}

/* Real photo replacing the placeholder */
.about-image .about-photo {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: block;
}

.about-image .about-photo:hover {
    box-shadow: var(--card-shadow-hover);
}

.about-content h2 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

.about-content .lead {
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.7;
}

.about-meta .meta-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Journey Timeline */
.journey-timeline {
    position: relative;
    padding-left: 3rem;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(46, 139, 87, 0.2));
}

.journey-timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.journey-timeline-item:last-child {
    padding-bottom: 0;
}

.journey-timeline-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    box-shadow: 0 0 0 4px var(--background-light), 0 0 0 6px rgba(46, 139, 87, 0.2);
    z-index: 1;
    transition: var(--transition);
}

.journey-timeline-item:hover .journey-timeline-marker {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px var(--background-light), 0 0 0 6px rgba(46, 139, 87, 0.4);
}

.journey-timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.journey-timeline-content:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(46, 139, 87, 0.2);
}

.journey-timeline-header {
    margin-bottom: 0.75rem;
}

.journey-timeline-header h3 {
    color: var(--text-primary);
    font-weight: 600;
}

.journey-timeline-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.journey-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.journey-tech-tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(46, 139, 87, 0.08);
    border: 1px solid rgba(46, 139, 87, 0.15);
    border-radius: 100px;
    transition: var(--transition);
}

.journey-tech-tag:hover {
    background: rgba(46, 139, 87, 0.15);
    border-color: rgba(46, 139, 87, 0.3);
}

/* Differentiator Cards */
.differentiator-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #e9ecef;
    transition: var(--transition);
    text-align: center;
}

.differentiator-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(46, 139, 87, 0.2);
}

.differentiator-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.differentiator-card h3 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.differentiator-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Technical Skills Section */
.about-skills .skill-category {
    background: white;
    padding: 1.75rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--card-shadow);
    border-top: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
    height: 100%;
}

.about-skills .skill-category:hover {
    box-shadow: var(--card-shadow-hover);
    border-left-color: var(--secondary-color);
}

.skill-category-icon {
    width: 40px;
    height: 40px;
    background: rgba(46, 139, 87, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.skill-category-title {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li:before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Responsive for About Page */
@media (max-width: 991px) {
    .differentiator-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-image .image-placeholder,
    .about-image .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .about-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .about-content p,
    .about-content .lead {
        text-align: center;
    }

    .about-meta {
        justify-content: center !important;
    }

    .about-meta .meta-item {
        justify-content: center;
    }

    .about-content .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Timeline mobile */
    .journey-timeline {
        padding-left: 2.5rem;
    }

    .journey-timeline::before {
        left: 0.75rem;
    }

    .journey-timeline-marker {
        left: -2.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.65rem;
    }

    .journey-timeline-content {
        padding: 1.25rem;
    }

    .journey-timeline-header h3 {
        font-size: 0.95rem;
    }

    /* Differentiators mobile */
    .differentiator-card {
        padding: 1.5rem;
    }

    .differentiator-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    /* Skills mobile */
    .about-skills .skill-category {
        padding: 1.5rem;
    }
}

/* About Page Hero with Image */
.about-header {
    background: linear-gradient(rgba(28, 35, 49, 0.7), rgba(28, 35, 49, 0.7)), url('../images/about-hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 2rem;
    padding-top: 160px;
    padding-bottom: 80px;
}

.about-header .page-title {
    color: white;
}

.about-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Services Page Hero with Image */
.services-header {
    background: linear-gradient(rgba(28, 35, 49, 0.75), rgba(28, 35, 49, 0.75)), url('../images/services-hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 0;
    /* Removing margin as nav bar follows */
    padding-top: 160px;
    padding-bottom: 80px;
}

.services-header .page-title {
    color: white;
}

.services-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Portfolio Page Hero with Image */
.portfolio-header {
    background: linear-gradient(rgba(28, 35, 49, 0.7), rgba(28, 35, 49, 0.7)), url('../images/portfolio-hero.png');
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 2rem;
    padding-top: 160px;
    padding-bottom: 80px;
}

.portfolio-header .page-title {
    color: white;
}

.portfolio-header .page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}