:root {
    --bg-color: #0D0D0F;
    --surface-color: #1A1A1D;

    /* --- GitHub-Inspired Color Palette --- */
    /* Based on GitHub's signature colors - keeping all other styling intact */
    --primary-color: #58a6ff;
    /* GitHub's signature blue for links and primary elements */
    --accent-color: #f78166;
    /* GitHub's coral/orange accent color */
    --highlight-color: #79c0ff;
    /* GitHub's lighter blue for highlights */

    --primary-glow: rgba(88, 166, 255, 0.4);
    /* GitHub blue glow effect - keeping your glow intensity */
    --accent-glow: rgba(247, 129, 102, 0.4);
    /* GitHub coral glow effect - keeping your glow intensity */

    --blob-color: #58a6ff;
    /* GitHub blue for background elements */

    --button-glow-color: var(--primary-glow);

    --text-color: #C5C6C7;
    --heading-color: #FFFFFF;
    --subtle-text-color: #888888;
    --border-color: #2a2a2f;

    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Source Code Pro', monospace;
    --font-hero: var(--font-mono);
    --container-width: 1024px;
    --border-radius: 10px;

    /* Aliases */
    --background-color-medium: var(--surface-color);
    --accent-color-medium: var(--border-color);
    --text-color-light: var(--heading-color);
}

/* Basic Reset & Body */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll from blobs */
}





/* attractor removed */

/* Make content stack on top of background animation */
header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-sans);
    color: var(--heading-color);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
    /* Improves readability */
}

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

a:hover {
    filter: brightness(1.2);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
    border-radius: 16px 16px 0 0;
}

/* Reduce padding in hero section */
.hero-section .container {
    padding: 1rem 1rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: backdrop-filter 0.3s ease;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/photos/xr-glass.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo > span {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-image {
    height: 32px;
    width: auto;
}

.logo-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin-left: 0;
    font-weight: 500;
    display: block;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

/* Navigation - Simple Mobile-First Approach */
.nav-links {
    display: none;
    /* Hidden by default */
}

.nav-toggle {
    display: none;
    /* Hidden by default */
}

/* Hamburger menu styles */
.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--heading-color);
    transition: all 0.2s ease-in-out;
}

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

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Open state for hamburger */
.nav-open .hamburger {
    background-color: transparent;
}

.nav-open .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    /* Ensure mobile overlay is never visible on desktop */
    .nav-links-overlay {
        display: none !important;
    }

    .nav-links a {
        color: var(--text-color);
        font-weight: 400;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .nav-links a:hover {
        color: var(--heading-color);
    }

    .nav-links .mobile-only {
        display: none;
        /* Hide mobile-only items on desktop */
    }

    /* Hide nav-container on desktop */
    .nav-links .nav-container {
        display: none;
    }
}

