:root {
    --gutterWidth: 16px;
    --scrollbarWidth: 15px;
    --windowWidth: calc(100vw - var(--scrollbarWidth));
    --layoutWidth: calc(var(--windowWidth) - var(--gutterWidth)*2);
    --layoutWidthMax: 1080px;
    --viewportWidthSmall: 375;
    --viewportWidthMedium: 600;
    --viewportWidthLarge: 1112;
    --columnPaddingNormal: 16px;
    --rowGapNormal: 8px;
    --cardShadowMedium: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
    --cardBorderRadius: 8px;
    --hoverTransition: 150ms cubic-bezier(0.215, 0.61, 0.355, 1);
    --backgroundColor: #f6f9fc;
    --accentColor: #00b7eb;
    /* Bright blue for iPhone outline, aligns with line color */
    --iconColor: #ffffff;
    /* White for icons */
    --tabColor: #0600be;
    /* Dark blue for icon-container backgrounds (Base Theme Color) */
    --tabHoverColor: #00AEEF;
    /* Lighter blue for icon-container hover background */
    --buttonColor: #0600be;
    /* Dark blue for buttons (Base Theme Color) */
    --buttonHoverColor: #00AEEF;
    /* Lighter blue for button hover background, closer to glow */
    --textColor: #000000;
    --fontFamily: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Define sphere colors as CSS variables for consistency and potential use in CSS */
    --sphereLineColor: #00AEEF;
    --sphereNodeColor: #0077BE;
    --sphereNodeHighlightColor: #4DD8FF;
    /* Sphere Glow Color */

    /* Header and Menu Variables */
    --headerHeight: 80px;
    --headerHeightScrolled: 60px;
    /* Adjusted for better visual balance with hamburger */
    --headerBackgroundColor: #000000;
    /* Changed to black */
    --headerTextColor: #ffffff;
    /* Changed to white for contrast with black header */
    --headerLogoHeight: 60px;
    /* Adjusted for new header height */
    --headerLogoHeightScrolled: 40px;
    /* Adjusted for new scrolled header height */

    /* Monitoring Section Gradient */
    --monitoringGradientStart: #0a2351;
    /* Dark blue */
    --monitoringGradientEnd: #0600be;
    /* Your theme blue */

    /* Base Font Size for Responsive Typography */
    font-size: 16px;
    /* Base size for larger screens */
}

/* Responsive Font Size Adjustments */
@media (max-width: 992px) {
    :root {
        font-size: 15px;
        /* Slightly smaller base size */
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
        /* Smaller base size for tablets */
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 13px;
        /* Smallest base size for mobile */
    }
}


