/* ============================================================================
   Janusz Nowakowski - Profile Page Styles (New Design 2025)
   Red-Black-White Color Scheme
   ============================================================================ */

/* Color Palette:
   - Primary Red: #E63946 (Main CTA color)
   - Dark Gray: #333333
   - Light Gray: #F5F5F5
   - White: #FFFFFF
*/

/* Global Reset for Janusz Page */
#page-janusz {
    scroll-behavior: smooth;
}

/* ========================================================================
   Hero Section - Two Column Layout
   ======================================================================== */

.hero-executive {
    background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
    padding: 4rem 0 4rem 0;
    border-bottom: 1px solid #E0E0E0;
    overflow: visible;
}

#page-janusz #hero.hero-executive .hero-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: flex-end;
}

.hero-image {
    text-align: center;
    overflow: visible;
    align-self: end;
}

.profile-photo-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #E63946;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    margin-top: 0;
}

.hero-photo-caption {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666666;
    margin: 1rem 0;
}

.hero-photo-caption strong {
    font-weight: 700;
    color: #000000;
}

.hero-photo-tagline {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333333;
    margin: 1rem 0 3.5rem 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
    margin-top: 2rem;
}

.btn-red {
    background: #e21b1f;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.938rem;
    line-height: 1.8;
    text-align: center;
    transition: transform 0.2s ease;
    display: block;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    border: none;
}

.btn-red.btn-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-red.btn-with-icon i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.btn-red:hover {
    background: #d32735;
    transform: translateY(-2px);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.btn-red:hover i {
    opacity: 1;
}

.btn-red:visited,
.btn-red:active,
.btn-red:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

.btn-red-outline {
    background: #FFFFFF;
    color: #E63946 !important;
    padding: 0.875rem 2rem;
    border: 3px solid #E63946;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    width: 100%;
}

.btn-red-outline i {
    font-size: 1.125rem;
}

.btn-red-outline:hover {
    background: #E63946;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
    text-decoration: none !important;
}

.btn-red-outline:visited,
.btn-red-outline:active,
.btn-red-outline:focus {
    text-decoration: none !important;
}

.btn-red-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-gray {
    background: #999999;
    color: #FFFFFF;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.btn-gray:hover {
    background: #777777;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-text {
    /* Elements inside naturally stack vertically */
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
    margin: 0 0 2rem 0;
}

.hero-headline .text-red {
    color: #E63946;
}

.professional-intro {
    background: #FFFFFF;
    border: 2px solid #E63946;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0 2rem 0;
    text-align: center;
}

.intro-tagline {
    font-size: 1.125rem;
    color: #333333;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.intro-role {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E63946;
    margin: 0 0 0.75rem 0;
}

.intro-specialties {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    line-height: 1.6;
}

.what-i-do-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 2rem 0 0 0;
}

.two-column-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.what-i-do-box {
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    padding: 2rem;
}

.what-i-do-box-full {
    grid-column: 1 / -1;
    margin: 0;
}

.what-i-do-box-half {
    display: flex;
    flex-direction: column;
}

.column-two-thirds {
    display: flex;
    flex-direction: column;
}

.column-one-third {
    display: flex;
    flex-direction: column;
}

.what-i-do-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 1rem 0;
}

.what-i-do-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.what-i-do-list li {
    padding: 0 0 0 1.5rem;
    position: relative;
    color: #333333;
    font-size: 1rem;
    line-height: 1.6;
}

.what-i-do-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #E63946;
    font-weight: bold;
}

.tech-stack-line {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #E0E0E0;
    text-align: center;
}

