/*
Stylesheet: Main CSS - Bauhaus Minimalist Design
Purpose: Ultra minimalist microtype system with pixel-perfect typography
Last Modified: September 30, 2025
By: AI Assistant
Completeness: 85%
*/

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 125px; /* Updated to match new 125px navigation height */
}

:root {
    /* Bauhaus Color Palette */
    --black: #000000;
    --white: #ffffff;
    --grey-light: #f0f0f0;
    --grey-medium: #848484;
    --grey-dark: #333333;
    --accent: #08B5AC;
    
    /* Typography Scale - Pixel Perfect */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    --font-size-xxl: 48px;
    --font-size-hero: 64px;
    
    /* Spacing System - 8px Grid */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    
    /* Layout */
    --container-max: 1200px;
    --grid-gap: var(--space-3);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.4;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 125px; /* Set navigation bar height to 125px */
    padding: var(--space-1) var(--space-6); /* Reduced to space-1 for tighter nav */
    border-bottom: 1px solid rgba(204, 204, 204, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    box-sizing: border-box;
    pointer-events: auto;
}

.header .logo {
    flex-shrink: 0;
}

.header .nav {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}

.logo-img {
    height: 100px; /* Reduced logo size to 100px */
    width: auto;
}

.logo-main-large {
    height: 100px; /* Reduced logo size to 100px */
    width: auto;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.logo-main-large:hover {
    opacity: 1;
}

.nav {
    display: flex;
    gap: var(--space-4);
    flex-shrink: 0;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    cursor: pointer;
}

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

/* Main Content */
.main {
    flex: 1;
    padding-top: 125px; /* Start content at 125px to account for new navigation height */
    padding-bottom: 0; /* Remove extra space below footer */
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Massive Hero Section */
.hero-massive {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top:0px;
    margin-bottom: var(--space-16);
    position: relative;
}

.massive-icon-container {
    width: 100vw;
    height: 40vh;
    background: var(--black);
    clip-path: inset(0);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-8);
    overflow: hidden;
}

.massive-icon {
    width: 80vw;
    height: auto;
    aspect-ratio: 1 / 1;
    opacity: 0.9;
    transition: opacity 0.6s ease;
    filter: contrast(1.2) brightness(1.1);
    animation: iconRotateFloat 300s linear infinite;
    object-fit: cover;
    object-position: center;
}


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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-4) var(--space-6);
    backdrop-filter: blur(15px);
    border-left: 3px solid var(--accent);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: var(--space-6);
    box-sizing: border-box;
}

.hero-title-minimal {
    font-size: calc(var(--font-size-hero) * 0.75);
    font-weight: 100;
    line-height: 1.1;
    margin-bottom: var(--space-2);
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--black);
    font-style: italic;
}

.year-box {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    padding: 4px 8px;
    font-style: normal;
    border-radius: 2px;
    margin: 0 4px;
}

.title-line {
    display: block;
    position: relative;
}

.hero-subtitle-minimal {
    font-size: var(--font-size-xs);
    font-weight: 200;
    color: var(--grey-dark);
    text-transform: lowercase;
    letter-spacing: 0.15em;
    margin-top: var(--space-1);
}

/* Shelf Divider */
.shelf-divider {
    width: 100%;
    margin-top: var(--space-6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.shelf-image {
    width: 100%;
    max-width: 1000px; /* Match content column width */
    height: auto;
    display: block;
    margin: 0 auto; /* Center the shelf image */
    text-align: center; /* Ensure horizontal centering */
}

/* Minimal Grid System */
.minimal-grid {
    width: 100%;
    max-width: 900px;
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

/* Rotating Squares Row */
.squares-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-1) var(--space-8);
    height: 40px;
    flex-shrink: 0;
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
}

.rotate-square {
    width: 25px;
    height: 25px;
    background: var(--accent);
    transition: all 0.4s ease-in;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rotate-square:hover {
    width: 35px;
    height: 35px;
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rotate-square:active {
    transform: rotate(360deg) scale(0.95);
}

.rotate-square:nth-child(2) {
    background: var(--black);
}

.rotate-square:nth-child(3) {
    background: var(--grey-dark);
}

.rotate-square:nth-child(4) {
    background: var(--accent);
}

/* Square Animations */
@keyframes squareBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(180deg); }
    50% { transform: scale(0.9) rotate(360deg); }
    75% { transform: scale(1.1) rotate(540deg); }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.4s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% { 
        transform: scale(0);
        opacity: 1;
    }
    100% { 
        transform: scale(2);
        opacity: 0;
    }
}

/* Rib Section */
.rib-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rib-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services-section {
    width: 100%;
    max-width: 1000px;
    margin: var(--space-3) auto var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2c2c2c; /* Charcoal background */
    padding: var(--space-6);
    border-radius: 20px;
}

.services-title {
    font-size: var(--font-size-hero);
    font-weight: 100;
    line-height: 1.1;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: white; /* White text on charcoal */
    font-style: italic;
    margin-bottom: var(--space-4);
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: var(--space-4);
    gap: var(--space-3);
    flex-wrap: wrap;
    background: var(--grey-light);
    border-radius: 20px;
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.service-box {
    background: var(--grey-light);
    color: var(--black);
    padding: var(--space-3) var(--space-4);
    text-align: center;
    flex: 1;
    min-width: 180px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 16px;
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.1),
        -6px -6px 12px rgba(255, 255, 255, 0.8);
    opacity: 0.7;
}

.service-box:hover {
    background: var(--grey-light);
    color: var(--black);
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.12),
        -8px -8px 16px rgba(255, 255, 255, 0.9);
}

