/* --- Global Styles & Variables --- */
:root {
    /* Primary color palette - more vibrant and luxurious */
    --primary-color: #1976d2;       /* Rich blue - slightly deeper for more luxury */
    --primary-dark: #0d47a1;        /* Darker blue for depth */
    --primary-light: #64b5f6;       /* Lighter blue for accents */
    --secondary-color: #e53935;     /* Rich red for contrast */
    --secondary-light: #ff7961;     /* Lighter red for hover states */
    --accent-color: #f57c00;        /* Deeper orange for emphasis */
    --accent-light: #ffb74d;        /* Light orange for subtle accents */
    --accent-gold: #ffc107;         /* More vibrant gold for luxury elements */
    
    /* Neutrals with more contrast */
    --text-dark: #1a1a1a;           /* Deeper for better contrast */
    --text-medium: #424242;
    --text-light: #757575;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    
    /* Enhanced gradient definitions */
    --primary-gradient: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--primary-light));
    --luxury-gradient: linear-gradient(135deg, #0d47a1, #1e88e5, #64b5f6, #90caf9);
    --gold-gradient: linear-gradient(135deg, #ffd700, #ffab00, #ff8f00);  /* More vibrant gold gradient */
    --accent-gradient: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    
    /* Shadow definitions - enhanced for more depth */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 10px rgba(0, 0, 0, 0.12), 0 3px 5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15), 0 8px 15px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.12);
    --luxury-shadow: 0 10px 25px rgba(25, 118, 210, 0.25), 0 6px 12px rgba(25, 118, 210, 0.2);
    --gold-shadow: 0 10px 25px rgba(255, 193, 7, 0.25), 0 6px 12px rgba(255, 193, 7, 0.2);
    
    /* Enhanced spacing - more breathing room for luxury */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Enhanced Vibrant Color Palette */
    --primary-darker: #0d47a1; /* Deeper blue */
    --secondary-darker: #c62828; /* Deeper red */
    --accent-darker: #e65100; /* Deeper orange */
    
    --text-color: #212121; /* Darker text for contrast */
    --light-gray: #f5f5f5; /* Brighter light gray */
    --medium-gray: #90a4ae; /* More vibrant medium gray */
    --dark-gray: #455a64;  /* More vibrant dark gray */
    --gold: #ffc107; /* Gold accent for luxury feel */
    --gold-light: #ffe082; /* Light gold for subtle accents */
    --silver: #b0bec5; /* Silver accent for luxury feel */

    /* Luxury gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-darker) 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffc107 40%, #ff8f00 100%);  /* Enhanced gold gradient */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --header-height: 70px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --box-shadow-light: 0 6px 15px rgba(0, 0, 0, 0.12);
    --box-shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.2);
    --box-shadow-luxury: 0 10px 25px rgba(255, 193, 7, 0.18);
    
    /* Animation timing variables */
    --animation-timing: 0.7s;
    --stagger-delay: 0.15s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: var(--header-height); /* Prevent content from hiding under fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover,
a:focus {
    color: var(--accent-color);
    text-decoration: underline; /* Add underline on hover for clarity */
}

ul {
    list-style: none;
    padding-left: 0; /* Reset default padding */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1140px; /* Slightly narrower for better text line length */
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.8rem; /* Slightly larger padding */
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    background-color: var(--primary-darker);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);  /* Increased glow effect */
    transition: height 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    height: 60%;  /* Increased glow effect height */
}

/* Red Button */
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-darker);
    border-color: var(--secondary-darker);
}

/* Orange Button */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: var(--accent-darker);
    border-color: var(--accent-darker);
}

/* Gold Button for premium features */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    box-shadow: var(--gold-shadow);
}

.btn-gold:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.3);
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--bg-white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.main-header.scrolled {
    background: var(--bg-white); /* Solid white background, no transparency */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color); /* Changed from white */
    font-family: var(--font-primary);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.logo a:hover {
    text-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3); /* Adjusted shadow for primary color */
    transform: scale(1.05);
}

