@font-face {
  font-family: 'Horta';
  src: url('fonts/Horta demo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* TwinTech Smart Solutions - Minimalist Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Brand Colors */
    --green: #00FF88; /* Keep logo green as accent */
    --grayish-green: #6B9A7D;
    
    /* Premium Color Palette */
    --accent-cyan: #06B6D4; /* Softer, more professional cyan */
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    
    /* Sophisticated Neutrals */
    --dark-slate: #0F172A; /* Deep navy for depth */
    --dark-teal: #1E293B; /* Rich slate */
    --mid-slate: #334155; /* Medium slate */
    --light-slate: #64748B; /* Light slate */
    --light-text: #F1F5F9; /* Soft white */
    --white: #FFFFFF;
    --off-white: #FAFBFC; /* Subtle off-white */
    
    /* Gradients */
    --bg-gradient: linear-gradient(145deg, var(--dark-slate), var(--dark-teal));
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Section Backgrounds - Premium Gradients */
    --section-light: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
    --section-accent: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(6, 182, 212, 0.04));
    --section-deep: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(30, 41, 59, 0.05));
    
    --nav-offset: 140px; /* height to offset fixed navbar when scrolling to anchors */
    --bg-grey: #1e293b; /* Background for mobile menu */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-offset);
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 100px;
    }
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(140% 120% at 15% 10%, rgba(16,185,129,0.08), transparent 45%),
                radial-gradient(120% 110% at 85% 0%, rgba(34,211,238,0.08), transparent 40%),
                #ffffff;
    color: #1e2329;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-top: 0;
    padding-top: 0;
}

html, body {
    margin: 0;
    padding: 0;
    background: #161616;
}


.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 40px;
    background: #fff !important;
}

/* Navigation  header*/ 
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    z-index: 10099 !important;
    background-color: #161616; /* ✅ new color */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0px 8px;
    border-bottom: 0px solid var(--border-color);
    transition: all 0.3s ease;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 8px;
    padding-right: 8px;
    height: auto;
    min-height: unset;
    line-height: 1;
}


.navbar.scrolled {
    background: #1f1e1e; /* ✅ your new color */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    min-height: unset !important;
    align-items: center !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.logo-img {
    width: 140%;
    height: 140%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1);
    transform: scale(1.2); /* visually enlarges image */
    display: block;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


.logo:hover .logo-img {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(107, 154, 125, 0.5));
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.twin {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.5px;
}

.tech {
    color: var(--green);
}


.inline-brand {
    display: inline-flex;
    gap: 0;
    align-items: baseline;
    font-weight: 700; /* make Twin bold */
    font-size: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.inline-brand .tech {
    font-weight: 700; /* make Tech bold */
    color: var(--green); /* keep the green color */
}


.tagline-small {
    font-size: 11px;
    color: var(--light-grey);
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    align-items: center;
    min-height: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--green);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    /* ⬇️ Fix white gap caused by fixed navbar */
    padding: 120px 40px 40px;

    margin-top: 0;
    position: relative;
    background: #000;
    overflow: hidden;
}


.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.75), rgba(0,0,0,0.45));
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: opacity, transform;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #000;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease, transform 8s ease;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
    will-change: transform, background;
}

.hero-arrow span {
    font-size: 26px;
    line-height: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.05);
}

.hero-arrow:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.hero-arrow-prev {
    left: 30px;
}

.hero-arrow-next {
    right: 30px;
}

.hero-content {
    max-width: min(900px, 100vw);
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    position: relative;
    color: #f5f5f5;
}

.hero-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 2px;
    margin: 22px auto 0;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.text-line {
    display: block;
    overflow: hidden;
}

.hero .horta-logo .twin {
    color: #f8fbff;
}

.hero .horta-logo .tech {
    color: var(--green);
}

.text-line:first-child .twin {
    color: var(--black);
}