.service-box.pressed {
    background: var(--grey-light);
    color: var(--black);
    opacity: 1;
    transform: translateY(2px);
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.15),
        inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.service-line-1,
.service-line-2 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: var(--font-size-sm);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-line-1 {
    margin-bottom: 2px;
}

.service-line-2 {
    font-size: var(--font-size-xs);
}

/* Services Description */
.services-description {
    margin-top: var(--space-6);
    max-width: 800px;
    text-align: center;
}

.services-description p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: white; /* White text on charcoal */
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.additional-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.service-option {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on charcoal */
    padding: var(--space-4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none; /* No glow by default */
    transition: all 0.3s ease;
}

.service-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5); /* Enhanced white glow on hover */
}

.service-option h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: white; /* White text on charcoal */
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-option p {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: white; /* White text on charcoal */
    margin-bottom: var(--space-3);
    opacity: 0.8;
}

.service-contact-btn {
    display: inline-block;
    background: white; /* White button on charcoal */
    color: #2c2c2c; /* Charcoal text */
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.service-contact-btn:hover {
    background: transparent;
    color: white; /* White text on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* AI Showcase Section */
.ai-showcase {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-6) 0;
    margin-left: 80px;
    margin-right: 80px;
    max-width: calc(100% - 160px);
    text-align: center;
}

/* Tablet breakpoint for recent work */
@media (max-width: 1024px) and (min-width: 769px) {
    .ai-showcase {
        margin-left: 60px;
        margin-right: 60px;
        max-width: calc(100% - 120px);
    }
    .ai-container {
        height: 400px;
    }
}

.showcase-title {
    font-size: var(--font-size-hero);
    font-weight: 100;
    line-height: 1.1;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--black);
    font-style: italic;
    margin-bottom: var(--space-6);
    text-align: center;
}

.ai-container {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: var(--space-8);
    position: relative;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    align-items: start;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.ai-container:hover {
    transform: translateY(-6px);
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.4),
        -12px -12px 24px rgba(255, 255, 255, 0.15);
}

/* Squaxbox Container */
.squaxbox-container {
    background: linear-gradient(135deg, #105476 0%, #65869F 50%, #030305 100%);
    margin-top: var(--space-6);
}

/* DataGuardX Container */
.dataguardx-container {
    background: linear-gradient(135deg, #060708 0%, #02528C 50%, #57F2FC 100%);
    margin-top: var(--space-6);
}

/* Product Description */
.product-description {
    position: absolute;
    top: 8px;
    left: 8px;
    text-align: left;
    z-index: 10;
    grid-column: 1;
    grid-row: 1;
}

.product-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-1) var(--space-2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}


.product-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    grid-column: 1;
    grid-row: 2;
    height: 100%;
    width: 100%;
    transform: translateY(-10px);
}