/* Logo image styles */
.logo img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-gray); /* Changed from white */
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color); /* Keep primary color for hover/active */
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color); /* Changed from white */
    cursor: pointer;
}

.mobile-nav-toggle.active {
    transform: rotate(90deg);
}

/* --- Footer --- */
.main-footer {
    background: linear-gradient(to right, #263238, #1e2a36);
    color: var(--off-white);
    padding: 3.5rem 0 2.5rem;
    margin-top: 4rem;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.footer-nav a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

.copyright {
    margin-top: 1rem;
    color: var(--light-gray); /* Explicitly set light color for readability */
}

/* --- Section Padding & Backgrounds --- */
section {
    padding: 4.5rem 0; /* Increased padding slightly */
}

section:nth-of-type(even):not(.page-hero) {
    background: linear-gradient(135deg, var(--light-gray) 0%, #fff 100%);
}

/* Subtle Section Separator */
section + section {
    border-top: 1px solid #e9ecef; /* Light border between sections */
}
section.page-hero + section {
    border-top: none; /* No border after hero */
}

/* Utility for centered text blocks within sections */
.text-center {
    text-align: center;
}
.centered-content p,
.centered-content blockquote {
    max-width: 760px; /* Optimized for readability */
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (max-width: 992px) { /* Adjusted breakpoint for teaser/contact */
    /* Stack partner teaser */
    #partners-teaser .container {
        grid-template-columns: 1fr;
        text-align: center; /* Center text when stacked */
    }
    #partners-teaser .partner-image-placeholder {
        margin-top: 2rem;
        max-width: 400px; /* Limit image size */
        margin-left: auto;
        margin-right: auto;
    }
    #partners-teaser ul {
        display: inline-block; /* Center list */
        text-align: left;
    }

    /* Stack contact grid */
    .contact-grid {
        grid-template-columns: 1fr; /* Ensure single column */
        gap: 2rem; /* Adjust gap as needed */
        /* Remove potentially problematic overrides */
        /* justify-items: stretch;  <-- Removed */
        /* align-items: stretch; <-- Removed */
    }
    
    /* Force contact form container to take full width and remove constraints */
    .contact-form-container {
        width: 100%;
        max-width: none; /* Explicitly remove any max-width limit */
        padding: 1rem 0; /* Add vertical padding, remove horizontal */
        margin: 0; /* Reset margin */
        /* Remove potentially problematic overrides */
        /* justify-self: stretch; <-- Removed */
        /* align-self: stretch; <-- Removed */
    }
    
    /* Adjust internal form padding */
    .contact-form {
        padding: 1.5rem; /* Consistent internal padding */
        margin: 0; /* Reset margin */
        width: 100%; /* Ensure form element itself is full width */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    /* Remove extra padding from contact info */
    .contact-info {
        padding: 0; /* Remove added padding */
        margin: 0;
    }
}

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

    .btn {
        padding: 0.8rem 1.4rem;
        width: 100%; /* Make buttons full width on small screens */
        text-align: center;
    }

    .contact-form button[type="submit"] {
        width: 100%; /* Full width on small screens */
    }
}

/* --- Homepage Specific Styles --- */

/* Enhanced Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite alternate;
}

.hero::before {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(233, 63, 43, 0) 70%);
}

.hero::after {
    bottom: -70px;
    left: -70px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(245, 153, 45, 0) 70%);
    animation-delay: 2s;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.hero .subheadline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero .btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.2rem;
    box-shadow: 0 8px 20px rgba(233, 63, 43, 0.4);
    border-radius: calc(var(--border-radius) + 2px);
}

.hero .btn:hover {
    background-color: var(--secondary-darker);
    border-color: var(--secondary-darker);
    color: var(--white);
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(233, 63, 43, 0.5);
}

/* Value Propositions */
#value-propositions {
    background-color: var(--off-white);
    padding: 5rem 0;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.value-prop {
    background-color: var(--white);
    padding: 2.5rem 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    border: none;
    transition: all var(--transition-speed) ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.value-prop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,0) 100%);
    transition: height 0.5s ease;
    z-index: -1;
}