.text-line:first-child .tech {
    color: var(--green);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: rgba(226, 233, 243, 0.9);
    margin-bottom: 30px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    color: rgba(232, 241, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border: 1px solid;
    background: transparent;
    color: var(--green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.hero .btn {
    color: #0b1824;
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero .btn:hover {
    background: #ffffff;
    color: #0a1a22;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--black);
}

/* Tertiary/CTA button using warm accent */
.btn-cta {
    background: var(--accent-amber);
    color: var(--black);
    border-color: var(--accent-amber);
}

.btn-cta:hover {
    background: transparent;
    color: var(--accent-amber);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scroll 2s ease-in-out infinite;
}

.parallax-layer {
    will-change: transform;
}

@supports (content-visibility: auto) {
    section:not(.hero) {
        content-visibility: auto;
        contain-intrinsic-size: 900px;
    }
}

@keyframes scroll {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* Interactive Text */
.interactive-text {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.interactive-text:hover {
    color: var(--accent-emerald);
}

/* Directional Reveal Animations */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
}

.from-left { transform: translateX(-60px); }
.from-right { transform: translateX(60px); }
.from-up { transform: translateY(-60px); }
.from-down { transform: translateY(60px); }
.from-tilt { transform: translateY(40px) rotate(-2.5deg); transform-origin: 50% 80%; }
.from-scale { transform: scale(0.96); }

.reveal.visible {
    opacity: 1;
    transform: none;
    transition: transform 800ms cubic-bezier(.2,.8,.2,1), opacity 800ms ease-out;
}

/* Stagger helper using CSS variable */
[data-stagger] > * { transition-delay: var(--stagger, 0ms); }

/* Parallax wrapper for section visuals */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax .parallax-layer {
    position: absolute;
    inset: -10% -5%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(1000px 500px at 10% -10%, rgba(34,211,238,0.1), transparent 60%),
                radial-gradient(800px 400px at 110% 120%, rgba(16,185,129,0.1), transparent 60%);
    filter: blur(0.5px);
    opacity: 0.5;
}

/* Tilt effect baseline */
.tiltable { transition: transform 300ms ease, box-shadow 300ms ease; transform-style: preserve-3d; }
.tiltable:hover { box-shadow: 0 18px 50px rgba(0,0,0,0.25); }

/* Sections */
section {
    padding: 120px 0;
    position: relative;
    background: #fff !important;
    scroll-margin-top: calc(var(--nav-offset) + 12px);
}

/* Ensure 'Who We Are' title is pushed below the fixed navbar */
.who-we-are {
    padding-top: calc(var(--nav-offset) + 64px) !important;
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 80% at 20% 10%, rgba(16,185,129,0.08), transparent 45%),
                radial-gradient(110% 70% at 80% 0%, rgba(34,211,238,0.08), transparent 40%),
                #ffffff;
}

@media (max-width: 968px) {
    .who-we-are {
        /* Mobile header is usually shorter; reduce offset */
        padding-top: 110px !important;
    }
}

.section-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #0f172a;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Content wrapper for Who We Are */
.who-content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.98));
    border: 1px solid rgba(16,185,129,0.14);
    border-radius: 16px;
    padding: 32px 32px 40px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.05);
    position: relative;
}

.who-content::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -12px;
    width: 6px;
    height: calc(100% - 36px);
    border-radius: 999px;
    background: linear-gradient(180deg, #22d3ee, #10b981);
    opacity: 0.7;
}

/* Paragraph text inside Who We Are */
.who-text {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(0, 0, 0, 0.8);
}

/* Side-by-side layout */
.who-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text takes more width */
.who-content {
    flex: 1.3;
}

/* Image container */
.who-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Image design */
.who-building-img {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(16,185,129,0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle hover effect */
.who-building-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(0,0,0,0.16);
}

/* Mobile: stack vertically */
@media (max-width: 968px) {
    .who-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .who-image-container {
        width: 100%;
    }

    .who-building-img {
        max-width: 100%;
    }
}

/* Banner Image Inside Card */
.who-image-banner {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* Image Styling */
.who-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .who-image-banner {
        height: 200px;
    }
}




/* Vision + Mission Combined Layout */
.vision-mission {
    padding-top: calc(var(--nav-offset) + 48px);
    padding-bottom: 80px;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.06), rgba(0, 255, 136, 0.10)) !important;
}

.vision-mission .container {
    background: transparent !important;
}

.vm-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.vm-box {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(16,185,129,0.03));
    padding: 44px 42px;
    border-radius: 16px;
    border: 1px solid rgba(16,185,129,0.10);
    box-shadow: 0 12px 30px rgba(16,185,129,0.06);
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.vm-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 6px;
    width: 56px;
    border-bottom-right-radius: 6px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
}

.vm-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(16,185,129,0.10);
}

/* Reuse your existing text style */
.vm-text {
    font-size: 18.5px;
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 26px;
    color: rgba(15, 23, 42, 0.86);
}

.vm-box .section-title {
    font-size: 22px;
    margin-bottom: 6px;
    color: #0f172a;
}

.vm-box .section-subtitle {
    display: block;
    font-size: 13px;
    color: var(--grayish-green);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}


/* Why Choose Section */
.why-choose {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(30, 41, 59, 0.04)) !important;
}

.why-choose .container {
    background: transparent !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(34,211,238,0.06));
    border: 1px solid rgba(34,211,238,0.14);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 25px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(16,185,129,0.18), rgba(34,211,238,0.12));
}

.feature-card:hover .feature-icon {
    filter: grayscale(0%);
}

.feature-card:hover h3 {
    color: var(--accent-emerald);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--dark-grey);
}

.feature-card p {
    font-size: 16px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding-top: 200px; /* adjust the value until the title is fully visible */
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.03), rgba(15, 23, 42, 0.02)) !important;
    overflow: visible;
}

.services .container {
    background: transparent !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
    overflow: visible;
}

.service-card {
    padding: 40px;
    border: 1px solid rgba(107, 154, 125, 0.2);
    background: var(--card-bg);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 154, 125, 0.15), transparent);
    transition: left 0.5s ease;
}

.interactive-card:hover {
    border-color: var(--grayish-green);
    background: rgba(107, 154, 125, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
}

.interactive-card:hover::before {
    left: 100%;
}

.service-number {
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.service-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark-grey);
    line-height: 1.3;
}

.service-description {
    font-size: 16px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--grayish-green);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-card:hover .service-link {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-amber);
}

.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* prevent hover when hidden */
    position: absolute; /* prevents layout jump */
}


/* Filter Buttons */
.services-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--grayish-green);
    background: transparent;
    color: var(--dark-grey);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--grayish-green);
    color: #fff;
    border-color: var(--grayish-green);
}



/* Automation Section Enhanced */
.automation-certification {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 136, 0.12)) !important;
}

.automation-certification .container {
    background: transparent !important;
}