.product-logo-img {
    height: 80px;
    width: auto;
    opacity: 1;
    filter: brightness(0) invert(1);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ai-head {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.ai-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    opacity: 1;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
}

/* Contact Section */
.contact-section {
    width: 100%;
    max-width: 1000px;
    margin: var(--space-4) auto 0; /* Reduced from space-8 to space-4 */
    padding: 50px 0 100px 0; /* 50px top padding, 100px bottom padding */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-title {
    font-size: var(--font-size-hero);
    font-weight: 100;
    line-height: 1.1;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--black);
    font-style: italic;
    margin-bottom: var(--space-6);
    text-align: center;
}

.contact-content {
    display: flex;
    gap: var(--space-8);
    width: 100%;
    max-width: 1200px; /* Increased max-width */
    align-items: flex-start;
    justify-content: flex-start; /* Changed from space-between to flex-start */
}

.contact-info {
    flex: 0 0 200px; /* Reduced from 260px to 200px */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid var(--grey-light);
}

.contact-item {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h3 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-item p {
    font-size: 0.8rem;
    color: var(--grey-dark);
    line-height: 1.2;
    margin: 0;
}

.contact-item p br {
    line-height: 1.6;
}

.uk-flag {
    width: 20px;
    height: 15px;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

.go-green {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.go-green h3 {
    color: #2e7d32;
    font-weight: 700;
    margin-bottom: 0.125rem;
    font-size: 0.7rem;
}

.go-green p {
    color: #388e3c;
    font-style: italic;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.2;
}

.contact-form {
    flex: 1;
    width: 100%; /* Ensure form takes full available width */
    display: flex;
    flex-direction: column;
    gap: var(--space-5); /* Even more gap between form elements */
    padding: var(--space-8); /* Much more padding for desktop */
    min-height: 500px; /* Make the form block taller */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid var(--grey-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure form groups take full width */
}

.form-group input,
.form-group textarea {
    width: 100%; /* Ensure full width */
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--grey-medium);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Include padding in width calculation */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(78, 208, 220, 0.2);
}

.form-group textarea {
    min-height: 150px; /* Make textarea taller to use the form height */
    resize: vertical;
}

.submit-btn {
    padding: var(--space-3) var(--space-4);
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    background: #3bb5c1;
    transform: translateY(-1px);
}

/* Fly-ups */
.flyup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.flyup.active {
    display: flex;
}

.flyup-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.flyup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--grey-light);
}

.flyup-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-size-xxl);
    color: var(--grey-dark);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: var(--grey-light);
}

.flyup-body {
    padding: var(--space-4);
}

.flyup-body h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--black);
    margin: var(--space-4) 0 var(--space-2) 0;
}

.flyup-body p {
    font-size: var(--font-size-base);
    color: var(--grey-dark);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}


/* Words Row */
.words-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: var(--space-4) auto 0;
    padding: 0 var(--space-4);
}

