:root {
    --primary-color: #e9f0e6;
    --secondary-color: #c3d0b8;
    --dark-green: #3e563e;
    --tri-highlight: #b0c99c;
    --text-color: #333;
    --light-gray: #f9f9f9;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    font-size: 1.2em;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--white);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 600;
}

h2 {
    text-align: center;
    font-size: 2.6em;   /* bigger section titles */
    margin-bottom: 40px;
}

h3 {
    font-size: 2em;     /* bigger subheadings */
}

p, li {
    font-size: 1.3em;   /* larger than before */
    line-height: 1.8;
}

ul {
    list-style-type: none;
    padding: 0;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--dark-green);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--dark-green);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

nav a:hover, nav a.active {
    border-bottom-color: var(--dark-green);
}


/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    padding: 20px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}
.hero-image {
    flex-shrink: 0;
}
.logo-graphic {
    padding: 0;              /* no extra padding */
    box-shadow: none;        /* remove shadow if you don’t want it */
    border-radius: 0;        /* no rounded border */
}
.logo-graphic img {
    width: 250px;            /* make image larger */
    height: auto;            /* keep proportions */
    display: block;
    margin: 0 auto;          /* center the image */
}


/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--dark-green);
    color: var(--white);
    padding: 18px 40px;
    font-size: 1.4em;     /* larger text */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: opacity 0.3s;
}
.btn:hover {
    opacity: 0.85;
}

/* Info Sections & Feature Cards */
.info-section {
    padding: 20px 0;
}
.alternate-bg {
    background-color: var(--primary-color);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    text-align: center;
}
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.feature-card h3 {
    margin-top: 0;
}