/* Mobile Navigation - Simple & Working */
@media (max-width: 768px) {

    /* Prevent horizontal scrolling globally on mobile */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 0.125rem;
        width: 98%;
        max-width: 100vw;
        overflow-x: hidden;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .container::before {
        display: none;
    }

    header .container {
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile header sizing */
    .logo {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 24px;
    }

    .logo-subtitle {
        font-size: 0.75rem;
    }

    /* Prevent horizontal scrolling on mobile */
    body {
        overflow-x: hidden;
    }

    /* Ensure header doesn't overflow */
    header {
        min-width: 0;
        overflow: hidden;
    }

    /* Use separate overlay menu on mobile; hide header nav */
    header .nav-links {
        display: none !important;
    }

    /* Ensure logo doesn't cause overflow */
    .logo {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure navigation toggle doesn't cause overflow */
    .nav-toggle {
        flex-shrink: 0;
    }

    /* Mobile navigation styling - removed duplicate rules to fix conflicts */

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 10000;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--heading-color);
        position: relative;
        transition: all 0.3s ease;
    }

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

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    /* Hamburger animation when open */
    .nav-open .hamburger {
        background-color: transparent;
    }

    .nav-open .hamburger::before {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-open .hamburger::after {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile overlay menu container */
    .nav-links-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        z-index: 9999;
        padding: 80px 1rem 1rem 1rem;
        transition: background 0.3s ease;
        overflow: hidden;
        isolation: isolate;
    }

    .nav-open .nav-links-overlay {
        display: flex;
    }

    /* Close button for mobile navigation */
    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 10001;
        padding: 0.5rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    .nav-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

    /* Main navigation items */
    .nav-links-overlay>a:not(.mobile-only),
    .nav-links-overlay .dropdown-toggle {
        color: #ffffff;
        font-size: 1.3rem;
        font-weight: 500;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 200px;
        max-width: 90vw;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .nav-links-overlay>a:not(.mobile-only):hover,
    .nav-links-overlay .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    }

    /* Ensure dropdown toggle has proper mobile styling */
    .nav-links-overlay .dropdown-toggle {
        justify-content: center;
        width: 100%;
        text-align: center;
    }



    /* Mobile-only items at bottom */
    .nav-links-overlay .mobile-only {
        margin-top: auto;
        padding: 1rem 1.5rem;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 16px 16px 0 0;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem;
    }

    .nav-links-overlay .mobile-only a {
        display: inline-block !important;
        color: #58a6ff;
        font-size: 0.9rem;
        font-weight: 400;
        text-decoration: none;
        padding: 0.6rem 1.25rem;
        margin: 0;
        transition: all 0.3s ease;
        background: rgba(88, 166, 255, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(88, 166, 255, 0.3);
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-links-overlay .mobile-only a:hover {
        color: #79c0ff;
        background: rgba(88, 166, 255, 0.25);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-color: rgba(88, 166, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
    }

    /* Hide floating elements on mobile */
    .fixed-language-switcher,
    #consent-settings-btn {
        display: none !important;
    }
    
    /* Ensure navigation overlay is always on top */
    .nav-links-overlay {
        z-index: 99999 !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.nav-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
    
    /* Ensure all interactive elements are tappable */
    button, a, [role="button"] {
        -webkit-tap-highlight-color: rgba(88, 166, 255, 0.3);
        tap-highlight-color: rgba(88, 166, 255, 0.3);
    }
    
    /* Improve text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix for tables on mobile - make them scrollable */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* Better spacing for sections on mobile */
    section {
        padding: 3rem 0 !important;
    }
}



/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Mobile dropdown behavior - click instead of hover */
@media (max-width: 768px) {
    .dropdown:hover .dropdown-toggle i {
        transform: none;
        /* Disable hover rotation on mobile */
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
        /* Show rotation when active/clicked */
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile dropdown menu behavior - click instead of hover */
@media (max-width: 768px) {
    .dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(26, 26, 29, 0.8);
    color: var(--heading-color);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: all 0.3s ease-in-out;
    border: 2px solid;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

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

.button-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--button-glow-color);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--button-glow-color);
}

/* Hero Section with Video Background and Dot Grid */
.hero-section {
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Ensure video doesn't interfere with mobile navigation */
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Mobile optimization for video background */
@media (max-width: 768px) {
    .hero-video-bg {
        object-position: center center;
    }

    .hero-section {
        min-height: 50vh;
        padding: 1rem 0;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.125rem;
        width: 99%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .container::before {
        display: none;
    }

    /* Further reduce padding on extra small devices */
    .logo {
        font-size: 1rem;
    }

    .logo-image {
        height: 20px;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    /* Navigation styling handled in main mobile media query */

    /* Reduce button padding on mobile */
    .button {
        padding: 0.75rem 1.25rem;
    }
}

/* Ultra small mobile devices - almost no padding for maximum content space */
@media (max-width: 440px) {
    .container {
        padding: 0 0.25rem;
        width: 99%;
    }
}

/* Ultra small mobile devices - maximize horizontal space */
@media (max-width: 360px) {
    .container {
        padding: 0 0.125rem;
        width: 99.5%;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .container::before {
        display: none;
    }

    /* Reduce navigation padding on ultra small devices */
    .logo {
        font-size: 0.9rem;
    }

    .logo-image {
        height: 18px;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    /* Navigation styling handled in main mobile media query */

    /* Reduce button padding on ultra small devices */
    .button {
        padding: 0.75rem 1rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--border-color) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: var(--gridOffsetX, 0px) var(--gridOffsetY, 0px);
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}

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

.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: 1;
}

/* Gradient text highlight for key phrases */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: clamp(3rem, 7vw, 5rem);
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.hero-subline {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 60ch;
    margin: 0 auto 2.5rem auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-section .cta-buttons .button {
    color: #ffffff;
}

.hero-socials {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.hero-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.hero-socials a:hover {
    color: var(--primary-color);
}

/* General Section Styling */
section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

/* Services Section */
.services-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.5rem;
    color: var(--heading-color) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-grid.two-pillars {
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .services-grid.two-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Connected Pillars for Services Section */
.services-grid.two-pillars {
    position: relative;
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: stretch;
}

.services-grid.two-pillars::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4rem;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
}

.pillar-left {
    position: relative;
}

.pillar-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    transform: translateY(-50%);
    z-index: 10;
}

.pillar-right {
    position: relative;
}

.pillar-right::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    transform: translateY(-50%);
    z-index: 10;
}



/* Mobile responsive layout for connected pillars */
@media (max-width: 900px) {
    .services-grid.two-pillars {
        flex-direction: column;
        gap: 2rem;
    }

    /* Change horizontal connection to vertical */
    .services-grid.two-pillars::before {
        width: 2px;
        height: 2rem;
        top: 50%;
        left: 50%;
        background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    }

    /* Move connection points to top/bottom edges */
    .pillar-left::after {
        top: auto;
        bottom: -8px;
        right: 50%;
        transform: translateX(50%);
    }

    .pillar-right::before {
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Enhanced hover effects for mobile */
    .pillar-left:hover::after,
    .pillar-right:hover::before {
        border-color: var(--accent-color);
        box-shadow: 0 0 10px var(--accent-glow);
    }

    .services-grid.two-pillars:hover::before {
        opacity: 1;
        box-shadow: 0 0 15px var(--primary-glow);
    }
}

/* Enhanced hover effects for connection points (Knödel) - Desktop */
.pillar-left:hover::after,
.pillar-right:hover::before {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.services-grid.two-pillars:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-glow);
}

.pillar {
    border-radius: 12px;
    padding: 3px;
    /* This creates the space for the gradient border */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: rgba(26, 26, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9px;
    /* Slightly smaller than parent to fit inside */
    overflow: hidden;
    /* This clips the inner content to the rounded shape */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}



.pillar h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    text-align: center;
    margin: 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pillar .service-item {
    background-color: transparent;
    border: none;
    padding: 1.5rem 2rem 0 2rem;
    border-radius: 0;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.pillar .service-item:last-child {
    padding-bottom: 2rem;
}

.pillar .service-item h4 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    color: var(--heading-color) !important;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* This rule specifically targets the icons to set their color */
.pillar .service-item h4 i {
    color: var(--primary-color);
}

.pillar .service-item p {
    flex-grow: 1;
    margin-bottom: 0;
    color: var(--text-color) !important;
}



.service-item h3 {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Philosophy Section */
.philosophy-section {
    background-color: var(--surface-color);
    text-align: center;
}

.philosophy-section h2 {
    display: none;
    /* Title is clear from context */
}

.philosophy-statement {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    color: var(--heading-color);
    line-height: 1.5;
    max-width: 40ch;
    margin: 0 auto;
    font-weight: 600;
}

/* Stacks Section */
.stacks-section {
    padding: 6rem 0;
    text-align: center;
}

.stacks-section h2 {
    margin-bottom: 3rem;
}

.featured-product {
    background: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-product h3 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto 2rem auto;
}

.product-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.detail-tag {
    background: var(--surface-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.stack-placeholder {
    border: 1px dashed var(--border-color);
    padding: 4rem;
    text-align: center;
    color: var(--subtle-text-color);
    border-radius: var(--border-radius);
}

/* Products Carousel Styles */
.products-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    /* Prevent layout jumping */
}

.carousel-slide {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.carousel-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-fallback {
    display: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-btn i {
    display: inline-block;
}

/* Show fallback if FontAwesome doesn't load */
.carousel-btn:not(:has(i.fas)) .btn-fallback,
.carousel-btn i:not(.fas)+.btn-fallback {
    display: inline-block;
}

.carousel-btn:not(:has(i.fas)) i,
.carousel-btn i:not(.fas) {
    display: none;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--surface-color);
}

.about-intro {
    text-align: center;
    max-width: 80ch;
    margin: 0 auto 4rem auto;
}

.about-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-intro p {
    margin-left: auto;
    margin-right: auto;
}

.about-details-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    margin-top: 4.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-content .about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-content .about-text p:last-child {
    margin-bottom: 0;
}

/* Work Experience Timeline */
.work-experience {
    margin-top: 3rem;
}

.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--heading-color);
}

.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding: 0 0 0 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: 2px solid var(--primary-color);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--subtle-text-color);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-color);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(0deg, var(--surface-color), var(--bg-color));
    text-align: center;
}

.cta-section p {
    max-width: 50ch;
    margin: 0 auto 2rem auto;
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-quote {
    font-family: var(--font-mono);
    margin-bottom: 2rem;
    color: var(--subtle-text-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--subtle-text-color);
    margin: 0 1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Icon Styling */
h2>i,
h3>i,
h4>i,
.footer-links a>i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    width: 20px;
    /* Ensures alignment */
    text-align: center;
}

.footer-links a>i {
    margin-right: 0.5rem;
}

/* Styles for AI Agency Page */
.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    color: var(--primary-color);
    opacity: 0.05;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover .service-card-bg-icon {
    opacity: 0.1;
}

/* Reduce background icon size for process cards by ~1/3 */
#process .service-card-bg-icon {
    font-size: 100px;
}



.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.service-card i {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-family: var(--font-sans);
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-color);
}

/* End of Styles for AI Agency Page */

/* Styling for the Philosophy/Process n8n-style Workflow */
#philosophy .services-grid,
#process .services-grid {
    display: flex;
    justify-content: center;
    /* Center the items */
    align-items: stretch;
    /* Make cards same height */
    position: relative;
    padding: 3rem 0;
    flex-wrap: wrap;
    /* Allow wrapping on mobile */
    gap: 2rem;
}

#philosophy .services-grid::before,
#process .services-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10vw;
    width: 120vw;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--primary-color) 25%, var(--accent-color) 75%, transparent 100%);
    opacity: 0.6;
    transform: translateY(-50%);
    z-index: 1;
}

#philosophy .service-card,
#process .service-card {
    flex-basis: 300px;
    /* Base width before growing */
    flex-grow: 1;
    /* Allow cards to grow */
    max-width: 350px;
    /* Max width */
    position: relative;
    z-index: 2;
    border-width: 1px;
    border-style: solid;
    border-color: var(--primary-color);
    /* Highlight the nodes */
    opacity: 0.95;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    position: relative;
}

#philosophy .service-card .service-card-content,
#process .service-card .service-card-content {
    z-index: 2;
}

#philosophy .service-card h4 i,
#process .service-card h4 i {
    width: auto;
    height: auto;
    margin-bottom: 0;
    font-size: 1rem;
    /* reduced by ~1/3 from 1.5rem */
    line-height: 1;
}

