/*
 * Custom styling for Joachim Tworko Portfolio
 * Override template styles for unique branding
 */

/* === Enhanced Typography === */
.page-title h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

.page-title h2 span {
    background: linear-gradient(135deg, #fca072 0%, #ff8a5c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Hero Section Enhancements === */
.start-page .title-block h2 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
}

.start-page .sp-subtitle {
    font-size: 1.8em;
    font-weight: 500;
    color: #fca072;
}

/* === Portfolio Cards Enhancement === */
.portfolio-grid figure {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
}

.portfolio-grid figure:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(252, 160, 114, 0.15);
}

.portfolio-grid figure .name {
    color: #eee;
    margin-top: 15px;
    font-weight: 600;
}

/* === Fix Portfolio Image Heights === */
.portfolio-grid .portfolio-item-img {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.portfolio-grid .portfolio-item-img img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    object-position: center;
}

/* === Skills Section Modern Style === */
.skills-info h4 {
    color: #fca072;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(252, 160, 114, 0.2);
    padding-bottom: 10px;
}

/* === Timeline Enhancements === */
.timeline .timeline-item {
    padding: 25px 0;
    border-left: 2px solid rgba(252, 160, 114, 0.3);
}

.timeline .timeline-item .item-title {
    color: #fca072;
    font-weight: 600;
    font-size: 1.2em;
}

.timeline .timeline-item .item-company {
    font-weight: 600;
    color: #eee;
}

.timeline .timeline-item ul li {
    position: relative;
    padding-left: 5px;
    line-height: 1.6;
}

/* === Button Enhancements === */
.btn-primary {
    background: linear-gradient(135deg, #fca072 0%, #ff8a5c 100%);
    border: none;
    padding: 12px 35px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 160, 114, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 160, 114, 0.4);
}

/* === Quick Stats Enhancement === */
.info-list-w-icon i.lnr {
    transition: all 0.3s ease;
}

.info-list-w-icon:hover i.lnr {
    transform: scale(1.1);
}

/* === Certificate Cards === */
.certificate-item {
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.certificate-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

/* === Contact Form === */
.contact-form input.form-control,
.contact-form textarea.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(252, 160, 114, 0.2);
    border-radius: 5px;
    color: #eee;
    transition: all 0.3s ease;
}

.contact-form input.form-control:focus,
.contact-form textarea.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fca072;
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 160, 114, 0.1);
}

/* === Info Blocks Modernization === */
.info-block-w-icon {
    transition: all 0.3s ease;
    padding: 25px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.info-block-w-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.info-block-w-icon .ci-icon {
    background: rgba(252, 160, 114, 0.1);
    border: 2px solid rgba(252, 160, 114, 0.3);
}

/* === Clients Section === */
.clients .client-block {
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.clients .client-block:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* === Sidebar Enhancements === */
.header {
    background: rgba(25, 25, 30, 0.98);
    backdrop-filter: blur(10px);
}

.header-titles h2 {
    font-weight: 700;
    letter-spacing: 1px;
}

.header-titles h4 {
    color: #fca072;
    font-weight: 500;
}

/* === Social Links === */
.social-links a {
    background: rgba(252, 160, 114, 0.1);
    border: 1px solid rgba(252, 160, 114, 0.2);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fca072;
    border-color: #fca072;
    transform: translateY(-3px);
}

/* === Fun Facts Enhancement === */
.fun-fact {
    transition: all 0.3s ease;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.fun-fact:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.fun-fact i {
    color: #fca072;
}

.fun-fact-block-value {
    color: #fca072;
    font-weight: 700;
}

/* === Responsive Enhancements === */
@media (max-width: 768px) {
    .start-page .title-block h2 {
        font-size: 2.5em;
    }

    .start-page .sp-subtitle {
        font-size: 1.4em;
    }
}

/* === Focus Indicators for Accessibility === */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #fca072;
    outline-offset: 2px;
}

/* === Loading Animation Enhancement === */
.preloader {
    background: linear-gradient(135deg, #1a1a1f 0%, #2a2a2f 100%);
}

/* === Smooth Scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Selection Color === */
::selection {
    background: rgba(252, 160, 114, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(252, 160, 114, 0.3);
    color: #fff;
}

/* === Navigation Menu Compact Style === */
@media only screen and (min-width: 1025px) {
    ul.main-menu {
        width: 60px !important;
        padding: 10px 0 !important;
        right: -80px !important;
        border-radius: 30px !important;
    }

    ul.main-menu li {
        text-align: center !important;
    }

    ul.main-menu a {
        padding: 10px 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    ul.main-menu .menu-icon {
        font-size: 24px !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* === Fix Header Overflow/Scroll === */
    .header {
        overflow: hidden !important;
        padding: 50px 20px 20px !important;
    }

    .header .copyrights {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 10px 20px 15px !important;
        box-sizing: border-box !important;
    }

    .availability-notice {
        margin: 20px 0 !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }

    .header-content,
    .social-links,
    .header-buttons {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
