/* custom.css - Theme enhancements and overrides */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    background-color: #f5f5f7;
    padding-top: 85px; /* Offset for fixed navbar */
}

/* Scroll Offset for anchors */
[id] {
    scroll-margin-top: 100px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1d1d1f;
}

.text-muted {
    color: #86868b !important;
}

/* Navbar overrides */
.portfolio-navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1 !important;
}

.portfolio-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1d1d1f !important;
    opacity: 1 !important;
    filter: none !important;
}

.portfolio-navbar .nav-link {
    color: #515154 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 16px !important;
    transition: color 0.25s ease;
    opacity: 1 !important;
}

.portfolio-navbar .nav-link:hover, 
.portfolio-navbar .nav-link.active {
    color: #0071e3 !important;
}

/* Cards (Skills & Contact Card) */
.portfolio-info-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    padding: 35px !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    height: 100%;
}

.portfolio-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.portfolio-info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #0071e3;
    display: inline-block;
    padding-bottom: 6px;
}

.portfolio-info-card h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #515154;
    margin-bottom: 15px;
}

/* Experience & CV Section */
.portfolio-block.cv {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 50px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    margin-top: 40px;
    margin-bottom: 40px;
}

.cv .group {
    margin-bottom: 50px;
}

.cv .group:last-child {
    margin-bottom: 0;
}

.cv .heading h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.cv .item {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cv .item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv .item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cv .organization {
    color: #0071e3;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.cv .period {
    background: rgba(0, 113, 227, 0.07) !important;
    color: #0071e3 !important;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
    border: none;
}

/* Buttons */
.btn-outline-primary {
    border-color: #0071e3;
    color: #0071e3;
    border-width: 1.5px;
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background-color: #0071e3;
    border-color: #0071e3;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.btn-primary {
    background-color: #0071e3;
    border-color: #0071e3;
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: #0077ed;
    border-color: #0077ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.35);
}

/* Footer Section */
.page-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 40px 0;
    margin-top: 60px;
}

.page-footer .links a {
    color: #515154;
    margin: 0 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.page-footer .links a:hover {
    color: #0071e3;
}

.social-icons a {
    background-color: #f5f5f7;
    color: #515154;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    font-size: 1.2rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-icons a:hover {
    background-color: #0071e3;
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.25);
    border-color: #0071e3;
}

/* Form Styles */
.form-group label {
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    padding: 12px 16px;
    font-size: 0.95rem;
    background-color: #f5f5f7;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

/* Photography Zoom & Lightbox */
.zoom-on-hover {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    max-width: 350px;
    width: 100%;
}

.zoom-on-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.zoom-on-hover img {
    transition: transform 0.4s ease;
}

.zoom-on-hover:hover img {
    transform: scale(1.05);
}

/* Pure CSS Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 31, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox:target {
    display: flex;
    opacity: 1;
}

.lightbox-close-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10001;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 32px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.lightbox-close-btn:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: none;
}
