@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --brand-color-1: #0f766e;
    --brand-color-2: #14b8a6;
    --brand-color-3: #5eead4;
    --brand-color-4: #99f6e4;
    --brand-color-5: #f0fdfa;
    --surface-color: #ffffff;
    --surface-color-rgb: 255, 255, 255;
    --border-color: #e5e7eb;
    --border-color-rgb: 229, 231, 235;

    /* Fonts */
    --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Space Mono', monospace;

    --juzu-white: #ffffff;
    --juzu-near-black: #0f172a;

    /* Functional Colors */
    --primary-color: var(--brand-color-1);
    --secondary-color: var(--brand-color-2);
    --tertiary-color: var(--brand-color-3);
    --accent-color-light: var(--brand-color-4);
    --accent-color-medium: var(--brand-color-3);

    --background-color: var(--brand-color-5);
    --section-bg-light: rgba(153, 246, 228, 0.1);
    --text-color: var(--juzu-near-black);
    --text-color-light: #334155;
    --text-on-primary: var(--juzu-white);
    --text-on-secondary: var(--juzu-white);
    --card-bg: var(--juzu-white);
    --footer-bg: var(--brand-color-1);
    --footer-text-color: var(--brand-color-5);

    /* Animation & Transition Timings */
    --transition-speed-fast: 0.2s;
    --transition-speed-medium: 0.4s;
    --transition-speed-slow: 0.7s;

    /* Transparency Variables */
    --brand-color-4_transparent: hsla(160, 84%, 89%, 0.85);
    --brand-color-1_hero_transparent: hsla(181, 77%, 26%, 0.95);
 

    /* Shadow Variables */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Light Mode Colors (Default) */
    --bg-primary: var(--brand-color-5);
    --bg-secondary: var(--juzu-white);
    --bg-accent: rgba(153, 246, 228, 0.1);
    --text-primary: var(--juzu-near-black);
    --text-secondary: #334155;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.98);
    --company-name-color: var(--juzu-near-black);
}

/* Dark Mode System Preference */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-accent: rgba(94, 234, 212, 0.05);
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --border-color: #334155;
        --card-bg: #1e293b;
        --card-border: rgba(94, 234, 212, 0.1);
        --shadow-color: rgba(0, 0, 0, 0.3);
        --header-bg: rgba(15, 23, 42, 0.98);
        --company-name-color: #e0f2fe;
        --surface-color: #1a1a1a;
        --surface-color-rgb: 26, 26, 26;
        --border-color: #333333;
        --border-color-rgb: 51, 51, 51;
    }
}

/* Explicit Dark Mode Class (for manual toggle) */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-accent: rgba(94, 234, 212, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --card-bg: #1e293b;
    --card-border: rgba(94, 234, 212, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(15, 23, 42, 0.98);
    --company-name-color: #e0f2fe;
    --surface-color: #1a1a1a;
    --surface-color-rgb: 26, 26, 26;
    --border-color: #333333;
    --border-color-rgb: 51, 51, 51;
}

/* Light Mode Class (to override system preference) */
[data-theme="light"] {
    --bg-primary: var(--brand-color-5);
    --bg-secondary: var(--juzu-white);
    --bg-accent: rgba(153, 246, 228, 0.1);
    --text-primary: var(--juzu-near-black);
    --text-secondary: #334155;
    --border-color: var(--brand-color-4);
    --card-bg: var(--juzu-white);
    --card-border: rgba(94, 234, 212, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.98);
    --company-name-color: var(--juzu-near-black);
}

/* Global Resets and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: #0d1b2a;
    background-image:
        linear-gradient(90deg, rgba(66, 134, 244, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(66, 134, 244, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 134, 244, 0.08) 2px, transparent 2px),
        linear-gradient(rgba(66, 134, 244, 0.08) 2px, transparent 2px);
    background-size: 
        20px 20px,
        20px 20px,
        100px 100px,
        100px 100px;
    background-position: center center;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

.company-name {
    font-family: var(--font-mono);
    color: var(--company-name-color);
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Header-specific company name styles */
#main-header .company-name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: color var(--transition-speed-medium) ease-in-out;
}