/* Common style for input/output dots */
#philosophy .service-card::before,
#philosophy .service-card::after,
#process .service-card::before,
#process .service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    z-index: 10;
}

/* Input dot (left) */
#philosophy .service-card::before,
#process .service-card::before {
    left: -9px;
}

/* Output dot (right) */
#philosophy .service-card::after,
#process .service-card::after {
    right: -9px;
}

/* Force one-row layout for process cards on wide screens */
@media (min-width: 1100px) {
    #process .services-grid {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    #process .service-card {
        max-width: none;
        flex: 1 1 25%;
    }
}

/* End of Philosophy Workflow styles */

/* Enhanced Liquid Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    filter: blur(100px);
    animation: move 100s infinite alternate;
}

.blob1 {
    width: 400px;
    height: 400px;
    top: 15%;
    left: 10%;
    animation-duration: 120s;
    animation-delay: 0s;
    opacity: 0.03;
}

.blob2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 15%;
    animation-duration: 100s;
    animation-delay: -10s;
    opacity: 0.03;
}

.blob3 {
    width: 250px;
    height: 250px;
    top: 60%;
    left: 5%;
    animation-duration: 110s;
    animation-delay: -20s;
    background: var(--primary-color);
    opacity: 0.04;
}

.blob4 {
    width: 350px;
    height: 350px;
    top: 20%;
    right: 5%;
    animation-duration: 105s;
    animation-delay: -30s;
    background: var(--accent-color);
    opacity: 0.03;
}

.blob5 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    animation-duration: 115s;
    animation-delay: -40s;
    background: var(--highlight-color);
    opacity: 0.03;
}

.blob6 {
    width: 180px;
    height: 180px;
    top: 80%;
    right: 30%;
    animation-duration: 108s;
    animation-delay: -15s;
    background: var(--primary-color);
    opacity: 0.03;
}

.blob7 {
    width: 320px;
    height: 320px;
    top: 40%;
    left: 60%;
    animation-duration: 112s;
    animation-delay: -25s;
    background: var(--accent-color);
    opacity: 0.03;
}

.blob8 {
    width: 150px;
    height: 200px;
    bottom: 60%;
    right: 5%;
    animation-duration: 118s;
    animation-delay: -35s;
    background: var(--highlight-color);
    opacity: 0.03;
}

/* Enhanced blob shapes with varied border-radius */
.blob9 {
    width: 280px;
    height: 280px;
    top: 10%;
    left: 40%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-duration: 102s;
    animation-delay: -45s;
    background: var(--blob-color);
    opacity: 0.03;
}

