
body {
    font-family: 'Lekton', sans-serif;
    margin: 0;
    background-color: #000000;
    color: #ccc;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: #fff;
    margin: 0;
}

a {
    color: #fff;
    text-decoration: none;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.preloader-line {
    width: 0;
    height: 2px;
    background-color: #d80000;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 200px;
    }
}

/* --- Hero Section & Text Slider --- */
.hero-section-video {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.main-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: #000000;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* We add position:relative here so it can act as a container for the overlay */
    position: relative; 
}

.hero-background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* This is the new overlay pattern class */
.video-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 
      IMPORTANT: Make sure this path is correct! 
      It should be relative to where your styles.css file is.
      If your CSS is in an 'assets/css' folder, this path should work.
    */
    background-image: url('../images/web-pattern-2.png'); 
    background-repeat: repeat;
    
    /* Adjust this value to make the pattern more or less visible */
    opacity: 0.60; 
}
/* =================================
   CTA Section with Overlay Pattern
   ================================= */

/* 1. Set the positioning context for the parent section */
.cta-section {
    position: relative; /* THIS IS THE CRITICAL MISSING PIECE */
    z-index: 1;         /* Establishes a stacking context */
    /* Add this if you want the section's background color
       to show through the transparent pattern */
    background-color: #444;
}

/* 2. Your CSS for the overlay (with one small addition) */
.form-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/web-pattern-2.png'); 
    background-repeat: repeat;
    opacity: 0.60;
    z-index: -1; /* This pushes the overlay BEHIND the content */
}

/* 3. Ensure the content (text, button) stays on top */
.cta-section .container {
    position: relative;
    z-index: 2;
}

.hero-section-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slider-container {
    position: fixed;
    top: 25%;
    left: 0%;
    width: 100%;
    z-index: 5;
}

.simple-text-slider {
    position: relative;
    height: 400px;
    width: 100%;
}

.slide-item {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    transform: none;
    opacity: 0;
    transition: opacity 1.0s ease-in-out;
}
.slide-vertical-center .hero-main-text {
    margin-top: 60px; /* Adjust this value to move it up or down */
}

.slide-item.active {
    opacity: 1;
}

.hero-main-text {
    font-family: 'Lekton', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

/* --- Page Hero (for About/Contact pages) --- */
.page-hero {
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
    margin-top: 100px;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 1rem);
}

.page-hero .breadcrumbs {
    color: #ccc;
    font-size: 1rem;
    margin-top: 5px;
}

.page-hero .breadcrumbs-plain {
    font-size: 1rem;       /* Adjust size as needed */
    font-weight: 400;      /* Regular font weight */
    color: #ffffff;        /* A soft white for all text */
    cursor: default;       /* Ensures the cursor is always an arrow */
}

/* Make the current/last item slightly dimmer */
.page-hero .breadcrumbs-plain .active {
    color: #ff0000;
}

/* The separator slashes */
.page-hero .breadcrumbs-plain .separator {
    margin: 0 0.6rem;    /* Space around the separator */
    color: rgba(255, 255, 255, 0.7); /* Make separator slightly transparent */
}

/* --- General Content Sections --- */
.page-content-wrapper {
    position: relative;
    z-index: 2;
    background-color: #000000;
    padding-top: 50px;
}

.content-section-dark {
    padding: 150px 0;
    background-color: #000000;
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    padding-top: 60px;
}

.section-header p {
    max-width: 600px;
    margin: 0;
    color: #aaa;
    font-size: 1.1rem;
}
.scroller-section:not(.partners-section) {
    position: relative;
    isolation: isolate; 
    padding-bottom: 50px;
}

.scroller-section:not(.partners-section)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The pattern for your image scrollers */
    background-image: url('../images/web-pattern-4.png');
    background-repeat: repeat;
    opacity: 0.50; 
    z-index: -1;
}

.scroller-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    padding-top: 10px;
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.scroller-item {
    flex: 0 0 auto;
    padding: 0 10px;
    position: relative;
    display: block;
    overflow: hidden;
}

