/* --- CSS Variables and Global Styles --- */
:root {
    --primary-font: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --primary-color: #1a1a1a;
    --secondary-color: #f1f1f1;
    --accent-color: #d4af37; /* A gold-like accent */
    --text-color: #333;
    --container-width: 1200px;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    margin: 0;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Main Header --- */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    display: flex; /* Use flexbox to align items horizontally */
    align-items: center; /* Vertically center the image and text */
    gap: 15px; /* Space between the logo and the site title */
    font-family: var(--heading-font);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-image {
    height: 50px; /* Control the height of your logo */
    width: auto; /* Let the width adjust automatically to maintain aspect ratio */
    display: block;
}

.logo-text {
    display: block;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid var(--secondary-color);
        padding: 20px 0;
    }
    .main-nav.active .nav-links {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
}


/* --- Main Content Area --- */
.main-content {
    padding: 0 0;
}

/* --- Main Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-socials {
    margin-bottom: 20px;
}

.footer-socials a {
    color: #fff;
    font-size: 1.2em;
    margin: 0 15px;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.9em;
    color: #aaa;
}








/* --- Portfolio Page Specific Styles --- */
.page-intro {
    text-align: center;
    margin-bottom: 40px;
}
.page-intro h1 {
    font-size: 3em;
    margin-bottom: 10px;
}
.page-intro p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filter Controls --- */
.filter-controls {
    text-align: center;
    margin-bottom: 40px;
}
.filter-btn {
    background: none;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--primary-font);
    font-weight: 700;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    background-color: var(--secondary-color);
    border-color: #ccc;
}
.filter-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio */
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f1f1;
    color: #ccc;
    font-weight: 700;
}

.no-galleries-message {
    text-align: center;
    grid-column: 1 / -1; /* Span the full grid width */
    padding: 50px;
    color: #666;
}

/* --- Gallery Item Overlay --- */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px; /* More padding at top for gradient */
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    display: flex;
    align-items: flex-end;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item-overlay h3 {
    margin: 0;
    color: white;
    font-size: 1.2em;
}

/* --- Filtering Animation --- */
.gallery-item.hide {
    display: none;
}





/* --- Gallery View Page --- */
.gallery-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-view-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
}

.gallery-view-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-view-item:hover img {
    transform: scale(1.05);
}

.video-item-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
}