.bitcoin-text {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

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

.bitcoin-links li {
    padding: 0.5rem 0;
}

.bitcoin-links a {
    color: #E63946;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.bitcoin-links a:hover {
    color: #D62828;
    text-decoration: underline;
}

@media (max-width: 991px) {
    #page-janusz #hero.hero-executive .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        text-align: center;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .professional-intro {
        padding: 1.5rem;
    }

    .intro-role {
        font-size: 1.25rem;
    }

    .what-i-do-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .two-column-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 1.5rem;
    }

    .professional-intro {
        padding: 1.25rem;
    }

    .intro-tagline {
        font-size: 1rem;
    }

    .intro-role {
        font-size: 1.125rem;
    }

    .intro-specialties {
        font-size: 0.875rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .profile-photo-large {
        width: 150px;
        height: 150px;
    }
}

/* ========================================================================
   Case Studies Section
   ======================================================================== */

.case-studies-section {
    padding: 4rem 0;
    background: #F5F5F5;
}

#case-studies > div {
    background: #F5F5F5;
}

.case-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: stretch;
}

.case-carousel-btn {
    border: none;
    background: #E63946;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    align-self: center;
    transition: background 0.2s ease;
}

.case-carousel-btn:hover,
.case-carousel-btn:focus {
    background: #d32735;
}

.case-carousel-window {
    overflow: hidden;
}

.case-carousel-track {
    display: flex;
    transition: transform 0.35s ease;
}

.case-card {
    background: #fff;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    padding: 2rem;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.case-card:not(:last-child) {
    margin-right: 1.5rem;
}

.case-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999999;
    margin-bottom: 0.75rem;
}

.case-card-summary {
    font-size: 1.125rem;
    margin: 0;
    color: #333333;
}

.case-card-star {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.case-card-star li {
    background: #F5F5F5;
    border-radius: 4px;
    padding: 1.5rem;
}

.case-card-star p {
    margin: 0;
}

.case-star-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #E63946;
    margin-bottom: 0.75rem;
}

.case-carousel-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    margin-top: 1.5rem;
}

.case-carousel-meta [data-case-counter] {
    font-weight: 600;
}

.case-carousel-meta .case-carousel-hint {
    color: #999999;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2rem;
    text-align: center;
}

.case-studies-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

.case-study-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    white-space: normal;
    word-break: normal;
}

.case-study-card.what-i-do-box {
    border: none;
    border-radius: 0;
}

.case-study-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    text-transform: none;
    color: #E63946;
}

.case-study-summary {
    margin: 0 0 1rem 0;
    color: #4A4A4A;
    line-height: 1.5;
    white-space: normal;
    word-break: normal;
}

.case-study-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.case-study-points li {
    background: #FFFFFF;
    padding: 0;
    color: #2B2B2B;
    white-space: normal;
    word-break: normal;
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-study-points li::before {
    display: none;
}

.carousel-btn {
    background: transparent;
    border: none;
    font-size: 3rem;
    color: #999999;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.carousel-btn:hover {
    color: #E63946;
    transform: scale(1.2);
}

@media (max-width: 991px) {
    .case-study-card {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
}

@media (max-width: 767px) {
    .case-study-card {
        flex: 0 0 100%;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 0.5rem;
    }
}

/* ========================================================================
   Experience Section
   ======================================================================== */

.experience-section {
    padding: 4rem 0;
    background: #FFFFFF;
}

.experience-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.experience-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-period {
    font-size: 0.875rem;
    font-weight: 700;
    color: #E63946;
    padding-top: 0.25rem;
}

.experience-details h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.5rem 0;
}

.experience-details p {
    font-size: 1rem;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem 0;
    }
}

/* ========================================================================
   Skills and Tools Section
   ======================================================================== */

.skills-section {
    padding: 4rem 0;
    background: #F5F5F5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.skill-card {
    background: #E63946;
    border-radius: 16px;
    padding: 1.75rem;
    color: #FFFFFF;
    flex: 0 1 calc(25% - 2rem);
    min-width: 220px;
    box-sizing: border-box;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
}

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #FFFFFF;
}

.skill-card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #FFFFFF;
    opacity: 0.95;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
}