/* Light theme */
:root[data-theme="light"] #main-header .company-name {
    color: var(--juzu-near-black);
}

:root[data-theme="light"] #main-header .logo-mark rect,
:root[data-theme="light"] #main-header .logo-mark polygon {
    fill: var(--juzu-near-black);
}

/* Dark theme */
:root[data-theme="dark"] #main-header .company-name,
#main-header .company-name {  /* Default dark theme */
    color: #e0f2fe;
}

:root[data-theme="dark"] #main-header .logo-mark rect,
:root[data-theme="dark"] #main-header .logo-mark polygon,
#main-header .logo-mark rect,  /* Default dark theme */
#main-header .logo-mark polygon {  /* Default dark theme */
    fill: #e0f2fe;
}

/* System preference for light theme */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) #main-header .company-name {
        color: var(--juzu-near-black);
    }
    
    :root:not([data-theme]) #main-header .logo-mark rect,
    :root:not([data-theme]) #main-header .logo-mark polygon {
        fill: var(--juzu-near-black);
    }
}

/* Add transition for the SVG elements */
#main-header .logo-mark rect,
#main-header .logo-mark polygon {
    transition: fill var(--transition-speed-medium) ease-in-out;
}

.logo-mark-container {
    display: inline-block;
    vertical-align: middle;
    width: 48px;
    height: 48px;
}

.logo-mark {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.5s ease-in-out;
}

#j-parts, #z-parts {
    transition: opacity 0.4s ease-in-out, transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: 50% 50%;
}

#j-parts {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

#z-parts {
    opacity: 0;
    transform: scale(0) rotate(-20deg);
}

.logo-mark-container:hover .logo-mark {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 10px #67e8f9);
}

.logo-mark-container:hover #j-parts {
    opacity: 0;
    transform: scale(0) rotate(20deg);
}

.logo-mark-container:hover #z-parts {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* Glassmorphism for cards/sections */
.content-section .content-wrapper, .hero-section .content-wrapper {
    background: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(66, 134, 244, 0.18);
    box-shadow: 0 8px 32px rgba(66, 134, 244, 0.10);
}

.cta-button, .primary-cta {
    background: linear-gradient(135deg, #67e8f9 0%, #3b82f6 100%);
    color: #0d1b2a;
    border: none;
    box-shadow: 0 2px 8px rgba(66, 134, 244, 0.15);
}

.cta-button:hover, .primary-cta:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #67e8f9 100%);
    color: #fff;
}

/* Responsive tweaks for logo */
@media (max-width: 600px) {
    .logo-mark-container { width: 36px; height: 36px; }
    .company-name { font-size: 1.1rem; }
}

/* Header Styles - Verbessert */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed-medium) ease-in-out;
}

.header-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    box-shadow: var(--shadow-md);
}

#main-header .header-content {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease;
}

#main-header .logo:hover {
    color: var(--secondary-color);
}

#main-header nav a {
    font-family: var(--font-primary);
    color: var(--text-primary);
    margin: 0 1.2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all var(--transition-speed-fast) ease;
    position: relative;
}

#main-header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color); /* Dark Teal */
    transition: width var(--transition-speed-medium) ease;
}

#main-header nav a:hover,
#main-header nav a.active-link {
    color: var(--primary-color); /* Dark Teal */
}

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

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.lang-button {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--brand-color-1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed-fast) ease;
    font-family: var(--font-primary);
    letter-spacing: 0.5px;
    min-width: 60px;
    position: relative;
    overflow: hidden;
}

.lang-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-color-1);
    transform: translateX(-100%);
    transition: transform var(--transition-speed-fast) ease;
    z-index: 1;
    opacity: 0.1;
}

.lang-button:hover::before {
    transform: translateX(0);
}

.lang-button:hover {
    color: var(--brand-color-1);
    border-color: var(--brand-color-1);
    transform: translateY(-2px);
}

.lang-button.active {
    background: var(--brand-color-1);
    color: var(--bg-secondary);
    border-color: var(--brand-color-1);
}

.lang-button.active:hover {
    background: var(--brand-color-2);
    border-color: var(--brand-color-2);
}

