

:root {
    --primary-beige: #E6DFD5;
    --secondary-charcoal: #2F4F4F;
    --neutral-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #f4f4f4;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    box-sizing: border-box; /* Ensure html also respects border-box model */
}

body {
    font-family: 'Lora', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--neutral-white);
    padding-top: 80px; /* Explicit padding for fixed header on main page */
}

/* Ensure body content is not hidden behind fixed navbar on mobile and service detail pages */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important; /* Remove body padding-top on mobile */
    }

    .navbar {
        padding: 5px 0 !important; /* Reduced vertical padding for mobile */
        height: 80px !important; /* Explicitly set height for the navbar */
        position: fixed !important; /* Revert to fixed */
        top: 0 !important;
        margin-bottom: 0 !important; /* Ensure no bottom margin */
    }

    .hero-section {
        margin-top: -100px !important; /* Aggressively pull hero section up */
        padding-top: 0 !important;
        min-height: 100dvh !important; /* Use dynamic viewport height for better mobile compatibility */
        height: auto !important; /* Let height adjust based on content and min-height */
        box-sizing: border-box !important;
    }

    .hero-section .hero-background-overlay, .hero-section .container.hero-content {
        box-sizing: border-box !important;
    }

    .hero-section .hero-content {
        padding-top: 100px !important; /* Push content down to compensate for negative margin */
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Ensure full width for cards and images on mobile */
    .service-card,
    .team-card,
    .about-image {
        width: 100% !important;
        max-width: none !important; /* Override any max-width to allow full width */
    }

    .navbar nav ul {
        margin-top: 0; /* Remove top margin */
        flex-direction: column;
        display: none; /* Hide by default on mobile */
        width: 100%;
        position: fixed; /* Use fixed position for full-screen overlay */
        top: 100px; /* Position below the fixed header (aligned with body padding) */
        left: 0; /* Align to left */
        height: calc(100vh - 100px); /* Full viewport height minus header height */
        background-color: rgba(47, 79, 79, 0.98); /* More opaque background for menu */
        box-shadow: none;
        padding-top: 20px; /* Internal padding for menu items */
        justify-content: flex-start; /* Align items to top */
        align-items: center; /* Center items horizontally */
        transition: transform 0.3s ease-in-out; /* Smooth slide in/out */
        transform: translateX(100%); /* Initially off-screen to the right */
    }

    .navbar nav ul.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide in */
    }

    .navbar nav ul li {
        margin: 15px 0; /* More vertical space */
        padding: 0; /* Remove padding */
        border-bottom: none; /* Remove border */
    }

    .navbar nav ul li a {
        font-size: 1.5em; /* Larger font size for readability */
        color: var(--neutral-white);
    }

    .navbar nav ul li a:hover {
        color: var(--primary-beige);
    }

    .hamburger-icon {
        display: block !important; /* Ensure hamburger icon is visible */
        font-size: 2em;
        color: var(--neutral-white);
        cursor: pointer;
        z-index: 1001;
    }
}

body.service-detail-page {
    /* Removed padding-top as header is removed */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--secondary-charcoal);
}

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

/* Navbar */
.navbar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background-color: var(--secondary-charcoal);
    padding: 15px 0;
    color: var(--neutral-white);
    z-index: 1000 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    font-size: 2.5em; /* Slightly larger for impact with new font */
    color: var(--neutral-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px; /* Increased letter spacing for refinement */
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4); /* More pronounced shadow for 3D */
    transition: all 0.3s ease; /* Smooth transition for all properties */
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden; /* Hide overflowing pseudo-element */
}

.navbar .logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(45deg);
    animation: logoGlow 3s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar .logo:hover {
    color: var(--primary-beige);
    transform: scale(1.05) perspective(500px) rotateY(3deg); /* 3D tilt and slight scale on hover */
    text-shadow: 4px 4px 8px rgba(0,0,0,0.5); /* Enhanced shadow on hover */
}

.navbar .logo:hover::before {
    opacity: 1;
}