.value-prop:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--gold);
}

.value-prop:hover::before {
    height: 100%;
}

.value-prop h3 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
}

.value-prop-icon {
    margin-bottom: 1rem; /* Space between icon and heading */
    color: var(--primary-color); /* Icon color */
    /* If you want icons to be smaller or larger, adjust width/height here 
       and ensure the SVG viewBox allows scaling. Current SVGs are 48x48. */
    /* width: 40px; */
    /* height: 40px; */
}

.value-prop-icon svg {
    display: block; /* Removes extra space under SVG if it were inline */
    margin-left: auto; /* Centers the SVG if its container is wider */
    margin-right: auto; /* Centers the SVG if its container is wider */
}

.value-prop h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

.value-prop p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.value-prop:nth-child(2) {
    border-top-color: var(--secondary-color);
}

.value-prop:nth-child(3) {
    border-top-color: var(--accent-color);
}

/* Machine Cards */
.machine-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.machine-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    padding: 2.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: none;
    z-index: 1;
}

.machine-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.4s ease;
    z-index: -1;
}

.machine-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-luxury);
    border-color: var(--gold);
}

.machine-card:hover::after {
    height: 100%;
}

.machine-card-icon {
    margin-bottom: 1rem; /* Space between icon and heading */
    color: var(--primary-color); /* Icon color - can be overridden if needed */
    text-align: center; /* Centers the SVG if it's smaller than the div */
}

.machine-card-icon svg {
    display: inline-block; /* Allows text-align center to work */
    /* width: 40px; /* Adjust size if needed */
    /* height: 40px; /* Adjust size if needed */
}

.machine-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.machine-card p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
    flex-grow: 1;
    line-height: 1.7;
}

.machine-card .overlay-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--gold);
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
    margin-top: auto;
}

/* Partners Teaser */
#partners-teaser {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

/* Added rule to constrain image size on larger screens */
#partners-teaser .partner-image-placeholder {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto; /* Center the container if grid doesn't */
}

/* Ensure image scales within its container */
#partners-teaser .partner-image-placeholder img {
    width: 100%;
    height: auto;
    display: block; /* Prevents extra space below */
    border-radius: var(--border-radius); /* Keep existing styling */
    box-shadow: var(--box-shadow-medium); /* Keep existing styling */
}

#partners-teaser::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 0%, rgba(255, 171, 0, 0) 70%);
    animation: float 8s ease-in-out infinite;
}

#partners-teaser h2,
#partners-teaser h3 {
    color: var(--white);
}

#partners-teaser h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

#partners-teaser h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

#partners-teaser h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#partners-teaser p {
    color: var(--white);
    opacity: 0.95;
    font-size: 1.1rem;
    line-height: 1.7;
}

#partners-teaser .btn {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--text-color);
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(255, 171, 0, 0.3);
}

#partners-teaser .btn:hover {
     background-color: var(--accent-darker);
     border-color: var(--accent-darker);
     color: var(--white);
     box-shadow: 0 12px 25px rgba(255, 171, 0, 0.4);
}

#partners-teaser ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

#partners-teaser li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

#partners-teaser li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* Vision Teaser */
#vision-teaser {
    text-align: center;
    background-color: var(--off-white);
    padding: 5rem 0;
}

#vision-teaser h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

#vision-teaser h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

#vision-teaser blockquote {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--dark-gray);
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    text-align: left;
    background-color: var(--white);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--box-shadow-light);
    position: relative;
}

#vision-teaser blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold-light);
    font-family: Georgia, serif;
    opacity: 0.4;
    z-index: 1;
}

/* Contact Teaser */
#contact-teaser {
    text-align: center;
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