/* Light mode specific language button styles */
:root[data-theme="light"] .lang-button {
    color: var(--brand-color-1);
    border-color: var(--brand-color-1);
}

:root[data-theme="light"] .lang-button:hover {
    color: var(--brand-color-2);
    border-color: var(--brand-color-2);
}

:root[data-theme="light"] .lang-button.active {
    background: var(--brand-color-1);
    color: var(--bg-secondary);
    border-color: var(--brand-color-1);
}

:root[data-theme="light"] .lang-button.active:hover {
    background: var(--brand-color-2);
    border-color: var(--brand-color-2);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .lang-button {
        color: var(--brand-color-1);
        border-color: var(--brand-color-1);
    }

    :root:not([data-theme]) .lang-button:hover {
        color: var(--brand-color-2);
        border-color: var(--brand-color-2);
    }

    :root:not([data-theme]) .lang-button.active {
        background: var(--brand-color-1);
        color: var(--bg-secondary);
        border-color: var(--brand-color-1);
    }

    :root:not([data-theme]) .lang-button.active:hover {
        background: var(--brand-color-2);
        border-color: var(--brand-color-2);
    }
}

/* Flag Icon Styles in Footer */
#lang-flag {
    width: 32px; /* Adjust size as needed */
    height: auto;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid var(--accent-color-light); /* Pale Cyan */
    transition: transform var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
    margin: 0 10px; /* Centering and spacing if needed */
}

#lang-flag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px var(--accent-color-light); /* Pale Cyan glow */
}

/* Main Content Area */
#main-content {
    position: relative; /* Establishes stacking context for sections */
    z-index: 1; /* Below header, above default body stacking */
    background-color: transparent; /* Sections will define their own backgrounds */
    padding-top: 80px; /* Account for fixed header height */
}

/* Content Sections Styling - NEW PARALLAX APPROACH */
.content-section {
    position: relative;
    padding: 6rem 1rem;
    overflow: hidden;
    background-color: var(--surface-color);
}

/* Specific Section Backgrounds (Examples - customize with actual images/colors) */
#hero {
    /* Hero will often have a prominent image or gradient */
    /* Example: background-image: url('images_exmpl/hero-background.jpg'); */
    /* Using a color for now, can be replaced with image path */
    background-color: var(--brand-color-1_hero_transparent); /* Dark Teal with some transparency */
    color: var(--text-on-primary); /* Ensure text is readable on this bg */
}

#application-creation,
#smartphone-apps,
#website-design {
    background-color: var(--section-bg-light) !important;
}

#contact {
    position: relative;
    background-color: hsla(181, 77%, 26%, 0.25);
    transition: background-color 0.3s ease;
    min-height: 50vh; /* Ensure minimum height for better centering */
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact .content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

#contact h2 {
    margin-bottom: 1.5rem;
}

#contact p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

#contact .cta-button {
    display: inline-block;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.hero-section .content-wrapper { /* .hero-section specific wrapper adjustments if any */
    background-color: rgba(15, 23, 42, 0.7);
    padding: 3rem 3.5rem;
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5; 
    --card-bg-semi-transparent: hsla(200, 100%, 98%, 0.9); /* Very light, almost white from new palette with high transparency */
}

/* .standard-section is less relevant if each section gets its own fixed background */
/* #contact.standard-section { ... } */

.content-section .content-wrapper { /* General wrapper for content within sections */
    max-width: 1150px;
    width: 90%; /* Ensure it doesn't touch edges on smaller viewports within the section */
    margin: 0 auto;
    position: relative; /* For stacking context above .animated-background-strong */
    z-index: 5;
    background-color: var(--bg-secondary);
    padding: 2rem; /* Add padding to the wrapper */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.15, 1);
}

#hero .content-wrapper { /* Hero section content wrapper needs distinct styling */
    background-color: rgba(10, 25, 30, 0.7); /* Darker, slightly desaturated teal overlay */
    padding: 3rem 3.5rem;
    color: var(--brand-color-5); /* Ensure text is light on dark overlay */
}

#hero .content-wrapper h1,
#hero .content-wrapper p {
    color: var(--brand-color-5);
}

