@import url('../assets/fonts.css');
@import url('../assets/main.css');

/* Universal box-sizing and mobile stability */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on all elements */
* {
    max-width: 100%;
}

:root {
  /* Stella Colors - New Teal Theme */
  --stella-primary: #50B5B8;
  --stella-secondary: #ffffff;
  --stella-accent: #50B5B8;
  --stella-text: #2C2C2C;
  --stella-border: #B2DFDB;
  --stella-cta: #50B5B8;
  --stella-red: #E57373;
  --stella-blue: #64B5F6;
  --stella-yellow: #FFB74D;

  /* Responsive Design Tokens */
  --container-max: 1200px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Fluid Typography (mobile-first) */
  --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-sm: clamp(0.875rem, 1.6vw, 1rem);
  --text-base: clamp(1rem, 1.8vw, 1.125rem);
  --text-lg: clamp(1.125rem, 2vw, 1.25rem);
  --text-xl: clamp(1.25rem, 2.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 3vw, 2rem);
  --text-3xl: clamp(2rem, 4vw, 2.5rem);
  --text-4xl: clamp(2.5rem, 5vw, 3.5rem);

  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Breakpoints (for reference in comments) */
  /* xs: 360px, sm: 600px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1440px */
}

/* Dark mode disabled - keeping consistent design */

html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'CocogoosePro', sans-serif;
    background: var(--stella-secondary);
    color: var(--stella-text);
    font-size: var(--text-base);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Global responsive utilities */
img, svg, canvas, video {
    max-width: 100%;
    height: auto;
}

/* CLS Optimization - Aspect Ratios for Images */
.platform-image-placeholder,
.complexity-image-placeholder {
    aspect-ratio: 16 / 9;
}

.hero-section {
    aspect-ratio: auto; /* Prevent CLS on background image */
}

.product-icon,
.contact-icon {
    aspect-ratio: 1 / 1; /* Square icons */
}

/* Word breaking for long text */
.content, p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Enhanced Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--stella-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Touch targets minimum size */
button,
a,
input[type="checkbox"],
input[type="radio"],
.checkbox-item,
.nav-link {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Override for text links that need to flow inline */
a:not(.btn-primary):not(.nav-link):not(.nav-cta):not(.nav-cta-page) {
    min-height: auto;
    min-width: auto;
    display: inline;
}

/* Reduced Motion Support - 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;
    }
}

/* Background squares for about page */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background: url('../assets/img/squaresbg.svg') no-repeat center right;
    background-size: contain;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Contact Sales Page Styles */
.contact-sales-container {
    background: white;
    min-height: calc(100vh - 120px);
    padding: 2rem;
}

.contact-header {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}

.contact-main-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    align-items: flex-start;
}

.contact-left-section {
    width: 100%;
    position: relative;
    order: 1;
}

.contact-form-section {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    order: 2;
}

/* md: 768px */
@media (min-width: 768px) {
    .contact-main-content {
        flex-direction: row;
        gap: var(--space-6);
    }

    .contact-left-section {
        width: 40%;
        order: 0;
    }

    .contact-form-section {
        width: 60%;
        order: 0;
    }
}