#contact-teaser::before,
#contact-teaser::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

#contact-teaser::before {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
}

#contact-teaser::after {
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: var(--accent-color);
}

#contact-teaser h2 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

#contact-teaser h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

#contact-teaser p {
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Add float animation */
@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* --- Page Specific Styles --- */

/* Generic Page Hero (used on subpages) */
.page-hero {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 0;
    background-color: var(--light-gray);
    border-bottom: 1px solid #dee2e6;
}
.page-hero h1 {
    margin-bottom: 0.5rem;
}
.page-hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-weight: 400;
}
.page-hero p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--dark-gray);
    opacity: 0.9;
}

/* Modifier for dark page hero backgrounds */
.page-hero-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-color: var(--primary-darker);
}

.page-hero-primary h1,
.page-hero-primary h2,
.page-hero-primary p,
.page-hero-primary strong {
    color: var(--white); /* Ensure all text is white */
}

.page-hero-primary h2 {
    opacity: 0.9; /* Slightly fade subtitle */
}

/* --- About Page --- */

/* Founder section was removed */

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    align-items: start;
}

.mission-vision-grid h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

#mission-vision {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius); /* Rounded corners */
    margin: 0 1rem; /* Add horizontal margin */
    padding: 3rem 2rem; /* Inner padding */
}
#mission-vision h2 {
    color: var(--white);
}
#mission-vision p {
    color: var(--white);
    opacity: 0.95;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.value-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}

.value-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.value-item p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    flex-grow: 1;
}


/* --- Vision Page --- */
#vision-statement {
    text-align: center;
}
#vision-statement p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#business-model {
    background-color: var(--primary-color); /* Use primary blue */
    color: var(--white);
    border-radius: var(--border-radius);
    margin: 0 1rem;
    padding: 3rem 2rem;
}
#business-model h2 {
    color: var(--white);
}
#business-model p,
#business-model li {
    color: var(--white);
    opacity: 0.95;
}

#business-model ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: inline-block;
    text-align: left;
}

#business-model li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

#business-model li::before {
    content: '\2713'; /* Checkmark */
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.roadmap-timeline {
    margin-top: 2rem;
    position: relative;
}

.roadmap-phase {
    background: var(--white);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent-color); /* Orange border */
    box-shadow: var(--box-shadow-light);
    text-align: left;
    transition: box-shadow var(--transition-speed) ease;
}
.roadmap-phase:hover {
    box-shadow: var(--box-shadow-medium);
}

.roadmap-phase h4 {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap; /* Allow status to wrap on small screens */
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem; /* Space between title and status */
    font-size: 1.3rem;
}

.roadmap-phase ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.roadmap-phase li {
    margin-bottom: 0.3rem;
}

.status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    color: var(--white);
    white-space: nowrap;
}

.status.complete {
    background-color: var(--primary-color); /* Blue for complete */
    color: var(--white);
}
.status.current {
    background-color: var(--accent-color); /* Orange for current */
    color: var(--text-color);
}
.status.planned {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

#sustainability {
    background-color: var(--light-gray);
}
#sustainability .container {
    max-width: 800px;
    text-align: center;
}
#sustainability ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem auto 0 auto;
    text-align: left;
    display: inline-block;
}
#sustainability li {
    margin-bottom: 0.5rem;
}


/* --- Machines Page --- */
.machine-type-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem; /* Increased gap */
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem 0; /* Add padding */
    border-bottom: 1px solid #e9ecef; /* Separator line */
}
.machine-type-detail:last-of-type {
    border-bottom: none; /* No border on last item */
}

/* Alternate layout for even items */
.machine-type-detail:nth-of-type(even) {
     grid-template-columns: 1.5fr 1fr;
}

.machine-type-detail:nth-of-type(even) .machine-image-placeholder {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.machine-text-content {
    text-align: left;
}

.machine-type-detail h2 {
    margin-bottom: 0.5rem;
}

.machine-type-detail h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color); /* Use blue for features heading */
    font-weight: 600;
}