.text-container { /* This might be redundant if .content-wrapper handles width */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Headings & Paragraphs */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px; /* Subtle letter spacing for modern feel */
}

.hero-section h1 {
    font-size: clamp(3rem, 6vw, 4.5rem); /* Larger hero heading */
    color: var(--brand-color-5); /* Almost White Mint */
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.content-section h2 {
    font-size: clamp(2.4rem, 5vw, 3.2rem); /* Larger section headings */
    color: var(--secondary-color); /* Medium Aquamarine */
    margin-bottom: 1.5rem; /* More space below heading */
}

.content-section h2::after { /* Subtle underline accent */
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color); /* Dark Teal */
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

p, span, a, button, input, textarea, select {
    font-family: var(--font-primary);
}

.hero-section p {
    font-size: clamp(1.15rem, 2.3vw, 1.4rem); /* Larger hero paragraph */
    color: var(--accent-color-light); /* Pale Cyan for hero text on dark bg */
    max-width: 65ch;
    margin-bottom: 2rem; /* More space before CTA */
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-on-primary);
    background: var(--primary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Examples Grid & Cards */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly larger minmax */
    gap: 3rem; /* Increased gap */
    margin-top: 3.5rem; /* Increased top margin */
}

.example-item.card-style {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.example-item.card-style:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-color-3);
}

.example-img {
    border-radius: 12px;
    height: 240px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.example-item:hover .example-img {
    transform: scale(1.02);
}

/* Meta content styling */
.example-item .card-meta {
    padding: 1.8rem 2rem; /* Increased padding */
    text-align: left;
    flex-grow: 1; /* Allow meta to grow if card heights vary slightly */
    display: flex;
    flex-direction: column;
}

.example-item h3 {
    font-size: 1.6rem; /* Larger card titles */
    margin-bottom: 0.8rem;
    color: var(--secondary-color); /* Medium Aquamarine */
    border-left: 4px solid var(--primary-color); /* Dark Teal */
    padding-left: 1rem;
    line-height: 1.3;
}

.example-item p {
    font-size: 1rem; /* Larger card paragraph text */
    color: var(--text-secondary); /* Using defined light text color */
    line-height: 1.7;
    padding: 0;
    margin-bottom: 0;
    flex-grow: 1; /* Allow p to take space before potential card footer */
}

/* Phone Mockup Card */
.phone-mockup-card .phone-frame {
    width: 200px; /* Adjusted for better proportion with content */
    height: 400px;
    background-color: var(--juzu-near-black); /* Darker frame */
    border-radius: 35px;
    margin: 2.5rem auto 1.5rem;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup-card .example-img.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0; /* Light screen bg */
    border-radius: 20px; /* More rounded screen */
    overflow: hidden;
}

.phone-mockup-card .card-meta {
    text-align: center;
    padding-top: 0.5rem; /* Adjust padding if needed */
}

/* Footer Styles */
#main-footer {
    position: relative;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
    margin-top: 4rem;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-bg);
    z-index: -1;
}

#main-footer a {
    color: var(--brand-color-3);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed-fast) ease;
}

#main-footer a:hover {
    color: var(--brand-color-4);
    text-decoration: underline;
}

#main-footer p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

/* Light mode specific footer styles */
:root[data-theme="light"] #main-footer {
    background: var(--header-bg);
}
:root[data-theme="light"] #main-footer::before {
    background: var(--header-bg);
}
:root[data-theme="light"] #main-footer p {
    color: var(--text-primary);
}
:root[data-theme="light"] #main-footer a {
    color: var(--brand-color-1);
}
:root[data-theme="light"] #main-footer a:hover {
    color: var(--brand-color-2);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) #main-footer {
        background: var(--header-bg);
    }
    :root:not([data-theme]) #main-footer::before {
        background: var(--header-bg);
    }
    :root:not([data-theme]) #main-footer p {
        color: var(--text-primary);
    }
    :root:not([data-theme]) #main-footer a {
        color: var(--brand-color-1);
    }
    :root:not([data-theme]) #main-footer a:hover {
        color: var(--brand-color-2);
    }
}

