/* Main Styles for Abulad Models */

/* Global Styles */
:root {
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Roboto Condensed', sans-serif;
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #f8f8f8;
    --text-color: #333;
}

body {
    font-family: var(--secondary-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #555;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 1px;
}

.btn-outline-dark {
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--secondary-font);
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Header Styles */
.site-header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
}

.navbar-brand {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.nav-link {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
}

/* Desktop Burger Menu Styles - Force mobile-like behavior on all screen sizes */
@media (min-width: 992px) {
    /* Hide the default expanded navbar on desktop */
    .navbar-expand-lg .navbar-collapse {
        display: none !important;
    }
    
    /* Show the navbar toggler (burger icon) on desktop */
    .navbar-expand-lg .navbar-toggler {
        display: block !important;
    }
    
    /* Ensure the navbar brand and icons are properly aligned */
    .navbar > .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }
}

/* Header icons styling */
.header-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* Ensure the search button and burger menu are properly aligned */
.search-btn, .navbar-toggler {
    background: none;
    border: none;
    padding: 5px;
    margin-left: 10px;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus outline on buttons */
.search-btn:focus, .navbar-toggler:focus,
.search-btn:active, .navbar-toggler:active,
.search-btn:hover, .navbar-toggler:hover {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove Bootstrap's default focus styles */
button:focus:not(:focus-visible) {
    outline: 0 !important;
    box-shadow: none !important;
}

/* Unified Burger Menu Styles - Works across all pages */
.navbar-toggler {
    display: block !important;
    border: none;
    padding: 4px 8px;
    margin-left: 10px;
    background: none;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.navbar-menu.show {
    display: block !important;
}

.navbar-menu .navbar-nav {
    padding: 20px 0;
}

.navbar-menu .nav-item {
    margin: 0;
}

.navbar-menu .nav-link {
    padding: 12px 30px !important;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: block;
}

.navbar-menu .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.navbar-menu .nav-link.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Navbar collapse styling (legacy support) */
.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Search form */
.search-form {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.search-form.show {
    opacity: 1;
    transform: translateY(0);
}

.search-form form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-form input {
    flex-grow: 1;
    border: none;
    border-bottom: 2px solid #000;
    border-radius: 0;
    padding: 10px 5px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    background-color: transparent;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: #555;
    box-shadow: none;
}

.search-form button {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-form button:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Live Search Results */
.live-search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.live-search-results:empty {
    display: none;
}

.model-result-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 5px;
}

.model-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.model-result-link:hover .model-result-item {
    background-color: rgba(0, 0, 0, 0.05);
}

.model-result-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.model-result-info {
    flex: 1;
}

.model-result-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.model-result-details {
    font-size: 0.8rem;
    color: #666;
}

.model-result-badge {
    font-size: 0.7rem;
    background-color: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

.search-btn {
    margin-right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    color: #555;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #000;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Responsive styles for video layout */
@media (max-width: 768px) {
    .video-container {
        /* On mobile, show only one video (the middle one) */
        justify-content: center;
    }
    
    .video-column:first-child,
    .video-column:last-child {
        display: none;
    }
    
    .video-column {
        width: 100%;
    }
}

.video-column {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 10s ease;
    transform-origin: center center;
    animation: subtle-zoom 20s infinite alternate;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for better text readability */
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--secondary-color);
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    letter-spacing: 8px;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-family: var(--secondary-font);
}

/* Featured Models Section */
.featured-models {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}

.model-card {
    margin-bottom: 2rem;
    position: relative;
}

.model-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.model-image img {
    width: 100%;
    transition: transform 0.5s ease;
}

.model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card:hover .model-overlay {
    opacity: 1;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-details {
    padding: 1rem;
    color: var(--secondary-color);
    width: 100%;
}

.model-feature {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.model-name {
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--accent-color);
}

.about-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 0 2rem;
}

.site-footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.site-footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: #ccc;
}

/* Models Page Specific Styles */
.models-grid {
    padding: 8rem 0 5rem;
}

.filter-section {
    margin-bottom: 3rem;
}

.filter-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Models Navigation and Filtering */
.models-navigation {
    margin-bottom: 2rem;
}

.models-top-menu {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.models-top-menu .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    margin-right: 1rem;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
}

.models-top-menu .nav-link.active {
    border-bottom: 3px solid #000;
}

.models-sub-menu {
    display: flex;
    margin-bottom: 2rem;
}

.models-sub-menu .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.models-sub-menu .nav-link.active {
    color: #000;
    font-weight: 600;
}

/* Grid and List View Styles */
.models-grid-container {
    transition: all 0.3s ease;
}

.models-grid-container.grid-view .model-card {
    margin-bottom: 2rem;
}

.models-grid-container.list-view .model-card {
    width: 100%;
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.models-grid-container.list-view .model-image {
    width: 150px;
    margin-right: 1.5rem;
}

.models-grid-container.list-view .model-name {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.models-grid-container.list-view .model-details {
    display: flex;
    flex-wrap: wrap;
}

.models-grid-container.list-view .model-feature {
    margin-right: 1rem;
    font-size: 0.9rem;
}

/* Model Detail Page */
.model-detail {
    padding: 8rem 0 5rem;
}

.model-portfolio {
    margin-top: 3rem;
}

.portfolio-image {
    margin-bottom: 1.5rem;
}

/* Application Form */
.application-form {
    padding: 8rem 0 5rem;
}

.form-section {
    margin-bottom: 3rem;
}

.form-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .site-header {
        background-color: rgba(255, 255, 255, 1);
        position: relative;
    }
    
    .about-section .col-md-6:first-child {
        margin-bottom: 2rem;
    }
    
    .site-footer h3 {
        margin-top: 2rem;
    }
    
    .site-footer .col-md-4:first-child h3 {
        margin-top: 0;
    }
}