.blob10 {
    width: 220px;
    height: 220px;
    bottom: 20%;
    left: 25%;
    border-radius: 40% 60% 70% 30% / 30% 60% 40% 70%;
    animation-duration: 106s;
    animation-delay: -50s;
    background: var(--primary-color);
    opacity: 0.03;
}

/* Subtle, slow movement patterns for engineering aesthetic */
@keyframes move {
    0% {
        transform: translate(-15px, -10px) rotate(0deg);
    }

    25% {
        transform: translate(10px, -8px) rotate(45deg);
    }

    50% {
        transform: translate(8px, 12px) rotate(90deg);
    }

    75% {
        transform: translate(-12px, 8px) rotate(135deg);
    }

    100% {
        transform: translate(-10px, -12px) rotate(180deg);
    }
}

/* Responsive blob adjustments */
@media (max-width: 768px) {
    .blob {
        filter: blur(60px);
    }

    .blob1,
    .blob2,
    .blob4,
    .blob7 {
        width: 200px;
        height: 200px;
    }

    .blob3,
    .blob5,
    .blob6,
    .blob8,
    .blob9,
    .blob10 {
        width: 150px;
        height: 150px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem 0;
    }

    .hero-name {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }

    .hero-identity {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-tagline {
        font-size: 2.2rem;
    }

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

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

@media (max-width: 900px) {
    .about-details-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto 3rem auto;
        text-align: center;
    }

    .about-content .about-text h2,
    .about-content .about-text p {
        text-align: center;
    }

    .timeline {
        text-align: left;
        margin: 0 auto;
        max-width: 500px;
    }
}

/* Consistent Icon Sizing */
.service-item h4 i,
.service-card h4 i,
.timeline-content h4 i {
    font-size: 1.2rem;
    /* Adjust this value as needed */
    width: 20px;
    /* Ensures consistent space for the icon */
    text-align: center;
    /* Centers the icon within its space */
}

/* Centered Footer Styles */
.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    text-align: center;
}

