/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Green and Gray Professional Scheme */
    --primary: #00a86b;
    --primary-dark: #008556;
    --primary-light: #00c97e;
    --accent: #4a9d5f;
    
    /* Neutrals */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --background: #f5f5f5;
    --background-light: #e8e8e8;
    --background-dark: #0a0a0a;
    --border: #d0d0d0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px;
    --navbar-height: 80px; /* Height of the fixed navbar used for offsets */
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height); /* Account for fixed navbar */
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Add scroll margin to all sections and important subsections */
section[id],
#contact-info,
#contact-form {
    scroll-margin-top: 80px;
}

.container-full {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 40px;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Keep header brand link visually identical and preserve layout */
.nav-brand a,
.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

/* Apply top padding to the FIRST main content container after the navbar so the header never overlaps the first content line */
/* Keeps the rule targeted and avoids adding padding to every section */
.navbar + .container-full {
    padding-top: calc(var(--navbar-height) + 12px);
}

.navbar + .content-page {
    /* Ensure H1 is always visible by adding top padding equal to the navbar height */
    padding-top: calc(var(--navbar-height) + 20px);
}

.nav-logo {
    height: 35px;
    width: auto;
}

.logo-highlight {
    color: var(--primary);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 168, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.1rem 3rem;
    font-size: 1.05rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 0;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Section Styles */
.section-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem;
  color: var(--text-primary);
}

section {
    padding: var(--section-padding) 0;
    width: 100%;
    overflow-x: hidden;
}

.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title-large {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-description-large {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* MIMO & Panel figure styling */
.mimo-figure {
    margin: 1rem 0 1.5rem;
    text-align: center;
}
.mimo-figure img {
    max-width: 500px;
    width: 100%;
    height: auto;
}
.mimo-figure figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Services Section */
.services {
    background: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Render specific features grid as a single row of four columns */
.features-grid.features-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    color: var(--primary-dark);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.feature-card-link:hover {
    text-decoration: none;
}
/* Remove default blue/underline styling for linked headings inside feature cards */
.feature-card h3 a {
    color: inherit;
    text-decoration: none;
}

.feature-card h3 a:hover {
    text-decoration: none;
}

.feature-highlight {
    background: linear-gradient(135deg, #00a86b 0%, #00c97e 100%);
    color: white;
    border-color: transparent;
}

.feature-highlight h3,
.feature-highlight p {
    color: white;
}
/* Make emoji icons look consistent with the SVG icons */
.feature-icon {
  font-size: 44px;
  line-height: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-highlight .feature-icon {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* About Section */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text {
    margin: 2rem 0;
}

.large-text {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.85rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
}

.about-brand-image {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Profile Image */
.profile-image-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.profile-image {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 168, 107, 0.2);
    object-fit: cover;
    border: 6px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 168, 107, 0.3);
}

.image-placeholder p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: var(--background-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-card-simple {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    height: fit-content;
}

.contact-profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.contact-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e8e8e8;
    box-shadow: 0 8px 20px rgba(0, 168, 107, 0.2);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 168, 107, 0.3);
}

.contact-header-text {
    flex: 1;
}

.contact-card-simple h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.contact-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.contact-detail-item:hover .detail-value {
    color: var(--primary);
}

.detail-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

/* Hardware Page Styles */
.hardware-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Category Navigation */
.category-nav-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.category-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--background-light);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.category-nav-link:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.15);
}

.category-nav-link:active {
    transform: translateY(0);
}

.category-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.category-nav-link:hover .category-icon {
    transform: scale(1.1);
}

.hardware-section {
    padding: 80px 0;
}

.hardware-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.hardware-category {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.device-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.device-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.device-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 12px;
    padding: 1rem;
    min-height: 300px;
}

.device-image {
    width: 100%;
    height: auto;
    max-height: 350px;
    min-width: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* Image Gallery Styles */
.device-image-gallery {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.device-main-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    min-width: 350px;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* UR32-specific sizing - slightly larger */
#ur32 .device-image-container {
    max-width: 650px;
    min-height: 370px;
}

#ur32 .device-main-image,
#ur32 .device-image {
    max-height: 450px;
    min-width: 375px;
}

/* UR75 and UF51-specific sizing - slightly smaller */
#ur75 .device-image-container,
#uf51 .device-image-container {
    max-width: 550px;
    min-height: 330px;
}

#ur75 .device-main-image,
#ur75 .device-image,
#uf51 .device-main-image,
#uf51 .device-image {
    max-height: 380px;
    min-width: 320px;
}

/* UR35-specific sizing - slightly smaller */
#ur35 .device-image-container {
    max-width: 580px;
    min-height: 340px;
}

#ur35 .device-main-image,
#ur35 .device-image {
    max-height: 400px;
    min-width: 330px;
}

.device-image-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.device-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.device-thumbnail:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.device-thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.3);
}

.device-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.device-badge-4g {
    background: #0066cc;
}

.device-badge-gateway {
    background: #8e44ad;
}

.device-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.device-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.device-specs {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--background-light);
    border-radius: 12px;
}

.device-specs li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.device-specs li:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.device-specs strong {
    color: var(--text-primary);
    font-weight: 600;
}