.scroller-container-logo {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    padding-top: 10px;
}
.scroller-inner-logo {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.scroller-item-logo {
    flex: 0 0 auto; /* This line is no longer necessary but doesn't hurt */
    position: relative;
    display: inline-block; /* This is the critical change */
    overflow: hidden;
    vertical-align: middle; /* Add this to ensure logos align nicely */
}

.scroller-item img,
.scroller-item video {
    max-width: none;
    height: 150px;
    object-fit: cover;
}

/* ======================================================= */
/* ✅ UNIFORM LOGO SIZING SYSTEM (REPLACES OLD CODE) ✅ */
/* ======================================================= */
/* ========================================= */
/*   ✅ ANIMATION FOR THE LOGO SCROLLER ✅   */
/* ========================================= */

/* This applies the 'scroll' animation to your new logo scroller */
.scroller-container-logo .scroller-inner-logo {
    animation-name: scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
/* This controls the speed for the logo scroller */
.scroller-container-logo[data-speed="fast"] .scroller-inner-logo {
    animation-duration: 80s; /* You can adjust this speed */
}

.scroller-container-logo[data-speed="slow"] .scroller-inner-logo {
    animation-duration: 120s; /* You can adjust this speed */
}

/* This controls the direction for the logo scroller */
.scroller-container-logo[data-direction="right"] .scroller-inner-logo {
    animation-direction: reverse;
}

/* --- 1. Base Styles (Do Not Edit These) --- */
/* This part sets up the containers and makes the images fit. */
.scroller-item-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.partner-logo img:hover {
    opacity: 1;
}
/* ======================================================= */
/*    ✅ INDIVIDUAL LOGO SCALING (Fine-Tuning) ✅          */
/* ======================================================= */
/* Use this section to make final size adjustments with scale(). */

/* --- Standard Size Logos --- */
.partner-logo img[alt="Megawide"] { transform: scale(1.1);padding-top: 20px; }
.partner-logo img[alt="Mhe Demag"] { transform: scale(1.0);padding-top: 15px; }
.partner-logo img[alt="Monark"] { transform: scale(1.3);padding-top: 10px; }
.partner-logo img[alt="Philips"] { transform: scale(1.0); padding-top: 10px;}
.partner-logo img[alt="Sagility"] { transform: scale(1.0);padding-top: 10px; }
.partner-logo img[alt="Secret Recipe"] { transform: scale(1.2);padding-top: 10px; }
.partner-logo img[alt="Sophos"] { transform: scale(1.0);padding-top: 10px; }
.partner-logo img[alt="Aboitiz"] { transform: scale(1.0);padding-top: 10px; }
.partner-logo img[alt="DFI Retail"] { transform: scale(1.0);padding-top: 20px; }
.partner-logo img[alt="FBM"] { transform: scale(1.0);padding-top: 10px; }
.partner-logo img[alt="HCG"] { transform: scale(1.0); padding-top: 10px;}
.partner-logo img[alt="Honda"] { transform: scale(1.3); padding-top: 10px;}
.partner-logo img[alt="Jolly Plastic"] { transform: scale(2.5);padding-top: 10px; }
.partner-logo img[alt="Kuene Nagel"] { transform: scale(1.0); padding-top: 20px;}
.partner-logo img[alt="Matimco"] { transform: scale(1.0);padding-top: 20px; }
.partner-logo img[alt="Paypal"] { transform: scale(0.9); padding-top: 25px;}
.partner-logo img[alt="DB Schenker"] { transform: scale(2.2); padding-top: 10px;}
.partner-logo img[alt="Atlas Copo"] { transform: scale(1.0);padding-top: 20px; }

/* --- Large Size Logos --- */
.partner-logo img[alt="Babaa Tea"] { transform: scale(1.0); }
.partner-logo img[alt="BHotel"] { transform: scale(2); }
.partner-logo img[alt="One Lancaster Park"] { transform: scale(2.5); }
.partner-logo img[alt="Uniqlo"] { transform: scale(0.9); }
.partner-logo img[alt="Admiral Hotel"] { transform: scale(1.5); padding-top: 2px;}
.partner-logo img[alt="JICA"] { transform: scale(1.0); }
.partner-logo img[alt="Philippine Chamber of Commerce"] { transform: scale(0.9); }
.partner-logo img[alt="Siklab"] { transform: scale(3); }
.partner-logo img[alt="Olive Garden"] { transform: scale(1.0); }
.partner-logo img[alt="Macbeth"] { transform: scale(2.5);}
.partner-logo img:hover {
    opacity: 1;
}
.scroller-item-logo:has(img[alt="Megawide"])      { width: 120px; height: 55px; }
.scroller-item-logo:has(img[alt="Mhe Demag"])      { width: 120px; height: 55px; }
.scroller-item-logo:has(img[alt="Monark"])         { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Philips"])        { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Sagility"])       { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Secret Recipe"])  { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Sophos"])         { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Aboitiz"])        { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="DFI Retail"])     { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="FBM"])            { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="HCG"])            { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Honda"])          { width: 100px; height: 55px; }
.scroller-item-logo:has(img[alt="Jolly Plastic"])  { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Kuene Nagel"])    { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Matimco"])        { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="Paypal"])         { width: 130px; height: 55px; }
.scroller-item-logo:has(img[alt="DB Schenker"])    { width: 150px; height: 55px; }
.scroller-item-logo:has(img[alt="Atlas Copo"])     { width: 130px; height: 55px; }