/* Product Section Layout */
.product-section-layout {
    display: flex;
    align-items: center;
    gap: 20px;
}
.product-text { flex: 1; }
.product-image {
    flex-shrink: 0;
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image svg {
    width: 100px;
    height: 100px;
    stroke: var(--dark-green);
}

/* About Page */
.page-title-section {
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    padding: 30px;
    text-align: center;

}
.page-title-section h1 {
    margin: 0;
    font-size: 2.8em;
}
.content-grid {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.content-text { flex: 0 0 auto; text-align: left; }
.content-graphic { flex: 0 0 auto; text-align: center; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.team-member .team-photo {
    width: 120px;
    height: 120px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 15px;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1em;
}
.contact-form .btn {
    width: 100%;
    text-align: center;
}
.content-text li {
    margin-bottom: 15px;
}

/* Our Mission section */
.info-section h2 {
    background-color: transparent; /* 透明無底色 */
    color: var(--text-color);
    padding: 0; /* 移除原本背景塊的上下內邊距 */
    border-radius: 0;
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.info-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    margin-bottom: 25px;
    font-size: 1.4em;
    line-height: 1.8;
}

.info-section li b {
    display: block;       /* bold title on its own line */
    margin-bottom: 5px;
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1.4em;
}

/* ====================== HOME PAGE IMPROVEMENTS ====================== */

/* Key Function Cards */
.key-function-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.key-function-grid .feature-card {
    flex: 1;                  /* equal width */
    display: flex;
    flex-direction: column;   /* stack header and body */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.key-function-grid .feature-card-header {
    box-shadow: 0px 10px 40px -5px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background-color: var(--secondary-color); /* light green */
    padding: 25px;
    text-align: center;
}

.key-function-grid .feature-card-header h3 {
    margin: 0;
    font-size: 1.6em;   /* larger text */
    font-weight: 700;
    color: var(--text-color);
}

.key-function-grid .feature-card-body {
    background-color: var(--white);
    padding: 5px;
    font-size: 1em;     /* smaller text */
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

.center-btn {
    text-align: center;   /* centers the button horizontally */
    margin-top: 30px;     /* optional spacing */
}

/* main page Application Area section */
.application-area-section .application-title {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
}

.application-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.application-card {
    flex: 1;
    background-color: var(--secondary-color); /* light green background */
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--dark-green);
    min-height: 150px; /* ensures equal size */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* main page Product section */
.product-section .product-subheading {
    font-size: 1.8em;     /* larger sub‑headings */
    font-weight: 700;
    margin-top: 25px;
    color: var(--dark-green);
}


.product-section .product-image img {
    width: 400px;         /* larger image */
    height: auto;         /* keep proportions */
    display: block;
}
/* ====================== HOME PAGE IMPROVEMENTS ====================== */

/* Key Function Cards */
.key-function-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================== KEY FUNCTION GRID - FORCE ONE ROW ====================== */

.key-function-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: nowrap;           /* Keep in one row on desktop */
    padding: 10px 0;
}

.key-function-grid .feature-card {
    flex: 1 1 280px;             /* Thinner cards */
    min-width: 260px;
    max-width: 310px;            /* Reduced maximum width */
    display: flex;
    flex-direction: column;
}

/* Card internal spacing */
.key-function-grid .feature-card-header {
    padding: 22px 18px;
}

.key-function-grid .feature-card-body {
    flex-grow: 1;
    padding: 22px 18px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Mobile behavior */
@media (max-width: 992px) {
    .key-function-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .key-function-grid .feature-card {
        min-width: 280px;
        flex-basis: calc(50% - 10px);   /* 2 per row on tablets */
    }
}

@media (max-width: 600px) {
    .key-function-grid .feature-card {
        flex-basis: 100%;   /* Full width on mobile */
    }
}
/* Application Area */
.application-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.application-card {
    flex: 1;
    min-width: 280px;
}

/* ====================== MOBILE ====================== */
@media (max-width: 768px) {
    .key-function-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-section .product-flex {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .application-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Key Function & Product Page Small Cards */
.features-grid-small {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.feature-card-small {
    background-color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.key-function-image {
    position: relative;
    text-align: center;
    margin-top: 30px;
}

.key-function-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.triangle-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
/* ----------------Key Function Banner--------------- */
.keyfunc-banner {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    text-align: center;
}

.keyfunc-banner h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.2em;
    position: relative;
    z-index: 2;
    margin: 0 0 70px;
    color: #111;
    font-weight: normal;
}
.banner-triangle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    position: relative;
    z-index: 2;
}
.banner-tri-card {
    width: 245px;
    height: 205px;
    background: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    
}
.banner-tri-card:not(.mid-tri) {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.banner-tri-card.mid-tri {
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    padding-top: 0;
    padding-bottom: 30px;
}


/* Text inside triangles */
.banner-tri-card span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1em;
    color: #111;
    text-align: center;
    line-height: 1;
    z-index: 2;            /* keep text above background */
}
.banner-tri-card.mid-tri span {
    position: relative;    /* allow top offset to work */
    top: 40px;             /* push text down */
    padding: 0 20px;       /* wider padding for upside-down triangle */
}

.banner-tri-card:not(.mid-tri) span {
    position: relative;   /* allow vertical adjustment */
    top: -20px;           /* negative value moves text upward */
}

/* Hover state */
.banner-tri-card:hover {
    background: var(--dark-green);
    transform: scale(1.04);
}
.banner-tri-card:hover span { color: #ffffff; 
}

/* Mobile responsive */
@media (max-width:768px) {
    .banner-triangle-wrap { flex-direction: column; gap: 40px; }
    .keyfunc-banner h1 { font-size: 2.8em; }
    .banner-tri-card { width: 190px; height: 160px; }
    .banner-tri-card span { font-size: 1.1em; }
}
/* ===== AI Precise Location Left Equilateral Triangle Module ===== */
.location-row {
    display: flex;
    align-items: center;
    gap: 45px;
}

/* Equilateral triangle container */
.location-tri-deco {
    flex-shrink: 0;
    width: 230px;
    height: 200px;
    background-color: var(--tri-highlight);
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

/* Text inside triangle */
.tri-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3em;
    color: #111;
    text-align: center;
    line-height: 1;
    position: relative;   /* allow vertical adjustment */
    top: 30px; 
}

.location-text-wrap {
    flex: 1;
}
.location-text-wrap h2 {
    text-align: left;
    margin-top: 0;
}

/* Center all three sections */
.center-section .container {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
}

/* Fall Detection background same as first section */
.fall-bg {
    background-color: var(--primary-color); /* light green background */
    border-radius: 12px;
    padding: 30px 0;
}

/* Ensure spacing between text and triangle */
#fall .container {
    justify-content: center;
    gap: 40px; /* wider gap for balance */
}

#location .container {
    justify-content: center;
    gap: 40px; /* wider gap for balance */
}

#emergency .container {
    justify-content: center;
    gap: 40px; /* wider gap for balance */
}

/* Features box grid (last section) */
.application-area-section {
    background-color: var(--primary-color); /* same as first section */
}

.features-box-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    justify-items: center;
    margin-top: 40px;
}

/* Square feature blocks */
.feature-box {
    background-color: var(--secondary-color);
    border-radius: 0;          /* square corners */
    width: 220px;              /* fixed width */
    height: 220px;             /* fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Responsive: stack boxes on smaller screens */
@media (max-width:768px) {
    .features-box-grid {
        grid-template-columns: 1fr;
    }
    .feature-box {
        width: 100%;
        max-width: 280px;
        height: 180px;
    }
}

/* Mobile responsive adjustment */
@media (max-width:768px) {
    .location-row {
        flex-direction: column;
        text-align: center;
    }
    /* Flip triangle to point down on mobile, equilateral shape kept */
    .location-tri-deco {
        clip-path: polygon(50% 0, 0 100%, 100% 100%);
        width: 180px;
        height: 155px;
        padding-left: 0;
        padding-top: 20px;
    }
    .location-text-wrap h2 {
        text-align: center;
    }
}
/* -------------Product Section Grid-------------- */


.product-card {
    background-color: var(--dark-green);
    border-radius: 20px;
    width: 280px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-icon {
    background-color: var(--secondary-color);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-icon img {
    width: 50px;
    height: 50px;
}

.product-card p {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
}

/* Make product cards clickable like buttons */
.btn-card {
    text-decoration: none;   /* remove underline */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.btn-card:hover {
    transform: translateY(-6px); /* lift effect */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-card:active {
    transform: scale(0.97);  /* press-down effect */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


/* ====================== KEY FUNCTION PAGE - UNIFORM SPACING ====================== */

/* All main content sections - same height/spacing as Product page */
.technology-section,
.smart-walking-stick-section {
    padding: 60px 20px 130px 20px;
    text-align: center;
}

.technology-section h2,
.smart-walking-stick-section h2 {
    font-size: 3em;
    margin-bottom: 50px;
    color: var(--text-color);
}

/* Tech Grid - Consistent Layout */
.tech-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 90px;
    flex-wrap: wrap;
    max-width: 1150px;
    margin: 0 auto;
    width: 100%;
}

/* Fall Detection - Text Left, Triangle Right */
#fall .tech-grid {
    flex-direction: row-reverse;
}

/* Triangle */
.location-tri-deco {
    width: 260px;
    height: 225px;
    flex-shrink: 0;
}

/* Text */
.tech-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.9;
    text-align: left;
}

.tech-text ul li {
    margin-bottom: 20px;
}

/* Additional Features Section */
.info-section.application-area-section {
    padding: 130px 20px;
}

/* ====================== MOBILE ====================== */
@media (max-width: 768px) {
    .technology-section,
    .smart-walking-stick-section,
    .info-section.application-area-section {
        padding: 50px 20px 80px 20px;
    }

    .tech-grid,
    #fall .tech-grid {
        flex-direction: column !important;
        gap: 50px;
        text-align: center;
    }

    .location-tri-deco {
        width: 200px;
        height: 170px;
    }
}
/* Smart Walking Stick Section same size as Product */
.smart-walking-stick-section {
    background:var(--primary-color);          /* same light background as product banner */
    display: flex;
    flex-direction: column;
    align-items: center;          /* center horizontally */
    justify-content: center;      /* center vertically */
    text-align: center;
    padding: 130px 20px;
}
.smart-walking-stick-section h2 {
    font-size: 3em;
    margin-bottom: 40px;
    color: var(--text-color);
    text-align: center;
}
/* Other Tools circular icon grid */
.tools-grid.top-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 40px;
}

/* Bottom row: 3 evenly spaced */
.tools-grid.bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
  margin-top: 40px;
}

.tool-card {
  text-align: center;
}

.tool-icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tool-icon img {
  width: 60px;
  height: 60px;
}

.tool-card p {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

/* Responsive: stack into 2 per row on mobile */
@media (max-width:768px) {
  .tools-grid.top-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .tools-grid.bottom-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 產品大區塊：垂直上下撐滿，讓內容垂直居中 */
.product-row {
  width: 100%;
  padding: 120px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-light {
  background-color: var(--secondary-color);
}

/* ====================== PRODUCT SECTIONS - CENTERED LAYOUT ====================== */

.product-flex {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
  flex-wrap: wrap;
}

/* Smart Walking Stick: Image Left | Text Right */
#smart-walking-stick .product-flex {
  flex-direction: row;
}

/* Smart Tag: Text Left | Image Right */
#smart-tag .product-flex {
  flex-direction: row-reverse;
}

/* Image Styling */
.product-img img {
  width: 340px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Text Styling - No bullets */
.product-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.85;
}

.product-text ul li {
  margin-bottom: 26px;
}

/* ====================== Application SECTIONS - image ====================== */
.application-card {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 30px;
    font-size: 1.7em;
    text-align: center;          /* cleaner look */
    box-shadow: none;
}

.Application-icon {
    background: none;                  /* Removed circular background */
    border-radius: 0;
    width: 140px;                      /* Larger icons like in the image */
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 15px 0;
}

.Application-icon img {
    width: 120px;                      /* Big, clear icons */
    height: auto;
    filter: brightness(0.85);          /* Makes icons darker like the mockup */
}

/* Slightly bigger title */
.keyfunc-banner h1 {
    font-size: 4.2em;
    margin-bottom: 60px;
    color: #111;
}
/* ====================== MOBILE ====================== */
@media (max-width: 768px) {
  .product-flex {
    flex-direction: column !important;
    gap: 55px;
    text-align: center;
  }

  .product-img img {
    width: 300px;
    max-width: 100%;
  }

  #smart-walking-stick,
  #smart-tag {
    padding: 80px 20px;
  }
}

/* -------------------------- CUSTOM DECORATIVE BACKGROUNDS -------------------------- */
/* Technology Section - Subtle geometric pattern */
.technology-section {
    position: relative;
    background-color: #f8faf6;
    overflow: hidden;
}
.technology-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--dark-green) 2px, transparent 2px),
        radial-gradient(var(--dark-green) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.05;
    z-index: 0;
}
.technology-section .container {
    position: relative;
    z-index: 1;
}

/* Smart Walking Stick - Soft diagonal gradient + subtle leaf shape */
#smart-walking-stick {
    position: relative;
    overflow: hidden;
}
#smart-walking-stick::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9f0e6 0%, #d7e0d0 50%, #e9f0e6 100%);
    opacity: 0.8;
    z-index: 0;
}
#smart-walking-stick::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-image: url("assets/leaf-decoration.svg"); /* Replace with your leaf SVG */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}
#smart-walking-stick .container {
    position: relative;
    z-index: 2;
}