.automation-certification .section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-grey);
}

.automation-certification .section-subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(0,0,0,0.7);
}

.automation-intro {
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.8);
    max-width: 900px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* subtle colored hints */
.knx-card {
    background: linear-gradient(135deg, #f0f9ff, #ffffff); /* very soft blue hint */
}

.cbus-card {
    background: linear-gradient(135deg, #fffaf5, #ffffff); /* very soft peach hint */
}

.knx-grid {
    justify-content: start; /* KNX row aligned left */
}

.cbus-grid {
    justify-content: center; /* C-Bus row centered */
}

.automation-item {
    padding: 40px;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(6, 182, 212, 0.03));
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.automation-item img {
    max-height: 80px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    padding: 10px;
    background: rgba(255,255,255,0.2);
}

.automation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(6, 182, 212, 0.05));
}

.automation-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.automation-description {
    font-size: 16px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
}

/* Protocol Section (KNX / C-Bus) */
.protocol-section {
    text-align: center;
    margin-bottom: 80px;
}

.protocol-logo {
    width: 150px;
    margin-bottom: 30px;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Icon inside cards */
.automation-icon {
    font-size: 40px;
    color: rgba(6, 182, 212, 0.9);
    margin-bottom: 18px;
}

/* Cards without repeated logos */
.protocol-section .automation-item img {
    display: none !important; /* hide repeated logos */
}

/* Adjust spacing when icons are used */
.protocol-section .automation-item {
    padding-top: 35px;
}
 

.partnerships-intro {
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* Elevated header treatment for Strategic Partnerships section */
.partnerships {
    padding-top: 100px;
    padding-bottom: 36px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(30, 41, 59, 0.04)) !important;
}

.partnerships .container {
    background: transparent !important;
}

.partnerships .section-title {
    font-size: clamp(28px, 3.8vw, 40px);
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.6px;
    position: relative;
}

.partnerships .section-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
    box-shadow: 0 6px 20px rgba(16,185,129,0.08);
}

/* Make the intro copy sit in a soft elevated panel for emphasis */
.partnerships .partnerships-intro {
    font-size: 17px;
    font-weight: 300;
    text-align: center;
    color: rgba(15,23,42,0.84);
    max-width: 980px;
    margin: 12px auto 36px;
    line-height: 1.8;
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,250,0.85));
    border: 1px solid rgba(16,185,129,0.06);
    box-shadow: 0 18px 40px rgba(16,185,129,0.06);
}

@media (max-width: 680px) {
    .partnerships .section-title { font-size: 22px; }
    .partnerships .partnerships-intro { padding: 14px 16px; margin-bottom: 20px; }
}

.partners-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 60px;
    padding: 30px 0;
    border: 1px solid rgba(107, 154, 125, 0.15);
    background: var(--card-bg);
    border-radius: 18px;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    /* animation removed in favor of JS-driven smooth marquee */
    animation: none !important;
    will-change: transform;
}

.partner-logo {
    flex: 0 0 auto;
    padding: 10px 40px;
    transition: transform 0.3s ease;
}

.partner-logo img {
    max-height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.partners-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 2;
}

.partners-fade-left {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
}

.partners-fade-right {
    right: 0;
    background: linear-gradient(-90deg, #fff, rgba(255,255,255,0));
}

@keyframes partners-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Make marquee show more logos on small screens by reducing gaps/padding */
@media (max-width: 768px) {
    .partners-marquee {
        padding: 12px 0;
        margin-top: 30px;
        border-radius: 12px;
    }

    .partners-track {
        gap: 18px;
        animation-duration: 10s; /* a bit faster on small screens */
    }

    .partner-logo {
        padding: 6px 12px;
    }

    .partner-logo img {
        max-height: 48px;
    }

    .partners-fade {
        width: 48px;
    }

    /* Ensure duplicates remain horizontally laid out and visible */
    .partners-track {
        flex-wrap: nowrap;
    }
}

/* Manufacturers Section */


/* Manufacturers Section */
.manufacturers-section {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.03), rgba(15, 23, 42, 0.02)) !important;
}

.manufacturers-section .container {
    background: transparent !important;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-grey);
}

.manufacturers-intro {
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.manufacturers-logos {
    display: flex;
    flex-wrap: wrap;           /* allow multiple rows */
    justify-content: center;   /* center items in each row */
    gap: 30px;                 /* spacing between logos */
}


.m-logo-tile {
    padding: 25px;
    background: var(--card-bg);
    border: 1px solid rgba(107, 154, 125, 0.15);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    transition: all 0.3s ease;
}

.m-logo-tile:hover {
    border-color: var(--grayish-green);
    background: rgba(34, 211, 238, 0.06);
    transform: translateY(-3px);
}

.m-logo-tile img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: 0.3s ease;
}

.m-logo-tile:hover img {
    filter: grayscale(0%); /* Keep natural color for premium feel */
}


/* Portfolio Section */

.portfolio {
    padding-top: calc(var(--nav-offset) + 64px);
}

@media (max-width: 968px) {
    .portfolio {
        padding-top: 110px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.portfolio-item {
    padding: 30px;
    border: 1px solid rgba(107, 154, 125, 0.15);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--grayish-green);
    background: rgba(34, 211, 238, 0.06);
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.portfolio-icon {
    font-size: 24px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-grey);
}

.portfolio-description {
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

/* Titles */
.latest-projects .section-title,
.portfolio .section-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ongoing Projects Section — elevated card design */
.latest-projects {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 136, 0.12)) !important;
}

