/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

.content-wrapper {
    margin-left: 260px;
    --padding: 20px;
}

/* Remove margin for pages with no-sidebar-margin */
body.no-sidebar-margin .content-wrapper {
    margin-left: 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .content-wrapper {
        margin-left: 0;
    }
}


/* Hero Section Refactor */
:root {
    --hero-primary: #ff7f50;
    --hero-primary-hover: #e26d3f;
    --hero-overlay: rgba(0, 0, 0, 0.55);
    --hero-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px; /* Prevents squashing on short screens */
    overflow: hidden;
    color: white;
    font-family: 'Inter', sans-serif;
    display: flex; /* Modern centering */
    align-items: center;
    justify-content: center;
}

/* Slider Layering */
.hero-slider {
    position: absolute;
    inset: 0; /* Shorthand for top/left/right/bottom: 0 */
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05); /* Subtle zoom effect start */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1); /* Smooth zoom-in when active */
}

/* Enhanced Readability Overlay */
.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.3) 0%, 
        var(--hero-overlay) 50%, 
        rgba(0,0,0,0.7) 100%
    );
    z-index: 1;
}

/* Hero Content - Clean & Centered */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
    padding: 0 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 127, 80, 0.15);
    color: var(--hero-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 127, 80, 0.3);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive fluid text */
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Refined CTA Button */
.btn-quote {
    display: inline-block;
    background: var(--hero-primary);
    color: white;
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: var(--hero-transition);
    box-shadow: 0 10px 25px rgba(255, 127, 80, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-quote:hover {
    background: var(--hero-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 127, 80, 0.45);
}

.btn-outline-glass {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    color: white;
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    backdrop-filter: blur(8px); /* The "frosted glass" effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    transition: var(--hero-transition); /* Uses the transition from your hero refactor */
    margin-left: 10px;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-section { height: 90vh; }
    .hero-content { padding: 0 1.5rem; }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-outline-glass {
        margin-left: 0;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-quote {
        width: 100%;
        max-width: 280px;
    }
}


/* NAVBAR STYLING */
/* Default navbar (transparent) */
#mainNavbar {
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
    padding: 1rem 0;
    
}

/* Navbar after scrolling past hero */
#mainNavbar.scrolled {
    background: rgba(35, 39, 42, 0.95); /* new color */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
}

#mainNavbar .nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

#mainNavbar .nav-link:hover {
    color: #ff7f50;
    transform: translateY(-2px);
}

#mainNavbar .btn-primary {
    background: #ff7f50;
    border: none;
    transition: background 0.3s ease;
}

#mainNavbar .btn-primary:hover {
    background: #e26d3f;
}

#mainNavbar .btn-outline-light {
    color: #fff;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

#mainNavbar .btn-outline-light:hover {
    color: #ff7f50;
    border-color: #ff7f50;
    background: rgba(255, 127, 80, 0.1);
}

/* Mobile menu adjustments */
@media (max-width: 992px) {
    #mainNavbar .collapse {
        transition: background-color 0.4s ease, padding 0.4s ease;
    }

    /* When menu opens */
    #mainNavbar .collapse.show {
        background-color: rgba(35, 39, 42, 0.8);
        --padding: 2rem 0;
        margin: 2rem 0;
    }

    .nav-item {
        padding: 20px 0px;
    }
}




/* =========================
   NEWSLETTER SECTION
   ========================= */