.contact-form-container {
    background: #B8E6E1;
    border: 3px solid #B8E6E1;
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact Description */
.contact-description {
    margin-bottom: 1rem;
    color: #064561;
}

.contact-description p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Grouped Cubes Container */
.contact-cubes-group {
    position: relative;
    width: 300px;
    height: 250px;
    margin: 0 auto;
}

/* Contact Cube Positioning - Grouped Together */
.contact-cube {
    position: absolute;
    pointer-events: none;
}

.contact-cube-red {
    width: 90px;
    height: 90px;
    top: 80px;
    left: 25px;
    opacity: 0.7;
    z-index: 1;
}

.contact-cube-blue {
    width: 120px;
    height: 120px;
    top: 10px;
    left: 100px;
    opacity: 0.8;
    transform: rotate(180deg);
}

.contact-cube-teal {
    width: 60px;
    height: 60px;
    top: 150px;
    left: 130px;
    opacity: 0.8;
    transform: rotate(90deg);
}

.contact-cube-yellow {
    width: 45px;
    height: 45px;
    top: 205px;
    left: 70px;
    opacity: 0.8;
    transform: rotate(-90deg);
}

/* Contact Form Styles */
.contact-title {
    font-size: var(--text-3xl);
    color: #044560;
    margin-bottom: var(--space-5);
    font-weight: 400;
    line-height: 1.2;
}

.contact-sales-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* sm: 600px */
@media (min-width: 600px) {
    .form-row {
        flex-direction: row;
        gap: var(--space-4);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.half-width {
    flex: 1;
}

.form-group label {
    color: #064561;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: var(--space-3);
    border: 1px solid #B8E6E1;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-family: inherit;
    min-height: 44px; /* Touch target minimum */
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--stella-primary);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

/* Interest Sections */
.interest-section {
    margin-top: 1.5rem;
}

.interest-section h3 {
    color: #064561;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.interest-section p {
    color: #064561;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.checkbox-grid {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

/* Container query: md ~400px for 2-column layout on tablets and desktop */
@container (min-width: 400px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Custom Checkbox Styling */
.checkbox-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
    font-size: 0.85rem;
    color: #064561;
    padding: 0.125rem 0;
    min-height: auto;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #064561;
    border-radius: 3px;
    margin-right: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #064561;/*var(--stella-primary);*/
    border-color: var(--stella-secondary);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Privacy Text */
.privacy-text {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid var(--stella-primary);
}

.privacy-text p {
    margin-bottom: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
}

.privacy-consent {
    margin-top: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Checkbox validation error states */
.privacy-consent.error {
    background-color: rgba(220, 53, 69, 0.15) !important;
    border: 2px solid #dc3545 !important;
    border-radius: 4px !important;
    animation: shake 0.3s ease-in-out;
}

.privacy-consent.error .checkmark {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

.checkbox-error-message {
    display: none;
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
    padding: 0.25rem;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 3px;
}

.privacy-consent.error .checkbox-error-message {
    display: block !important;
}

/* Shake animation for error highlighting */
@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-3px);
    }
    30% {
        transform: translateX(3px);
    }
    50% {
        transform: translateX(-2px);
    }
    70% {
        transform: translateX(2px);
    }
}

/* Submit Button */
.contact-submit-btn {
    background: #50B5B8;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    border-bottom-right-radius: 20px;
}

.contact-submit-btn:hover {
    background: #459A9D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 181, 184, 0.3);
}

/* Mobile-specific styles (max-width approach for specific overrides) */
@media (max-width: 767px) {
    /* Make contact cubes smaller on mobile */
    .contact-cubes-group {
        width: 200px;
        height: 150px;
        margin: 0 auto 2rem;
    }

    /* White input backgrounds on mobile */
    .form-group input,
    .form-group textarea {
        background: white !important;
        color: #064561 !important;
        border: 1px solid #B8E6E1;
    }

    /* Hide specific cubes on mobile */
    .cube-yellow-1,
    .cube-blue-1,
    .cube-yellow-2,
    .cube-teal-2 {
        display: none;
    }

    .contact-cube-red {
        width: 45px;
        height: 45px;
        top: 50px;
        left: 15px;
    }

    .contact-cube-blue {
        width: 60px;
        height: 60px;
        top: 10px;
        left: 60px;
    }

    .contact-cube-teal {
        width: 30px;
        height: 30px;
        top: 90px;
        left: 80px;
    }

    .contact-cube-yellow {
        width: 22px;
        height: 22px;
        top: 120px;
        left: 40px;
    }

    /* About page mobile text colors */
    .about-section p,
    .about-section h2,
    .about-section h3,
    .main-content p,
    .main-content h2,
    .main-content h3,
    .main-content li {
        color: #064561 !important;
    }

    /* Keep value cards with white text */
    .value-card h3,
    .value-card p {
        color: white !important;
    }

    /* Dark borders on mobile */
    .about-section,
    .main-content .about-section {
        border-color: #064561 !important;
    }
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: none;
    position: relative;
    z-index: 10;
    background: var(--stella-primary);
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.logo a {
    text-decoration: none;
    color: white;
}

/* Logo visibility control - use logo-dark.svg on mobile/tablet, STELLA-logo.png on desktop */
.logo-desktop {
    display: none;
}

.logo-desktop img {
    display: block;
}

.logo-mobile {
    display: block;
}

/* Show full logo on desktop */
@media (min-width: 1280px) {
    .logo-desktop {
        display: block;
    }

    .logo-mobile {
        display: none;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: 6rem;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 200;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Logo styling */
.logo a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--stella-text);
    margin-top: -5px;
    font-weight: 300;
}

/* CTA Button Styling */
.nav-cta {
    background-color: #95D2D4 !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 300;
    border-bottom-right-radius: 20px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background-color: #7FC1C3 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(149, 210, 212, 0.3);
}

/* Page CTA Button Styling (for home.ejs buttons) */
.nav-cta-page {
    background-color: #50B5B8 !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 300;
    border-bottom-right-radius: 20px;
    transition: all 0.2s ease;
}

.nav-cta-page:hover {
    background-color: #459A9D !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 181, 184, 0.3);
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* New Homepage Styles */

/* Hero Section - Mobile First */
.hero-section {
    background-image: url('../assets/img/People.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: var(--space-8) var(--space-4);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

/* md: 768px */
@media (min-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: var(--space-8) var(--space-6);
    }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .hero-section {
        min-height: 70vh;
        padding: var(--space-8) var(--space-8);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Cube Image System - Positioned according to PDF mockup */
/* Picture elements for WebP support - make them transparent wrappers */
.hero-section picture {
    display: contents;
}

.contact-cubes-group picture {
    display: contents;
}

.cube-image {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Hero Section Cubes */
.cube-red-1 {
    width: 50px;
    height: 50px;
    top: 25%;
    left: 15%;
    transform: rotate(180deg); 
    opacity: 0.5;
}

.cube-blue-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    transform: rotate(270deg);
    opacity: 0.5;
}

.cube-yellow-1 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 25%;
    transform: rotate(270deg);
    opacity: 0.5;
}

.cube-teal-1 {
    width: 45px;
    height: 45px;
    bottom: 20%;
    left: 8%;
    transform: rotate(90deg);
    opacity: 0.5;
}

/* Platform Section Cubes */
.cube-yellow-2 {
    width: 35px;
    height: 35px;
    top: 15%;
    left: 5%;
    opacity: 0.5;
}

.cube-teal-2 {
    width: 130px;
    height: 130px;
    bottom: 2%;
    right: 32%;
    opacity: 0.6;
    transform: rotate(180deg);
}


.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: white;
}

.hero-cta {
    margin-top: 1rem;
}

.btn-primary {
    background: #4fb5b8;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    border-radius: 8px;
    border-bottom-right-radius: 80px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid #4fb5b8;
}

.btn-primary:hover {
    background: #3a9396;
    border-color: #3a9396;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 181, 184, 0.4);
}

/* Section Styles */
.platform-section,
.complexity-section,
.result-section,
.cta-section {
    padding: 4rem 2rem;
}

.section-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: center;
}

/* sm: 600px */
@media (min-width: 600px) {
    .section-content {
        gap: var(--space-6);
    }
}

/* md: 768px - Tablet layout med smalare bilder, mer text-utrymme */
@media (min-width: 768px) {
    .platform-section .section-content {
        grid-template-columns: 3fr 1fr;
        align-items: start;
    }

    .complexity-section .section-content {
        grid-template-columns: 1fr 3fr;
        align-items: start;
    }

    .platform-image-placeholder,
    .complexity-image-placeholder {
        aspect-ratio: auto;
        width: 100%;
    }
}

/* lg: 1280px - Desktop layout med balanserade proportioner */
@media (min-width: 1280px) {
    .platform-section .section-content {
        grid-template-columns: 2fr 1fr;
    }

    .complexity-section .section-content {
        grid-template-columns: 1fr 2fr;
    }

    .platform-image-placeholder,
    .complexity-image-placeholder {
        aspect-ratio: auto;
        width: 100%;
    }
}

.platform-section {
    background: #50B5B8;
    color: white;
    border-bottom-left-radius: 150px;
    position: relative;
    margin-top: 0;
    padding-top: 4rem;
}

.complexity-section {
    background: white;
}

.text-column {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.text-column h2 {
    font-size: var(--text-3xl);
    color: var(--stella-primary);
    margin-bottom: var(--space-5);
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.text-column p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--stella-text);
    font-weight: 300;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.text-column1 {
    width: 65%;
}
/* White text for platform section */
.platform-section .text-column h2,
.platform-section .text-column p,
.hero-content .text-column h2 {
    color: white;
}

/* Dark text for complexity section */
.complexity-section .text-column h2,
.complexity-section .text-column p {
    color: #044560;
}

.platform-image-placeholder,
.complexity-image-placeholder {
    height: 200px;
    border-radius: 40px;
    border-bottom-left-radius: 125px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Responsive image heights */
@media (min-width: 600px) {
    .platform-image-placeholder,
    .complexity-image-placeholder {
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .platform-image-placeholder,
    .complexity-image-placeholder {
        height: 350px;
    }
}

.platform-image-placeholder {
    background-image: url('../assets/img/Women.webp');
}

.complexity-image-placeholder {
    background-image: url('../assets/img/Opinion.webp');
}

/* Result Text Section (now white background) */
.result-text-section {
    background: white;
    color: #044560;
    text-align: left;
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
}


.result-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
    color: #044560;
}

.result-text { 
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    color: #044560;
}

/* Integrated Result Text Styling 
.result-text-integrated {
    margin-top: 2rem;
    padding-top: 1.5rem;
}
 */
.result-heading-integrated {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: #044560;
    position: relative;
    z-index: 2;
}

.result-text-integrated {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 100%;
    margin: 0;
    line-height: 1.6;
    color: #044560;
    position: relative;
    z-index: 2;
}


/* CTA Section */
.cta-section {
    background: #044560;
    color: white;
    text-align: center;
    border-bottom-right-radius: 150px;
    padding: 2rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-button {
    margin-bottom: 0rem;
}

.cta-section .btn-primary {
    background: #4fb5b8;
    color: white;
    border-color: #4fb5b8;
}

.cta-section .btn-primary:hover {
    background: #3a9396;
    border-color: #3a9396;
}

.cta-benefits {
    max-width: 900px;
    margin: 0 auto;
}

.cta-benefits p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        font-family: "Cocogoose Pro";
        font-style: normal;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .platform-section .section-content,
    .complexity-section .section-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    
    .complexity-section .image-column {
        order: -1;
    }
    
    .text-column h2,
    .contact-title,
    .cta-section h2 {
        font-size: 1.4rem;
    }

    /* Mobile padding adjustments */
    .platform-section,
    .complexity-section {
        padding: 3rem 1.5rem !important;
    }

    .platform-section .section-content,
    .complexity-section .section-content {
        padding: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .platform-section .text-column,
    .complexity-section .text-column {
        padding: 0;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .platform-section .image-column,
    .complexity-section .image-column {
        max-width: 100%;
    }
}

.page-title {
    font-family: 'CocogoosePro', sans-serif;
    font-size: var(--text-3xl);
    font-weight: 350;
    color: var(--stella-primary);
    text-align: center;
    margin-bottom: var(--space-4);
}

.page-subtitle {
    font-family: 'CocogoosePro', sans-serif;
    font-size: var(--text-xl);
    font-weight: 200;
    color: var(--stella-text);
    text-align: center;
    margin-bottom: var(--space-8);
}

/* Download Section Styles */
.download-section {
    margin-top: 2rem;
}

.download-description {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--stella-text);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 500px;
}

.download-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 200;
    color: var(--stella-secondary);
    background-color: var(--stella-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'CocogoosePro', sans-serif;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.signin-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 200;
    color: var(--stella-primary);
    background-color: transparent;
    border: 2px solid var(--stella-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'CocogoosePro', sans-serif;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    margin-top: 1rem;
}

.signin-btn:hover {
    background-color: var(--stella-accent);
    transform: translateY(-1px);
}

/* Hero Section Styles (Home page) */
.hero-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    padding: 6rem 2rem 2rem 4rem;
    max-width: 600px;
    position: relative;
    z-index: 2;
}


.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 200;
    color: var(--stella-secondary);
    background-color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'CocogoosePro', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 200;
    color: var(--stella-primary);
    background-color: transparent;
    border: 2px solid var(--stella-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'CocogoosePro', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #555;
}

.btn-secondary:hover {
    background-color: var(--stella-accent);
}

.hero-background {
    flex: 1;
    background: transparent;
    position: relative;
    min-height: 100vh;
}

/* Product Grid Styles - Mobile First with Container Queries */
.product-grid {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

/* Container query: sm ~600px */
@container (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Container query: lg ~1024px */
@container (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.product-card {
    background: var(--stella-secondary);
    border: 1px solid var(--stella-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}*/

.product-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    margin-bottom: 1.5rem;
}

.product-icon.ch { background-color: #054561; }
.product-icon.ta { background-color: #992533; }
.product-icon.ic { background-color: #29b4b8; }
.product-icon.re { background-color: #fed37d; }
.product-icon.vt { background-color: #edd6d9; }
.product-icon.pc { background-color: #992533; }
.product-icon.ps { background-color: #fed37d; }
.product-icon.pm { background-color: #29b4b8; }
.product-icon.am { background-color: #667eea; }

.product-card h3 {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1.5rem;
    font-weight: 350;
    color: var(--stella-primary);
    margin: 0 0 1rem 0;
}

.product-card p {
    font-family: 'Worksans', sans-serif;
    font-size: 1rem;
    font-weight: 200;
    color: var(--stella-text);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.product-status {
    font-size: 0.875rem;
    color: #f6ad55;
    font-weight: 200;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-section {
    background: var(--stella-secondary);
    border: 1px solid var(--stella-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1.75rem;
    font-weight: 350;
    color: var(--stella-primary);
    margin: 0 0 1.5rem 0;
}

.about-section p {
    font-family: 'Worksans', sans-serif;
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--stella-text);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
}

.about-section p.text-value-card {
  font-size: 1rem;
  font-weight: 200;
  color: var(--stella-secondary);
  margin: 0;
  line-height: 1.6;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.values-grid {
    container-type: inline-size;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-top: var(--space-7);
}

/* Container query: sm ~600px */
@container (min-width: 600px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Container query: lg ~1024px */
@container (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Fallback media query for browsers that don't support container queries */
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.value-card {
    background: var(--stella-accent);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.value-card h3 {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1.25rem;
    font-weight: 350;
    color: var(--stella-secondary);
    margin: 0 0 1rem 0;
}

.value-card p {
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--stella-secondary);
    border: 1px solid var(--stella-border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.contact-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: white;
    margin: 0 auto 1.5rem;
    background-color: var(--stella-primary);
}

.contact-card h3 {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1.5rem;
    font-weight: 350;
    color: var(--stella-primary);
    margin: 0 0 1rem 0;
}

.contact-card .office-name {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1.25rem;
    font-weight: 350;
    color: var(--stella-primary);
    margin: 0 0 1rem 0;
}

.contact-card p {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 1rem;
    font-weight: 200;
    color: var(--stella-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.contact-card p:last-child {
    color: var(--stella-primary);
    font-weight: 200;
}


.contact-form {
    background: var(--stella-accent);
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem 0;
}

.contact-form h2 {
    font-family: 'CocogoosePro', sans-serif;
    font-size: 2rem;
    font-weight: 350;
    color: var(--stella-primary);
    text-align: center;
    margin: 0 0 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'CocogoosePro', sans-serif;
    font-weight: 200;
    color: #064561;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--stella-border);
    border-radius: 6px;
    font-family: 'CocogoosePro', sans-serif;
    font-size: 16px;
    background: var(--stella-secondary);
    color: var(--stella-text);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-weight: 200;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--stella-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--stella-primary);
    color: var(--stella-secondary);
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-family: 'CocogoosePro', sans-serif;
    font-size: 16px;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 2rem auto 0;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Footer Styles */
.footer {
    background: var(--stella-accent);
    border-top: 1px solid var(--stella-border);
    margin-top: 2rem;
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-family: 'CocogoosePro', sans-serif;
    font-weight: 350;
    color: var(--stella-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.footer-section p {
    font-family: 'CocogoosePro', sans-serif;
    color: var(--stella-text);
    font-weight: 200;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.footer-content p {
    font-family: 'CocogoosePro', sans-serif;
    color: var(--stella-text);
    font-weight: 200;
    margin: 0;
    line-height: 1.5;
}

.footer-section a {
    color: var(--stella-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--stella-primary);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    /*background: transparent;*/
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--stella-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--stella-secondary);
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--stella-border);
}

.mobile-nav-logo img {
    width: 100px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(64%) sepia(42%) saturate(451%) hue-rotate(134deg) brightness(94%) contrast(88%);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.mobile-nav-link {
    padding: 1rem 2rem;
    color: #064561;
    text-decoration: none;
    font-weight: 200;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--stella-border);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: var(--stella-accent);
    color: white;
}

.mobile-nav-link.active {
    color: #064561;
    font-weight: 350;
}

.mobile-nav-signin {
    margin: 1.5rem 2rem;
    padding: 12px 24px;
    background: var(--stella-primary);
    color: var(--stella-secondary);
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 200;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.mobile-nav-signin:hover {
    background: var(--stella-accent);
    transform: translateY(-1px);
}

.mobile-nav-cta {
    margin: 0.5rem 2rem 1.5rem 2rem;
    padding: 12px 24px;
    background: #95D2D4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 300;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid #95D2D4;
}

.mobile-nav-cta:hover {
    background: #7FC1C3;
    border-color: #7FC1C3;
    transform: translateY(-1px);
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    /* Prevent any horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }

    /* Ensure all containers respect mobile viewport */
    .container, .section-content, .main-content, .contact-main-content,
    .hero-container {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .platform-section, .complexity-section {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    body::before {
        width: 100%;
        opacity: 0.3;
    }

    .header {
        justify-content: space-between;
        padding: 1rem 1rem;
        background: var(--stella-primary) !important;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        max-width: 200px;
        height: auto;
    }

    .logo-mobile {
        width: 120px;
        height: 42px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-right: 0;
    }

    .main-content {
        padding: 2rem 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .page-title {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .page-subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-container {
        flex-direction: column;
        min-height: auto;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-content {
        padding: 4rem 1rem 2rem 1rem;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content h1 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: auto;
    }

/*    .hero-content-title h2 {
        font-size: 2.5rem !important;
        font-family: "Cocogoose Pro";
        font-style: normal;
        font-weight: 400;    
        word-wrap: break-word;
        hyphens: auto;
    }
*/
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .hero-background {
        min-height: 300px;
        width: 100%;
    }

    /* Contact form mobile improvements */
    .contact-sales-container {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .contact-main-content {
        flex-direction: column;
        padding: 0;
        gap: 1rem;
    }

    .contact-left-section {
        display: contents;
    }

    .contact-title,
    .contact-description {
        order: 1;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .contact-form-section {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .contact-cubes-group {
        order: 3;
    }

    .contact-form-container {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .about-section {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .values-grid {
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-form {
        padding: 2rem;
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        padding: 2rem 1rem 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Fix any text or images that might overflow */
    p, h1, h2, h3, h4, h5, h6, div, span {
        word-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box;
    }

    /* Prevent touch actions that could cause panning */
    .main-content, .hero-section, .platform-section, .complexity-section {
        touch-action: pan-y pinch-zoom;
    }
}