.machine-type-detail ul {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.machine-type-detail li {
    margin-bottom: 0.3rem; /* Increased spacing */
}

.machine-type-detail strong { /* Ideal for: text */
    font-family: var(--font-primary);
    color: var(--accent-color); /* Orange highlight */
    font-weight: 600;
}

.machine-image-placeholder img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium);
    width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: saturate(1.05);
}
.machine-image-placeholder img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    filter: saturate(1.2) brightness(1.05);
}

/* --- Service Features Section --- */
#service-features {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

#service-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 100%;
    animation: shimmer 2.5s infinite;
    pointer-events: none;
}

#service-features .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

#service-features .section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

#service-features .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-accent);
    border-radius: 2px;
}

#service-features .section-title p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.service-feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1 !important; /* Ensure cards are visible regardless of animation state */
    transform: none !important; /* Reset any transform that might hide the card */
}

.service-feature-card.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.service-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.service-feature-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.2);
}

.service-feature-card.premium::before {
    background: linear-gradient(to right, var(--gold-accent), var(--primary-color), var(--gold-accent));
    height: 5px;
    animation: shimmerBorder 2s infinite linear;
    background-size: 200% 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    transition: all 0.3s ease;
}

.service-icon.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(218, 165, 32, 0.2));
}

.service-icon.gold svg {
    fill: var(--gold-accent);
}

.service-feature-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.service-feature-card:hover .service-icon svg {
    fill: var(--white);
}

.service-feature-card:hover .service-icon.gold {
    background: linear-gradient(135deg, var(--gold-accent), #d4af37);
}

.service-feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    position: relative;
    display: inline-block;
}

.service-feature-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.service-feature-card.premium h3 {
    background: linear-gradient(to right, var(--primary-color), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

@media (max-width: 768px) {
    .service-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #service-features {
        padding: 3rem 0;
    }
    
    .service-feature-card {
        padding: 1.5rem;
    }
}

/* --- Partners Page --- */
#partner-benefits {
    background-color: var(--light-gray);
}

.benefits-grid,
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Adjusted basis */
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.benefit-item,
.location-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid #e9ecef;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.benefit-item:hover,
.location-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    border-color: var(--accent-color);
}

#ideal-locations {
    background-color: var(--white);
}
#ideal-locations .location-item {
     background: var(--light-gray);
     border-color: #dee2e6;
}
#ideal-locations .location-item:hover {
     border-color: var(--primary-color); /* Blue border on hover */
}

.benefit-item h4,
.location-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color); /* Blue headings */
}

.benefit-item p,
.location-item p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    flex-grow: 1;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    counter-reset: step-counter;
    align-items: stretch;
}

.step {
    flex: 1 1 180px;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid #dee2e6;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-medium);
}

.step h4 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color); /* Orange number */
    color: var(--white);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.step ul {
    list-style: disc;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
    flex-grow: 1;
}

.step li {
    margin-bottom: 0.2rem;
}

#partner-interest-form {
    background-color: var(--light-gray);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.form-container h2,
.form-container p:first-of-type {
    text-align: center;
}


.contact-form {
    margin-top: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-medium); /* Slightly stronger shadow for forms */
    border: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(58, 145, 189, 0.15);
    transform: translateY(-3px);
    background-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-color: var(--white);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233a91bd%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); /* Updated arrow color */
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%;
    background-size: 0.65em auto;
    padding-right: 2.5em;
}

.form-group.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group.privacy-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.2em;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.form-group.privacy-checkbox label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-family: var(--font-secondary);
    margin-bottom: 0;
}

.form-group.privacy-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-group.privacy-checkbox a:hover {
    color: var(--accent-color);
}

.contact-form button[type="submit"] {
    width: auto;
    padding: 0.8rem 2rem;
    /* Using primary blue for main form submit */
}


/* --- Products Page --- */
#product-categories {
    background-color: var(--light-gray);
}