.latest-projects .container {
    padding-left: 36px;
    padding-right: 36px;
    background: transparent !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

/* Project card base */
.project-card {
    display: block;
    text-decoration: none;
    position: relative;
}

.ongoing-card {
    background: linear-gradient(180deg, #ffffff, #fbfcfd);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(16,185,129,0.08);
    box-shadow: 0 14px 36px rgba(16,185,129,0.06);
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease, border-color 260ms ease;
    cursor: pointer;
    padding-bottom: 8px;
}

/* Decorative accent stripe */
.ongoing-card::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 6px;
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--accent-emerald), var(--accent-cyan));
    box-shadow: 0 6px 18px rgba(16,185,129,0.08);
}

.ongoing-card:hover {
    transform: translateY(-8px) scale(1.002);
    box-shadow: 0 28px 60px rgba(16,185,129,0.10);
    border-color: rgba(16,185,129,0.16);
}

.ongoing-card:focus-visible {
    outline: 3px solid rgba(16,185,129,0.12);
    outline-offset: 6px;
}

/* Thumbnails */
.project-thumb {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    transition: transform 360ms ease, filter 260ms ease;
    border-bottom: 1px solid rgba(16,185,129,0.04);
}

.ongoing-card:hover .project-thumb img {
    transform: scale(1.08);
    filter: saturate(1.06) contrast(1.02);
}

/* subtle gradient overlay for better caption contrast */
.project-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36%;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(15,23,42,0.06));
    pointer-events: none;
}

/* Search/magnifying glass icon overlay - always visible at top-right */
.project-overlay-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.project-overlay-icon svg {
    stroke: white;
}

/* Project status label (chip) shown over thumbnails */
.project-status {
    position: absolute;
    left: 12px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-block;
    z-index: 12;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.project-status-ongoing {
    background: var(--accent-amber); /* warm amber */
    color: #0f172a; /* dark text for contrast on amber */
}

.project-status-handover {
    background: var(--accent-emerald); /* green */
    color: #ffffff;
}

/* Upcoming project variant (blue) */
.upcoming-card {
    background: linear-gradient(180deg, #ffffff, #fbfcfd);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(59,130,246,0.08);
    box-shadow: 0 14px 36px rgba(59,130,246,0.06);
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease, border-color 260ms ease;
    cursor: default;
    padding-bottom: 8px;
}

.upcoming-card::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 6px;
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(180deg, #3B82F6, #06B6D4);
    box-shadow: 0 6px 18px rgba(59,130,246,0.08);
}

.upcoming-card:hover {
    transform: translateY(-6px) scale(1.002);
    box-shadow: 0 28px 60px rgba(59,130,246,0.10);
    border-color: rgba(59,130,246,0.16);
}

.project-status-upcoming {
    background: #2563EB; /* blue */
    color: #ffffff;
}

/* Small status dot shown beside project title in detail view */
.detail-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.detail-status-ongoing {
    background: var(--accent-amber);
    box-shadow: 0 6px 18px rgba(245,158,11,0.18), 0 0 10px rgba(245,158,11,0.12);
}

.detail-status-handover {
    background: var(--accent-emerald);
    box-shadow: 0 6px 18px rgba(16,185,129,0.18), 0 0 10px rgba(16,185,129,0.12);
}

.ongoing-card:hover .project-overlay-icon {
    background: rgba(0, 255, 136, 0.95);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

/* Info block */
.project-caption {
    padding: 18px 20px 22px;
    text-align: left;
}

.latest-projects .project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.latest-projects .project-description {
    font-size: 0.95rem;
    color: rgba(15,23,42,0.65);
    line-height: 1.5;
    margin: 0;
}

/* small meta / systems line if present (reuses existing markup) */
.project-meta {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(15,23,42,0.55);
}

/* smaller screens: adjust heights and spacing */
@media (max-width: 900px) {
    .project-thumb { height: 220px; }
}

@media (max-width: 640px) {
    .project-thumb { height: 180px; }
    .projects-grid { gap: 20px; }
    .ongoing-card::before { left: 12px; top: 12px; height: 40px; }
    .latest-projects .container { padding-left: 20px; padding-right: 20px; }
}

/* ==== VIEW GALLERY BUTTON ==== */
.view-gallery-btn {
    margin-top: 14px;
    background: #1f2937;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
}

.view-gallery-btn:hover {
    background: #111827;
    transform: translateY(-2px);
}

/* ==== FULLSCREEN MODAL GALLERY ==== */
.gallery-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.93);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* highest priority */
    padding: 20px;
    backdrop-filter: blur(4px);
}

.gallery-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}

/* CLOSE BUTTON */
.gallery-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 45px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000000;
    user-select: none;
}

/* ARROWS */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 55px;
    padding: 10px 18px;
    color: white;
    cursor: pointer;
    user-select: none;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    z-index: 1000000;
    transition: 0.2s ease;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.55);
}

.gallery-arrow.left {
    left: 30px;
}
.gallery-arrow.right {
    right: 30px;
}


/* ==== CLOSE BUTTON ==== */
.gallery-close {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.gallery-close:hover {
    opacity: 0.7;
}



/* Lightbox Background */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

/* Fullscreen Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,23,42,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* way above everything including navbar */
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    z-index: 100000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: white;
    font-size: 50px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
    z-index: 100000;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.6);
}




