/* Darren Knowles customizations on top of the Kalvin theme */

.banner:after { opacity: .76; }
.banner { background-position: center center !important; }
.stats { position: relative; background-size: cover; background-position: center; }
.stats:before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.stats .container { position: relative; z-index: 1; }

.navbar-brand.logo { letter-spacing: .5px; }

/* About buttons */
.about-button .main-btn { margin: 0 10px 10px 0; }
.main-btn.outline-btn { background: transparent; color: #222; }
.main-btn.outline-btn:hover { background: #222; color: #fff; }
section.about .social-icons a { font-size: 18px; }

/* Portfolio tiles */
section.portfolio .portfolio-items .item { margin-bottom: 30px; }
section.portfolio .portfolio-items .item .item-content > a { display: block; color: #222; }
section.portfolio .portfolio-items .item .item-content img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
section.portfolio .portfolio-items .item .item-content .item-overlay { padding: 0 30px; }
section.portfolio .portfolio-items .item .item-content .item-overlay p {
    font-size: 14px; margin: 6px 0 0; opacity: 0; transform: translateY(-6px);
    transition: .5s all ease; color: #444; line-height: 1.5;
}
section.portfolio .portfolio-items .item .item-content:hover .item-overlay p { opacity: 1; transform: none; }
section.portfolio .portfolio-items .item .item-content .item-overlay .icons .icon i {
    display: inline-block; height: 40px; width: 40px; margin-top: 18px; background: #fff;
    font-size: 20px; line-height: 40px; color: #222; border-radius: 20%;
    box-shadow: 0 0 10px rgba(0,0,0,.35);
}
.portfolio-filter ul li { cursor: pointer; }

/* Video section */
.video-intro h4 { font-weight: 800; margin-bottom: 10px; }
.video-intro p { color: #666; margin-bottom: 30px; }
.video-item { margin-bottom: 30px; }
.video-link { display: block; position: relative; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.video-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease; }
.video-link:hover img { transform: scale(1.05); }
.video-link .play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px;
    transition: background .3s ease;
}
.video-link:hover .play { background: #000; }

/* Experience timeline */
.timeline { position: relative; padding-left: 34px; border-left: 3px solid #222; }
.tl-item { position: relative; margin-bottom: 44px; }
.tl-item:before {
    content: ""; position: absolute; left: -44px; top: 6px; width: 17px; height: 17px;
    border-radius: 50%; background: #fff; border: 3px solid #222;
}
.tl-date {
    display: inline-block; background: #222; color: #fff; font-size: 12px; font-weight: 700;
    letter-spacing: 1px; padding: 3px 10px; margin-bottom: 10px;
}
.tl-item h4 { font-weight: 800; margin-bottom: 4px; }
.tl-item h6 { color: #777; font-weight: 600; margin-bottom: 12px; }
.tl-item ul { padding-left: 18px; margin: 0; }
.tl-item li { color: #555; margin-bottom: 6px; line-height: 1.7; }
.resume-extra { border-top: 1px solid #e3e3e3; padding-top: 30px; margin-top: 10px; }
.resume-extra h5 { font-weight: 800; margin-bottom: 10px; }
.resume-extra p { color: #555; }

footer .contact-info a { color: inherit; }

@media (max-width: 767px) {
    .banner .banner-caption h1 { font-size: 48px; }
    .banner .banner-caption p { font-size: 18px; }
    .timeline { padding-left: 24px; }
    .tl-item:before { left: -34px; }
}

/* Individual logo tiles: show each logo whole, on white, at no more than its real size */
section.portfolio .portfolio-items .item .logo-tile .logo-frame {
    aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
section.portfolio .portfolio-items .item .logo-tile .logo-frame img {
    width: auto; max-width: 70%; max-height: 80%; aspect-ratio: auto; object-fit: contain; box-shadow: none;
}