/* Dark mode specific footer styles */
:root[data-theme="dark"] #main-footer {
    background: var(--header-bg);
}
:root[data-theme="dark"] #main-footer::before {
    background: var(--header-bg);
}
:root[data-theme="dark"] #main-footer p {
    color: var(--text-primary);
}
:root[data-theme="dark"] #main-footer a {
    color: var(--brand-color-3);
}
:root[data-theme="dark"] #main-footer a:hover {
    color: var(--brand-color-4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) #main-footer {
        background: var(--header-bg);
    }
    :root:not([data-theme]) #main-footer::before {
        background: var(--header-bg);
    }
    :root:not([data-theme]) #main-footer p {
        color: var(--text-primary);
    }
    :root:not([data-theme]) #main-footer a {
        color: var(--brand-color-3);
    }
    :root:not([data-theme]) #main-footer a:hover {
        color: var(--brand-color-4);
    }
}

/* --- Strong Animations (Background elements within sections) --- */
.animated-background-strong {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 
        transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
    /* Ensure GPU acceleration */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Remove scroll direction specific animations since we're using Intersection Observer */
[data-scroll-direction] .animate-on-scroll:not(.is-visible) {
    transform: translateY(30px);
}

/* Animation Delays */
[data-animation-delay="100"] { transition-delay: 0.1s; }
[data-animation-delay="200"] { transition-delay: 0.2s; }
[data-animation-delay="300"] { transition-delay: 0.3s; }
[data-animation-delay="400"] { transition-delay: 0.4s; }
[data-animation-delay="500"] { transition-delay: 0.5s; }

/* Hero section elements should be visible immediately */
#hero .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure animations don't get stuck on mobile */
@media (max-width: 768px) {
    .animate-on-scroll {
        transition-duration: 0.4s; /* Faster animations on mobile */
    }
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

/* Scale Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Animation Utility Classes */
.fade-in-up {
    animation: fadeInUp 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.fade-in-down {
    animation: fadeInDown 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Animation Variants */
.animate-on-scroll.slide-left {
    transform: translateX(-30px);
}

.animate-on-scroll.slide-right {
    transform: translateX(30px);
}

.animate-on-scroll.slide-left.is-visible,
.animate-on-scroll.slide-right.is-visible {
    transform: translateX(0);
}

/* Enhanced Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Smooth Transition Base */
.transition-smooth {
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    transition-duration: 0.6s;
}

/* Add animation states for content sections */
.content-section {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.content-section.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Animated underline effect */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust for slightly smaller screens */
        gap: 2rem;
    }
    .content-section h2 {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
     .hero-section h1 {
        font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    }
}

@media (max-width: 768px) {
    #main-header .header-content {
        flex-direction: column;
        padding: 1rem;
        align-items: flex-start;
    }

    #main-header .logo {
        margin-bottom: 0.5rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .hero-section .content-wrapper,
    .content-section .content-wrapper {
        padding: 1.5rem;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
        text-align: left;
    }

    .hero-section p {
        font-size: 1rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .feature-item {
        justify-content: flex-start;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .example-item.card-style {
        margin-bottom: 1.5rem;
    }

    .example-item .card-meta {
        padding: 1.2rem;
    }

    .example-item h3 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    .phone-mockup-card .phone-frame {
        width: 160px;
        height: 320px;
        padding: 12px;
        margin: 1.5rem auto;
    }

    #main-header nav {
        display: none; /* Hier sollte später ein mobiles Menü implementiert werden */
    }

    #main-content {
        padding-top: 130px; /* Increased to accommodate taller mobile header */
    }
    .hero-section {
        min-height: calc(100vh - 130px);
    }
    .hero-section h1 {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
    }
     .content-section h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .hero-section p {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }
    p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .phone-mockup-card .phone-frame {
        width: 170px;
        height: 340px;
        border-radius: 30px;
        padding: 15px;
    }
    .animated-background-strong span[class*="blob-"] {
        transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    }
    
    .animate-on-scroll {
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }

    .example-item.card-style {
        margin-bottom: 2rem;
    }

    .language-switcher {
        margin: 1.2rem 0;
        gap: 0.8rem;
    }

    .lang-button {
        padding: 0.4rem 0.8rem;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 2rem 1rem;
    }

    .hero-section .content-wrapper,
    .content-section .content-wrapper {
        padding: 1.2rem;
    }

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

    .content-section h2 {
        font-size: 1.6rem;
        text-align: left;
    }

    .content-section h2::after {
        margin: 0.5rem 0;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .example-item h3 {
        font-size: 1.3rem;
    }

    .phone-mockup-card .phone-frame {
        width: 140px;
        height: 280px;
    }

    .language-switcher {
        margin: 1rem 0;
        gap: 0.6rem;
    }

    .lang-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* Mobile Menu Styles - Überarbeitet */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease-in-out;
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
    transform-origin: top left;
}

.hamburger-icon::after {
    bottom: -8px;
    transform-origin: bottom left;
}

.mobile-menu-toggle.active .hamburger-icon {
    background: transparent;
    transform: rotate(360deg);
}

.mobile-menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg) translate(0px, -2px);
}

.mobile-menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg) translate(0px, 2px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    #main-header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 5rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: all 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    #main-header.menu-open nav {
        right: 0;
    }

    #main-header nav a {
        margin: 0.8rem 0;
        font-size: 1.2rem;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease-in-out;
    }

    #main-header.menu-open nav a {
        opacity: 1;
        transform: translateX(0);
    }

    #main-header nav a:nth-child(1) { transition-delay: 0.1s; }
    #main-header nav a:nth-child(2) { transition-delay: 0.2s; }
    #main-header nav a:nth-child(3) { transition-delay: 0.3s; }
    #main-header nav a:nth-child(4) { transition-delay: 0.4s; }

    .language-switcher {
        margin: 2rem 0;
        width: 100%;
        justify-content: flex-start;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease-in-out;
        transition-delay: 0.5s;
    }

    #main-header.menu-open .language-switcher {
        opacity: 1;
        transform: translateX(0);
    }

    /* Backdrop when menu is open */
    .menu-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    #main-header.menu-open .menu-backdrop {
        display: block;
        opacity: 1;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    #main-header nav {
        width: 85%;
        padding: 4rem 1.5rem 1.5rem;
    }
}