/* --- Large Logos --- */
.scroller-item-logo:has(img[alt="Babaa Tea"])      { width: 80px; height: 80px; }
.scroller-item-logo:has(img[alt="BHotel"])         { width: 50px; height: 75px; }
.scroller-item-logo:has(img[alt="One Lancaster Park"]) { width: 120px; height: 75px; }
.scroller-item-logo:has(img[alt="Uniqlo"])         { width: 120px; height: 75px; }
.scroller-item-logo:has(img[alt="Admiral Hotel"])  { width: 130px; height: 90px; }
.scroller-item-logo:has(img[alt="JICA"])           { width: 120px; height: 75px; }
.scroller-item-logo:has(img[alt="Philippine Chamber of Commerce"]) { width: 130px; height: 75px; }
.scroller-item-logo:has(img[alt="Siklab"])         { width: 130px; height: 75px; }
.scroller-item-logo:has(img[alt="Olive Garden"])   { width: 100px; height: 75px; }
.scroller-item-logo:has(img[alt="Macbeth"])        { width: 130px; height: 75px; }



.scroller-container .scroller-inner {
    animation: scroll linear infinite;
}

.scroller-container[data-speed="fast"] .scroller-inner {
    animation-duration: 50s;
}

.scroller-container[data-speed="slow"] .scroller-inner {
    animation-duration: 60s;
}

.scroller-container[data-direction="right"] .scroller-inner {
    animation-direction: reverse;
}


@keyframes scroll {
    to {
        transform: translate(calc(-50%));
    }
}

/* --- Portfolio Showcase (Swiper) --- */
.portfolio-slider-section {
    padding: 50px 0;
    background-color: #000000;
    position: relative;
}

.portfolio-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 600px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.portfolio-item-large,
.portfolio-item-small {
    position: relative;
    overflow: hidden;
    display: block;
    background-size: cover;
    background-position: center;
}

.portfolio-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.portfolio-item-large .portfolio-hover-content,
.portfolio-item-small .portfolio-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #d80000;
    color: #fff;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item-large:hover .portfolio-hover-content,
.portfolio-item-small:hover .portfolio-hover-content {
    transform: translateY(0);
}

.portfolio-hover-content h3 {
    color: #fff;
    margin-bottom: 5px;
}

.portfolio-hover-content span {
    color: #fff;
    opacity: 0.8;
}
.swiper-desktop-instance {
    /* THIS IS THE KEY: Override Swiper's CSS variables */
    --swiper-navigation-color: #ffffff; /* Sets the default arrow color to WHITE */

    /* Optional: You can also control the size this way */
    --swiper-navigation-size: 22px; 
}

/* 2. Remove the default background circle */
.swiper-desktop-instance .swiper-button-next,
.swiper-desktop-instance .swiper-button-prev {
    background: none;
    width: 40px;
    height: 40px;
    transition: color 0.3s ease; /* Add transition for hover effect */
}

/* 3. Reposition the buttons */
.swiper-desktop-instance .swiper-button-next {
    right: 100px;
}
.swiper-desktop-instance .swiper-button-prev {
    left: 100px;
}

/* 4. Set the HOVER color for the arrows */
.swiper-desktop-instance .swiper-button-next:hover,
.swiper-desktop-instance .swiper-button-prev:hover {
    /* On hover, we change the variable's value to your theme red */
    --swiper-navigation-color: #d80000;
}