.newsletter-section {
    background: linear-gradient(135deg, #23272a, #2c2f33);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1200px;
}

.newsletter-container h2 {
    font-size: 2.8rem;
    color: #ff7f50;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.newsletter-container p {
    font-size: 1.2rem;
    color: #b9bbbe;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-form input {
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    width: 300px;
    max-width: 100%;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    box-shadow: 0 0 15px rgba(255, 127, 80, 0.6);
}

.newsletter-form button {
    padding: 15px 30px;
    background: #ff7f50;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #e26d3f;
    transform: scale(1.05);
}

/* Optional subtle decorative shapes */
.newsletter-section::before,
.newsletter-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.newsletter-section::before {
    width: 200px;
    height: 200px;
    background: #ff7f50;
    top: -50px;
    left: -50px;
}

.newsletter-section::after {
    width: 300px;
    height: 300px;
    background: #e26d3f;
    bottom: -100px;
    right: -100px;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-container h2 {
        font-size: 2rem;
    }
    .newsletter-container p {
        font-size: 1rem;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form input {
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }
}



/* ==============================
   ULTRA MODERN SERVICES SECTION (COMPACT)
   ============================== */
.services-section {
    background: linear-gradient(145deg, #23272a, #2c2f33);
    padding: 80px 15px; /* slightly reduced */
    color: #fff;
    text-align: center;
}

/* Section Header */
.services-header {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

.services-header h2 {
    font-size: 2.4rem; /* smaller */
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.services-header p {
    font-size: 1rem; /* slightly smaller */
    color: #b9bbbe;
    line-height: 1.5;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* smaller cards */
    gap: 30px; /* tighter gap */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Service Card */
.service-card {
    background: #1e2124;
    padding: 30px 20px; /* smaller padding */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Glow Effect on Hover */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 127, 80, 0.15), rgba(255, 127, 80, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* Icon Styling */
.service-icon {
    width: 65px; /* smaller */
    height: 65px;
    background: rgba(255, 127, 80, 0.1);
    color: #ff7f50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.6rem; /* smaller icon */
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.service-card:hover .service-icon {
    background: rgba(255, 127, 80, 0.2);
    transform: scale(1.1);
}

/* Card Titles */
.service-card h3 {
    font-size: 1.4rem; /* slightly smaller */
    color: #fff;
    margin-bottom: 10px;
    z-index: 1;
}

/* Description Text */
.service-card p {
    font-size: 0.95rem; /* smaller */
    color: #b9bbbe;
    line-height: 1.4;
    margin-bottom: 20px;
    z-index: 1;
}

/* Button */
.btn-service {
    display: inline-block;
    background: #ff7f50;
    color: white;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 7px;
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative; /* for z-index */
    z-index: 1;
}

.btn-service:hover {
    background: #e26d3f;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .services-header h2 {
        font-size: 2rem;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 25px 15px;
    }
}


#more-services {
    transition: all 0.3s ease;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}


.hidden-services {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.hidden-services.show {
    opacity: 1;
    max-height: 200px; /* large enough to show all hidden items */
    display: contents;
}

/* ==============================
   ABOUT US SECTION
   ============================== */

.about-section {
    background: #fff;
    padding: 80px 20px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

/* Left Image */
.about-image {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Right Content */
.about-content {
    flex: 1 1 500px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #ff7f50;
    margin-bottom: 20px;
}

.about-content .intro-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.highlight h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.highlight p,
.highlight ul {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.highlight ul {
    list-style: none;
    padding: 0;
}

.highlight ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.highlight ul li::before {
    content: "✔";
    color: #ff7f50;
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* ==============================
   TEAM SECTION
   ============================== */

.team-section {
    background: #f9f9f9;
    padding: 80px 20px;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-container h2 {
    font-size: 2.5rem;
    color: #ff7f50;
    margin-bottom: 20px;
}

.team-container .team-intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card p {
    color: #777;
    font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 350px;
    }
}








/* ==============================
   OUR APPROACH SECTION
   ============================== */
.approach-section {
    background: #f0f4f8;
    padding: 100px 20px;
    text-align: center;
    color: #2c3e50;
}

.approach-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ff7f50;
}

.approach-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 60px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.approach-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background: #ff7f50;
    color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.approach-card:hover .approach-icon {
    transform: scale(1.2);
    background: #e26d3f;
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.approach-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .approach-header h2 {
        font-size: 2.2rem;
    }

    .approach-header p {
        font-size: 1rem;
    }
}













/* ==============================
   SLEEK LIGHT GALLERY SECTION
   ============================== */
.gallery-section {
    background: #f9fafb; /* light, clean background */
    padding: 100px 20px;
    color: #333;
    text-align: center;
}

.gallery-header {
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #2c3e50; /* dark slate for contrast */
    font-weight: 600;
}

.gallery-header p {
    font-size: 1.2rem;
    color: #7f8c8d; /* soft gray for subtitle */
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Optional Overlay Effect with subtle glow */
.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 127, 80, 0.05); /* very subtle highlight */
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Caption inside gallery items (optional) */
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-header h2 {
        font-size: 2.2rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .gallery-grid {
        gap: 20px;
    }
}














/* ==============================
   CONTACT SECTION
   ============================== */
.contact-section {
    background: #f9f9f9;
    padding: 80px 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Left side info */
.contact-info {
    flex: 1 1 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info h2 {
    font-size: 2rem;
    color: #ff7f50;
    margin-bottom: 15px;
}

.contact-info p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-details p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Right side form */
.contact-form {
    flex: 1 1 500px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff7f50;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff7f50;
}

.contact-form textarea {
    resize: none;
}

.btn-submit {
    background: #ff7f50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #e26d3f;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }
}


/* Footer Styling */
.footer {
    background: #1e2124;
    color: #b9bbbe;
    padding: 50px 20px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.footer-logo h2 {
    color: #ff7f50;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-links a {
    color: #b9bbbe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff7f50;
}

.btn-admin {
    background: #ff7f50;
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-admin:hover {
    background: #e26d3f;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 5px 0;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        gap: 10px;
    }
}














/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f6f8;
    transition: all 0.3s ease;
}

/* ==========================================
   SIDEBAR & LAYOUT
   ========================================== */
.dashboard-sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(9, 24, 34, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 25px 0 10px 0; /* Vertical padding only, let nav handle sides */
    box-shadow: 2px 0px 20px rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
    z-index: 1001; /* Stay above top bar if needed on mobile */
}

/* Sidebar Navigation - Pushes footer down */
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

/* SIDEBAR FOOTER (The Cog + Logout) */
.sidebar-footer {
    padding: 10px 20px 0px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-settings-cog {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 1.4rem;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.btn-settings-cog:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.btn-settings-cog.active {
    color: #5f54ff;
    background: white;
}

/* Logout Styling */
.logout-form {
    flex-grow: 1; /* Takes up remaining space next to cog */
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: #5f54ff;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #463af5;
}

/* ==========================================
   TOP BAR (Header)
   ========================================== */
.admin-top-navbar {
    position: fixed;
    top: 0;
    left: 260px; /* Must match sidebar width */
    right: 0;
    height: 65px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.top-navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-nav-icon-btn {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    color: #718096;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.top-nav-icon-btn:hover {
    background: #edf2f7;
    color: #5f54ff;
    transform: translateY(-2px);
}

.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff7a59;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.dashboard-main {
    flex: 1;
    padding: 30px;
    transition: all 0.3s ease;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    color: #222;
}

/* ==========================================
   DASHBOARD CARDS
   ========================================== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.card p {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff7f50;
}

/* ==========================================
   TABLES
   ========================================== */
.dashboard-section {
    margin-top: 25px;
}

.table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.table td, .table th {
    overflow: visible;
}

.table th {
    background: rgba(9, 24, 34, 0.95);
    color: white;
    font-weight: 600;
    padding: 14px 16px;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.table tr:hover {
    background: #f9f9f9;
    transition: background 0.25s ease;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    border-radius: 8px !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Search Input */
#searchInput {
    max-width: 220px;
    border-radius: 8px;
    padding: 6px 10px;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-content {
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
/* ==========================================
   FIXED MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    /* 1. Layout Reset */
    .dashboard-wrapper {
        display: block !important;
        margin: 0 !important;
    }

    .dashboard-main {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 15px !important;
    }

    /* 2. Fixed Top Sidebar (The Menu) */
    .dashboard-sidebar {
        display: none !important; /* Managed by JS .active */
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100vh !important;
        z-index: 9999 !important;
        background: #091822 !important;
        padding: 80px 20px 30px 20px !important;
        flex-direction: column;
        overflow-y: auto;
    }

    /* Logic to show menu */
    .dashboard-sidebar.active {
        display: flex !important;
    }

    /* 3. Branding Header (Mobile Optimization) */
    .dashboard-branding-header .d-flex {
        flex-direction: column !important;
        text-align: center;
        gap: 1rem !important;
    }

    .dashboard-branding-header .ms-auto {
        margin: 10px 0 0 0 !important;
        justify-content: center !important;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    /* 4. Menu Toggle Button - Floating Top Left */
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 10000;
        background: #0d6efd;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 50px;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* 5. Content Grid & Tables */
    .dashboard-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-radius: 8px;
    }

    .table {
        min-width: 600px; /* Forces scroll instead of squishing */
    }

    /* 6. Overlay */
    .sidebar-overlay.active {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
}

/* ==========================================
   DARK MODE
   ========================================== */
body.dark-mode {
    background: #1e1f22;
    color: #f1f1f1;
}

body.dark-mode .dashboard-header,
body.dark-mode .card,
body.dark-mode .table,
body.dark-mode .modal-content {
    background: #2a2b2e;
    color: #f1f1f1;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

body.dark-mode .dashboard-header h2 {
    color: #f1f1f1;
}

body.dark-mode .table th {
    background-color: #ff7f50;
    color: #fff;
}

body.dark-mode .table td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}

body.dark-mode .table tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .dashboard-sidebar {
    background: rgba(35,36,39,0.95);
}

body.dark-mode .sidebar-nav a.active,
body.dark-mode .sidebar-nav a:hover {
    background: rgba(255, 127, 80, 0.3);
}

body.dark-mode .btn {
    color: white;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #2e3033;
    color: #eee;
    border: 1px solid #444;
}

/* ==========================================
   BUTTON GROUPS
   ========================================== */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.btn-group button {
    flex: 1;
}




/* SETTINGS PAGE */

/* ==========================================
   SETTINGS PAGE
   ========================================== */

/* Tabs Container */
.settings-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f4f6f8;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #555;
}

.tab-btn:hover {
    background: #ff7f50;
    color: #fff;
}

.tab-btn.active {
    background: #ff7f50;
    color: #fff;
    box-shadow: 0 -2px 0 #ff7f50 inset;
}

/* Tab Content */
.settings-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: -2px; /* overlap the tab border */
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-in;
}

.tab-pane.active {
    display: block;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #ff7f50;
    box-shadow: 0 0 5px rgba(255,127,80,0.3);
    outline: none;
}

/* Checkboxes */
input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #ff7f50;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ff7f50;
    color: #fff;
}

.btn-primary:hover {
    background: #e06b3c;
}

.btn-warning {
    background: #f39c12;
    color: #fff;
}

.btn-warning:hover {
    background: #d4880f;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Fade in animation for tab content */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Dark Mode Integration */
body.dark-mode .settings-content {
    background: #2a2b2e;
    color: #f1f1f1;
}

body.dark-mode .settings-content label {
    color: #f1f1f1;
}

body.dark-mode .form-control {
    background: #2e3033;
    color: #eee;
    border: 1px solid #444;
}

body.dark-mode .tab-btn {
    background: #444;
    color: #ccc;
}

body.dark-mode .tab-btn.active {
    background: #ff7f50;
    color: #fff;
}

body.dark-mode .btn-primary, 
body.dark-mode .btn-warning {
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}



















/* ==============================
   MODAL FOR EMAIL TEMPLATE VIEWING / SETTINGS IMPROVED
   ============================== */
.preview-custom-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}


.preview-custom-modal .modal-dialog {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    display: flex;
    flex-direction: column;
    
    position: fixed;       /* fixed ensures it stays in viewport */
    top: 50%;              /* center vertically */
    left: 50%;             /* center horizontally */
    transform: translate(-50%, -50%); /* adjust for perfect centering */
    
    z-index: 10000;        /* ensure above overlay */
    pointer-events: auto;  /* allow interaction */
    
    overflow: hidden;      /* prevent content overflow */
}


.preview-custom-modal .modal-header h3 {
    margin-bottom: 15px;
    color: #ff7f50;
}

.preview-custom-modal .modal-body {
    flex: 1;
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    overflow-y: auto;       /* scroll if content is too tall */
    max-height: 70vh;       /* don’t let modal exceed 70% viewport height */
}

.preview-custom-modal .modal-footer {
    display: flex;
    justify-content: center;
}

/* Buttons */
.preview-custom-modal #closeModal,
.preview-custom-modal #closeTemplateModal {
    padding: 10px 25px;
    border-radius: 8px;
    background: #ff7f50;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;  /* ✅ ensures pointer appears */
    transition: all 0.3s ease;
    
}

.preview-custom-modal #closeModal:hover,
.preview-custom-modal #closeTemplateModal:hover {
    background: #e26d3f;
    transform: translateY(-1px);
}

/* Dark mode support */
.preview-custom-modal body.dark-mode .modal-dialog {
    background: #2a2b2e;
    color: #f1f1f1;
}

.preview-custom-modal body.dark-mode #closeModal,
.preview-custom-modal body.dark-mode #closeTemplateModal {
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-custom-modal .modal-dialog {
        padding: 25px 15px 40px;
    }

    .preview-custom-modal .modal-header h3 {
        font-size: 1.4rem;
    }

    .preview-custom-modal .modal-body {
        font-size: 0.95rem;
    }

    .preview-custom-modal .modal-footer button {
        width: 100%;
        padding: 12px 0;
    }
}









/* Fix for Modal Scrolling on Phones */
@media (max-width: 768px) {
    #invoiceModal .modal-dialog {
        /* Ensure the modal doesn't get cut off at the bottom */
        margin: 0.5rem;
        max-height: calc(100% - 1rem);
    }

    #invoiceModal .modal-content {
        max-height: 100%;
        overflow: hidden;
    }

    /* Force the body to be the only scrollable area */
    #invoiceModal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    }

    /* Ensure the internal table-responsive doesn't break the vertical scroll */
    .table-responsive {
        max-height: 300px; /* Limits the items table height on mobile */
        overflow-y: auto;
    }
}










.admin-top-navbar {
    height: 60px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-navbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-nav-icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.top-nav-icon-btn:hover {
    color: #5a67d8; /* Match your brand purple/blue */
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff7a59; /* Your orange/coral color */
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}


/* --- Global Overlay --- */
.overlay-bg {
    position: fixed;
    inset: 0;
    background: rgba(9, 24, 34, 0.4); /* Matches your sidebar theme */
    backdrop-filter: blur(4px); /* Modern blur effect */
    display: none;
    z-index: 1999;
    transition: opacity 0.3s ease;
}
.overlay-bg.active { display: block; }





















/* --- Notification Drawer --- */
.notification-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.notification-drawer.active { right: 0; }

.drawer-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 0; /* Tightened padding for items */
}

/* --- Notification Items Refactored --- */
.notify-item {
    display: flex !important; /* This is the most important line */
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #f7fafc;
}

.notify-item:hover { background: #f8fafc; }

.notify-item.unread {
    background: #f0f4ff;
    border-left: 4px solid #5f54ff;
}

/* Container for the text content */
.notify-info {
    flex: 1; /* This pushes the delete button to the far right */
}

.notify-item p {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.4;
}

.notify-item span {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* --- The Delete Button --- */
.btn-delete-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: #a0aec0; /* A light grey */
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.2s;
}

.btn-delete-notify:hover {
    color: #e53e3e; /* Red on hover */
}

.btn-delete-notify i {
    font-size: 0.9rem;
}

/* --- Improved Modal --- */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.6); /* Darker backdrop for focus */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 20px;
    backdrop-filter: blur(4px); /* Modern blur effect */
}

.info-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 20px 25px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.modal-body { 
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto; /* Handle long help content */
}

/* --- THE "X" CLOSE BUTTONS --- */
.close-drawer, .close-modal {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2f7;
    border: none;
    border-radius: 8px;
    color: #718096;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-drawer:hover, .close-modal:hover {
    background: #fed7d7;
    color: #e53e3e;
    transform: rotate(90deg);
}




/* Portfolio Hero */
.portfolio-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: white;
}

.portfolio-hero h1 { font-size: 3.5rem; font-weight: 800; margin: 10px 0; }
.portfolio-hero .badge { color: #ff7f50; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; }

/* Filter Bar */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: -30px auto 50px; /* Pulls filters up slightly into hero area */
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.filter-btn {
    background: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #ff7f50;
    color: white;
    transform: translateY(-3px);
}

/* Unlimited Masonry Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 20px;
    padding-bottom: 80px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Sizing Logic */
.portfolio-item.wide { grid-column: span 2; }
.portfolio-item.tall { grid-row: span 2; }

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Hover Overlay */
.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-text span { color: #ff7f50; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }
.overlay-text h3 { color: white; margin: 5px 0 0; font-size: 1.4rem; }

.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .item-overlay { opacity: 1; }

/* Filter Animation */
.portfolio-item.hidden { display: none; }

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .portfolio-item.wide { grid-column: span 1; }
}

/* Standardized Portfolio Container */
.portfolio-img-container {
    width: 100%;           /* Fills the column width */
    height: 250px;         /* Your desired Max Height */
    max-width: 400px;      /* Your desired Max Width */
    margin: 0 auto;        /* Center it if the column is wider than 400px */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background-color: #f8f9fa; /* Light gray placeholder while loading */
}

/* The Image Logic */
.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Scales image to fill dimensions without distortion */
    object-position: center; 
    display: block;
}


/* 1. Force the Modal to never scroll */
#lightboxModal {
    overflow: hidden !important;
}

/* 2. Custom Wrapper to replace modal-body */
.lightbox-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    position: relative;
    overflow: hidden; /* This kills the scrollbar */
}

/* 3. Centering the image and caption */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 95%;
    height: 95%;
}

#lightboxImage {
    max-height: 85vh;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    cursor: zoom-out;
    user-select: none;
}

#lightboxCaption {
    color: white;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 4. Position Close Button so it doesn't move */
.lightbox-wrapper .btn-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2000;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.8;
}

.lightbox-wrapper .btn-close:hover {
    opacity: 1;
}

/* 5. Clean Animation */
.modal.fade .lightbox-content {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}
.modal.show .lightbox-content {
    transform: scale(1);
}


/* Center the footer area */
.gallery-footer {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Portfolio Button Styling */
.btn-portfolio {
    background-color: #000; /* Or your brand's primary color */
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: inline-block;
}

.btn-portfolio:hover {
    background-color: transparent;
    color: #000;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Add a slight arrow movement on hover */
.btn-portfolio:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}




/* interactivity on home page */

/* Base state for elements we want to animate */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    visibility: hidden;
}

/* The state triggered by JavaScript when the element is in view */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Optional: Add a slight delay for grid items so they pop in one by one */
.approach-card:nth-child(2) { transition-delay: 0.2s; }
.approach-card:nth-child(3) { transition-delay: 0.4s; }

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }




.cookie-bar {
    position: fixed;
    bottom: -100px; /* Hidden by default */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: bottom 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
}

.cookie-bar.show {
    bottom: 30px; /* Slide up into view */
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

.btn-cookie {
    background: #2c3e50; /* Matches your professional theme */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
    white-space: nowrap;
}

.btn-cookie:hover {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .cookie-content { flex-direction: column; text-align: center; }
}