/* Legal Pages Styling */
.legal-content {
    padding-top: 120px;
    min-height: calc(100vh - 200px);
}

.legal-content .content-wrapper {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 900px;
    border: 1px solid var(--border-color);
    font-family: var(--font-primary);
    color: var(--text-primary);
}

.legal-section {
    text-align: left;
}

.legal-section h1 {
    font-size: 2.5rem;
    color: var(--brand-color-2);
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-primary);
}

.legal-section h1::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.legal-section h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-family: var(--font-primary);
}

.legal-section h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-primary);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.legal-section a {
    color: var(--brand-color-3);
    text-decoration: none;
    transition: color var(--transition-speed-fast) ease;
}

.legal-section a:hover {
    color: var(--brand-color-4);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding-top: 100px;
    }

    .legal-content .content-wrapper {
        padding: 2rem;
        margin: 1rem;
    }

    .legal-section h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.6rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }
}

/* Hero Section Styles - New Design */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: calc(100vh - 80px);
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--brand-color-5) 0%, var(--brand-color-4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.6;
    color: var(--brand-color-4);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.primary-cta {
    background: linear-gradient(135deg, var(--brand-color-2) 0%, var(--brand-color-1) 100%);
    border: none;
    padding: 1rem 2rem;
    transform-origin: center;
}

.primary-cta:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, var(--brand-color-1) 0%, var(--brand-color-2) 100%);
}

.secondary-cta {
    background: transparent;
    border: 2px solid var(--brand-color-3);
    color: var(--brand-color-4);
}

.secondary-cta:hover {
    background: var(--brand-color-3);
    color: var(--primary-color);
    border-color: var(--brand-color-3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-color-4);
}

.feature-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.1);
    backdrop-filter: blur(8px);
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(94, 234, 212, 0.2);
}

.code-block, pre, code {
    font-family: var(--font-mono);
}

.code-block {
    font-size: 0.85rem;
    color: var(--brand-color-4);
    background: rgba(15, 118, 110, 0.2);
    padding: 1.2rem;
    width: max-content;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    white-space: pre;
}