body {
    font-family: var(--fontFamily);
    margin: 0;
    padding: 0;
    background-color: var(--backgroundColor);
    color: var(--textColor);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Standardized Text Sizes */
h1 {
    font-size: 3rem;
    /* Scales with root font size */
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.5em;
    /* Use em for margin relative to element's font size */
}

h2 {
    font-size: 2.5rem;
    /* Scales with root font size */
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h3 {
    font-size: 1.5rem;
    /* Scales with root font size */
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.1rem;
    /* Scales with root font size */
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1em;
}

/* Adjust specific text elements based on placement */
.hero h1 {
    font-size: 3rem;
    /* Keep hero H1 larger */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    /* Specific margin */
}

.hero p {
    font-size: 1.2rem;
    /* Keep hero P slightly larger */
    color: #f1f1f1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    /* Specific margin */
}

.text-box h2 {
    font-size: 2rem;
    /* Specific size for text box H2 */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.text-box p {
    font-size: 1.1rem;
    /* Specific size for text box P */
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* --- Site Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--headerHeight);
    background-color: transparent;
    /* Initially transparent */
    z-index: 1000;
    /* Ensure header is on top */
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: height 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    /* Distribute logo, nav, and toggle */
}

.header-logo {
    height: var(--headerLogoHeight);
    transition: height 0.3s ease;
    flex-shrink: 0;
}

/* Ensure submenu is positioned correctly and visible */
.main-nav .dropdown-menu ul .submenu {
    position: static;
    left: 0;
    top: auto;
    min-width: 100%;
    background:var(--headerBackgroundColor);
    box-shadow:none;
    display: none; /* Still hidden by default */
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 300px; /* Add max-height to enable scrolling if content overflows */
    overflow-y: visible; /* Enable vertical scrolling for overflowing content */
    /* Adjust position if it goes off-screen on larger resolutions */
    transform: translateX(0); /* Default, no horizontal shift */
    transition: transform 0.3s ease-out;
  
}

.main-nav .dropdown-menu ul li.has-submenu {
    position: relative;
}

/* This rule ensures the submenu is displayed on hover or when a child element within it is focused */
.main-nav .dropdown-menu ul li.has-submenu:hover > .submenu,
.main-nav .dropdown-menu ul li.has-submenu:focus-within > .submenu,
.main-nav .dropdown-menu ul li.has-submenu.submenu-open > .submenu { /* Added .submenu-open class for JS control */
    display: block; /* Show submenu on hover, focus, or when .submenu-open class is present */
}

/* Optional: Adjust for mobile responsiveness */
@media (max-width: 991px) {
    .main-nav .dropdown-menu ul .submenu {
        position: static; /* Stack submenu vertically on smaller screens */
        left: 0;
        top: auto;
        min-width: 100%;
        box-shadow: none;
        max-height: none; /* Remove max-height for mobile to allow full expansion */
        overflow-y: visible; /* Remove scrolling for mobile */
        transform: translateX(0); /* No horizontal shift for mobile */

    }
}

.dropdown-menu {
    display: none;
    /* Initially hidden */
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    /* Dark background */
    border: 1px solid #555;
    /* Subtle border */
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    z-index: 1001;
    min-width: 220px;
    /* Widen menu list */
    width: max-content;
    /* Expand to fit content */
}

.dropdown-menu a {
    color: var(--headerTextColor);
    /* Light text */
    padding: 10px 20px;
    /* Slightly more padding */
    background-color: transparent;
    /* No default background for links */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    font-size: 1.05rem;
    width: fit-content;
}

.dropdown-menu a:hover {
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
}

.dropdown-menu.open {
    display: inline-block;
    background-color: var(--buttonColor);
    opacity: 1;
    transform: translateY(0);
    /* Slide down to original position */
}

.dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: flex;
    /* Adjusted padding */
    display: flex;
    flex-direction: column;
    background-color: transparent;
    min-width: fit-content;
    /* Slightly wider */
}

.dropdown-menu li {
    margin: 0;
    background-color: transparent;
    min-width: fit-content;
    /* Slightly wider */
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8em;
    /* Use em for icon scaling */
    color: var(--iconColor);
    /* Default to white for transparent header */
    cursor: pointer;
    padding: 10px;
    display: block;
    /* Always visible */
    transition: color 0.3s ease;
    margin-left: auto;
}

/* Ensure toggle icon is visible when header is transparent */
.site-header:not(body.scrolled .site-header) .menu-toggle {
    color: #ffffff;
    /* Or a light color suitable for hero image */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Optional: improve readability */
}

.menu-toggle:hover {
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons .button {
    padding: 8px 16px;
    font-size: 0.9rem;
    /* Standardized button text size */
}

/* --- Header Scrolled State --- */
body.scrolled .site-header {
    height: var(--headerHeightScrolled);
    background-color: var(--headerBackgroundColor);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.scrolled .header-logo {
    height: var(--headerLogoHeightScrolled);
}

body.scrolled .main-nav ul {
    display: flex;
}

body.scrolled .menu-toggle {
    display: flex;
    color: white;
    /* White, as header bg is black */
}

body.scrolled .main-nav a {
    color: var(--iconColor);
    /* Ensure nav links in flyout are also white */
}


/* --- Hero Section (adjust padding to not be hidden by fixed header) --- */
.hero {
    background-color: var(--backgroundColor);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://ezitec.com.au/img/Banner1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--headerHeight) + 40px);
}

.hero-content {
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0.7;
    cursor: pointer;
    z-index: 1;
    font-size: 1rem;
    /* Standardized text size */
}

.scroll-section {
    padding: 60px 20px;
    text-align: center;
    padding-top: calc(60px + var(--headerHeightScrolled));
    /* Add padding to clear scrolled header */
}

#interactive-lines {
    position: relative;
    background-color: var(--backgroundColor);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    min-height: 500px;
}

.text-box {
    flex: 1 1 50%;
    padding: 20px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 280px;
    color: #fff;
}

.text-box h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-box p {
    font-size: 1.1em;
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.icons-canvas-container {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
    overflow: visible;
}

#connection-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.icon-container {
    position: absolute;
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--iconColor);
    font-size: 2em;
    /* Use em for icon scaling */
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    will-change: transform, opacity, left, top, box-shadow;
}

.icon-container:hover {
    transform: scale(1.1);
    background: var(--tabHoverColor);
    box-shadow: 0 0 20px 8px var(--sphereNodeHighlightColor);
}


.button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: #fff;
    border-radius: var(--cardBorderRadius);
    font-weight: 500;
    background-color: var(--buttonColor);
    transition: background-color var(--hoverTransition), box-shadow var(--hoverTransition);
    box-shadow: none;
    font-size: 1rem;
    /* Standardized button text size */
}