/* Info Section */
.project-caption {
    padding: 18px 18px 22px;
    text-align: center;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.project-description {
    font-size: 0.95rem;
    color: rgba(17,24,39,0.65);
    line-height: 1.45;
    margin: 0 auto;
    max-width: 90%;
}

.hotel-grid {
    margin-top: 40px;
}

/* Detail page inspired by article layout (inline, not popup) */
.project-detail-page {
    padding: 90px 0;
    background: #fff;
}

.project-detail-page.is-hidden {
    display: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 0.9fr;
    gap: 32px;
}

.detail-main {
    background: #fff;
    padding: 10px 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-header h3 {
    font-size: 28px;
    margin: 0 0 4px;
    color: #0f172a;
}

.project-detail-subtitle {
    font-size: 14px;
    letter-spacing: 0.3px;
    color: #6b7280;
    margin: 0;
}

.project-detail-return,
.back-to-services {
    /* Use the privacy/.btn visual style but keep existing compact sizing */
    background: transparent;
    color: var(--green);
    border: 1px solid rgba(0, 255, 136, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 16px; /* preserve original size */
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    text-decoration: none;
}

.project-detail-return:hover,
.back-to-services:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    background: rgba(0,0,0,0.02);
}

#detail-body h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

#detail-body p {
    font-size: 16px;
    color: rgba(15,23,42,0.82);
    line-height: 1.7;
    margin-bottom: 14px;
}

.project-detail-image {
    margin: 18px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Carousel Styles */
.project-gallery-carousel {
    margin: 18px 0;
    position: relative;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.gallery-viewer {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    min-height: 400px; /* give viewer a consistent visible height for images and video */
}

.gallery-viewer img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}



.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid var(--green);
    width: 44px;
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    color: var(--green);
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.gallery-arrow-prev {
    left: 12px;
}

.gallery-arrow-next {
    right: 12px;
}

.gallery-arrow:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--green);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hide volume controls on gallery videos */
#gallery-media-container video::-webkit-media-controls-volume-slider {
    display: none !important;
}

#gallery-media-container video::-webkit-media-controls-mute-button {
    display: none !important;
}

#gallery-media-container video {
    pointer-events: auto;
}

.detail-related {
    border-left: 1px solid #ececec;
    padding-left: 20px;
}

.detail-related h5 {
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 14px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: center;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    cursor: pointer;
    text-decoration: none;
}

.related-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.related-card .related-title {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    padding-right: 10px;
}

@media (max-width: 960px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-related {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #ececec;
        padding-top: 16px;
    }
}

.is-hidden {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-images img {
        height: 260px;
    }
}




/* Process Section */
.process {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.06), rgba(0, 255, 136, 0.10)) !important;
    overflow: visible;
}

.process .container {
    background: transparent !important;
}

.process-intro {
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.8);
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.process-step {
    position: relative;
    padding: 40px;
    border: 1px solid rgba(0, 255, 136, 0.20);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(0, 255, 136, 0.05));
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.08);
}

.process-step:hover {
    border-color: rgba(0, 255, 136, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(0, 255, 136, 0.08));
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
    transform: translateY(-2px);
}

.step-number {
    font-size: 14px;
    color: var(--grayish-green);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.step-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.step-description {
    font-size: 16px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
}

.step-image {
    text-align: center;
    margin-bottom: 20px;
}

.step-image img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.08), rgba(0, 255, 136, 0.12)) !important;
}

.contact .container {
    background: transparent !important;
}

.contact-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.contact-text {
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    color: rgba(0, 0, 0, 0.8);
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.footer-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer .contact-info-grid {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
}

.contact-info-item {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 30px;
    border: 1px solid rgba(107, 154, 125, 0.15);
    background: var(--card-bg);
    transition: all 0.3s ease;
}



.contact-icon {
    font-size: 24px;
}

.contact-info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--grayish-green);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.contact-info-item p {
    font-size: 16px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.8);
}

.footer .contact-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer .contact-logo .logo-icon {
    width: 120px;
    height: 120px;
}

.contact-logo .logo-text {
    align-items: center;
}

.contact-logo .twin {
    font-size: 32px;
}