.skill-card-languages {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #FFFFFF;
    opacity: 0.95;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.skill-card-languages strong {
    font-weight: 600;
}

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

.skill-card ul li {
    padding: 0.2rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #FFFFFF;
}

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

@media (max-width: 1199px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   Contact Section
   ======================================================================== */

.contact-section {
    padding: 4rem 0;
    background: #FFFFFF;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.contact-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 2rem 0;
    line-height: 1.4;
}

.contact-box .btn-red {
    display: inline-block;
    width: auto;
    min-width: 200px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-buttons .btn-red,
.cta-buttons .btn-red-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    justify-content: center;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.938rem;
    line-height: 1.8;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 5px;
}

.cta-buttons .btn-red {
    background: #e21b1f;
    color: #fff !important;
    border: none;
    text-decoration: none !important;
}

.cta-buttons .btn-red-outline {
    background: #ffffff;
    color: #e21b1f !important;
    border: 2px solid #e21b1f;
    text-decoration: none !important;
}

.cta-buttons .btn-red:hover {
    transform: translateY(-2px);
    background: #d32735;
    text-decoration: none !important;
}

.cta-buttons .btn-red-outline:hover {
    transform: translateY(-2px);
    background: #e21b1f;
    color: #fff !important;
    text-decoration: none !important;
}

.cta-buttons i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.cta-buttons .btn-red:hover i,
.cta-buttons .btn-red-outline:hover i {
    opacity: 1;
}

@media (max-width: 767px) {
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn-red,
    .cta-buttons .btn-red-outline {
        width: 100%;
        max-width: 350px;
    }
}

/* ========================================================================
   Responsive Typography
   ======================================================================== */

@media (max-width: 991px) {
    .section-title {
        font-size: 1.75rem;
    }

    .contact-box h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-executive,
    .case-studies-section,
    .experience-layers-section,
    .skills-section,
    .contact-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-box h2 {
        font-size: 1.25rem;
    }
}

/* ========================================================================
   Footer Styles
   ======================================================================== */

footer .footer-email {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

footer .footer-email:hover {
    color: #FFFFFF !important;
    text-decoration: none !important;
}

footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

footer .social-links a {
    color: #FFFFFF;
    font-size: 1.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

footer .social-links a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
    text-decoration: none;
}

/* ========================================================================
   Professional Typography Enhancements
   ======================================================================== */

#page-janusz h1,
#page-janusz h2,
#page-janusz h3,
#page-janusz h4 {
    font-family: 'Open Sans', sans-serif;
}

#page-janusz a {
    transition: all 0.2s ease;
}

#page-janusz strong {
    font-weight: 700;
}

/* ========================================================================
   Smooth Scroll Anchor Offset
   ======================================================================== */

section[id],
article[id] {
    scroll-margin-top: 100px;
}

/* ========================================================================
   Technologies Cloud Section
   ======================================================================== */

#technologies {
    background: #FAFAFA;
    padding: 4rem 0;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.tech-tag {
    display: inline-block;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #333333;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: #E63946;
    color: #FFFFFF;
    border-color: #E63946;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

/* ========================================================================
   Image Lightbox
   ======================================================================== */

.image-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.image-clickable:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: #E63946;
}

/* ========================================================================
   Selected Clients Section
   ======================================================================== */

.selected-clients-section {
    margin: 3rem 0 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    text-align: center;
}

.selected-clients-title {
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.3;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    color: #e21b1f;
    border-bottom: 1px dotted rgba(0,0,0,.2);
    margin-top: -1px;
    padding: 1px 0;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.selected-clients-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
    margin: 0 auto 1.5rem;
    max-width: 700px;
    font-weight: 400;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.client-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s ease;
}

.client-logo {
    height: 28px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: all 0.2s ease;
    display: block;
}

.client-name {
    font-size: 0.8rem;
    color: #666666;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.client-item:hover .client-logo {
    opacity: 0.8;
}

.client-item:hover .client-name {
    color: #333333;
}

@media (max-width: 767px) {
    .clients-grid {
        gap: 1rem;
    }

    .client-item {
        font-size: 0.75rem;
    }
}