/* --- Unlock Form Styling --- */
.unlock-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: var(--secondary-color);
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .unlock-form-container {
        margin: 20px auto;
        padding: 20px;
    }
}
.unlock-form-container h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.unlock-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.unlock-options {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.unlock-box {
    position: relative;
    background: #fff;
    overflow: hidden;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.unlock-box h3 { margin-top: 0; }



.price-display { font-size: 1.1em; }

.form-field { margin-bottom: 20px; text-align: left; }
.form-field label { display: block; margin-bottom: 5px; font-weight: 700; }
.form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.unlock-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 1em;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.unlock-btn:hover { background-color: #b8952d; }
.mpesa-btn { background: #4caf50; } /* M-Pesa Green */
.mpesa-btn:hover { background: #45a049; }

/* --- Basic Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1001;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}


/* --- Gallery Preview on Unlock Screen --- */
.gallery-preview {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden; /* Important for keeping the image within the rounded corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-preview img {
    width: 100%;
    display: block;
    /* This is the magic: blur the image and make it grayscale */
    filter: blur(8px) grayscale(50%);
    /* A slight scale can help hide the blurry edges */
    transform: scale(1.1);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); /* Dark tint */
    color: white;
    text-align: center;
}

.preview-overlay i {
    font-size: 3em;
    margin-bottom: 10px;
}

.preview-overlay span {
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}








/* --- Testimonials Section --- */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--secondary-color); /* Light gray background to stand out */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    /* Create 3 columns on desktop, 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows cards with less text to still have the same height */
    line-height: 1.7;
}

.testimonial-text i {
    font-size: 1.5em;
    color: #ddd;
    margin-right: 10px;
}

.testimonial-client {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto; /* Pushes the name to the bottom of the card */
}


/* --- Featured Work Section --- */
.featured-work-section {
    padding: 60px 0;
    /* Keeping the background white for a clean, gallery-like feel */
}

.featured-work-grid {
    display: grid;
    /* Creates a responsive grid. On large screens it might be 4 columns, on smaller screens 2, etc. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.featured-grid-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    /* Creates a perfect square for each grid item */
    aspect-ratio: 1 / 1;
}

.featured-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This prevents images from being stretched or squished */
    transition: transform 0.4s ease-out, filter 0.4s ease;
}

/* Hover effect on the image */
.featured-grid-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.featured-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    
    /* Hide the overlay by default */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Show the overlay on hover */
.featured-grid-item:hover .featured-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.featured-item-overlay h3 {
    color: white;
    font-size: 1.1em;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.featured-item-overlay h3 i {
    display: block;
    font-size: 1.5em;
    margin-bottom: 10px;
}




/* --- Blog Page --- */
.blog-grid {
    display: grid;
    /* On large screens, up to 3 columns. On smaller screens, it will adjust automatically. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-post-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.post-image {
    width: 100%;
    height: 220px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Re-using the image placeholder style, but adding the icon */
.post-image .image-placeholder i {
    font-size: 3em;
    color: #e0e0e0;
}

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 220px); /* Ensures consistent height for content area */
}

.post-meta {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    margin-top: 0;
}

.post-title {
    font-size: 1.4em;
    margin: 10px 0;
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 0.95em;
    line-height: 1.7;
    flex-grow: 1; /* Pushes the 'Read More' button to the bottom */
}

.read-more-btn {
    display: inline-block;
    margin-top: auto; /* Pushes itself to the bottom */
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.blog-post-card:hover .read-more-btn {
    color: var(--primary-color);
}


/* --- Single Blog Post Page --- */
.blog-post-container {
    max-width: 800px; /* Optimal width for readability */
}

/* --- Header with Featured Image --- */
.post-header-with-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    align-items: flex-end;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.header-overlay {
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.post-title-main {
    font-size: 2.8em;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.post-meta-main {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
}

/* --- Header for Posts without an Image --- */
.post-header-no-image {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color);
}
.post-header-no-image .post-title-main {
    color: var(--primary-color);
    text-shadow: none;
}
.post-header-no-image .post-meta-main {
    color: #888;
}


/* --- Main Post Content Body --- */
.post-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.post-text p {
    margin-bottom: 1.5em; /* Spacing between paragraphs */
}

.post-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
}

.back-to-blog-btn {
    font-weight: 700;
    color: var(--accent-color);
}

/* --- Responsive adjustments for Blog Post --- */
@media (max-width: 768px) {
    .post-title-main {
        font-size: 2.2em;
    }
    .header-overlay {
        padding: 20px;
    }
}




/* --- New Unlock Layout & Messages --- */
.unlock-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

.unlock-split-layout {
     display: grid;
    /* On desktops, create two columns. Image takes up 1 part, text takes 1.5 parts. */
    grid-template-columns: 1fr 1fr; 
    gap: 50px; /* Space between the image and the text */
    align-items: flex-start; /* Aligns items to the top of their grid cell */
    margin-top: 40px;
    margin-bottom: 40px;
}

/* On mobile, stack the boxes */
@media (max-width: 768px) {
    .unlock-split-layout {
        grid-template-columns: 1fr; 
    }
}


.unlock-info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #bee5eb;
}






/* --- Payment Processing Modal --- */
.payment-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.modal-content h3 {
    margin-top: 0;
}

/* Spinner Animation */
.spinner {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid var(--accent-color);
    width: 50px;
    height: 50px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




/* --- Video Portfolio Section --- */
.video-portfolio-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background for a cinematic feel */
}
.video-portfolio-section .section-header h2 {
    color: white;
}
.video-portfolio-section .section-header p {
    color: #ccc;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: #2a2a2a; /* Slightly lighter than the background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9; /* Standard video aspect ratio */
}
.video-thumbnail img, .video-thumbnail .image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 4em;
    opacity: 0.8;
    transition: opacity 0.3s ease, font-size 0.3s ease;
    
}
.video-card:hover .play-icon-overlay {
    opacity: 1;
    font-size: 5em;
}

.video-info {
    padding: 20px;
    color: #eee;
}
.video-info h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 10px;
}
.video-info p {
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 0;
}