/* 5. Ensure the arrow icon remains bold (optional, but good practice) */
.swiper-desktop-instance .swiper-button-next::after,
.swiper-desktop-instance .swiper-button-prev::after {
    font-weight: 900;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-mission h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: #fff;
}

.about-description p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 20px;
}

.about-description p:last-child {
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .about-grid {
        /* Stacks the columns on top of each other */
        grid-template-columns: 1fr;
        /* Reduces the space between the stacked items */
        gap: 40px;
    }

    .about-mission h2 {
        /* Reduces the heading font size for smaller screens */
        font-size: 1.8rem;
    }

    .about-description p {
        /* Reduces the paragraph font size for better readability */
        font-size: 1rem;
    }
}
.contact-detail-section{
    padding-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px 40px;
}

.contact-column h4 {
    font-family: 'Lekton', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 1.5px;
    margin-top: 30px;
}

.contact-column h4:first-child {
    margin-top: 0;
}

.contact-column p {
    font-family: 'Lekton', sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    color: #ddd;
}

.contact-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-column a.contact-link-red {
    color: #d80000;
    font-weight: 500;
}

.contact-column a:hover {
    color: #fff;
}

/* --- Team Section --- */
.team-section {
    padding: 0 0 120px 0;
}

.team-section h2 {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-member span {
    color: #d80000;
    font-weight: 500;
}

/* --- Service Page Styles --- */

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: flex-start;
}

.service-description h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-description h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 25px;
}

.service-description .icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-description .icon-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.service-description .icon-list svg {
    width: 28px;
    height: 28px;
    color: #d80000;
    flex-shrink: 0;
}

.service-form h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-family: 'Lekton', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d80000;
}

.service-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
    
}

/* --- Portfolio Page Styles --- */
.feature-section {
    padding: 120px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-media .media-wrapper {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.feature-media img {
    width: 100%;
    display: block;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-media .media-wrapper:hover .play-button-overlay {
    opacity: 1;
}

.play-icon {
    width: 80px;
    height: 80px;
    color: #fff;
    transition: transform 0.3s ease;
}

.feature-media .media-wrapper:hover .play-icon {
    transform: scale(1.2);
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d80000;
}

.cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
}

.cta-section .cta-button {
    display: inline-block;
    background-color: #d80000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* --- Footer --- */
.main-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer p {
    color: #888;
    font-size: .8em;
}

.social-links a {
    /* Define the circle's size */
    width: 20px;
    height: 20px;
    
    /* Keep the spacing between icons */
    margin-left: 20px;

    /* Make the link a circle */
    border-radius: 50%;
    
    /* Use flexbox to perfectly center the icon inside */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Set the default icon and border color */
    color: #888;
    border: 1px solid #888;
    
    /* Remove default underline from links */
    text-decoration: none;
    
    /* Animate the changes for a smooth hover effect */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* 2. Define the hover effect */
.social-links a:hover {
    /* Change background to your theme red */
    background-color: #d80000;
    
    /* Make the border red as well to look solid */
    border-color: #d80000;
    
    /* Change the icon color to white */
    color: #fff;
}

/* 3. Control the icon's size inside the circle */
.social-links a i {
    font-size: .7rem; /* Your original icon size */
}

/* ======================================================= */
/* ---               RESPONSIVE STYLES                 --- */
/* ======================================================= */
@media (min-width: 1080px) {

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1080px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1080px) {
    .hero-main-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    .simple-text-slider{
    position: relative;
    height: 200px;
    width: 100%;
    }
    /* Dynamic dots for the mobile portfolio slider */
    .swiper-mobile-instance .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background-color: #fff;
        opacity: 0.5;
        transition: width 0.3s ease;
    }
    
    .swiper-mobile-instance .swiper-pagination-bullet-active {
        width: 25px;
        background-color: #d80000;
        border-radius: 5px;
        opacity: 1;
    }

}
/* ============================================= */
/*          ✅ YouTube Embed Styles ✅           */
/* ============================================= */

/* 1. Make the main wrapper a responsive, clickable box */
.video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    max-width: 750px; 
    margin: 0 auto; 
    aspect-ratio: 16 / 9;
}

/* 2. Style the thumbnail to fill the container */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* 3. Style the iframe after it's added by JavaScript */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ============================================= */
/*       ✅ Play/Pause Button Styles ✅          */
/* ============================================= */

/* The dark overlay that appears on hover */
.play-pause-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* This creates the play "triangle" shape */
.play-pause-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px; /* A larger triangle */
    border-color: transparent transparent transparent #ffffff;
    transition: all 0.2s ease;
}

/* Adds a subtle zoom effect when hovering over the video */
.video-wrapper:hover .play-pause-button::before {
    transform: translate(-50%, -50%) scale(1.1);
}
/* ======================================================= */
/* ✅ STYLES FOR THE SCROLL-DOWN ARROW ✅                  */
/* ======================================================= */

/* This enables smooth scrolling when the arrow is clicked */
html {
    scroll-behavior: smooth;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 50px; /* Adjust distance from the bottom */
    left: 50%;
    transform: translateX(-50%) rotate(45deg); /* Center and rotate */
    width: 28px;
    height: 28px;
    border: 2px solid #ffffff;
    border-top: 0;
    border-left: 0;
    z-index: 10; /* Ensure it's clickable and on top */
    animation: bounce 2.5s infinite;
}
#our-clients {
    /* 
      This tells the browser to stop scrolling 100px BEFORE the top
      of this section, leaving a perfect gap for your header.
      Adjust the value to match your header's height + some space.
    */
    scroll-margin-top: 88px; 
}

