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

    /* --- Hyper-Saturated Teal Palette --- */
    /* A more saturated, vibrant version of the teal theme. */
    --primary-color: #9CDA97;
    /* Brighter, more saturated Teal */
    --accent-color: #F83800;
    /* Electric Red-Pink: A vivid, high-energy accent. */
    --highlight-color: #caf2c8;
    /* Brighter Light Teal: For gradients and highlights. */

    --primary-glow: #b5deb267;
    /* Glow for the new primary teal. */
    --accent-glow: rgba(255, 46, 99, 0.4);
    /* Glow for the new accent red. */

    --blob-color: var(--accent-color);
    --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;
    --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;
    background-image: radial-gradient(var(--border-color) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: var(--gridOffsetX, 0px) var(--gridOffsetY, 0px);
    overflow-x: hidden;
    /* Prevent horizontal scroll from blobs */
}

/* Subtle cursor ripple overlay over the grid */
.grid-ripple {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    mix-blend-mode: overlay;
    background-image: repeating-radial-gradient(circle at var(--mouseX, 50%) var(--mouseY, 50%),
            rgba(255, 255, 255, 0.08) 0,
            rgba(255, 255, 255, 0.08) 2px,
            rgba(255, 255, 255, 0) 10px,
            rgba(255, 255, 255, 0) 24px);
}

.grid-ripple.active {
    opacity: 0.18;
}

@media (prefers-reduced-motion: reduce) {
    .grid-ripple {
        display: none;
    }
}

/* Ensure EN-only background elements stay behind header and content */
.grid-canvas,
.grid-lens {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* attractor removed */

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

/* Typography */
h1,
h2,
h3,
h4 {
    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: 0 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;
}

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

.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-image {
    height: 32px;
    width: auto;
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin-left: 0;
    font-weight: 400;
    display: block;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 400;
}

/* 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);
}

.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);
}

.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);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.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);
}

/* 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 */
.hero-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    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;
}

.hero-tagline {
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
    line-height: 1.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-subline {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 60ch;
    margin: 0 auto 2.5rem auto;
}

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

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

.hero-socials a {
    color: var(--subtle-text-color);
    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;
}

.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;
    }
}

.pillar {
    border-radius: 8px;
    padding: 2px;
    /* This creates the space for the gradient border */
    background: linear-gradient(to bottom, rgba(156, 218, 151, 0.3), rgba(202, 242, 200, 0.1));
}

.pillar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: rgba(26, 26, 29, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 6px;
    /* Slightly smaller than parent to fit inside */
    overflow: hidden;
    /* This clips the inner content to the rounded shape */
}

.pillar h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    text-align: center;
    margin: 0;
    padding: 1.5rem;
    background-color: rgba(156, 218, 151, 0.3);
    border-bottom: 2px solid var(--border-color);
}

.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-size: 1.4rem;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
}

/* 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;
}

.service-item {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

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

/* 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 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.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 */

/* 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%;
    background: var(--blob-color);
    opacity: 0.2;
    filter: blur(80px);
    animation: move 15s infinite alternate;
}

.blob1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 10%;
    animation-duration: 12s;
}

.blob2 {
    width: 300px;
    height: 300px;
    bottom: 0;
    right: 5%;
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(-100px, -50px) rotate(-90deg);
    }

    to {
        transform: translate(100px, 100px) rotate(90deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }

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

    .nav-links a.button {
        display: none;
    }

    header .container {
        /* Keep nav toggle aligned while logo centers */
        justify-content: center;
    }

    .nav-toggle {
        position: absolute;
        right: 1rem;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .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 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    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;
}

.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;
}

.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;
}