/* Custom CSS for the minimalist design - FINAL REVISION */
/* --- GENERAL STYLING AND CONTRAST IMPROVEMENT --- */
body {
    background-color: black;
    font-family: "Inter", sans-serif;
    color: white; /* High contrast on black sections */
}

/* --- TOP NAVIGATION BAR --- */
/* Target the navigation bar specifically */
.navbar {
    background-color: black;
    position: sticky;
    top: 0;
    z-index: 1020;
    /* REVISION: Ensure the default navbar is dark (navbar-dark) but the provided HTML uses navbar-light.
       We use specific CSS rules below to enforce the dark theme, but setting the class to navbar-dark
       in the HTML is recommended. */
}

/* REVISION: The SVG logo element is dark on gold background, no color change needed here. */

/* Style for the separate subhead element */
.brand-subhead {
    font-size: 1rem;
    font-weight: 400;
    /* Color is set inline in the HTML to #FFD700, ensuring it's always gold. */
    margin-left: 1.5rem;
}

.contact {
    text-decoration: none;
    color: #ffd700;
}

.contact:hover {
    color: white;
}

/* REVISION: Style for the Menu Toggle Icon (must be Gold) */
/* This overrides the default Bootstrap icon color for a custom look */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- FULLSCREEN MODAL REVISION (High Contrast) --- */
.fullscreen-modal-menu .modal-content {
    background-color: black;
    height: 100vh;
    border: none;
    border-radius: 0;
}

/* Ensure the X close button is white (btn-close-white) */
.modal-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    opacity: 1;
}

.modal-body-custom {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding-bottom: 5rem;
}

.fullscreen-modal-menu .nav-link {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: white; /* REVISION: Menu links are white for contrast */
    transition: color 0.2s ease-in-out;
}

.fullscreen-modal-menu .nav-link:hover {
    color: #ffd700; /* REVISION: Hover state is gold */
}

/* --- MODAL SOCIAL LINKS --- */
.social-links-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

/* REVISION: Ensure icons in the MODAL are large (fs-2) and styled correctly */
.social-links-modal a {
    color: white !important; /* Force white icon/text color in the dark modal */
    transition: color 0.2s ease-in-out;
}

.social-links-modal a:hover {
    color: #ffd700 !important;
}

/* Custom StaffMeUp icon (SVG) size and base color for MODAL */
.social-links-modal .smu-logo {
    width: 32px; /* Increased size to match fs-2 */
    height: 32px;
    margin: 0 0.5rem;
    color: white; /* Base color for the SVG fill in the modal */
    transition: color 0.2s ease-in-out;
}

.social-links-modal .smu-logo:hover {
    color: #ffd700;
}

/* --- PORTFOLIO GRID (MASONRY) - 5 COLUMN, REDUCED GAP --- */
.portfolio-section {
    padding-top: 1rem;
    padding-bottom: 3rem;
    background-color: black;
}

.video-grid {
    display: grid;
    grid-gap: 0.5rem; /* REVISED: Reduced gap to 0.5rem */
    grid-auto-rows: 15px;
    /* Default for mobile and small screens */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* 768px (Tablet/Medium Screens): 3 Columns */
@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 992px (Desktop/lg breakpoint): 5 Columns */
@media (min-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Masonry sizing spans */
.video-item {
    grid-column-end: span 1;
}
.video-item.wide-16-9 {
    grid-row-end: span 12; /* Sizing for 16:9 ratio */
}
.video-item.tall-9-16 {
    grid-row-end: span 22; /* Sizing for 9:16 ratio */
}

/* Video item styling */
.video-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.5s ease-in-out,
        box-shadow 0.5s ease-in-out;
    height: 100%;
}

.video-thumbnail-wrapper:hover {
    transform: scale(1.02);
    opacity: 0.5;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.video-thumbnail.hover-image {
    opacity: 0;
}

.video-thumbnail-wrapper:hover .hover-image {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 6vw, 4rem);
    color: gold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
}

.video-thumbnail-wrapper:hover .play-icon {
    opacity: 1;
}

/* --- ABOUT & CONTACT SECTION (Black Background) --- */
/* REVISION: Renamed the Contact section HTML to ID="contact-details" and merging it into the About section's styling area */
.content-section {
    background-color: black;
    color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: none;
}

.btn-contact-white {
    color: #f8f9fa; /* White text */
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    font-weight: 700;
    width: 50%;
}

.btn-contact-white:hover {
    color: gold; /* Black text on hover */
}

.about-content-wrapper {
    /* Set left/right margin to auto to horizontally center the element */
    margin-left: auto;
    margin-right: auto;
    max-width: 50vw;
}

/* Optional: Adjust the max-width of the profile picture again.
   If the photo still feels too big relative to the column, try 250px. */
.profile-sq {
    display: block;
    width: 100%;
    max-width: 280px; /* Slight adjustment to fit better in the col-3 */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 auto;
}

.footer {
    background-color: #000;
    color: #333; /* Dark text on white */
    border-top: none;
    padding: 2rem 0;
    text-align: center;
}

/* Footer Link Styles */
.footer a {
    color: #333 !important; /* Email and link color is dark on white background */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.footer a:hover {
    color: #ffd700 !important; /* Gold hover */
}

/* Custom StaffMeUp icon (SVG) size and base color for FOOTER */
.footer .smu-logo {
    width: 24px;
    height: 24px;
    margin: 0 0.5rem;
    color: #333; /* Base color for the SVG fill in the footer */
    transition: color 0.2s ease-in-out;
}
.footer .smu-logo:hover {
    color: #ffd700;
}