.horta-logo .twin, .horta-logo .tech {
  font-family: 'Horta', sans-serif !important;
  font-size: clamp(80px, 10vw, 150px);
  font-weight: normal;
  line-height: 1.1;
  vertical-align: baseline;
}
.horta-logo .twin { color: #0f172a; }
.horta-logo .tech { color: var(--green); }
.horta-logo-footer .twin {
  color: #0f172a;
}
.horta-logo-footer .tech {
  color: var(--green);
}

/* Location Map Section */
.location {
    padding: 100px 0 0;
}

.map-container {
    position: relative;
    padding-bottom: 20%; /* Adjust for a shorter map */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    padding: 60px 20px 40px; /* more top space for luxury feel */
    border-top: 1px solid rgba(107, 154, 125, 0.15);
    background: #fff; /* optional, matches site design */
    font-family: 'Poppins', sans-serif;
}

/* Footer Top Columns */
.footer-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Logo Column */
.logo-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Footer-specific logo overrides to remove extra bottom space */
.footer .logo-icon {
    width: 80px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.footer .logo-img {
    width: 100%;
    height: auto;
    transform: none; /* override header scaling */
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Follow-us / social icons in footer */
.follow-us {
    margin-top: 40px; /* keep it visibly lower but not too far */
    margin-bottom: 0;
}
/* center follow-us block by default so icons align on mobile */
.follow-us {
    text-align: center;
}
/* Match footer title typography so Follow Us blends in */
.follow-title {
    font-size: 20px;
    font-weight: 300;
    color: rgba(0,0,0,0.85);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.social-icons {
    display: flex;
    gap: 1px; /* spacing between icons */
    align-items: center;
    justify-content: center; /* center icons horizontally */
}   
.social-icons a {
    display: inline-flex;
    width: 56px; /* increased size per request */
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: transparent;
    color: rgba(0,0,0,0.95);
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.social-icons a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(16,24,32,0.07);
}
.social-icons svg { width: 28px; height: 28px; }

/* Responsive: slightly smaller icons on narrow screens */
@media (max-width: 600px) {
    .social-icons a { width: 44px; height: 44px; }
    .social-icons svg { width: 20px; height: 20px; }
}

/* Footer Column Titles */
.footer-links-title,
.footer-column p {
    font-size: 20px;
    font-weight: 300;
    color: rgba(0,0,0,0.85); /* darker than before for premium feel */
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-link {
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    color: rgba(0,0,0,0.85);
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

/* subtle underline to show it's a link */
.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--green);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--green);
}

/* Footer Icons (column titles) */
.footer-links-title::before,
.contact-icon {
    color: rgba(0,0,0,0.85); /* darker, matches text */
}

.footer-link:hover::after {
    width: 100%;
}

/* Footer Columns Text */
.footer-column p {
    font-size: 16px;
    font-weight: 300;
    color: rgb(0, 0, 0);
    line-height: 1.6;
}

/* Copyright */
.footer .copyright {
    font-size: 17px;
    font-weight: 300;
    color: rgba(0,0,0,0.7); /* slightly lighter than main text */
    letter-spacing: 0.5px;
    text-align: center;
}

.footer .privacy-link {
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.footer .privacy-link:hover {
    color: var(--green);
}

/* Responsive: stack columns on small screens */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}


/* Responsive */
@media screen and (max-width: 1200px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr); /* stack into 2 columns on smaller screens */
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr; /* stack into single column on mobile */
        gap: 20px;
    }
    .contact-logo {
        align-items: center;
        text-align: center;
    }
    .footer-links-title,
    .contact-info-item h3 {
        justify-content: center;
    }
}






/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        background: #161616;
        flex-direction: column;
        gap: 30px;
        padding: 60px 30px;
        transition: left 0.5s ease, transform 0.5s ease;
        z-index: 11000; /* ensure menu overlays page content on mobile */
        border-top: 1px solid rgba(107, 154, 125, 0.2);
        overflow-y: auto;
    }

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

    .nav-link {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        font-size: 18px;
        letter-spacing: 0.5px;
        position: relative;
        transition: color 0.3s ease;
        padding: 30px 20px;
        margin: 0;
        border-radius: 8px;
    }

    .nav-link:hover {
        color: var(--green);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 30px;
        left: 20px;
        width: 0;
        height: 1px;
        background: var(--green);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: calc(100% - 40px);
    }

    .mobile-toggle {
        display: flex;
    }

    /* Slightly reduce logo size on mobile for spacing */
    .logo-icon {
        width: 64px;
        height: 64px;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .hero-arrow-prev {
        left: 15px;
    }

    .hero-arrow-next {
        right: 15px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(90px, 8vw, 120px) !important;
        line-height: 1.1;
    }
    .horta-logo .twin {
        font-size: clamp(90px, 8vw, 120px) !important;
        line-height: 1.1;
        font-family: 'Horta', sans-serif !important;
        font-weight: normal;
        letter-spacing: 1px;
    }
    .horta-logo .tech {
        font-size: clamp(90px, 8vw, 120px) !important;
        line-height: 1.1;
        font-family: 'Horta', sans-serif !important;
        font-weight: normal;
        color: var(--green);
        letter-spacing: 1px;
    }

    .hero-arrow {
        display: none;
    }

}

.navbar .logo-icon {
  width: 145px !important;
  height: 145px !important;
}
.navbar .logo-img {
  width: 145% !important;
  height: 145% !important;
  transform: scale(1.12);
}

.hero,
section.hero {
  margin-top: 150px !important;
}
.hero-content {
  margin-top: 0 !important;
}

.contactus-form {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  padding: 64px 0 32px 0;
}

.contactus-form-card {
  background: #fafbfd;
  border-radius: 24px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,255,136,0.06), 0 2px 16px rgba(32,32,50, 0.17);
  padding: 46px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1.5px solid var(--border-color);
}