#smart-tag .container {
    position: relative;
    z-index: 1;
}

/* Smart Tools - Wave pattern + soft color gradient */
#smart-tools {
    position: relative;
    overflow: hidden;
}
#smart-tools::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f0f5ec 0%, #e9f0e6 100%);
    z-index: 0;
}
#smart-tools::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("assets/wave-pattern.svg"); /* Replace with wave SVG */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
}
#smart-tools .container {
    position: relative;
    z-index: 2;
}

/* Adjust section padding to make backgrounds visible */
.technology-section, 
#smart-walking-stick, 
#smart-tag, 
#smart-tools {
    padding: 80px 20px;
}

/* Technology Section Unique Decor Background (Two Corner Circuit Waves) */
.technology-section {
  position: relative;
  overflow: hidden;
  background-color: #f8faf6;
  padding: 90px 20px;
}

/* Content wrapper to sit above decorative backgrounds */
.technology-section .container {
  position: relative;
  z-index: 2;
}

/* 1. Bottom Left Decoration: Original circuit wave SVG */
.technology-section::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 95%;
  background-image: url("assets/circuit-wave-left.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* 2. Top Right Decoration: Flipped mirrored circuit wave SVG */
.technology-section::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 95%;
  background-image: url("assets/circuit-wave-right-flip.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  opacity: 0.5;
  transform: rotate(180deg) scaleX(-1);
  z-index: 1;
  pointer-events: none;
}

/* ====================== TECHNOLOGY IMAGE FORCE SHOW ====================== */

.technology-section .tech-graphic img {
    display: block !important;
    width: 420px !important;
    max-width: 100% !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Extra safety - target any old rules */
.tech-graphic img,
.technology-section img {
    display: block !important;
    max-width: 420px !important;
}
/* ---------------- Fall Detection (#fall) — Leaf Decoration (copy from smart-walking-stick product section) ---------------- */
#fall {
    position: relative;
    overflow: hidden;
}
#fall::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 95%;
  background-image: url("assets/Circular\ Flower\ Blossom.svg");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
}
#fall::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background-image: url("assets/leaf-decoration.svg");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}
#fall .container {
    position: relative;
    z-index: 2;
}