@keyframes logoGlow {
    0% { transform: rotate(45deg) translate(-50%, -50%); opacity: 0; }
    50% { transform: rotate(45deg) translate(0%, 0%); opacity: 1; }
    100% { transform: rotate(45deg) translate(50%, 50%); opacity: 0; }
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Hide checkbox input */
#menu-toggle {
    display: none;
}

/* Hamburger icon styling */
.hamburger-icon {
    display: none; /* Hidden by default, shown on mobile */
    font-size: 2em;
    color: var(--neutral-white);
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other content */
}

.navbar nav ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    color: var(--neutral-white);
    text-decoration: none; /* Remove underline */
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: rgba(255, 255, 255, 0.7); /* Greyish hover color */
}

/* Apply to all anchor tags to remove blue link color and underline by default */
a {
    color: inherit; /* Inherit color from parent */
    text-decoration: none; /* Remove underline */
}

a:hover {
    text-decoration: none; /* Ensure no underline on hover */
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100dvh; /* Use 100dvh for better mobile viewport handling */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neutral-white);
    text-align: center;
    background: url('./images/BusinessP.jpg') no-repeat center center;
    background-size: cover; /* Ensure background image covers the entire section */
    background-attachment: fixed; /* Keep background fixed */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 79, 79, 0.7); /* Restored transparency to 0.7 */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--neutral-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 20px; /* Reduced margin to move the button up */
    color: var(--neutral-white);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px; /* Pill-shaped */
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-beige);
    color: var(--secondary-charcoal);
    border: 2px solid var(--primary-beige);
}

.btn-primary:hover {
    background-color: var(--secondary-charcoal);
    color: var(--primary-beige);
    border-color: var(--primary-beige);
}

@media (max-width: 768px) {
    .hero-content .btn {
        padding: 10px 20px; /* Reduced padding for mobile */
        font-size: 0.9em; /* Reduced font size for mobile */
    }
}

/* Services Section */
.services-section {
    position: relative;
    padding: 80px 0;
    background-color: #e8f0eddc; /* Changed to a light grey */
    text-align: center;
    overflow: hidden; /* Ensure video background stays within section */
    z-index: 0; /* Ensure this section's content is above the new overlay */
}

.services-section::before { /* New overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(134, 129, 129, 0.6); /* Semi-transparent black overlay */
    z-index: 0; /* Behind content, in front of video and existing overlay */
}

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

.services-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1); /* Slightly increase brightness and contrast */
    opacity: 0.9; /* Slightly reduce video opacity */
}

.services-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(201, 191, 191, 0.493); /* Changed to white with transparency */
    z-index: -1;
}

.services-section h2,
.about-section h2 {
    font-size: 3em;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.services-section h2::after,
.about-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-beige);
    border-radius: 2px;
}

.service-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.85); /* Slightly transparent white background */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(47, 79, 79, 0.1); /* Charcoal shadow */
    padding: 40px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(47, 79, 79, 0.1); /* Subtle charcoal border */
    transform: perspective(1000px) rotateX(0deg); /* Initial 3D perspective */
    transform-style: preserve-3d;
    position: relative; /* Ensure content is above video */
    z-index: 1; /* Ensure content is above video overlay */
}

.service-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(3deg); /* 3D effect on hover */
    box-shadow: 0 12px 30px rgba(47, 79, 79, 0.3); /* Enhanced charcoal shadow on hover */
}

.service-card i {
    font-size: 3em;
    color: var(--secondary-charcoal); /* Changed icon color to charcoal */
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-charcoal);
}

.service-card p {
    color: var(--text-dark);
}

/* Service card link styling to ensure text color is inherited and not blue */
.service-card-link {
    color: inherit;
    text-decoration: none;
}

.service-card-link:hover .service-card {
    transform: translateY(-10px) perspective(1000px) rotateX(3deg);
    box-shadow: 0 12px 30px rgba(47, 79, 79, 0.3);
}

.service-card-link:active .service-card {
    transform: translateY(-5px) perspective(1000px) rotateX(1deg);
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.2);
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: #e8f0eddc; /* Changed to a light grey */
    text-align: center;
}

.team-section h2 {
    font-size: 3em;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    color: var(--secondary-charcoal);
}

.team-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-beige);
    border-radius: 2px;
}