/* A simple bouncing animation to draw attention */
@keyframes bounce {
    0%, 100% {
        bottom: 60px;
        opacity: 1;
    }
    50% {
        bottom: 30px;
        opacity: 0.7;
    }
}
.portfolio-header h2 {
    padding-top: 0; /* Removes the default top padding from .section-header h2 */
}

.portfolio-header {
    margin-bottom: 40px; /* Adjust the space below the header text */
}
.portfolio-slider-desktop {
    display: none;
}

/* On screens larger than 768px, hide the mobile slider and show the desktop one */
@media (min-width: 1080px) {
    .portfolio-slider-desktop {
        display: block;
    }
    .portfolio-slider-mobile {
        display: none;
    }
    
}

/* --- Styling for the new single-item mobile slides --- */
.portfolio-item-single {
    display: block;
    position: relative;
    border-width: 50px;
    width: 80%;
    left: 10%;
    padding-top: 56.25%; 
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item-single:hover .portfolio-hover-content {
    transform: translateY(0);
}
.swiper-pagination-bullet {
    background-color: #888; /* A neutral grey color */
    opacity: 0.7; /* Make them slightly transparent */
}

.swiper-pagination {
    bottom: 20px !important; /* Use !important to override inline styles if necessary */
}

/* This is for each individual dot (the inactive state) */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ffffff; /* Let's make them white */
    opacity: 0.5; /* Make them semi-transparent */
    transition: all 0.3s ease; /* Add a smooth transition effect */
}

/* This is for the currently active dot */
.swiper-pagination-bullet-active {
    background-color: #d80000; /* Your theme red */
    opacity: 1; /* Fully visible */
    width: 30px; /* Make the active dot wider to stand out */
    border-radius: 5px; /* Make it a wide, rounded rectangle */
}
.swiper-mobile-instance .swiper-pagination {
    position: static; /* This is the key change! */
    
    /* We need to add some margin to create space between the slider and the dots. */
    margin-top: 25px;
    
    /* We also have to reset the transform that Swiper uses for centering. */
    transform: none;
}
.portfolio-item-single .portfolio-hover-content {
    /* Use a gradient that fades from your theme's red to transparent */
    /* This is the line that was changed from black to red */
    background: linear-gradient(to top, rgba(216, 0, 0, 0.8) 0%, transparent 100%);

    /* Adjust padding to position the text in the darker area */
    padding: 40px 20px 20px 20px;
    
    /* Make the text content align to the bottom of the slide */
    justify-content: flex-end;
}