.button:hover {
    background-color: var(--buttonHoverColor);
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    color: #fff;
}

.button.primary-button {
    background-color: var(--buttonColor);
}

.button.primary-button:hover {
    background-color: var(--buttonHoverColor);
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    color: #fff;
}

.button.secondary-button {
    background-color: var(--buttonColor);
    color: #fff;
}

.button.secondary-button:hover {
    background-color: var(--buttonHoverColor);
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    color: #fff;
}

#peace-of-mind-section {
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
    /* Added background image and overlay */
    background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.7)), url("https://ezitec.com.au/img/accimg1.jpg");
    /* Example image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    /* For positioning overlay if needed later */
}

#peace-of-mind-section h2 {
    font-size: 2.5rem;
    color: var(--textColor);
    margin-bottom: 20px;
}

.peace-of-mind-text {
    background-color: rgba(0, 0, 0, 0.3);
    /* Semi-transparent background */
    color: white;
    padding: 1em;
    /* Increased padding for better readability */
    border-radius: var(--cardBorderRadius);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    /* Gradient overlay on text background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    /* Added top/bottom margin for spacing */
    max-width: 80%;
    font-size: 1.1rem;
    line-height: 1.7;
}

/*.overlay {
    position: absolute; !* Consider using a pseudo-element for overlay if needed *!
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Example overlay color *!
    z-index: 1; !* Ensure it's above the background image *!
}*/



/* Security Services Section */
#security-services {
    /* Corrected ID from innovations-services to match HTML */
    background-color: var(--headerBackgroundColor);
    padding: 60px 20px;
    text-align: center;
    /* Added background image and overlay */
    background-image: linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)), url("https://ezitec.com.au/img/SAMbg2.png");
    /* Example image */
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.security-section {
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
}

.security-grid {
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.security-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    text-align: center;
}

.security-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    margin-bottom: 15px;
}

.security-item .icon-container {
    width: 80px;
    height: 80px;
    font-size: 3em;
    /* Use em for icon scaling */
    margin-bottom: 15px;
}

.security-item .icon-container:hover {
    background: var(--tabHoverColor);
    box-shadow: 0 0 20px 8px var(--sphereNodeHighlightColor);
}

/* --- Monitoring Section --- */
.monitoring-section {
    background: linear-gradient(to bottom right, var(--monitoringGradientStart), var(--monitoringGradientEnd));
    color: #fff;
    padding: 80px 20px;
    padding-top: calc(80px + var(--headerHeightScrolled));
}

.monitoring-section .section-content {
    display: flex;
    flex-direction: row;
    /* Default to row layout */
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
    align-items: center;
    /* Vertically center items in row layout */
    gap: 40px;
    /* Space between columns */
}

.monitoring-section .text-column {
    flex: 1;
    /* Take up equal space in row layout */
    text-align: left;
}

.monitoring-section .text-column h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.monitoring-section .text-column p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #e0e0e0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


.monitoring-section .image-column {
    flex: 1;
    /* Take up equal space in row layout */
    text-align: center;
}

.monitoring-section .image-column img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    display: block;
    /* Prevents extra space below image */
    margin-left: auto;
    /* Helps with centering if parent is wider */
    margin-right: auto;
    /* Helps with centering if parent is wider */
}

/* ICT Services Section */
#ict-services {
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
    /* Added background image and overlay */
    background-image: linear-gradient(rgba(255, 255, 255, 0.39), rgba(255, 255, 255, 0.159)), url('https://ezitec.com.au/img/dataimg1.jpg');
    /* Example image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.ict-section {
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
}

.ict-grid {
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.ict-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    text-align: center;
}

.ict-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    margin-bottom: 15px;
}

.ict-item .icon-container {
    width: 80px;
    height: 80px;
    font-size: 3em;
    /* Use em for icon scaling */
    margin-bottom: 15px;
}

.ict-item .icon-container:hover {
    background: var(--tabHoverColor);
    box-shadow: 0 0 20px 8px var(--sphereNodeHighlightColor);
}

/* Innovations Services Section */
#innovations-services {
    /* Corrected ID from innovations-services to match HTML */
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
    /* Added background image and overlay */
    background-image: linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)), url("https://ezitec.com.au/img/banner.jpg");
    /* Example image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.innovations-section {
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
}

.innovations-grid {
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.innovations-item {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    text-align: center;
}

.innovations-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    margin-bottom: 15px;
}

.innovations-item .icon-container {
    width: 80px;
    height: 80px;
    font-size: 3em;
    /* Use em for icon scaling */
    margin-bottom: 15px;
}