/* Position the floating elements */
.code-block:nth-of-type(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.code-block.typescript {
    top: 45%;
    right: 5%;
    animation-delay: -1s;
}

.terminal-block {
    top: 25%;
    right: 15%;
    background: rgba(24, 24, 27, 0.95);
    color: #a8ebd0;
    padding: 0;
    animation-delay: -2s;
}

.terminal-header {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(94, 234, 212, 0.2);
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-block pre {
    padding: 12px;
    margin: 0;
}

.design-element {
    top: 60%;
    left: 20%;
    animation-delay: -3s;
    padding: 1.5rem;
}

.tech-badge {
    bottom: 20%;
    right: 25%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--brand-color-2) 0%, var(--brand-color-1) 100%);
    color: var(--brand-color-5);
    font-weight: 600;
    animation-delay: -4s;
    font-family: var(--font-mono);
}

.code-block.html {
    bottom: 30%;
    left: 10%;
    animation-delay: -5s;
}

.tech-stack {
    top: 10%;
    right: 20%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation-delay: -6s;
    background: rgba(15, 118, 110, 0.3);
}

.stack-item {
    background: rgba(94, 234, 212, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--brand-color-4);
    text-align: center;
    border: 1px solid rgba(94, 234, 212, 0.2);
    transition: all 0.3s ease;
}

.stack-item:hover {
    background: rgba(94, 234, 212, 0.2);
    transform: translateX(5px);
}

/* Enhanced float animation */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-10px, -15px) rotate(-2deg);
    }
    50% {
        transform: translate(5px, -25px) rotate(2deg);
    }
    75% {
        transform: translate(-5px, -15px) rotate(-1deg);
    }
}

/* Responsive adjustments for floating elements */
@media (max-width: 1024px) {
    .float-element {
        transform: scale(0.9);
    }
    
    .code-block, .terminal-block {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .float-element {
        transform: scale(0.8);
    }
    
    .code-block:nth-of-type(1) { left: 0; }
    .terminal-block { right: 0; }
    .tech-badge { right: 10%; }
    .code-block.html { left: 5%; }
    .tech-stack { right: 5%; }
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image-container {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .feature-item {
        justify-content: center;
    }

    .hero-image-container {
        min-height: 250px;
    }
}

.theme-switcher {
    position: relative;
    display: inline-block;
    margin-left: 1rem;
}

.theme-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-button:hover {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.2rem;
}

/* Remove the theme label */
.theme-label {
    display: none;
}

/* Geometric Animated Shapes Background */
.animated-shapes-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    background: none !important;
}

.content-section .content-wrapper {
    z-index: 5;
}

.bg-shape {
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
    transition: box-shadow 0.3s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-circle {
    border-radius: 50%;
}

.shape-square {
    border-radius: 18%;
}

.shape-triangle svg,
.shape-hexagon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.shape-triangle,
.shape-hexagon {
    background: none !important;
    border: none !important;
    padding: 0;
}

.hero-logo-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-logo-center .logo-mark-container {
    width: 128px;
    height: 128px;
    margin-bottom: 1.5rem;
}

.hero-logo-center .logo-mark {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.5s ease-in-out;
}

.hero-logo-center .j-parts, .hero-logo-center .z-parts {
    transition: opacity 0.4s ease-in-out, transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: 50% 50%;
}

.hero-logo-center .j-parts { opacity: 1; transform: scale(1) rotate(0deg); }
.hero-logo-center .z-parts { opacity: 0; transform: scale(0) rotate(-20deg); }
.hero-logo-center:hover .logo-mark {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 18px #67e8f9);
}
.hero-logo-center:hover .j-parts {
    opacity: 0;
    transform: scale(0) rotate(20deg);
}
.hero-logo-center:hover .z-parts {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media (max-width: 600px) {
    .hero-logo-center .logo-mark-container { width: 72px; height: 72px; }
}

.logo-card {
    background-color: rgba(13, 27, 42, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(66, 134, 244, 0.3);
}

/* Add more padding to the hero-logo-container */
#hero-logo-container {
    padding: 5rem !important;
    min-width: 480px;
    min-height: 480px;
}

.logo-mark {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), filter 0.5s ease-in-out;
}

#j-parts, #z-parts {
    transition: opacity 0.4s ease-in-out, transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: 50% 50%;
}

#j-parts {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

#z-parts {
    opacity: 0;
    transform: scale(0) rotate(-20deg);
}