.product-category-grid,
.quality-promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
}

.product-category,
.quality-promise {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid #e9ecef;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.product-category:hover,
.quality-promise:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
    border-color: var(--accent-color);
}


.product-category h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--primary-color);
}

.percentage {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-left: 0.5rem;
    white-space: nowrap;
}

.quality-promise h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color); /* Blue heading */
}

.product-category p,
.quality-promise p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    flex-grow: 1;
}

#product-customization {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
    color: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: var(--border-radius);
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
}
#product-customization::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(233, 63, 43, 0.15); /* Red accent */
}
#product-customization::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(245, 153, 45, 0.15); /* Orange accent */
}
#product-customization h2,
#product-customization h4 {
    color: var(--white);
}
#product-customization h4 {
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}
#product-customization p {
    color: var(--white);
    opacity: 0.95;
}

#product-customization .customization-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

#quality-standards {
    background-color: var(--light-gray);
}


/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info,
.contact-form-container {
    text-align: left;
}

.contact-info h2,
.contact-form-container h2 {
    margin-bottom: 1.5rem;
}

.contact-info address {
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.contact-info strong {
    font-family: var(--font-primary);
    color: var(--primary-color);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: underline; /* Underline links in contact info */
    transition: color var(--transition-speed) ease;
}
.contact-info a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.contact-info h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color); /* Blue */
}

.contact-form-container p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.contact-form-container small a {
    text-decoration: underline;
}

/* --- Legal Pages Specific Styles --- */
#legal-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

#legal-content h4 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#legal-content p,
#legal-content li {
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

#legal-content strong {
    color: var(--text-color);
    font-weight: 600;
}

#legal-content em {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Add animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Animation Utility Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

/* Delay classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* --- Animation Classes --- */
/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--animation-timing) ease, 
                transform var(--animation-timing) ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--animation-timing) ease, 
                transform var(--animation-timing) ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--animation-timing) ease, 
                transform var(--animation-timing) ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale animation */
.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity var(--animation-timing) ease, 
                transform var(--animation-timing) ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Rotate and scale animation for icons */
.rotate-in {
    opacity: 0;
    transform: rotate(-15deg) scale(0.8);
    transition: opacity var(--animation-timing) ease, 
                transform var(--animation-timing) ease;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Pulse animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(58, 145, 189, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(58, 145, 189, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(58, 145, 189, 0);
    }
}

.btn.pulse {
    animation: pulse 1.5s infinite;
}

.btn-secondary.pulse {
    animation: pulse-secondary 1.5s infinite;
}

@keyframes pulse-secondary {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 63, 43, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(233, 63, 43, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(233, 63, 43, 0);
    }
}

.btn-accent.pulse {
    animation: pulse-accent 1.5s infinite;
}

@keyframes pulse-accent {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 153, 45, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 153, 45, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 153, 45, 0);
    }
}

/* Apply staggered delays to grouped elements */
.stagger-animation > *:nth-child(1) { transition-delay: calc(var(--stagger-delay) * 0); }
.stagger-animation > *:nth-child(2) { transition-delay: calc(var(--stagger-delay) * 1); }
.stagger-animation > *:nth-child(3) { transition-delay: calc(var(--stagger-delay) * 2); }
.stagger-animation > *:nth-child(4) { transition-delay: calc(var(--stagger-delay) * 3); }
.stagger-animation > *:nth-child(5) { transition-delay: calc(var(--stagger-delay) * 4); }
.stagger-animation > *:nth-child(6) { transition-delay: calc(var(--stagger-delay) * 5); }

/* --- Enhanced hover effects --- */
.value-prop:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--gold);
}

.machine-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-luxury);
    border-color: var(--gold);
}