.team-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.team-card {
    background-color: var(--neutral-white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 30px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-beige);
}

.team-card h3 {
    font-size: 1.6em;
    margin-bottom: 5px;
    color: var(--secondary-charcoal);
}

.team-card p {
    color: var(--text-dark);
    font-style: italic;
}

/* About Section */
.about-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--primary-beige);
    overflow: hidden; /* Ensure video background stays within section */
}

.about-video-background,
.contact-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.about-video-background video,
.contact-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-section .video-overlay,
.contact-form-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 79, 79, 0.15); /* Adjusted transparency from 0.3 to 0.15 */
    z-index: -1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-text-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.15); /* Glassmorphism background */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(0deg); /* Initial 3D perspective */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-text-container:hover {
    transform: perspective(1000px) rotateY(3deg); /* 3D effect on hover */
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.about-text-container h2 {
    color: var(--secondary-charcoal);
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: var(--secondary-charcoal);
    color: var(--neutral-white);
    padding: 50px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info h3 {
    color: var(--primary-beige);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.footer-info p {
    margin: 5px 0;
    color: var(--text-light);
}

.social-icons {
    margin-top: 25px;
}

.social-icons a {
    color: var(--neutral-white);
    font-size: 1.8em;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-beige);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--secondary-charcoal);
    color: var(--neutral-white);
    text-align: center;
}

.testimonials-section h2 {
    font-size: 3em;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    color: var(--neutral-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-beige);
    border-radius: 2px;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white background */
    color: var(--text-dark);
    padding: 40px;
}

.testimonial-item {
    display: none; /* Hidden by default */
    animation: fadeIn 1s ease-in-out forwards;
}

.testimonial-item.active {
    display: block; /* Shown when active */
}

.testimonial-item p {
    font-size: 1.4em;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-item h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--secondary-charcoal);
}

.slider-controls {
    text-align: center;
}

.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--primary-beige);
    transform: scale(1.2);
}

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

/* Service Detail Page Styling */
.service-detail-hero {
    background-color: var(--secondary-charcoal);
    color: var(--neutral-white);
    padding: 100px 0 50px;
    text-align: center;
}

.service-detail-hero h1 {
    font-size: 3.5em;
    color: var(--primary-beige);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-detail-content {
    padding: 80px 0;
    background-color: var(--neutral-white);
}

.service-detail-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--secondary-charcoal);
}

.service-detail-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.service-detail-content ul li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.service-detail-content ul li::before {
    content: "\f00c"; /* Font Awesome check-mark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-beige);
    position: absolute;
    left: 0;
    top: 0;
}

.service-detail-content .btn-primary {
    margin-top: 30px;
}

@media (max-width: 768px) {
    body.service-detail-page {
        padding-top: 60px; /* Adjust for mobile fixed navbar height */
    }

    .service-detail-hero {
        padding: 80px 0 40px;
    }

    .service-detail-hero h1 {
        font-size: 2.5em;
    }

    .service-detail-content {
        padding: 50px 0;
    }

    .service-detail-content h2 {
        font-size: 2em;
    }

    .service-detail-content p,
    .service-detail-content ul li {
        font-size: 1em;
    }
}

/* Responsive adjustments for About Section on mobile */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack text and image vertically */
    }

    .about-image {
        order: 2; /* Image comes after text */
        margin-top: 30px; /* Add some space between text and image */
    }

    .about-text-container {
        order: 1; /* Text comes before image */
        padding: 20px; /* Adjust padding for smaller screens */
    }
}

/* Contact Form Section */
.contact-form-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--primary-beige);
    text-align: center;
    overflow: hidden; /* Ensure video background stays within section */
}

.contact-form-section h2 {
    font-size: 3em;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    color: var(--secondary-charcoal);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-charcoal);
    border-radius: 2px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.25); /* Adjusted transparency for contact form */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: left;
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Ensure content is above video */
    z-index: 1; /* Ensure content is above video overlay */
}

.contact-form:hover {
    transform: perspective(1000px) rotateX(2deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-charcoal);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border: 1px solid rgba(47, 79, 79, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: var(--text-dark);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-charcoal);
    background-color: var(--neutral-white);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: auto;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
}