.footer-column {
    flex: 1;
    max-width: 300px;
}

.footer-column h4 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-column a {
    color: var(--primary-color);
    text-decoration: none;
    transition: filter 0.2s ease;
}

.footer-column a:hover {
    filter: brightness(1.2);
}

.footer-column.links a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.footer-column.links a:hover {
    color: var(--heading-color);
}

/* Klaro Cookie Consent - Frosted Glass Effect */
#klaro {
    --klaro-bg: rgba(13, 13, 15, 0.9) !important;
    --klaro-text: var(--text-color) !important;
    --klaro-primary: var(--primary-color) !important;
    --klaro-border: var(--border-color) !important;
}

#klaro .cookie-notice {
    background: rgba(13, 13, 15, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    transition: backdrop-filter 0.3s ease !important;
}

#klaro .cookie-notice .cm-btn {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

#klaro .cookie-notice .cm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
    filter: brightness(1.1) !important;
}

#klaro .cookie-notice .cm-link {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

#klaro .cookie-notice .cm-link:hover {
    filter: brightness(1.2) !important;
}

/* Modal styling for consistency */
#klaro .cm-modal {
    background: rgba(13, 13, 15, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    color: var(--text-color) !important;
}

#klaro .cm-modal .cm-header {
    background: rgba(26, 26, 29, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#klaro .cm-modal .cm-btn {
    background: var(--primary-color) !important;
    color: var(--bg-color) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

#klaro .cm-modal .cm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
    filter: brightness(1.1) !important;
}

#klaro .cm-modal .cm-btn.cm-btn-success {
    background: var(--primary-color) !important;
}

#klaro .cm-modal .cm-btn.cm-btn-info {
    background: transparent !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

#klaro .cm-modal .cm-btn.cm-btn-info:hover {
    background: var(--surface-color) !important;
    border-color: var(--text-color) !important;
    color: var(--heading-color) !important;
}

/* Expertise Section Styles */
.expertise-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.8) 0%, rgba(13, 13, 15, 0.9) 100%);
}

.expertise-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expertise-section .section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.expertise-item:hover::before {
    transform: scaleX(1);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--bg-color);
}

.expertise-item h3 {
    font-family: var(--font-sans);
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-weight: 600;
}

.expertise-item p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 9em;
}

.expertise-details {
    list-style: none;
    padding: 0;
}