/* Add a very subtle dark shadow to the text itself for clarity against the red */
.portfolio-item-single .portfolio-hover-content h3,
.portfolio-item-single .portfolio-hover-content span {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
/* --- Updated CSS for Masonry --- */
.project-gallery-grid {
    margin: 2rem auto 0;
    /* The gutter size from JS will create the horizontal space */
}

.gallery-item {
    /* Define the width of each item. Masonry.js will handle the rest. */
    width: 32%;      /* Creates a 3-column layout with some space */
    margin-bottom: 20px; /* This creates the vertical space */
    
    /* Keep your existing styling for hover effects etc. */
    position: relative;
    overflow: hidden;
    display: block; /* Make sure it's a block element */
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 992px) {
    .gallery-item {
        width: 48%; /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 100%; /* 1 column on mobile */
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-radius: 0;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

/* --- YouTube Play Button --- */
.youtube-video .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.8) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center center;
    background-size: 40px 40px;
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through to the link */
}

.gallery-item.youtube-video:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}


/* --- Modern Modal Styles --- */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 960px;
    top: 50%;
    transform: translateY(-50%);
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
/* ========================================= */
/*   CHAT WIDGET & TOGGLE STYLES (COMPLETE)  */
/* ========================================= */

/* --- 1. The Toggle Button ("NRK Media") --- */
.chat-opener-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* FIX: Set a high z-index to be on top of site content */
    z-index: 9999;
    
    background-color: #a9a9a9;
    color: #333; /* Darker text for better contrast */
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.chat-opener-button i {
    font-size: 18px;
}

.notification-dot {
    width: 10px;
    height: 10px;
    background-color: #4ee040; /* Bright red */
    border-radius: 50%;
    border: 1px solid #fff;
}

.chat-opener-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}


/* --- 2. The Main Chat Widget Window (This was the missing part) --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* FIX: Set the HIGHEST z-index to be on top of everything */
    z-index: 10000;
    
    width: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background-color: #4a4a4a;
    color: white;
    font-family: Arial, sans-serif;
    
    /* Starts hidden and transitions smoothly */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #333;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #4ee040;
    margin-right: 15px;
    object-fit: cover; /* Prevents image stretching */
}

.agent-info { flex-grow: 1; }
.agent-name { font-weight: bold; font-size: 16px; }
.agent-title { font-size: 13px; color: #ccc; }
.close-icon { font-size: 24px; cursor: pointer; padding: 5px; line-height: 1.2; }

.chat-body { padding: 20px; }

.typing-indicator {
    display: flex;
    padding: 15px;
    background: #555;
    border-radius: 20px;
    width: fit-content;
    opacity: 0;
    animation: fadeIn 0.3s 1s forwards, fadeOut 0.3s 4s forwards;
}

.chat-message {
    opacity: 0;
    background: #5f5f5f;
    border-radius: 20px;
    padding: 5px 20px;
    margin-top: 10px;
    animation: fadeInMessage 0.5s 4.5s forwards;
}
.chat-message p { margin: 10px 0; line-height: 1.2; }

.chat-footer { padding: 10px 20px 20px 20px; text-align: center; }
.connect-text { margin-bottom: 15px; font-size: 14px; }
.icon-buttons { display: flex; justify-content: space-around; }

.icon-btn {
    width: 40px;
    height: 40px;
    background-color: #d90429;
    border-radius: 100%;
    display: block;
}
/* ========================================= */
/*   ✅ CHAT WIDGET - RESPONSIVE STYLES ✅    */
/* ========================================= */

/* On screens 600px wide or less (most mobile phones) */
@media (max-width: 600px) {

    /* --- 1. Adjust the Chat Widget Window --- */
    .chat-widget {
        /* Ditch the fixed width and have it span the screen */
        width: auto;

        /* Give it some padding from the screen edges */
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    /* --- 2. Adjust the Opener Button --- */
    .chat-opener-button {
        /* Move it closer to the corner to match the widget */
        right: 15px;
        bottom: 15px;

        /* Optional: Make the button slightly smaller on mobile */
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; } to { opacity: 0; display: none; }
}

@keyframes fadeInMessage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background-color: #ccc;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
/* ========================================= */
/*      CHAT WIDGET ICON STYLES          */
/* ========================================= */

/* This makes the red circle a flex container to center the icon */
.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Add a smooth hover effect */
    transition: transform 0.2s ease;
}

/* Style the Font Awesome icon itself */
.icon-btn i {
    color: #ffffff; /* White icon color */
    font-size: 22px; /* Adjust size as needed */
}

/* Optional: Add a nice zoom effect on hover */
.icon-btn:hover {
    transform: scale(1.1);
}
/* ========================================= */
/*   IMPROVED VIDEO GALLERY ITEM STYLES      */
/* ========================================= */

/* 1. Make the main link a positioning container */
.gallery-item.gallery-item-video {
    position: relative; /* This is crucial for positioning the play button */
}

/* 2. Add a subtle darkening overlay on hover for better visibility */
.gallery-item.gallery-item-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* Sits below the play button and text overlay */
}

