/* 
 * BBird Photography Portfolio - Styles
 * Modern, Clean, Minimalist Design
 * Primary Color: #0077b6 (Calm Blue)
 * Stronger Sidebar Palette
 */

:root {
    --primary-color: #4da6ff;
    --primary-hover: #2d8ccc;
    --secondary-blue: #b3d9ff;
    --bg-color: #ffffff;
    --bg-secondary: #f0f7ff;
    --text-color: #1a4d7a;
    --text-light: #4d7a99;
    --sidebar-bg: #e8f4ff;
    /* Light blue background */
    --sidebar-text: #1a4d7a;
    --sidebar-hover: rgba(77, 166, 255, 0.15);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --topbar-height: 70px;
    --transition-speed: 0.4s;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* ===========================
   Top Navigation Bar
   =========================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background: linear-gradient(135deg, #ffffff 0%, #e8f4ff 100%);
    border-bottom: 2px solid #4da6ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1100;
    /* Above sidebar */
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.15);
}

.top-bar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Search Box Styling */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-container:hover {
    box-shadow: 0 4px 12px rgba(77, 166, 255, 0.3);
    background-color: #ffffff;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.4);
}

.search-input {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin-right: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    width: 150px;
    transition: width 0.3s ease;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    width: 200px;
}

.search-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-container:hover .search-icon {
    color: var(--primary-hover);
}

.center-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Logo in Top Bar */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2d8ccc;
    letter-spacing: 1px;
}

/* ===========================
   Sidebar Styles
   =========================== */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    height: calc(100vh - var(--topbar-height));
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    /* Stronger color */
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: width var(--transition-speed) ease-in-out;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Toggle on right */
    margin-bottom: 2rem;
    height: 40px;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .text,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
}

.sidebar.collapsed .nav-link .icon {
    margin-right: 0;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 5px;
}

.menu-toggle:hover {
    color: var(--secondary-blue);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Navigation Menu */
.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.8rem;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--sidebar-text);
    opacity: 0.8;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-link:hover {
    background-color: var(--sidebar-hover);
    color: #fff;
    opacity: 1;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.4);
}

.nav-link .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    margin-right: 15px;
}

/* Footer */
.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    overflow: hidden;
}

/* ===========================
   Main Content Styles
   =========================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 2.5rem 4rem;
    transition: margin-left var(--transition-speed) ease-in-out;
    min-height: calc(100vh - var(--topbar-height));
    background-color: #fcfcfc;
}

.sidebar.collapsed~.main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.section {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/bay.JPG');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1;
    border-radius: var(--border-radius);
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    background: -webkit-linear-gradient(45deg, var(--primary-color), #00b4d8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cta-button {
    padding: 14px 36px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}



/* ===========================
   Grid Layouts
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}



/* Photo Item */
.photo-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    background-color: #e2e8f0;
    aspect-ratio: 3 / 4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 100%);
    padding: 24px;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
    transform: translateY(0);
}

.photo-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.photo-overlay small {
    opacity: 0.8;
}



/* ===========================
   Filters & Placeholders
   =========================== */
.filter-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: all 0.2s;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 119, 182, 0.2);
}

.content-placeholder {
    background: white;
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container .about-text {
    flex: 1;
}

/* ===========================
   Lightbox Modal
   =========================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.active-lightbox {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-caption {
    margin-top: 25px;
    color: #f1f1f1;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 300;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--secondary-blue);
    transform: rotate(90deg);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 1rem;
    }

    .center-text {
        font-size: 1rem;
        display: none;
        /* Hide if too tight */
    }

    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        padding: 1.5rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }
}