/* Enhanced header animation */
.main-header {
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.main-header.scrolled {
    background: var(--bg-white); /* Solid white background, no transparency */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile nav animation */
.mobile-nav-toggle {
    transition: transform 0.3s ease;
}

.mobile-nav-toggle.active {
    transform: rotate(90deg);
}

/* Mobile menu animation */
.main-nav {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

@media (max-width: 768px) {
    .main-nav {
        transform: translateY(-100%);
        opacity: 0;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form notification styles */
.form-notifications {
    margin-bottom: 2rem;
}

.message-success,
.message-error {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    animation: scaleIn 0.4s ease-out forwards;
    box-shadow: var(--box-shadow-light);
    margin-bottom: 1.5rem;
}

.message-success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 5px solid #4caf50;
}

.message-success h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.message-success p {
    color: #1b5e20;
}

.message-error {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-left: 5px solid #f44336;
}

.message-error h3 {
    color: #c62828;
    margin-bottom: 0.5rem;
}

.message-error p {
    color: #b71c1c;
}

/* Loading spinner for form submission */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form status messages */
.form-status {
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  animation: fade-in 0.3s ease forwards;
}

.form-status.is-loading {
  background: var(--light-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
}

.form-status .loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.form-success, .form-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
}

.form-success {
  background: linear-gradient(120deg, rgba(78, 215, 131, 0.1), rgba(56, 173, 100, 0.1));
  border: 1px solid rgba(78, 215, 131, 0.3);
  color: #2a9d5c;
  box-shadow: 0 4px 12px rgba(78, 215, 131, 0.1);
}

.form-error {
  background: linear-gradient(120deg, rgba(239, 83, 80, 0.1), rgba(229, 57, 53, 0.1));
  border: 1px solid rgba(239, 83, 80, 0.3);
  color: #e53935;
  box-shadow: 0 4px 12px rgba(239, 83, 80, 0.1);
}

.form-success svg, .form-error svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.form-success h3, .form-error h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.form-success p, .form-error p {
  margin: 0;
  font-size: 0.95rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form input error highlighting */
input.error, textarea.error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2) !important;
  background-color: rgba(229, 57, 53, 0.05) !important;
}

input[type="checkbox"].error + label {
  color: #e53935 !important;
  font-weight: 500;
}

input[type="checkbox"].error + label:before {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2) !important;
}

.form-group.privacy-checkbox {
  position: relative;
}

/* Debug details styling */
.form-error details {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: left;
}

.form-error details summary {
  cursor: pointer;
  color: rgba(229, 57, 53, 0.7);
  font-size: 0.8rem;
}

.form-error details pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-top: 0.5rem;
}

/* Field validation error messages */
.field-error {
  color: #e53935;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* Add a red border to invalid input fields */
input.error, 
select.error,
textarea.error {
  border-color: #e53935 !important;
  background-color: rgba(229, 57, 53, 0.05);
}

/* Special handling for checkbox errors */
input[type="checkbox"].error + label {
  color: #e53935;
}

/* ===== Mobile Navigation Improvements ===== */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        color: var(--primary-color);
        z-index: 1001;
        position: relative;
        transition: all 0.3s ease;
        padding: 0;
        width: 40px;
        height: 40px;
        text-align: center;
    }
    
    .mobile-nav-toggle:focus {
        outline: 2px solid var(--primary-color);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        text-align: left;
        padding: 0;
    }

    .main-nav li {
        margin: 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .main-nav.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.1s * var(--order));
    }

    .main-nav li:nth-child(1) { --order: 1; }
    .main-nav li:nth-child(2) { --order: 2; }
    .main-nav li:nth-child(3) { --order: 3; }
    .main-nav li:nth-child(4) { --order: 4; }
    .main-nav li:nth-child(5) { --order: 5; }
    .main-nav li:nth-child(6) { --order: 6; }
    .main-nav li:nth-child(7) { --order: 7; }
    .main-nav li:nth-child(8) { --order: 8; }
    .main-nav li:nth-child(9) { --order: 9; }

    .main-nav a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }

    /* Close menu when clicking outside */
    body::after {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        transition: opacity 0.3s, visibility 0.3s;
        pointer-events: none;
    }

    body.menu-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
} 