.contactus-headline {
  margin-bottom: 28px;
  font-family: 'Poppins', 'Horta', Arial, sans-serif;
  color: #0f172a;
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.contactus-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contactus-row {
  display: flex;
  gap: 18px;
}
.contactus-input {
  flex: 1 1 0;
  padding: 17px 18px;
  border-radius: 13px;
  background: #ffffff;
  border: 1.7px solid var(--border-color);
  color: #0f172a;
  font-size: 1.08rem;
  margin-bottom: 0;
  font-family: 'Poppins', Arial, sans-serif;
  transition: border .19s, box-shadow .22s;
}
.contactus-input::placeholder {
  color: rgba(15, 23, 42, 0.5);
}
.contactus-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
  background: #ffffff;
}
.contactus-message {
  min-height: 120px;
  resize: vertical;
  font-size: 1.07rem;
}
.contactus-options {
  margin: 10px 0 8px 0;
}
.contactus-checkbox {
  color: var(--light-text);
  font-size: 1rem;
  font-weight: 300;
  gap: 12px;
  display: flex;
}
.contactus-checkbox input[type="checkbox"] {
  accent-color: var(--green);
  width: 18px; height: 18px;
  margin-right: 7px;
}
.contactus-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.23rem;
  font-weight: 600;
  background: var(--green);
  color: var(--dark-slate);
  border: none;
  border-radius: 22px;
  padding: 16px 38px;
  margin-top: 16px;
  box-shadow: 0 6px 24px rgba(0, 255, 136, 0.08);
  cursor: pointer;
  font-family: 'Poppins', 'Horta', sans-serif;
  transition: background 0.18s, color 0.16s, transform 0.15s;
}
.contactus-btn:hover {
  background: #24ffa1;
  color: #123f23;
  transform: translateY(-2px) scale(1.0305);
}
.contactus-arrow {
  font-size: 1.52em;
  color: var(--dark-sl)
}
@media (max-width: 700px) {
  .contactus-form-card { padding: 24px 5vw; }
  .contactus-row { flex-direction: column; gap: 12px; }
  .contactus-headline { font-size: 2rem; }
}


/* dropdown and whatsapp btn */
/* Floating buttons container */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999 !important;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Common button styles */
.floating-buttons button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--grayish-green); /* match your color theme */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    /* Default visible - JS will hide/show on scroll */
}

/* Hover effect - bounce animation */
.floating-buttons button:hover {
    animation: bounce 0.6s ease;
}

/* WhatsApp icon inside button */
#whatsappBtn img {
    width: 24px;
    height: 24px;
    filter: invert(100%) contrast(1.2); /* white icon if background is green */
}

/* Arrow SVG style */
#backToTopBtn svg {
    width: 24px;
    height: 24px;
    stroke: white;
}


/* ===== Estimate Page Custom Styles ===== */
        body {
            background-color: #ffffff;
            color: #161616;
            font-family: 'Poppins', sans-serif;
        }

        .estimate-container {
            max-width: 900px;
            margin: 100px auto 60px;
            padding: 40px;
            background-color: #f9f9f9;
            border-radius: 18px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        }

        .estimate-container h1 {
            font-size: 32px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 20px;
            color: var(--green);
        }

        .estimate-container p {
            font-size: 16px;
            font-weight: 400;
            text-align: center;
            margin-bottom: 40px;
            line-height: 1.6;
            color: #4a4a4a;
        }

        .estimate-form {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .estimate-form label {
            font-weight: 500;
            margin-bottom: 6px;
            color: #161616;
        }

        .estimate-form input, 
        .estimate-form select, 
        .estimate-form textarea {
            padding: 12px 15px;
            border-radius: 12px;
            border: 1px solid #d0d0d0;
            background-color: #ffffff;
            color: #161616;
            font-size: 15px;
            outline: none;
            transition: all 0.3s ease;
        }

        .estimate-form input:focus,
        .estimate-form select:focus,
        .estimate-form textarea:focus {
            border-color: var(--green);
            box-shadow: 0 0 8px rgba(107, 154, 125, 0.2);
        }

        .estimate-form button {
            padding: 12px 20px;
            border-radius: 12px;
            border: none;
            background: var(--green);
            color: #ffffff;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .estimate-form button:hover {
            filter: brightness(1.1);
        }

        .back-home {
            display: block;
            text-align: center;
            margin: 30px auto 0;
            padding: 15px 40px;
            width: fit-content;
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 1px;
            color: var(--green);
            text-decoration: none;
            border: 1px solid rgba(0, 255, 136, 0.9);
            background: transparent;
            border-radius: 6px;
            box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .back-home:hover {
            background: rgba(0, 0, 0, 0.02);
            box-shadow: 0 12px 40px rgba(0,0,0,0.18);
            transform: translateY(-1px);
        }

        .systems-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.systems-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.systems-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.systems-options label:hover {
    background: rgba(107, 154, 125, 0.1);
}

/* System label with info icon */
.system-label {
    position: relative;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    background: var(--green);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: #00e680;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

/* Tooltip styling */
.info-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

.info-icon::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    margin-bottom: 0;
}

.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ===== Offers Section (Modern Enhanced Style) ===== */
.offers-section {
  padding: 90px 0;
  background: radial-gradient(120% 100% at 15% 20%, rgba(6, 182, 212, 0.08), transparent 45%),
              radial-gradient(110% 90% at 85% 0%, rgba(15, 23, 42, 0.06), transparent 40%),
              linear-gradient(to bottom, #FAFBFC 0%, #FFFFFF 100%);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.offers-section .container {
  background: transparent !important;
}

/* section titles */
.offers-section .section-title {
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}

.offers-section .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #06B6D4, #0F172A);
  border-radius: 2px;
}

.offers-section .section-subtitle {
  color: rgba(15,23,42,0.6);
  margin-bottom: 30px;
  font-weight: 300;
  text-align: center; /* added to center the subtitle */
}


/* grid for cards */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

/* single card */
.offer-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(16,185,129,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), 
              box-shadow .28s, 
              border-color .28s;
  min-height: 130px;
}

/* hover */
.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  border-color: rgba(16,185,129,0.24);
}