.innovations-item .icon-container:hover {
    background: var(--tabHoverColor);
    box-shadow: 0 0 20px 8px var(--sphereNodeHighlightColor);
}


/* Partners Services Section - UPDATED FOR CAROUSEL/LOGOS */
/* This block replaces previous .partners-section, .partners-grid, .partners-item, etc. */
.partners-section {
    background-color: var(--backgroundColor);
    padding: 60px 20px;
    text-align: center;
}

.partners-grid {
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
    display: flex;
    /* Use Flexbox for horizontal layout */
    flex-wrap: nowrap;
    /* Prevent items from wrapping */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Improve touch scrolling */
    column-gap: 20px;
    /* Space between items */
    padding: 20px;
    /* Inner padding */
    scrollbar-width: thin;
    /* Style scrollbar (Firefox) */
    scrollbar-color: var(--buttonColor) var(--backgroundColor);
    /* Style scrollbar (Firefox) */
    scroll-behavior: smooth;
    /* Smooth scrolling for JS animation */
}

/* Custom scrollbar for Webkit browsers */
.partners-grid::-webkit-scrollbar {
    height: 8px;
}

.partners-grid::-webkit-scrollbar-track {
    background: var(--backgroundColor);
    border-radius: 10px;
}

.partners-grid::-webkit-scrollbar-thumb {
    background-color: var(--buttonColor);
    border-radius: 10px;
    border: 2px solid var(--backgroundColor);
}

/* Updated Partner Item for Square Shape, Logo, and Name */
.partners-item {
    background-color: #fff;
    padding: 12px;
    /* Padding inside each item */
    border-radius: var(--cardBorderRadius);
    box-shadow: var(--cardShadowMedium);
    text-align: center;
    flex: 0 0 auto;
    /* Prevent items from shrinking or growing, base on content */
    width: 160px;
    /* Fixed width */
    height: 160px;
    /* Fixed height to make it square */
    display: flex;
    /* Use Flexbox for content alignment */
    flex-direction: column;
    /* Stack logo and name vertically */
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    transition: transform var(--hoverTransition);
    /* Hover effect */
    box-sizing: border-box;
    /* Include padding in width/height */
}

.partners-item:hover {
    transform: translateY(-5px);
    /* Simple hover effect */
}

/* Style for the Partner Logo Image */
.partners-item img.partner-logo {
    display: block;
    max-width: 90%;
    /* Adjust logo size within the item */
    max-height: 60%;
    /* Leave space for the name below */
    object-fit: contain;
    /* Maintain aspect ratio */
    margin-bottom: 5px;
    /* Space between logo and name */
    margin-left: auto;
    /* Center the image */
    margin-right: auto;
    /* Center the image */
    flex-shrink: 0;
    /* Prevent image from shrinking */
}

/* Style for the Company Name (h3) */
.partners-item h3 {
    font-size: 0.9rem;
    /* Standardized font size for the name */
    color: #222;
    margin: 0;
    /* Remove default h3 margins */
    line-height: 1.2;
    overflow: hidden;
    /* Hide overflowing text */
    text-overflow: ellipsis;
    /* Add ellipsis for long names */
    white-space: nowrap;
    /* Prevent name from wrapping */
    max-width: 100%;
    /* Ensure name fits item width */
    text-align: center;
    /* Center the name */
}

/* Hide the paragraph text */
.partners-item p {
    display: none;
}

/* Hide the Font Awesome icons if you are using logo images */
.partners-item .icon-container {
    display: none;
}

/* Style for the Link Wrapper (a tag) */
.partner-link {
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit text color */
    display: flex;
    /* Make the link a flex container */
    flex-direction: column;
    /* Stack content vertically */
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
    width: 100%;
    /* Make link fill the item */
    height: 100%;
    /* Make link fill the item */
}

/* Interactive Phone Section */
#interactive-phone {

    background-color: var(--backgroundColor);
    padding: 60px 20px;
    padding-top: calc(60px + var(--headerHeightScrolled));
    /* Add padding to clear scrolled header */
}

.phone-mockup {
    text-align: center;
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
}

.phone-mockup .button {
    margin-top: 20px;
    background-color: var(--buttonColor);
}

.phone-mockup .button:hover {
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
}

#iphone-mockup {
    background: var(--backgroundColor);
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://ezitec.com.au/img/monimg1.jpg');
    /* Example image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Custom Text Styles for Interactive Phone Section --- */
#iphone-mockup h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#iphone-mockup p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#iphone-mockup strong {
    color: var(--buttonHoverColor);
}