/* Apply animations for both hover and automatic trigger */
.logo-card:hover .logo-mark,
.logo-hover .logo-mark {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 10px #67e8f9);
}

.logo-card:hover #j-parts,
.logo-hover #j-parts {
    opacity: 0;
    transform: scale(0) rotate(20deg);
}

.logo-card:hover #z-parts,
.logo-hover #z-parts {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Adjust responsive behavior for the larger container */
@media (max-width: 768px) {
    #hero-logo-container {
        padding: 4rem !important;
        min-width: 360px;
        min-height: 360px;
    }
}

@media (max-width: 480px) {
    #hero-logo-container {
        padding: 3rem !important;
        min-width: 300px;
        min-height: 300px;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(var(--surface-color-rgb), 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
    border-top: 1px solid rgba(var(--border-color-rgb), 0.3);
    color: #ffffff;
}

/* Light mode specific styles */
@media (prefers-color-scheme: light) {
    .cookie-banner {
        color: #1a1a1a;
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 280px;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
}

.cookie-buttons {
    display: flex;
    gap: 1.25rem;
}

.cookie-button {
    padding: 0.6rem 1.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cookie-button.decline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cookie-button.accept {
    background-color: var(--brand-color-3);
    color: var(--surface-color);
}

.cookie-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Dark theme overrides for cookie banner */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        color: var(--text-color, #e0f2fe);
    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: hsla(181, 77%, 26%, 0.95);
    transition: background-color 0.3s ease;
}

.hero-section.fade-background {
    background: transparent;
}

/* Grid background pattern */
.hero-section::before,
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--brand-color-2_transparent) 1px, transparent 1px),
        linear-gradient(90deg, var(--brand-color-2_transparent) 1px, transparent 1px);
    background-size: 2rem 2rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above the grid */
.hero-section > *,
.content-section > * {
    position: relative;
    z-index: 2;
}

#about-us {
    background-color: var(--section-bg-light) !important;
    /*   position: relative;
    background-color: var(--section-bg-light) !important;
    transition: background-color 0.3s ease;
    padding: 4rem 0; */
}

#about-us .content-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

#about-us p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

#about-us p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #about-us {
        padding: 3rem 0;
    }
    
    #about-us .content-wrapper {
        padding: 1.5rem;
    }
    
    #about-us p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

.legal-content .content-wrapper h1[data-lang-key="imprint_heading"],
.legal-content .content-wrapper h1[data-lang-key="privacy_heading"] {
    color: var(--brand-color-2);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-primary);
}

.legal-content .content-wrapper h1[data-lang-key="imprint_heading"]::after,
.legal-content .content-wrapper h1[data-lang-key="privacy_heading"]::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0;
    border-radius: 2px;
} 

#about-us h2,
#contact h2,
#website-design h2,
#smartphone-apps h2 {
    text-align: center;
} 

@media (max-width: 768px) {
  /* Scatter the code-block float-elements more for mobile */
  .floating-elements .float-element.code-block:nth-of-type(1) {
    top: 5% !important;
    left: 10% !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
  }
  .floating-elements .float-element.code-block.typescript {
    top: 55% !important;
    right: 10% !important;
    left: auto !important;
    bottom: auto !important;
  }
  .floating-elements .float-element.code-block.html {
    bottom: 10% !important;
    left: 15% !important;
    top: auto !important;
    right: auto !important;
    display: block !important;
  }
}

/* Double the height of mobile applications section */
#smartphone-apps .content-wrapper {
    min-height: 1200px; /* Doubled from typical 600px height */
    padding: 4rem 2rem; /* Increased padding to accommodate more content */
}

/* Double the height of mobile applications card */
#smartphone-apps .example-item.card-style {
    min-height: 600px; /* Doubled from typical 300px height */
    padding: 3rem; /* Increased padding to accommodate more content */
} 