/* icon block */
.offer-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.12), rgba(15, 23, 42, 0.04));
  color: #0f172a;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

/* title */
.offer-title {
  font-size: 19px;
  margin: 0 0 6px 0;
  color: #0f172a;
  font-weight: 600;
}

/* text */
.offer-text {
  margin: 0;
  color: rgba(15,23,42,0.75);
  font-weight: 300;
  line-height: 1.55;
}

/* Per-category accent chips */
.offer-card::after {
  content: attr(data-category);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: auto;
  align-self: start;
  background: rgba(6, 182, 212, 0.1);
  color: #0f172a;
}

.offer-card[data-category="automation"] {
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(255,255,255,0.95));
  border-color: rgba(16,185,129,0.25);
}
.offer-card[data-category="lighting"] {
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(255,255,255,0.95));
  border-color: rgba(34,211,238,0.22);
}
.offer-card[data-category="security"] {
  background: linear-gradient(135deg, rgba(248,180,0,0.10), rgba(255,255,255,0.95));
  border-color: rgba(248,180,0,0.24);
}
.offer-card[data-category="av"] {
  background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(255,255,255,0.95));
  border-color: rgba(99,102,241,0.24);
}
.offer-card[data-category="energy"] {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(255,255,255,0.96));
  border-color: rgba(16,185,129,0.28);
}
.offer-card[data-category="access"] {
  background: linear-gradient(135deg, rgba(236,72,153,0.10), rgba(255,255,255,0.96));
  border-color: rgba(236,72,153,0.24);
}

.offer-card[data-category] .offer-icon {
  color: #0f172a;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

.offer-card[data-category="automation"] .offer-icon { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(255,255,255,0.95)); }
.offer-card[data-category="lighting"] .offer-icon { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(255,255,255,0.95)); }
.offer-card[data-category="security"] .offer-icon { background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(255,255,255,0.95)); }
.offer-card[data-category="av"] .offer-icon { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(255,255,255,0.95)); }
.offer-card[data-category="energy"] .offer-icon { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(255,255,255,0.95)); }
.offer-card[data-category="access"] .offer-icon { background: linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(255,255,255,0.95)); }

/* About preview block */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(255,255,255,0));
  border-radius: 16px;
  border: 1px solid rgba(16,185,129,0.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

/* About text */
.about-title {
  font-size: 21px;
  margin: 0 0 10px 0;
  color: #0f172a;
  font-weight: 700;
}

.about-text {
  margin: 0 0 14px 0;
  color: rgba(15,23,42,0.75);
  font-weight: 300;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(15,23,42,0.75);
  font-weight: 500;
  line-height: 1.9;
}

/* button */
.btn-small {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: inline-block;
  background: #10b981;
  color: white;
  font-weight: 500;
  transition: 0.25s;
}

.btn-small:hover {
  background: #0e9f6e;
}

/* Responsive */
@media (max-width: 1100px) {
  .offers-grid { grid-template-columns: repeat(2, 1fr); }
  .about-preview { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .offers-grid { gap: 20px; }
  .offer-card { padding: 20px; }
  .offer-icon { width:48px; height:48px; }
  .about-preview { padding: 18px; }
}

/* Service Detail Pages */
.service-detail-hero {
  background: #2c3e50;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
}

.service-detail-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-detail-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

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

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.service-detail-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark-slate);
}

.service-detail-section ul {
  list-style: none;
  padding: 0;
}

.service-detail-section li {
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
}

.service-detail-section li:before {
  content: "✓";
  color: var(--green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.related-projects {
  margin-bottom: 60px;
}

.related-projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--dark-slate);
}

.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.related-project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.related-project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-project-card h3 {
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-slate);
}

.cta-section {
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: var(--green);
  color: var(--dark-slate);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-cyan);
}

@media (max-width: 768px) {
  .service-detail-hero h1 {
    font-size: 2rem;
  }
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
  /* Hero Section - Optimized for mobile */
  .hero {
    min-height: 90vh;
    padding: 120px 20px 60px;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 60px);
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero .btn {
    width: 200px;
    padding: 12px 24px;
    font-size: 16px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }

  /* Offers Section - Single column, centered */
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .offer-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 20px;
    min-height: auto;
  }

  .offer-icon {
    width: 60px;
    height: 60px;
  }

  /* Features - Single column */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-card {
    text-align: center;
    padding: 24px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  /* Vision/Mission - Single column */
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Services/Portfolio - Single column */
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Container and spacing */
  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  /* Buttons - Touch friendly */
  .btn {
    padding: 12px 24px;
    font-size: 16px;
    min-height: 44px;
  }

  /* Navigation adjustments */
  .nav-container {
    padding: 0 20px;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }

  /* Tooltip adjustments for mobile */
  .info-icon {
    font-size: 16px;
  }
}

/* Adjust section paddings for mobile nav height */
@media (max-width: 768px) {
  .who-we-are {
    padding-top: calc(100px + 64px) !important;
  }

  .portfolio {
    padding-top: calc(100px + 64px);
  }

  .vision-mission {
    padding-top: calc(100px + 48px);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
    padding: 100px 15px 40px;
  }

  .hero-title {
    font-size: clamp(28px, 10vw, 48px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .container {
    padding: 0 15px;
  }
}