#iphone-mockup em {
    font-style: italic;
    color: var(--sphereNodeHighlightColor);
}

.iphone-container {
    position: relative;
    width: 100%;
    max-width: 335px;
    height: 617px;
    margin: 40px auto 20px;
    /* Adjusted margin */
    background: linear-gradient(145deg, #1a1a1a, #333);
    border-radius: 60px;
    -webkit-border-radius: 60px;
    box-shadow: var(--cardShadowMedium);
    overflow: visible;
    display: grid;
    justify-items: center;
    align-items: center;
    box-sizing: border-box;
    visibility: visible;
    opacity: 1;
    transform: none;
}

.iphone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.outline-path {
    stroke: var(--accentColor);
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    transition: stroke-dashoffset 2s ease-in-out;
    will-change: stroke-dashoffset;
}

.iphone-container.visible .outline-path {
    stroke-dashoffset: 0;
}

.iphone-bezel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.iphone-dynamic-island {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 14px;
    z-index: 4;
}

.iphone-content {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #111;
    border-radius: 54px;
    -webkit-border-radius: 54px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    z-index: 1;
}

.mock-app {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    width: calc(100% - 6px);
    /* Adjust for parent padding/border if any */
    height: calc(100% - 6px);
    /* Adjust for parent padding/border if any */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 54px;
    -webkit-border-radius: 54px;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 2s;
    z-index: 5;
    will-change: opacity;
}

.iphone-container.visible .mock-app {
    opacity: 1;
}

.app-header {
    padding: var(--columnPaddingNormal);
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h3 {
    font-size: 0.9rem;
    /* Standardized size */
    font-weight: 600;
    color: blue;
    margin: 0;
}

.app-status {
    font-size: 0.8rem;
    /* Adjusted size */
    font-weight: 500;
}

.app-status[data-status="armed"] {
    color: var(--buttonColor);
}

.app-status[data-status="disarmed"] {
    color: #dc3545;
}

.camera-preview {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%;
    /* Aspect ratio 4:3 */
    background: #333;
    /* Fallback background */
    border-radius: var(--cardBorderRadius);
    background-size: cover;
    background-position: center;
}

.camera-preview img,
.camera-preview video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-preview .camera-still {
    display: block;
}

.camera-preview .camera-video {
    display: none;
}

.camera-channel.active[data-channel="1"] .camera-preview .camera-still {
    display: none;
}

.camera-channel.active[data-channel="1"] .camera-video {
    display: block;
}

.camera-channel.active[data-channel="2"] .camera-preview .camera-still {
    display: none;
}

.camera-channel.active[data-channel="2"] .camera-video {
    display: block;
}

.camera-channel.active[data-channel="3"] .camera-preview .camera-still {
    display: none;
}

.camera-channel.active[data-channel="3"] .camera-video {
    display: block;
}

.camera-channel.active[data-channel="4"] .camera-preview .camera-still {
    display: block;
}

.camera-channel.active[data-channel="4"] .camera-video {
    display: none;
}

.camera-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rowGapNormal);
    padding: var(--columnPaddingNormal);
    overflow-y: auto;
}

.camera-channel {
    position: relative;
    cursor: pointer;
    transition: transform var(--hoverTransition);
}

.camera-channel:hover {
    transform: scale(1.05);
}

.camera-channel.active .camera-preview::after {
    content: 'LIVE';
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: #fff;
    padding: 2px 5px;
    font-size: 0.6rem;
    /* Standardized size */
    border-radius: 3px;
    z-index: 2;
}

.channel-label {
    display: block;
    font-size: 0.7rem;
    /* Adjusted size */
    color: var(--textColor);
    text-align: center;
    margin-top: 4px;
}