/* ---------------- Additional Features (.application-area-section) — Wave Decoration (copy from smart-tools product section) ---------------- */
.info-section.application-area-section {
    position: relative;
    overflow: hidden;
    background-color: transparent;
}
.info-section.application-area-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f0f5ec 0%, #e9f0e6 100%);
    z-index: 0;
}
.info-section.application-area-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background-image: url("assets/wave-pattern.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
}
.info-section.application-area-section .container {
    position: relative;
    z-index: 2;
}


/* -------------------------- UPDATED FOOTER CSS -------------------------- */
/* Whole footer light green background, social icons keep original brand colors, bigger icons + back to top */
.site-footer {
    position: relative;
    background-color: var(--primary-color); /* Full light green footer background */
    border-radius: 30px 30px 0 0;
    margin-top: 60px;
    padding: 60px 20px;
}

.footer-container {
    background-color: var(--primary-color); /* unify background */
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Social icon row spacing */
.social-links {
    display: flex;
    gap: 70px;
    align-items: center;
}

/* Larger social icon circle container */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95px;
    height: 95px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
/* Keep original icon background colors (no change) */
.social-icon.fb {
    background: #1877F2;
}
.social-icon.ig {
    background: linear-gradient(45deg, #f09433,#e6683c,#dc2743,#cc2366,#bc1888);
}
.social-icon.yt {
    background: #FF0000;
}
.social-icon:hover {
    transform: scale(1.1);
}

.footer-contact p {
    font-size: 1.2em;
    color: var(--text-color);
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon-phone, .icon-email {
    font-size: 1.3em;
}

.footer-copyright p {
    color: #070000;
    font-size: 1em;
    text-align: center;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 35px;
    align-items: center;
    margin: 40px 0;
}

.footer-contact .logo-graphic {
    margin: 0;
}

.footer-contact .logo-graphic img {
    display: block;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;   /* enable clicks when visible */
}
.back-to-top:hover {
    background: var(--secondary-color);
}

/* Mobile Responsive Footer Adjust */
@media (max-width:768px) {
    .social-links {
        gap: 40px;
    }
    .social-icon {
        width: 80px;
        height: 80px;
    }
    .back-to-top {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
    }
}
@media (max-width: 768px) {
    .footer-contact {
        gap: 22px;
        margin: 25px 0;
    }
    .footer-contact .logo-graphic img {
        width: 120px;
        height: auto;
    }
}


/* Override old default dark footer style */
footer {
    background: transparent !important;
    padding: 0 !important;
}
footer p {
    color: inherit;
}

/* Global Mobile Responsive Rules */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        padding: 0;
        font-size: 0.9em;
    }
    .hero-content, .product-section-layout, .content-grid {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.5em;
    }
}