.device-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

/* Device Actions */
.device-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.2);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.btn-download:active {
    transform: translateY(0);
}

.download-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    background: white;
    color: var(--primary);
}

.btn-large:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    font-size: 1.5rem;
    color: white;
    line-height: 1;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: white;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title-large {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Preserve the Use Case grid as a single row on larger tablets/desktops */
    .features-grid.features-row-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-grid {
        gap: 4rem;
    }
} 

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --navbar-height: 70px; /* Slightly smaller navbar on mobile */
    }
    
    .container-full {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 1rem 20px;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        align-items: flex-start;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .section-title-large {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-description-large {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Ensure the Use Case grid shows two columns on mobile (wraps to two rows for four items) */
    .features-grid.features-row-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem; /* slightly tighter gap for a compact two-by-two layout */
        align-items: stretch; /* ensure cards align to equal height */
    }
    
    /* Mobile-specific adjustments for equal-height cards and touch affordance */
    .features-grid.features-row-4 .feature-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1.25rem 1rem; /* tighter vertical padding */
        min-height: 220px; /* consistent card height */
        touch-action: manipulation;
        align-self: stretch;
    }

    .features-grid.features-row-4 .feature-content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .features-grid.features-row-4 .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem; /* icons sit closer to titles */
    }

    .features-grid.features-row-4 .feature-card h3 {
        font-size: 1.05rem;
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }

    .features-grid.features-row-4 .feature-card p {
        margin-top: auto;
        color: var(--text-secondary);
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .image-placeholder {
        height: 300px;
    }
    
    .about-brand-image {
        max-width: 180px;
    }
    
    .profile-image {
        max-width: 300px;
        border-width: 4px;
    }
    
    .value-props {
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-card-simple,
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Hardware page responsive */
    .page-title {
        font-size: 2.5rem;
    }
    
    .category-nav {
        gap: 1rem;
    }
    
    .category-nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .category-icon {
        width: 20px;
        height: 20px;
    }
    
    .device-image-container {
        max-width: 100%;
        min-height: 180px;
        padding: 1rem;
    }
    
    .device-image {
        max-height: 250px;
    }
    
    .device-main-image {
        max-height: 250px;
    }
    
    .device-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        width: 60px;
    }
    
    .nav-logo {
        height: 24px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title-large {
        font-size: 1.5rem;
    }
    
    .section-description-large {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .feature-card,
    .contact-card-simple,
    .contact-form-section {
        padding: 1.25rem;
    }
    
    /* Tighten Use Case spacing on very small screens */
    .features-grid.features-row-4 {
        gap: 0.75rem;
    }

    .features-grid.features-row-4 .feature-card {
        padding: 1rem;
        min-height: 180px;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .features-grid.features-row-4 .feature-card h3 {
        font-size: 0.95rem;
        line-height: 1.1;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .large-text {
        font-size: 1.1rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .value-item {
        font-size: 0.95rem;
    }
    
    .image-placeholder {
        height: 250px;
    }

    /* Ensure Use Case grid is two columns on very small screens */
    .features-grid.features-row-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-brand-image {
        max-width: 140px;
    }
    
    .profile-image {
        max-width: 250px;
        border-width: 4px;
    }
    
    .contact-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-profile-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .placeholder-icon {
        width: 80px;
        height: 80px;
    }
    
    .image-placeholder p {
        font-size: 1rem;
    }
    
    /* Hardware page mobile */
    .page-title {
        font-size: 1.75rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .category-nav-section {
        padding: 1.5rem 0;
    }
    
    .category-nav {
        gap: 0.75rem;
        flex-direction: column;
    }
    
    .category-nav-link {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .category-icon {
        width: 20px;
        height: 20px;
    }
    
    .device-image-container {
        min-height: 150px;
        padding: 0.75rem;
    }
    
    .device-image {
        max-height: 200px;
    }
    
    .device-main-image {
        max-height: 200px;
    }
    
    .device-thumbnail {
        width: 45px;
        height: 45px;
    }
    
    .device-image-thumbnails {
        gap: 0.5rem;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .download-icon {
        width: 18px;
        height: 18px;
    }
    
    .device-card {
        padding: 1.5rem;
    }
    
    .device-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .device-name {
        font-size: 1.25rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .footer-logo {
        height: 28px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}
/* ===============================
   Content pages styling
   (CCTV, Vending, POS, Events)
   Applies ONLY to pages wrapped with .content-page
   =============================== */

.content-page {
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 20px; /* top padding is applied only when the page is immediately after the navbar */
}

.content-page h1 {
  font-size: 2rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.content-page h2 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.content-page p {
  margin-bottom: 15px;
}

.content-page ul {
  margin-left: 20px;
  margin-bottom: 20px;
  list-style: disc;
}

.content-page li {
  margin-bottom: 8px;
}

/* =============================== 
   Back to top button on device cards
   =============================== */

.back-to-top-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;
  min-height: 44px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.back-to-top-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.back-to-top-btn:active {
  transform: scale(0.98);
}

.back-to-top-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .back-to-top-btn {
    padding: 12px 16px;
    font-size: 0.8125rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}