/* --- Video Modal/Popup (CORRECTED) --- */
.video-modal {
    display: none; /* Start with the modal completely hidden */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    /* These flex properties will only apply when display is set to 'flex' by JS */
    align-items: center;
    justify-content: center;
    
    padding: 20px;
    box-sizing: border-box;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-visible {
    opacity: 1;
}

/* This is the container for the video and the close button */
.video-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px; /* Set a max-width for large desktops */
    background: black; /* Give it a solid background to prevent weird rendering */
    line-height: 0; /* Fixes potential spacing issues around the video tag */
}

/* The close button styling */
.video-modal-close {
    position: absolute;
    top: -35px; /* Position it above the video container */
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}
.video-modal-close:hover {
    color: #ccc;
}

/* THE KEY CHANGE: Styling for the video player itself */
#modalVideoPlayer {
    width: 100%; /* Make the video fill the width of its container */
    height: auto; /* Let the height adjust automatically to maintain aspect ratio */
    
    /* Set a maximum height based on the viewport height. 
       80vh means the video can be at most 80% of the screen's height. 
       This is the main fix for it being too tall on desktops. */
    max-height: 80vh; 
    
    display: block; /* Removes any extra space below the video */
    border-radius: 5px;
}






/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-top: 40px;
}
.contact-form-wrapper .form-group {
    margin-bottom: 20px;
}
.contact-form-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--primary-font);
    font-size: 1em;
}
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.contact-submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-submit-btn:hover {
    background-color: #b8952d;
}

.contact-details h3 {
    margin-top: 0;
}
.contact-details p {
    font-size: 1.1em;
    margin-bottom: 15px;
}
.contact-details i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}

/* Form Messages */
.form-success {
    background-color: #d4edda; color: #155724; padding: 15px; border-radius: 5px;
}
.form-error {
    background-color: #f8d7da; color: #721c24; padding: 15px; border-radius: 5px;
}

@media (max-width: 768px) {
    .contact-layout {
        width: 90%;
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
}









/* --- Client Dashboard --- */
.client-dashboard-grid {
    margin-top: 40px;
}

.grid-header {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.client-logout-btn {
    display: inline-block;
    margin-top: 10px;
    background-color: #333;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
}

.client-logout-btn:hover {
    background-color: var(--accent-color);
    color: white;
}




/* --- Navigation Buttons --- */
.nav-links a.nav-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    border-bottom: none; /* Remove the underline effect */
}

.nav-links a.nav-btn:hover {
    background-color: #b8952d; /* A darker shade of the accent color */
    color: white;
}

/* On mobile, make the buttons full-width for a better look */
@media (max-width: 768px) {
    .nav-links a.nav-btn {
        display: block;
        margin: 5px 20px;
    }
}





/* =================================================== */
/*        LOGIN & REGISTER PAGE STYLES (Front-end)     */
/* =================================================== */

.auth-container {
    max-width: 450px;
    margin: 60px auto; /* Adds space from header/footer */
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.auth-container h2 {
    text-align: center;
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 10px;
}

.auth-container p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Form Groups and Inputs */
.auth-container .form-group {
    margin-bottom: 20px;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.auth-container .form-group input[type="text"],
.auth-container .form-group input[type="email"],
.auth-container .form-group input[type="number"],
.auth-container .form-group input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--primary-font);
    font-size: 1em;
    box-sizing: border-box; /* Important for consistent sizing */
    transition: border-color 0.3s ease;
}

.auth-container .form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Submit Button */
.auth-container .btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--accent-color);
    color: white;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-container .btn-submit:hover {
    background-color: #b8952d; /* Darker accent */
}

/* Bottom Link (e.g., "Already have an account?") */
.auth-container .auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

/* Error and Success Messages */
.auth-container .help-block {
    color: #c0392b; /* A softer red */
    font-size: 0.85em;
    padding-top: 5px;
}

.auth-container .alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    text-align: center;
}

.auth-container .alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.auth-container .alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}


/* =================================================== */
/*                   ABOUT PAGE STYLES                 */
/* =================================================== */

.about-layout {
    display: grid;
    /* On desktops, create two columns. Image takes up 1 part, text takes 1.5 parts. */
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px; /* Space between the image and the text */
    align-items: flex-start; /* Aligns items to the top of their grid cell */
    margin-top: 40px;
    margin-bottom: 40px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* A soft, professional shadow */
}