.gallery-item.gallery-item-video:hover::after {
    opacity: 1;
}

/* 3. Style and Center the Play Button */
.gallery-item-video .play-button {
    /* --- Positioning for Perfect Centering --- */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Sits on top of the image and the dark overlay */

    /* --- Visual Styling --- */
    width: 40px;
    height: 40px;
    background-color: rgba(88, 88, 88, 0.8); /* Your theme red, semi-transparent */
    border-radius: 50%; /* Makes it a circle */
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);

    /* --- Triangle Icon (using CSS borders) --- */
    display: flex;
    align-items: center;
    justify-content: center;

    /* --- Animation --- */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* The inner triangle shape */
.gallery-item-video .play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px; /* Nudges the triangle to be visually centered */
}

/* 4. Hover effect for the play button */
.gallery-item-video:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #d90429; /* Solid red on hover */
}

/* 5. Ensure the text overlay appears on top of everything */
.gallery-item .gallery-item-overlay {
    z-index: 3;
    /* Your existing overlay styles are fine */
}
/* ========================================= */
/*          VIDEO MODAL STYLES               */
/* ========================================= */
.video-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000; /* Ensure it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 960px; /* Max width of the video player */
    top: 50%;
    transform: translateY(-50%);
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1.2;
}

.video-modal-close:hover,
.video-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
/* =============================================================== */
/*      ✅ FINAL Grid with "MORE" Links on ALL Services ✅        */
/* =============================================================== */

.services-section{
    padding-bottom: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    padding-bottom: 100px;
}

.service-item {
    text-align: left;
}

.service-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.service-item p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item li {
    color: #a0a0a0;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.service-item li::before {
    content: '•';
    color: #d80000;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -1px;
}

/* This rule ensures we only SHOW up to 4 bullet points */
.service-item li:nth-child(n+5) {
    display: none;
}

/* --- "MORE..." LINK STYLING --- */
/* This link will now be visible on every .service-item */
.btn-more {
    display: inline-block;
    color: #d80000;
    font-family: 'Lekton', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}
.btn-more:hover {
    color: #fff;
}

.service-item {
    text-align: left;
}
.service-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
}
.service-item p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin: 0 0 20px 0;
    line-height: 1.2;
}
.service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-item li {
    color: #a0a0a0;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}
.service-item li::before {
    content: '•';
    color: #d80000;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -1px;
}
.service-item li:nth-child(n+5) {
    display: none;
}
.btn-more {
    display: inline-block;
    color: #d80000;
    font-family: 'Lekton', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}
.btn-more:hover {
    color: #fff;
}

/* --- 2. DESKTOP styles (> 768px) --- */
@media (min-width: 769px) {
    .services-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 40px;
    }
    .services-container .swiper-wrapper {
        display: contents; /* Makes grid adopt the slides */
    }
    .services-container .swiper-pagination,
    .services-container .swiper-scrollbar {
        display: none; /* Hide mobile controls on desktop */
    }
}

/* --- 3. MOBILE styles (<= 768px) --- */
@media (max-width: 768px) {
    .services-container {
        display: block;
        overflow: hidden;
        margin-left: -20px;
        padding: 0 0 50px 20px;
    }
    .service-item.swiper-slide {
        width: 85%;
        max-width: 320px;
        height: auto;
        padding: 25px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        min-height: 320px;
    }
    .services-container .swiper-scrollbar {
        bottom: 10px;
        left: 20px; /* Match left padding */
        width: calc(100% - 40px); /* Account for padding */
        background: rgba(255, 255, 255, 0.1);
    }
    .services-container .swiper-scrollbar-drag {
        background: #d80000;
    }
    .services-container .swiper-pagination {
        display: none;
    }
}