.app-controls {
    padding: var(--columnPaddingNormal);
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.btn-control {
    width: 100%;
    padding: 8px;
    margin: 4px 0;
    border: none;
    border-radius: var(--cardBorderRadius);
    font-weight: 500;
    font-size: 0.9rem;
    /* Adjusted size */
    cursor: pointer;
    transition: background-color var(--hoverTransition), box-shadow var(--hoverTransition);
    box-shadow: none;
    color: #fff;
}

.btn-control.view-live {
    background: var(--buttonColor);
}

.btn-control.view-live:hover {
    background-color: var(--buttonHoverColor);
    box-shadow: 0 0 10px 4px var(--sphereNodeHighlightColor);
    color: #fff;
}

.btn-control.toggle-system {
    background: #6c757d;
}

.btn-control.toggle-system:hover {
    background: #5a6268;
    box-shadow: 0 0 10px 4px var(--sphereNodeHighlightColor);
    color: #fff;
}

.volume-buttons,
.power-button {
    position: absolute;
    background: #333;
    border-radius: 3px;
}

.volume-buttons {
    top: 80px;
    left: -3px;
    width: 3px;
    height: 50px;
}

.power-button {
    top: 120px;
    right: -3px;
    width: 3px;
    height: 30px;
}

.start-animation {
    display: block;
    margin: 20px auto 0;
    padding: 12px 24px;
    background: var(--buttonColor);
    color: #fff;
    border: none;
    border-radius: var(--cardBorderRadius);
    font-weight: 500;
    font-size: 1rem;
    /* Standardized size */
    cursor: pointer;
    transition: background-color var(--hoverTransition), box-shadow var(--hoverTransition);
    pointer-events: auto;
    z-index: 10;
    box-shadow: none;
}

.start-animation:hover {
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
}


/* Contact Section Styles */
#contact-section {
    background: linear-gradient(135deg, #e3f2fd 60%, #b6d0f7 100%);
    padding: 60px 20px;
    color: #003366;
}

.contact-container {
    max-width: 950px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.10), 0 1.5px 6px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
}

.contact-details {
    background: linear-gradient(135deg, #0d6efd 60%, #003366 100%);
    color: #fff;
    min-height: 100%;
    box-shadow: 0 4px 24px rgba(13, 110, 253, 0.10);
    padding: 2.5rem 2rem;
    background-blend-mode: overlay;
    background-color: rgba(13, 30, 60, 0.93);
}

.contact-details * {
    color: #000000 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.contact-details a {
    color: #000000 !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: var(--buttonColor) !important;
}

.contact-form {
    background: linear-gradient(120deg, #f8fbff 80%, #e3f2fd 100%);
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 2.5rem 2rem;
}

.contact-form label {
    font-weight: 600;
    color: #003366;
}

.contact-form .form-control,
.contact-form textarea {
    border-radius: 0.5rem;
    border: 1px solid #b6d0f7;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.96);
    color: #003366;
    transition: border-color 0.2s;
}

.contact-form .form-control:focus,
.contact-form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.10);
    background: #f0f7ff;
}

.button.primary-button {
    background: var(--buttonColor);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
}

.button.primary-button:hover {
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
}

@media (max-width: 991px) {

    .contact-details,
    .contact-form {
        border-radius: 1rem !important;
        padding: 2rem !important;
    }
}

@media (max-width: 767px) {
    .contact-container {
        padding: 0 0.5rem;
    }

    .contact-details,
    .contact-form {
        padding: 1.25rem !important;
    }
}

.contact-container {
    max-width: 950px;
    margin: 0 auto;
}

.contact-details {
    background: linear-gradient(135deg, #0d6efd 60%, #003366 100%);
    color: #fff;
    min-height: 100%;
    box-shadow: 0 4px 24px rgba(13, 110, 253, 0.10);
}

.contact-details a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: #ffd700;
}

.contact-form {
    background: #fff;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.contact-form label {
    font-weight: 500;
    color: #003366;
}

.contact-form .form-control,
.contact-form textarea {
    border-radius: 0.5rem;
    border: 1px solid #e3e6ea;
    font-size: 1.05rem;
    transition: border-color 0.2s;
}

.contact-form .form-control:focus,
.contact-form textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.10);
}

.button.primary-button {
    background: var(--buttonColor);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
}

.button.primary-button:hover {
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
}

@media (max-width: 991px) {

    .contact-details,
    .contact-form {
        border-radius: 1rem !important;
        padding: 2rem !important;
    }
}

@media (max-width: 767px) {
    .contact-container {
        padding: 0 0.5rem;
    }

    .contact-details,
    .contact-form {
        padding: 1.25rem !important;
    }
}




/* Responsive: stack columns on small screens */
@media (max-width: 600px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 16px 8px;
        max-width: 98vw;
    }
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--textColor);
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1px solid #4DD8FF;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: #222;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00AEEF;
    outline: none;
    background: #fff;
}