.tech-tag {
    display: inline-block;
    background: var(--border-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border: 1px solid var(--primary-color);
    transition: all 0.2s ease;
}

.expertise-item:hover .tech-tag {
    background: var(--primary-color);
    color: var(--bg-color);
}

.process-result {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.product-cta {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.featured-product:hover .product-cta {
    transform: translateX(5px);
}

.expertise-details li {
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.expertise-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Mobile Responsive for Expertise Section */
@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-item {
        padding: 1.5rem;
    }

    .expertise-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .expertise-item h3 {
        font-size: 1.2rem;
    }
}

/* Email Protection Styles */
.email-container {
    position: relative;
    display: inline-block;
}

.email-placeholder {
    color: var(--text-color);
    font-style: italic;
}

.email-trigger {
    cursor: pointer;
    transition: color 0.2s ease;
}

.email-trigger:hover {
    color: var(--heading-color) !important;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--heading-color);
    text-decoration: underline;
}

/* Product Card Styles for Carousel */
.product-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-card h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-card .product-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-card .product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.product-card .detail-tag {
    background-color: var(--bg-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.product-button {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(156, 218, 151, 0.4);
    filter: brightness(1.1);
}

/* Fixed Language Switcher Styles */
.fixed-language-switcher {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(26, 26, 29, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.fixed-language-switcher:hover {
    background: rgba(26, 26, 29, 0.95);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.lang-link {
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.lang-link:hover {
    color: var(--primary-color);
}

.lang-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-separator {
    color: var(--border-color);
    font-size: 0.75rem;
}

/* Mobile responsive for fixed language switcher */
@media (max-width: 768px) {
    .fixed-language-switcher {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        border-radius: 20px;
        padding: 0.5rem 0.75rem;
    }
}

/* Legacy styles for nav-based switcher (if needed) */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
}

/* Portfolio Tabs & Slides */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.portfolio-tab {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 44px; /* Touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.portfolio-tab:hover {
    border-color: var(--primary-color);
    color: var(--heading-color);
}

.portfolio-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-color);
    border-color: transparent;
}

.portfolio-slides {
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
}

.portfolio-slide {
    display: none;
}

.portfolio-slide.active {
    display: block;
}

/* Portfolio Card uses expertise-item look for consistency */
.portfolio-card {
    margin: 0 auto;
}

/* Mobile fixes for Portfolio page inline grids */
@media (max-width: 768px) {
    /* Force all 2-column grids to stack on mobile - more specific selectors */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Portfolio tabs - make them full width and stack on small screens */
    .portfolio-tabs {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .portfolio-tab {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    /* Reduce padding in portfolio cards on mobile */
    .appointment-card {
        padding: 1.5rem !important;
        margin: 1rem 0 !important;
    }
    
    /* Reduce gaps in grids on mobile - target specific gap values */
    div[style*="gap: 2rem"],
    div[style*="gap: 2.5rem"] {
        gap: 1.5rem !important;
    }
    
    /* Fix flex layouts with align-items: start to stack on mobile */
    div[style*="display: flex"][style*="align-items: start"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Ensure flex containers wrap */
    div[style*="display: flex"]:not([style*="flex-wrap"]) {
        flex-wrap: wrap !important;
    }
    
    /* Fix icon containers in flex layouts - center them on mobile */
    div[style*="flex-shrink: 0"][style*="width: 50px"] {
        align-self: center !important;
        margin: 0 auto !important;
    }
    
    /* Reduce padding in portfolio content boxes */
    div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }
    
    div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }
    
    /* Make sure case study headers are readable */
    .case-study-header {
        padding: 0 1rem;
    }
    
    /* Ensure text in lists doesn't overflow */
    ul[style*="padding-left: 1.5rem"] {
        padding-left: 1.25rem !important;
    }
    
    /* Fix margin-bottom on mobile for better spacing */
    div[style*="margin-bottom: 2.5rem"] {
        margin-bottom: 1.5rem !important;
    }
    
    div[style*="margin-bottom: 2rem"] {
        margin-bottom: 1.5rem !important;
    }
    
    div[style*="margin-bottom: 3rem"] {
        margin-bottom: 2rem !important;
    }
}

/* Enhanced Liquid Glass Effect - Site-wide */
.services-section,
.expertise-section,
.process-section,
.stacks-section,
.about-section,
.cta-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}







/* Enhanced Process Cards */
.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Expertise Items */
.expertise-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Enhanced Expertise Icons */
.expertise-icon {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Product Cards */
.featured-product {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Enhanced Detail Tags */
.detail-tag {
    background: rgba(13, 13, 15, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Enhanced Buttons with Distinct Glass Shader Colors */
.button {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Primary Button - GitHub Blue Glass Shader */
.button-primary {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.25);
    color: var(--heading-color);
    box-shadow:
        0 4px 16px rgba(88, 166, 255, 0.2),
        inset 0 1px 0 rgba(88, 166, 255, 0.2);
}

.button-primary:hover {
    background: rgba(88, 166, 255, 0.25);
    border-color: rgba(88, 166, 255, 0.35);
    box-shadow:
        0 6px 20px rgba(88, 166, 255, 0.3),
        inset 0 1px 0 rgba(88, 166, 255, 0.3);
}

/* Secondary Button - White/Transparent Glass Shader */
.button-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}



/* Enhanced Footer */
footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Enhanced Form Elements */
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Mobile Responsive Typography */
@media (max-width: 768px) {

    /* H2 Headings - Mobile */
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    /* H3 Headings - Mobile */
    h3 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    /* H4 Headings - Mobile */
    h4 {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }

    /* Hero Section - Mobile */
    .hero-name {
        font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
    }

    .hero-identity {
        font-size: clamp(0.85rem, 2vw, 1rem) !important;
    }

    .hero-tagline {
        font-size: clamp(2rem, 5vw, 3rem) !important;
        line-height: 1.1 !important;
    }

    /* Section Headings - Mobile */
    .services-section h2,
    .expertise-section h2,
    .process-section h2,
    .stacks-section h2,
    .about-section h2,
    .cta-section h2 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    /* Pillar Headers - Mobile */
    .pillar h3 {
        font-size: 1.3rem !important;
        padding: 1rem !important;
    }

    /* Service Item Headers - Mobile */
    .pillar .service-item h4 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Process Card Headers - Mobile */
    .service-card h4 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* Expertise Item Headers - Mobile */
    .expertise-item h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* Product Headers - Mobile */
    .featured-product h3 {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* Case Study Headers - Mobile */
    .case-study-header h3 {
        font-size: 1.5rem !important;
    }
    
    /* Ensure all buttons have proper touch targets */
    .button,
    .button-primary,
    .button-secondary {
        min-height: 44px;
        min-width: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    /* Links should have adequate touch targets */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 90%;
    max-height: 90%;
    width: 600px;
    max-width: 90vw;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxSlideIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: var(--border-color);
    color: var(--primary-color);
}

.lightbox-body {
    padding: 2rem;
    padding-top: 3rem;
}

.lightbox-body h3 {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.lightbox-body p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.lightbox-body ul {
    color: var(--text-color);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.lightbox-body li {
    margin-bottom: 0.5rem;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Lightbox Adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        max-width: 95vw;
        margin: 1rem;
    }

    .lightbox-body {
        padding: 1.5rem;
        padding-top: 2.5rem;
    }

    .lightbox-body h3 {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    h2 {
        font-size: 1.6rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .hero-tagline {
        font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    }

    .services-section h2,
    .expertise-section h2,
    .process-section h2,
    .stacks-section h2,
    .about-section h2,
    .cta-section h2 {
        font-size: 1.4rem !important;
    }
}

/* Alternating Glass Effects for Sections */
/* First section after hero: Glass shader, no rounded corners */
.services-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Second section: No glass effect */
.expertise-section {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow: none;
}

/* Third section: Glass shader, no rounded corners */
.process-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Fourth section: No glass effect */
.stacks-section {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow: none;
}

/* Fifth section: Glass shader, no rounded corners */
.about-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Sixth section: No glass effect */
.cta-section {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow: none;
}

/* ===== APPOINTMENT BOX STYLES ===== */
.schedule-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.appointment-container {
    max-width: 100%;
    margin: 0;
}

.appointment-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appointment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.6;
}

.appointment-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.appointment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.appointment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow:
        0 10px 30px rgba(88, 166, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.appointment-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--heading-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.appointment-header p {
    font-size: 1.1rem;
    color: var(--subtle-text-color);
    margin: 0;
}

.appointment-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.appointment-features .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.appointment-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.appointment-features .feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.appointment-features .feature-item span {
    font-weight: 500;
    color: var(--text-color);
}

.appointment-consent {
    background: rgba(88, 166, 255, 0.05);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.consent-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.consent-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.consent-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.consent-actions {
    text-align: center;
}

.consent-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.3);
}

.consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(88, 166, 255, 0.4);
}

.consent-btn:active {
    transform: translateY(0);
}

.email-fallback {
    text-align: center;
}

.email-fallback p {
    margin-bottom: 1rem;
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

.email-fallback .button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
}

.calendly-container {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calendly-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(88, 166, 255, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.calendly-inline-widget {
    min-height: 600px;
    background: rgba(255, 255, 255, 0.01);
}

.appointment-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.appointment-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--subtle-text-color);
}

.appointment-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.appointment-footer a:hover {
    color: var(--accent-color);
}

/* Responsive Design for Appointment Box */
@media (max-width: 768px) {
    .schedule-section {
        padding: 3rem 0;
    }
    
    .appointment-container {
        padding: 0 1rem;
    }

    .appointment-card {
        padding: 2rem;
        border-radius: 16px;
    }

    .appointment-card::before {
        display: block;
    }

    .appointment-header h2 {
        font-size: 1.8rem;
    }

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

    .appointment-features .feature-item {
        padding: 1rem;
    }

    .consent-actions {
        text-align: center;
    }

    .consent-btn {
        width: 100%;
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .schedule-section {
        padding: 2rem 0;
    }
    
    .appointment-card {
        padding: 1.5rem;
    }

    .appointment-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .appointment-header h2 {
        font-size: 1.6rem;
    }

    .appointment-consent {
        padding: 1.5rem;
    }
}

/* Mobile fix: move language switcher away from cookie button */
@media (max-width: 768px) {
    .fixed-language-switcher {
        left: 20px;
        right: auto;
        bottom: 80px;
        /* leave room for cookie button */
        z-index: 400;
        /* below cookie button (500) and banner (1000) */
    }
}

/* ===== UTILITY CLASSES FOR INDEX.HTML REFACTORING ===== */

/* Icon Container Pattern */
.icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-container i {
    color: var(--bg-color);
    font-size: 1.8rem;
}

.icon-container-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-container-small i {
    color: var(--bg-color);
    font-size: 1.5rem;
}

/* Section Backgrounds */
.section-gradient-bg {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.06) 0%, rgba(247, 129, 102, 0.04) 100%);
    border-top: 1px solid rgba(88, 166, 255, 0.2);
}

.section-transparent {
    background: transparent;
}

/* Hero Section Utilities */
.hero-bg-image {
    background-image: url('/assets/images/photos/xr-glass.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-container {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-name {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-identity {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--subtle-text-color);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.hero-tagline {
    margin-bottom: 2rem;
}

.hero-subline {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-wrapper {
    margin-top: 2rem;
}

.hero-cta-button {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Grid Layouts */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-2-col-start {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Container Widths */
.container-narrow-1000 {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container-narrow-900 {
    max-width: 900px;
    margin: 0 auto;
}

.container-narrow-700 {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Flexbox Utilities */
.flex-center {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flex-start {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.flex-row-center {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-header-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    margin: 0;
    text-align: left;
}

.section-header-center h2 {
    margin: 0;
}

/* Card/Box Styling */
.card-primary {
    padding: 2rem;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.card-highlight {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.card-subtle {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon-large {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Card Layout */
.service-card-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.service-card-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card-content {
    flex: 1;
    padding: 0;
}

/* Special Service Card */
.service-card-special-layout {
    border: 2px solid var(--accent-color);
    background: rgba(247, 129, 102, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 2.5rem;
    max-width: 100%;
}

.service-card-special-icon {
    flex-shrink: 0;
    margin-right: 2rem;
}

.service-card-special-icon i {
    color: var(--accent-color);
    font-size: 3rem;
}

.service-card-special-content {
    flex: 1;
    text-align: left;
}

.service-card-special-content h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Text Utilities */
.text-center-max-700 {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Icon Sizes */
.icon-large {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .grid-2-col,
    .grid-2-col-start {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-container {
        padding: 2rem 1rem;
    }

    .service-card-special-layout {
        flex-direction: column;
        text-align: center;
    }

    .service-card-special-content {
        text-align: center;
    }

    .section-header h2,
    .section-header-center h2 {
        text-align: center;
    }
    
    /* Case study grid - ensure proper stacking */
    .case-study-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Container narrow adjustments */
    .container-narrow-1000,
    .container-narrow-900,
    .container-narrow-700 {
        padding: 0 1rem;
    }
    
    /* Ensure text doesn't overflow */
    p, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix for inline style grids in portfolio */
    .appointment-card > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* About Page Styles */
.about-section {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.about-image-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.about-image-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
    position: relative;
}

.about-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-social-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.about-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.about-social-links a:hover {
    color: var(--primary-color);
    background: rgba(88, 166, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.about-social-links a i {
    font-size: 1.3rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.cv-section {
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.cv-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 2rem;
    text-align: center;
}

.cv-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.cv-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cv-item:last-child {
    border-bottom: none;
}

.cv-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cv-details h4 {
    font-family: var(--font-sans);
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cv-details p {
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.cv-details p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-circle {
        width: 250px;
        height: 250px;
    }

    .cv-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cv-date {
        margin-bottom: 0.5rem;
    }
}

/* About Page - Inline Style Replacements */
.about-xrsync-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.footer-separator {
    color: var(--subtle-text-color);
}

.footer-xrsync-link {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-xrsync-link:hover {
    color: var(--text-color);
}