/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('../images/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/*background-position: center;
    background-attachment: fixed;
    /* Add blur effect to background
    position: relative; 
} */
.page-content {
    background: transparent !important;
    /* white with 90% opacity */
    margin: 0 auto;
    width: 100%;
    /* adjust as needed */
    border-radius: 10px;
    box-shadow: none !important;
    /*0 0 10px rgba(0,0,0,0.15);*/
}

/* Add overlay for better text readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    color: #004499;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Header and Navigation with Background Image */
.page-header {
    background-image: url('../images/navbar-bg.jpg');
    background-size: cover;
    /* maintain proportions */
    background-position: center;
    /* center the image */
    background-repeat: no-repeat;
    width: 100%;
    height: 250px;
    /* adjust for desired look */
    margin-top: 10px;
    /* adds space below navbar */
}

.page-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /* align menu to bottom */
    padding: 10px 20px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-bottom: 2px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* Add overlay to navbar for text readability */
.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    /* Lighter overlay */
    z-index: -1;
}

.nav-logo {
    display: none;
    /* Hide the logo/title */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    /* Adjusted gap */
    margin-right: 3rem;
    /* Added right margin */
}

.nav-link {
    font-weight: 600;
    /* Increased font weight */
    font-size: 1.1rem;
    /* Increased font size */
    transition: color 0.3s ease;
    color: #333;
    /* Changed to dark color */
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    /* White text shadow */
    padding: 0.3rem 0.8rem;
    /* Decreased padding */
    border-radius: 4px;
    /* Added border radius */
}

.nav-link.active {
    color: #0066cc;
    /* Changed to blue */
    border-bottom: 2px solid #0066cc;
}

.nav-link:hover {
    color: #0066cc;
    /* Changed hover color */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 2rem;
    /* Added right margin */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    /* Changed to dark color */
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Flipbook */
.hero-section {
    padding: 5rem 0;
    /* Increased padding to prevent edge cutting */
    background-color: rgba(240, 240, 240, 0.8);
    min-height: 900px;
    /* Increased height */
}


#page-counter {
    font-weight: 500;
    font-size: 18px;
    color: #333;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #0066cc;
    font-size: 3rem;
}

.about-section .lead {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 2rem;
    color: #555;
    font-style: italic;
}

.about-section p {
    max-width: 300px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    text-align: center;
}

/* Navigation Cards Section */
.navigation-section {
    padding: 4rem 0;
    background-color: rgba(248, 249, 250, 0.9);
}

.navigation-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #0066cc;
    font-size: 2.5rem;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.nav-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.nav-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.nav-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #004499;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background-color: rgba(0, 102, 204, 0.9);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

#search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

#search-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: #004499;
}

#search-results-count {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: #666;
}

/* Personalities Grid */
.personalities-section {
    padding: 2rem 0 4rem;
}

.personalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.personality-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.personality-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.personality-image {
    height: 200px;
    overflow: hidden;
}

.personality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.personality-info {
    padding: 1.5rem;
}

.personality-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.personality-info p {
    margin-bottom: 0.5rem;
    color: #666;
}

.personality-info .specialty {
    font-weight: 500;
    color: #0066cc;
}

.personality-info .location {
    font-size: 0.9rem;
    color: #888;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

/* Gallery Section */
.gallery-filters {
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #0066cc;
    color: white;
}

.gallery-section {
    padding: 2rem 0 4rem;
    background-color: rgba(248, 249, 250, 0.9);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Personality Profile */
.personality-profile {
    padding: 3rem 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    margin-bottom: 0.5rem;
    color: #333;
}

.profile-info .specialty {
    font-size: 1.2rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.profile-info .location {
    color: #666;
    margin-bottom: 1rem;
}

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

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.social-link:hover {
    background-color: #0066cc;
    color: white;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    color: #0066cc;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.education-list,
.experience-list,
.achievements-list {
    padding-left: 1.5rem;
}

.education-list li,
.experience-list li,
.achievements-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.education-list li::before,
.experience-list li::before,
.achievements-list li::before {
    content: "•";
    color: #0066cc;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background-color: rgba(248, 249, 250, 0.9);
}

.comments-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0066cc;
}

.giscus-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(12px);
    /* frosted glass effect */
    -webkit-backdrop-filter: blur(8px);
    /* Safari support */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    /* white text */
    padding: 15px 0;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2)
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0066cc;
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer-contact p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        /* Adjusted for increased navbar height */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #flipbook {
        width: 600px;
        height: 450px;
    }

    .flipbook-container {
        height: 550px;
    }

    .profile-header {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .about-section h2,
    .navigation-section h2 {
        font-size: 2rem;
    }

    #flipbook {
        width: 500px;
        height: 375px;
    }

    .flipbook-container {
        height: 475px;
    }

    .nav-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    #flipbook {
        width: 400px;
        height: 300px;
    }

    .flipbook-container {
        height: 400px;
    }

    .nav-cards {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }
}

/* Header banner above navbar */
.header-banner {
    background: url('../images/navbar-bg.jpg') no-repeat center center / cover;
    background-size: cover;
    /* responsive scaling */
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 180px;
    /* adjust height as needed */
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

@media (max-width: 768px) {
    .header-banner {
        height: 120px;
        /* smaller on mobile */
    }
}

.navbar {
    margin-top: 0;
    position: relative;
    top: 0x;
    /* pull slightly upward, tweak if needed */
    z-index: 10;
}