/* Direct fix for contact form mobile alignment issues */
@media (max-width: 992px) {
    /* Completely reset contact grid */
    .contact-grid {
        display: block;
        width: 100%;
        padding: 0;
    }
    
    /* Reset container issues */
    .contact-form-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Add padding to headings and paragraphs in the contact form container */
    .contact-form-container h2,
    .contact-form-container p {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        text-align: left !important;
    }
    
    /* Center form and improve spacing */
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1.5rem !important;
        box-sizing: border-box !important;
    }
    
    /* Add padding to contact info section */
    .contact-info {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Increase touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Make button more tappable */
    .contact-form button[type="submit"] {
        width: 100% !important;
        margin-top: 1rem !important;
        padding: 15px !important;
        font-size: 16px !important;
    }
} 

/* Form Success and Error Messages */
.form-status {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-status .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-success {
    background-color: rgba(46, 204, 113, 0.15);
    border-left: 5px solid #2ecc71;
    color: #27ae60;
    padding: 25px;
}

.form-success svg {
    display: block;
    margin: 0 auto 15px;
    color: #2ecc71;
    width: 40px;
    height: 40px;
}

.form-success h3 {
    color: #27ae60;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.form-success p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-follow-up {
    font-style: italic;
    color: #555;
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
}

.form-error {
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 5px solid #e74c3c;
    color: #c0392b;
    padding: 25px;
}

.form-error svg {
    display: block;
    margin: 0 auto 15px;
    color: #e74c3c;
    width: 40px;
    height: 40px;
}

.form-error h3 {
    color: #c0392b;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.form-error p {
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Status Messages */
.form-status {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.form-status .loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-error {
    background-color: rgba(231, 76, 60, 0.15);
    border-left: 5px solid #e74c3c;
    color: #c0392b;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-error svg {
    display: block;
    margin: 0 auto 15px;
    color: #e74c3c;
    width: 40px;
    height: 40px;
}

.form-error h3 {
    color: #c0392b;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.form-error p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.error-details {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 10px;
    word-break: break-word;
}

.form-success {
    background-color: rgba(46, 204, 113, 0.15);
    border-left: 5px solid #2ecc71;
    color: #27ae60;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-success svg {
    display: block;
    margin: 0 auto 15px;
    color: #2ecc71;
    width: 40px;
    height: 40px;
}

.form-success h3 {
    color: #27ae60;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.form-success p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Form field error styling */
input.error, textarea.error, select.error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

input[type="checkbox"].error + label {
    color: #e74c3c !important;
    font-weight: 500;
}

/* Form status/notification styling improvements */
.form-status {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.form-status.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.form-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Form field error state */
input.error, 
textarea.error, 
select.error {
    border-color: #c62828 !important;
    background-color: rgba(198, 40, 40, 0.05);
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.form-group.error label {
    color: #c62828;
}

/* Checkbox error state */
.form-group.privacy-checkbox.error {
    background-color: rgba(198, 40, 40, 0.05);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid #c62828;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-2px, 0, 0); }
    40%, 60% { transform: translate3d(2px, 0, 0); }
}

/* --- How it Works Section --- */
#how-it-works {
    padding: var(--space-lg) 0;
}

#how-it-works h2 {
    margin-bottom: var(--space-md); /* More space after the main title */
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.step {
    background-color: var(--bg-white);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center; /* Center text within each step */
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.8rem;
    font-weight: 700;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto var(--space-sm) auto; /* Center the number circle */
    display: flex; /* For centering content if not perfectly square */
    align-items: center;
    justify-content: center;
}

.step h4 {
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem; /* Slightly larger step titles */
}

.step p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

.step p strong {
    color: var(--text-dark);
}

/* Responsive adjustments for the How it Works grid if needed */
@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

    .step {
        margin-bottom: var(--space-md);
    }
}