.thin-word {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: var(--font-size-base);
    font-weight: 100;
    color: var(--grey-dark);
    text-transform: lowercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.thin-word:hover {
    color: var(--accent);
}

.grid-title {
    font-size: var(--font-size-xl);
    font-weight: 100;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid-text {
    font-size: var(--font-size-md);
    font-weight: 300;
    line-height: 1.6;
}

/* Brand Showcase */
.brand-showcase {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.logo-showcase {
    height: var(--space-5);
    width: auto;
    margin-bottom: var(--space-2);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-showcase:hover {
    opacity: 1;
}

/* Icon Display */
.icon-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.icon-variant {
    height: var(--space-6);
    width: auto;
    filter: contrast(1.1);
    transition: transform 0.3s ease;
}

.icon-variant:hover {
    transform: scale(1.05);
}

.micro-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

/* Pixel Art Elements */
.pixel-art {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 64px;
    height: 64px;
    margin: var(--space-3) auto;
}

.pixel {
    background: var(--black);
    aspect-ratio: 1;
    transition: background 0.3s ease;
}

.pixel:nth-child(odd) {
    background: var(--accent);
}

/* Geometric Elements */
.line {
    width: 100%;
    height: 1px;
    background: var(--black);
    margin: var(--space-2) 0;
}

.square {
    width: 32px;
    height: 32px;
    background: var(--black);
    margin: var(--space-2) 0;
}

/* Orange Welcome Dropdown */
.welcome-dropdown {
    position: fixed;
    top: 140px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
    z-index: 2001;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInFromRight 0.5s ease-out;
    border: 2px solid #ff8c42;
    display: block; /* Ensure it's visible by default */
    opacity: 1; /* Ensure it's visible */
    transform: translateX(0); /* Ensure it's in position */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth dismiss animation */
}

/* Welcome dropdown dismiss animation */
.welcome-dropdown.dismissing {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.welcome-content {
    padding: 1.5rem;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.welcome-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.close-welcome {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.close-welcome:hover {
    background: rgba(255, 255, 255, 0.3);
}

.welcome-body p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.welcome-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.welcome-close-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.welcome-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Enhanced Star Rating System */
.rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.rating-header {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-guidance {
    text-align: center;
    margin-bottom: 0.5rem;
}

.rating-prompt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 400px;
}

.star-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 60px;
    position: relative;
    pointer-events: auto;
    z-index: 10;
}

.star-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.star-container.active {
    background: rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

.star-container.rated {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.star {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-block;
    line-height: 1;
}

.star:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.star.active {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.star.rated {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.star-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.star-container:hover .star-label {
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.star-container.active .star-label {
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.star-container.rated .star-label {
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.star-container:hover .star {
    color: #ffd700;
    transform: scale(1.1);
}

/* Enhanced Feedback Section */
.feedback-section {
    width: 100%;
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 60vh;
    overflow-y: auto;
}

.feedback-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.feedback-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feedback-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 400;
}

/* Enhanced Comment Section */
.comment-section {
    width: 100%;
    margin-top: 1rem;
}

.comment-guidance {
    text-align: center;
    margin-bottom: 1rem;
}

.comment-prompt {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.comment-suggestions {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
    line-height: 1.3;
}

/* Parameter Section */
.parameter-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.parameter-prompt {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    text-align: center;
}

.parameter-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    max-width: 280px;
    margin: 0 auto;
}

.parameter-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.parameter-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.parameter-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #ff6b35;
    cursor: pointer;
}

.parameter-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.parameter-option:hover .parameter-label {
    color: rgba(255, 255, 255, 0.95);
}

.parameter-option input:checked + .parameter-label {
    color: #ffd700;
    font-weight: 500;
}

#rating-comment {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    max-height: 100px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#rating-comment::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#rating-comment:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.feedback-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.comment-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.submit-feedback-btn, .skip-feedback-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-feedback-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.submit-feedback-btn:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.skip-feedback-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skip-feedback-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.submit-rating-btn, .skip-comment-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.submit-rating-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.submit-rating-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.skip-comment-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.skip-comment-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: #ffffff;
    margin-top: auto;
    position: relative;
    z-index: 1;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.contact-shelf {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-4);
}

.contact-shelf .shelf-image {
    width: 100%;
    max-width: 1000px; /* Match content column width */
    height: auto;
    object-fit: cover;
    display: block;
    transform: rotate(180deg);
    margin: 0 auto; /* Center the shelf image */
    text-align: center; /* Ensure horizontal centering */
}

.footer-shelf {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.footer-shelf .shelf-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.footer-upper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
    object-position: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info p {
    font-size: 0.875rem;
    color: #333333;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.address p {
    font-size: 0.875rem;
    color: #333333;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.uk-seal {
    height: 84px;
    width: auto;
}

.company-registration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.company-registration p {
    font-size: 0.75rem;
    color: #666666;
    margin: 0;
    line-height: 1.2;
    font-weight: 400;
}

.footer-lower {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright p {
    font-size: 0.75rem;
    color: #666666;
    margin: 0;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    font-size: 0.75rem;
    color: #666666;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #333333;
}

/* Responsive Design */
@media (max-width: 900px) {
    /* Contact Content Responsive - Start stacking earlier */
    .contact-content {
        flex-direction: column;
        gap: var(--space-4);
        max-width: 100%;
    }
    
    .contact-info {
        flex: none;
        width: 100%;
        padding: 0.75rem;
        gap: 0.375rem;
        margin-bottom: 1rem;
    }
    
    /* Contact Form Responsive */
    .contact-form {
        padding: 2rem; /* Increased mobile padding */
        margin: 0;
    }
}

@media (max-width: 768px) {
    .massive-icon {
        width: 85vw;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
    
    .massive-icon-container {
        height: 35vh;
        min-height: 250px;
    }
    
    .hero-title {
        font-size: var(--font-size-xl);
    }
    
    /* Mobile Header Scaling */
    .services-title,
    .showcase-title,
    .contact-title {
        font-size: calc(var(--font-size-hero) * 0.6);
        line-height: 1.2;
        margin-bottom: var(--space-4);
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .grid-item--large {
        grid-column: span 1;
    }
    
    /* Mobile Services Description */
    .services-description {
        margin-top: var(--space-4);
        padding: 0 var(--space-2);
    }
    
    .services-description p {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }
    
    .additional-services {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        margin-top: var(--space-3);
    }
    
    .service-option {
        padding: var(--space-3);
    }
    
    .service-option h3 {
        font-size: var(--font-size-base);
    }
    
    .service-option p {
        font-size: var(--font-size-xs);
    }
    
    .service-contact-btn {
        padding: var(--space-1) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .header {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
        padding: var(--space-3) var(--space-4);
        height: auto; /* Allow header to grow on mobile */
        min-height: 125px; /* Maintain minimum height */
    }
    
    .header .logo {
        margin-bottom: var(--space-2);
    }
    
    .logo-img {
        height: 80px; /* Smaller logo on mobile */
    }
    
    .logo-main-large {
        height: 80px; /* Smaller logo on mobile */
    }
    
    .header .nav {
        gap: var(--space-3); /* Reduce gap on mobile */
    }
    
    .nav-link {
        font-size: var(--font-size-xs); /* Smaller text on mobile */
        padding: var(--space-1) var(--space-2);
    }
    
    /* Mobile Welcome Dropdown Optimization */
    .welcome-dropdown {
        top: 20px; /* Move closer to top on mobile */
        right: 10px; /* Reduce right margin */
        left: 10px; /* Add left margin for better mobile fit */
        max-width: calc(100vw - 20px); /* Full width minus margins */
        max-height: 70vh; /* Reduce height on mobile */
    }
    
    .welcome-content {
        padding: 1rem; /* Reduce padding on mobile */
    }
    
    .rating-section {
        margin-top: var(--space-3);
    }
    
    .star-container {
        margin: var(--space-1) 0; /* Reduce spacing between stars */
    }
    
    /* Mobile Main Content Adjustment */
    .main {
        padding-top: 140px; /* Account for flexible mobile header */
    }
    
    /* Recent Work Mobile Layout */
    .ai-showcase {
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        padding: 0 20px;
        margin-left: 40px;
        margin-right: 40px;
        max-width: calc(100% - 80px);
    }
    
    .ai-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        height: 400px;
        padding: var(--space-4);
        gap: var(--space-4);
        margin: 0;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .ai-container:hover {
        transform: translateY(-4px);
        box-shadow: 
            12px 12px 24px rgba(0, 0, 0, 0.4),
            -12px -12px 24px rgba(255, 255, 255, 0.15);
    }
    
    .squaxbox-container,
    .dataguardx-container {
        margin-top: 0;
    }
    
    .product-logos {
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        align-items: center;
        height: auto;
        width: 100%;
        transform: none;
        margin: 0;
        padding: 0;
    }
    
    .product-logo-img {
        position: static;
        transform: none;
        height: 60px;
        width: auto;
        margin: 0 auto;
    }
    
    .ai-head {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ai-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        opacity: 0.5;
        position: static;
        transform: none;
    }
    
    .product-description {
        position: static;
        grid-row: 1;
        text-align: center;
        margin-bottom: var(--space-2);
    }
    
    .product-description p {
        font-size: var(--font-size-xs);
        padding: var(--space-1);
    }
}

/* Small mobile breakpoint for recent work */
@media (max-width: 480px) {
    .ai-showcase {
        margin-left: 20px;
        margin-right: 20px;
        max-width: calc(100% - 40px);
        padding: 0 10px;
    }
    .ai-container {
        height: 400px;
    }
    .product-description {
        position: static;
        grid-row: 1;
        text-align: center;
        margin-bottom: var(--space-2);
    }
    
    .product-description p {
        font-size: calc(var(--font-size-xs) * 0.9);
        padding: calc(var(--space-1) * 0.8);
    }
    
    .product-logos {
        grid-row: 2;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    
    /* Contact Form Responsive - Additional mobile adjustments */
    .contact-form {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .contact-form button {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Footer Responsive */
    .footer-upper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        max-width: none;
    }
    
    .footer-logo {
        height: 50px;
        margin: 0 auto 1rem;
    }
    
    .uk-seal {
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .footer-lower {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .footer-right {
        align-items: center;
    }
    
    .company-registration {
        align-items: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    /* Contact Shelf Responsive */
    .contact-shelf,
    .contact-shelf-bottom {
        width: 100%;
        height: auto;
        max-height: 40px;
    }
    
    .footer-shelf {
        width: 100%;
        height: auto;
        max-height: 30px;
    }
}

/* Medium Mobile Screens */
@media (max-width: 600px) and (min-width: 481px) {
    .services-title,
    .showcase-title,
    .contact-title {
        font-size: calc(var(--font-size-hero) * 0.55);
        line-height: 1.15;
        margin-bottom: var(--space-4);
    }
    
    .hero-title-minimal {
        font-size: calc(var(--font-size-hero) * 0.6);
        line-height: 1.1;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-upper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .footer-center {
        grid-column: span 2;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: row;
        gap: var(--space-6);
    }
    
    .contact-info {
        flex: 0 0 250px;
        padding: var(--space-3);
    }
    
    .contact-form {
        padding: 2.5rem; /* Increased tablet padding */
        margin: 0;
    }
}

/* Mobile Small Screens */
@media (max-width: 480px) {
    /* Ultra-small mobile header optimization */
    .header {
        padding: var(--space-2) var(--space-3);
        min-height: 100px; /* Reduce height on very small screens */
    }
    
    .logo-img {
        height: 60px; /* Even smaller logo on very small screens */
    }
    
    .logo-main-large {
        height: 60px; /* Even smaller logo on very small screens */
    }
    
    .nav-link {
        font-size: 10px; /* Very small text on tiny screens */
        padding: var(--space-1);
    }
    
    .main {
        padding-top: 120px; /* Adjust for smaller header */
    }
    
    /* Ultra-small mobile welcome dropdown */
    .welcome-dropdown {
        top: 10px;
        right: 5px;
        left: 5px;
        max-width: calc(100vw - 10px);
        max-height: 60vh;
    }
    
    .welcome-content {
        padding: 0.75rem;
    }
    
    .star-container {
        margin: 0.25rem 0;
    }
    
    .massive-icon {
        width: 90vw;
        max-width: 400px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
    
    .massive-icon-container {
        height: 40vh;
        min-height: 200px;
    }
    
    /* Small Mobile Header Scaling */
    .services-title,
    .showcase-title,
    .contact-title {
        font-size: calc(var(--font-size-hero) * 0.45);
        line-height: 1.1;
        margin-bottom: var(--space-3);
        padding: 0 var(--space-2);
    }
    
    .hero-title-minimal {
        font-size: calc(var(--font-size-hero) * 0.5);
        line-height: 1.1;
        padding: 0 var(--space-2);
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.625rem;
    }
    
    .footer-upper {
        padding: 1.5rem 0.75rem;
    }
    
    .footer-lower {
        padding: 0.75rem;
    }
    
    .footer-copyright p,
    .footer-link {
        font-size: 0.7rem;
    }
    
    .contact-shelf,
    .contact-shelf-bottom,
    .footer-shelf {
        max-height: 25px;
    }
}

/* Contact Form Specific Responsive */
@media (max-width: 600px) {
    .contact-form {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-form button {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* Footer Contact Info Responsive */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-item {
        width: 100%;
    }
    
    .contact-item h3 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .contact-item p {
        font-size: 0.8rem;
    }
    
    .uk-flag {
        width: 16px;
        height: 12px;
        margin-left: 6px;
    }
    
    .go-green {
        padding: 0.375rem;
        margin-top: 0.125rem;
        margin-bottom: 0.5rem;
    }
    
    .go-green h3 {
        font-size: 0.65rem;
        margin-bottom: 0.125rem;
    }
    
    .go-green p {
        font-size: 0.7rem;
        line-height: 1.1;
    }
}

/* Large Screen Optimization */
@media (min-width: 1400px) {
    .header {
        padding: var(--space-4) var(--space-8);
    }
    
    .nav {
        gap: var(--space-6);
    }
}

/* Extra Large Screen Optimization */
@media (min-width: 1920px) {
    .header {
        padding: var(--space-4) var(--space-12);
    }
    
    .nav {
        gap: var(--space-8);
    }
}

/* Pixel Perfect Utilities */
.pixel-perfect {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Micro Animations */
@keyframes pixelGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pixel:hover {
    animation: pixelGlow 0.6s ease-in-out infinite;
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .header, .footer {
        display: none;
    }
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.confirmation-modal.active {
    display: flex;
}

.confirmation-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.confirmation-header h3 {
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-align: center;
}

.confirmation-body p {
    color: var(--grey-dark);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
    text-align: center;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirmation-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

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

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

.cancel-btn {
    background: var(--grey-light);
    color: var(--black);
}

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

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