.contact-form button,
.contact-form input[type="submit"] {
    background: var(--buttonColor);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 10px 2px var(--sphereNodeHighlightColor, #4DD8FF);
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
    background: var(--buttonHoverColor);
    box-shadow: 0 0 18px 4px var(--sphereNodeHighlightColor, #4DD8FF);
}

@media (max-width: 600px) {
    #contact-section {
        padding: 40px 10px;
    }

    .contact-form {
        padding: 20px 8px;
        max-width: 98vw;
    }
}

/* --- Footer --- */
footer {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    /* Standardized size */
}

/* Responsive Text Size Adjustments */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Specific adjustment */
    .hero p {
        font-size: 1.1rem;
    }

    /* Specific adjustment */
    .text-box h2 {
        font-size: 1.8rem;
    }

    /* Specific adjustment */
    .text-box p {
        font-size: 1rem;
    }

    /* Specific adjustment */
    .button {
        font-size: 0.9rem;
    }

    /* Adjust button size */
    .header-buttons .button {
        font-size: 0.8rem;
    }

    /* Adjust header button size */
    .dropdown-menu a {
        font-size: 0.9rem;
    }

    /* Adjust nav link size */
    .scroll-indicator {
        font-size: 0.9rem;
    }

    /* Adjust scroll indicator size */
    .app-header h3 {
        font-size: 0.8rem;
    }

    /* Adjust app text size */
    .app-status {
        font-size: 0.7rem;
    }

    /* Adjust app text size */
    .btn-control {
        font-size: 0.8rem;
    }

    /* Adjust app button size */
    .channel-label {
        font-size: 0.6rem;
    }

    /* Adjust app label size */
    .partners-item h3 {
        font-size: 0.8rem;
    }

    /* Adjust partner item name size */
    footer {
        font-size: 0.8rem;
    }

    /* Adjust footer size */

}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Specific adjustment */
    .hero p {
        font-size: 1rem;
    }

    /* Specific adjustment */
    .text-box h2 {
        font-size: 1.6rem;
    }

    /* Specific adjustment */
    .text-box p {
        font-size: 0.9rem;
    }

    /* Specific adjustment */
    .button {
        font-size: 0.8rem;
    }

    /* Adjust button size */
    .header-buttons .button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    /* Adjust header button size */
    .dropdown-menu a {
        font-size: 0.8rem;
    }

    /* Adjust nav link size */
    .scroll-indicator {
        font-size: 0.8rem;
    }

    /* Adjust scroll indicator size */
    .app-header h3 {
        font-size: 0.7rem;
    }

    /* Adjust app text size */
    .app-status {
        font-size: 0.6rem;
    }

    /* Adjust app text size */
    .btn-control {
        font-size: 0.7rem;
        padding: 6px;
    }

    /* Adjust app button size */
    .channel-label {
        font-size: 0.5rem;
    }

    /* Adjust app label size */
    .partners-item h3 {
        font-size: 0.7rem;
    }

    /* Adjust partner item name size */
    footer {
        font-size: 0.7rem;
    }

    /* Adjust footer size */
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    /* Specific adjustment */
    .hero p {
        font-size: 0.9rem;
    }

    /* Specific adjustment */
    .text-box h2 {
        font-size: 1.4rem;
    }

    /* Specific adjustment */
    .text-box p {
        font-size: 0.85rem;
    }

    /* Specific adjustment */
    .button {
        font-size: 0.7rem;
        padding: 8px 16px;
    }

    /* Adjust button size */
    .header-buttons .button {
        padding: 4px 8px;
        font-size: 0.6rem;
    }

    /* Adjust header button size */
    .dropdown-menu a {
        font-size: 0.7rem;
    }

    /* Adjust nav link size */
    .scroll-indicator {
        font-size: 0.7rem;
    }

    /* Adjust scroll indicator size */
    .app-header h3 {
        font-size: 0.6rem;
    }

    /* Adjust app text size */
    .app-status {
        font-size: 0.5rem;
    }

    /* Adjust app text size */
    .btn-control {
        font-size: 0.6rem;
        padding: 4px;
    }

    /* Adjust app button size */
    .channel-label {
        font-size: 0.5rem;
    }

    /* Adjust app label size */
    .partners-item h3 {
        font-size: 0.6rem;
    }

    /* Adjust partner item name size */
    footer {
        font-size: 0.6rem;
    }

    /* Adjust footer size */
}


/* Existing Media Queries - kept for layout adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .header-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .dropdown-menu {
        min-width: 150px;
    }

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

    .hero p {
        font-size: 1.1em;
    }

    .scroll-section {
        padding: 40px 15px;
        padding-top: calc(40px + var(--headerHeightScrolled));
    }

    #interactive-lines .text-box h2 {
        font-size: 1.8em;
    }

    #interactive-lines .text-box p {
        font-size: 1em;
    }

    #interactive-lines .text-box {
        margin-bottom: 30px;
        padding: 15px 0;
    }

    .icons-canvas-container {
        height: 400px;
        min-height: 350px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .iphone-container {
        max-width: 285px;
        height: 525px;
    }

    .iphone-frame,
    .iphone-content,
    .mock-app {
        border-radius: 44px;
        -webkit-border-radius: 44px;
    }

    .start-animation {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* START: Added for Monitoring Section Adaptiveness */
    .monitoring-section .section-content {
        flex-direction: column;
        /* Stack text and image vertically */
        align-items: center;
        /* Center items horizontally in the column */
    }

    .monitoring-section .text-column,
    .monitoring-section .image-column {
        flex-basis: 100%;
        /* Allow each item to take full width if needed */
        width: 100%;
        /* Ensure they take full width */
        max-width: 600px;
        /* Optional: constrain max width like other text blocks */
    }

    .monitoring-section .text-column {
        text-align: center;
        /* Center text on smaller screens for consistency */
        margin-bottom: 30px;
        /* Add space between text and image when stacked */
    }

    /* END: Added for Monitoring Section Adaptiveness */
}