.about-content {
    font-size: 1.1em;
    line-height: 1.8; /* Generous line spacing for readability */
    color: #444; /* Slightly softer than pure black */
}

/* This will style the paragraphs that are created by the nl2br() function */
.about-content p {
    margin-bottom: 1.5em;
}
.about-content p:last-child {
    margin-bottom: 0;
}

.about-socials {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color); /* A light separator line */
}

.about-socials h3 {
    margin-bottom: 20px;
}

.about-socials a {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 25px;
    transition: color 0.3s ease;
}

.about-socials a:hover {
    color: var(--accent-color);
}


/* --- Responsive adjustments for the About Page --- */
@media (max-width: 992px) {
    .about-layout {
        gap: 30px; /* Reduce the gap on medium screens */
    }
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr; /* Stack the image and text on top of each other on mobile */
    }
    .about-image {
        max-width: 350px; /* Constrain the image width on mobile */
        margin: 0 auto 30px auto; /* Center the image and add space below it */
    }
}







/* --- Payment Success Page --- */
.payment-success-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.success-icon {
    font-size: 5em;
    color: #28a745; /* Success Green */
    margin-bottom: 20px;
}

.payment-success-container h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.payment-success-container p {
    color: #666;
    line-height: 1.7;
}

.unlock-details-box {
    background-color: var(--secondary-color);
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.unlock-code-display {
    margin-top: 15px;
}

.unlock-code-display p {
    margin: 0;
    font-weight: 700;
}

.unlock-code-display span {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 10px 25px;
    border-radius: 5px;
    margin-top: 10px;
}



/* --- Services Section --- */
.services-section {
    padding: 60px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch; /* Makes cards in the same row equal height */
}

.service-card {
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stacks image, content, and button vertically */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card-image {
    width: 100%;
    height: 220px;
}
.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows this container to fill the available space */
}

.service-card-content h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.service-price {
    font-family: var(--heading-font);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-description {
    color: #555;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.service-features li {
    margin-bottom: 10px;
    color: #333;
}

.service-features li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.service-contact-btn {
    display: block;
    margin-top: auto; /* Pushes the button to the bottom of the card */
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.service-contact-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* --- Gallery Viewer Item Enhancements --- */
.gallery-view-item {
    position: relative; /* Needed for the icon overlay */
}
.media-type-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    background-color: rgba(0,0,0,0.4);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}


.video-item-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.video-item-placeholder i {
    opacity: 0.7;
}

.gallery-view-item {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-view-item img {
    width: 100%;
    height: auto;
    display: block;
}
/* --- Video Item Enhancements --- */
.gallery-view-item.video-item {
    display: flex;
    flex-direction: column; /* Stacks the play link and download button */
    cursor: default; /* The card itself isn't clickable anymore */
}

.video-play-link {
    flex-grow: 1; /* Makes the placeholder fill most of the space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.video-item-placeholder {
    transition: transform 0.3s ease;
    text-align: center;
}

.video-play-link:hover .video-item-placeholder {
    transform: scale(1.05);
}

.video-item-placeholder span {
    position: absolute;
    bottom: 15px;
    color: white;
    font-weight: 700;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.video-play-link:hover .video-item-placeholder span {
    opacity: 1;
    transform: translateY(0);
}


.video-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.video-download-btn:hover {
    background-color: #b8952d; /* Darker accent */
    color: white;
}



/* --- index.php Service Card Summaries --- */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the whole area clickable */
}
.service-view-more-btn {
    display: block;
    margin-top: auto;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s;
}
.service-card-link:hover .service-view-more-btn {
    color: var(--primary-color);
}
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* --- view_service.php Detail Page --- */
.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin: 40px 0;
}
.service-detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-detail-content h1 {
    margin-top: 0;
    font-size: 2.8em;
}
/* Re-use .service-price and .service-features from previous styles */

/* Share Button */
.share-buttons {
    margin: 15px 0 25px 0;
}
.share-btn {
    background: var(--secondary-color);
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--primary-font);
    font-weight: 700;
    transition: all 0.3s ease;
}
.share-btn i {
    margin-right: 8px;
}
.share-btn:hover {
    background-color: #e2e2e2;
    border-color: #ccc;
}

@media (max-width: 768px) {
    .service-detail-layout {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}