@media (max-width: 992px) {
    #interactive-lines {
        flex-direction: column;
        align-items: center;
        height: auto;
        /* Allow height to adjust to content */
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #interactive-lines .text-box {
        /* Specific to interactive-lines section */
        flex: 1 1 auto;
        /* Allow it to grow and shrink */
        width: 100%;
        /* Take full width of parent */
        max-width: 600px;
        /* But not more than this */
        text-align: center;
        /* Center the text content */
        margin-bottom: 40px;
        /* Space below it */
        padding: 20px 15px;
        /* Inner spacing */
    }

    .icons-canvas-container {
        flex: 1 1 auto;
        width: 100%;
        max-width: 500px;
        /* Limit sphere container size */
        height: 450px;
        min-height: 400px;
        padding: 10px;
    }

    .iphone-container {
        max-width: 305px;
        height: 561px;
    }

    .iphone-frame,
    .iphone-content,
    .mock-app {
        border-radius: 48px;
        -webkit-border-radius: 48px;
    }

    .camera-grid {
        grid-template-columns: 1fr;
        /* Stack camera previews */
    }

    .start-animation {
        padding: 10px 20px;
        font-size: 0.9rem;
    }


}


@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* More specific selector for text-box within #interactive-lines */
    #interactive-lines .text-box h2 {
        font-size: 1.6em;
    }

    .icons-canvas-container {
        height: 350px;
        min-height: 300px;
    }

    .icon-container {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .iphone-container {
        max-width: 270px;
        height: 497px;
    }

    .iphone-frame,
    .iphone-content,
    .mock-app {
        border-radius: 40px;
        -webkit-border-radius: 40px;
    }

    .app-header h3 {
        font-size: 0.8rem;
    }

    .app-status {
        font-size: 0.6rem;
    }

    .btn-control {
        font-size: 0.7rem;
        padding: 4px;
    }

    .channel-label {
        font-size: 0.5rem;
    }

    .iphone-dynamic-island {
        width: 90px;
        height: 25px;
        border-radius: 12px;
    }

    .start-animation {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Adjust hero logo size on smaller screens */
    /* .site-logo-hero {
         max-width: 200px;
         margin-bottom: 15px;
     } */
    /* This class was removed from HTML, so rule is not needed */
}

.service-page-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding-top: calc(var(--headerHeight) + 60px);
    padding-bottom: 60px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
}

.legal-content-section {
    padding: 60px 20px;
}

.legal-content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--textColor);
    border-bottom: 2px solid var(--buttonColor);
    padding-bottom: 10px;
}

.legal-content-section h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--textColor);
}

.legal-content-section p,
.legal-content-section li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.legal-content-section ul {
    padding-left: 20px;
    list-style-type: disc;
}

.last-updated {
    font-style: italic;
    color: #555;
    margin-bottom: 30px;
    display: block;
    text-align: center;
}



.header-buttons .button.secondary-button {
    background-color: var(--buttonColor);
    border-color: #6c757d;
}

.header-buttons .button.secondary-button:hover {
    box-shadow: 0 0 15px 5px var(--sphereNodeHighlightColor);
    background: linear-gradient(90deg, #003366 70%, #0d6efd 100%);
    color: #ffd700;
    border-color: #545b62;
}

.site-footer {
    background-color: #000000;
    color: #bbb;
    padding: 50px 20px 30px;
    font-size: 0.9rem;
}

.site-footer .footer-content {
    max-width: var(--layoutWidthMax);
    margin: 0 auto;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.site-footer a:hover {
    color: var(--buttonHoverColor);
}

.site-footer ul {
    list-style: none;
    padding-left: 0;
}

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

.site-footer .social-icons a {
    color: #bbb;
    margin-right: 15px;
    font-size: 1.8rem;
}

.site-footer .social-icons a:hover {
    color: var(--buttonHoverColor);
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-contact-info i {
    margin-right: 8px;
    color: var(--buttonColor);
}
